2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for ld 2.24.90.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir=.
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir=./$as_dir;;
291 test -d "$as_dir" || eval $as_mkdir_p || {
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
360 as_val=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status=$?; test $as_status -eq 0 && as_status=1
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487 elif ln conf$$.file conf$$ 2>/dev/null; then
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
501 test -d ./-p && rmdir ./-p
505 if test -x / >/dev/null 2>&1; then
508 if ls -dL / >/dev/null 2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
556 # Identity of this package.
559 PACKAGE_VERSION='2.24.90'
560 PACKAGE_STRING='ld 2.24.90'
564 ac_unique_file="ldmain.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars='am__EXEEXT_FALSE
612 enable_initfini_array
648 TARGET_SYSTEM_ROOT_DEFINE
678 MAINTAINER_MODE_FALSE
697 INSTALL_STRIP_PROGRAM
758 program_transform_name
769 ac_subst_files='TDIRS'
771 enable_option_checking
772 enable_dependency_tracking
773 enable_maintainer_mode
789 enable_build_warnings
791 enable_initfini_array
794 ac_precious_vars='build_alias
811 # Initialize some variables set by options.
813 ac_init_version=false
814 ac_unrecognized_opts=
816 # The variables have the same names as the options, with
817 # dashes changed to underlines.
825 program_transform_name=s,x,x,
833 # Installation directory options.
834 # These are left unexpanded so users can "make install exec_prefix=/foo"
835 # and all the variables that are supposed to be based on exec_prefix
836 # by default will actually change.
837 # Use braces instead of parens because sh, perl, etc. also accept them.
838 # (The list follows the same order as the GNU Coding Standards.)
839 bindir='${exec_prefix}/bin'
840 sbindir='${exec_prefix}/sbin'
841 libexecdir='${exec_prefix}/libexec'
842 datarootdir='${prefix}/share'
843 datadir='${datarootdir}'
844 sysconfdir='${prefix}/etc'
845 sharedstatedir='${prefix}/com'
846 localstatedir='${prefix}/var'
847 includedir='${prefix}/include'
848 oldincludedir='/usr/include'
849 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
850 infodir='${datarootdir}/info'
855 libdir='${exec_prefix}/lib'
856 localedir='${datarootdir}/locale'
857 mandir='${datarootdir}/man'
863 # If the previous option needs an argument, assign it.
864 if test -n "$ac_prev"; then
865 eval $ac_prev=\$ac_option
871 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875 # Accept the important Cygnus configure options, so we can diagnose typos.
877 case $ac_dashdash$ac_option in
881 -bindir | --bindir | --bindi | --bind | --bin | --bi)
883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886 -build | --build | --buil | --bui | --bu)
887 ac_prev=build_alias ;;
888 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889 build_alias=$ac_optarg ;;
891 -cache-file | --cache-file | --cache-fil | --cache-fi \
892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893 ac_prev=cache_file ;;
894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896 cache_file=$ac_optarg ;;
899 cache_file=config.cache ;;
901 -datadir | --datadir | --datadi | --datad)
903 -datadir=* | --datadir=* | --datadi=* | --datad=*)
904 datadir=$ac_optarg ;;
906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907 | --dataroo | --dataro | --datar)
908 ac_prev=datarootdir ;;
909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911 datarootdir=$ac_optarg ;;
913 -disable-* | --disable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error "invalid feature name: $ac_useropt"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
927 eval enable_$ac_useropt=no ;;
929 -docdir | --docdir | --docdi | --doc | --do)
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 -enable-* | --enable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
953 eval enable_$ac_useropt=\$ac_optarg ;;
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
962 exec_prefix=$ac_optarg ;;
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
968 -help | --help | --hel | --he | -h)
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
975 -host | --host | --hos | --ho)
976 ac_prev=host_alias ;;
977 -host=* | --host=* | --hos=* | --ho=*)
978 host_alias=$ac_optarg ;;
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984 htmldir=$ac_optarg ;;
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
991 includedir=$ac_optarg ;;
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996 infodir=$ac_optarg ;;
998 -libdir | --libdir | --libdi | --libd)
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 libdir=$ac_optarg ;;
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
1008 libexecdir=$ac_optarg ;;
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
1016 | --localstate | --localstat | --localsta | --localst | --locals)
1017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020 localstatedir=$ac_optarg ;;
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025 mandir=$ac_optarg ;;
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n)
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046 oldincludedir=$ac_optarg ;;
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051 prefix=$ac_optarg ;;
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058 program_prefix=$ac_optarg ;;
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065 program_suffix=$ac_optarg ;;
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
1082 program_transform_name=$ac_optarg ;;
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1089 -psdir | --psdir | --psdi | --psd | --ps)
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102 sbindir=$ac_optarg ;;
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113 sharedstatedir=$ac_optarg ;;
1115 -site | --site | --sit)
1117 -site=* | --site=* | --sit=*)
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123 srcdir=$ac_optarg ;;
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130 sysconfdir=$ac_optarg ;;
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
1133 ac_prev=target_alias ;;
1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135 target_alias=$ac_optarg ;;
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error "invalid package name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1157 eval with_$ac_useropt=\$ac_optarg ;;
1159 -without-* | --without-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error "invalid package name: $ac_useropt"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1173 eval with_$ac_useropt=no ;;
1176 # Obsolete; use --with-x.
1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180 | --x-incl | --x-inc | --x-in | --x-i)
1181 ac_prev=x_includes ;;
1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184 x_includes=$ac_optarg ;;
1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188 ac_prev=x_libraries ;;
1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191 x_libraries=$ac_optarg ;;
1193 -*) as_fn_error "unrecognized option: \`$ac_option'
1194 Try \`$0 --help' for more information."
1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
1200 case $ac_envvar in #(
1201 '' | [0-9]* | *[!_$as_cr_alnum]* )
1202 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1204 eval $ac_envvar=\$ac_optarg
1205 export $ac_envvar ;;
1208 # FIXME: should be removed in autoconf 3.0.
1209 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1218 if test -n "$ac_prev"; then
1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220 as_fn_error "missing argument to $ac_option"
1223 if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1226 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231 # Check all directory arguments for consistency.
1232 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir
1237 eval ac_val=\$$ac_var
1238 # Remove trailing slashes.
1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242 eval $ac_var=\$ac_val;;
1244 # Be sure to have absolute directory names.
1246 [\\/$]* | ?:[\\/]* ) continue;;
1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1257 target=$target_alias
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261 if test "x$build_alias" = x; then
1262 cross_compiling=maybe
1263 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1264 If a cross compiler is detected then cross compile mode will be used." >&2
1265 elif test "x$build_alias" != "x$host_alias"; then
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273 test "$silent" = yes && exec 6>/dev/null
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279 as_fn_error "working directory cannot be determined"
1280 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281 as_fn_error "pwd does not report name of working directory"
1284 # Find the source files, if location was not specified.
1285 if test -z "$srcdir"; then
1286 ac_srcdir_defaulted=yes
1287 # Try the directory containing this script, then the parent directory.
1288 ac_confdir=`$as_dirname -- "$as_myself" ||
1289 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290 X"$as_myself" : 'X\(//\)[^/]' \| \
1291 X"$as_myself" : 'X\(//\)$' \| \
1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293 $as_echo X"$as_myself" |
1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1316 ac_srcdir_defaulted=no
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1322 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1326 # When building in place, set srcdir=.
1327 if test "$ac_abs_confdir" = "$ac_pwd"; then
1330 # Remove unnecessary trailing slashes from srcdir.
1331 # Double slashes in file names in object file debugging info
1332 # mess up M-x gdb in Emacs.
1334 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336 for ac_var in $ac_precious_vars; do
1337 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_env_${ac_var}_value=\$${ac_var}
1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344 # Report the --help message.
1346 if test "$ac_init_help" = "long"; then
1347 # Omit some internal or obsolete options to make the list less imposing.
1348 # This message is too long to be a string in the A/UX 3.1 sh.
1350 \`configure' configures ld 2.24.90 to adapt to many kinds of systems.
1352 Usage: $0 [OPTION]... [VAR=VALUE]...
1354 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355 VAR=VALUE. See below for descriptions of some of the useful variables.
1357 Defaults for the options are specified in brackets.
1360 -h, --help display this help and exit
1361 --help=short display options specific to this package
1362 --help=recursive display the short help of all the included packages
1363 -V, --version display version information and exit
1364 -q, --quiet, --silent do not print \`checking...' messages
1365 --cache-file=FILE cache test results in FILE [disabled]
1366 -C, --config-cache alias for \`--cache-file=config.cache'
1367 -n, --no-create do not create output files
1368 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1370 Installation directories:
1371 --prefix=PREFIX install architecture-independent files in PREFIX
1372 [$ac_default_prefix]
1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1376 By default, \`make install' will install all the files in
1377 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1378 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379 for instance \`--prefix=\$HOME'.
1381 For better control, use the options below.
1383 Fine tuning of the installation directories:
1384 --bindir=DIR user executables [EPREFIX/bin]
1385 --sbindir=DIR system admin executables [EPREFIX/sbin]
1386 --libexecdir=DIR program executables [EPREFIX/libexec]
1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1390 --libdir=DIR object code libraries [EPREFIX/lib]
1391 --includedir=DIR C header files [PREFIX/include]
1392 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1393 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1394 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1395 --infodir=DIR info documentation [DATAROOTDIR/info]
1396 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1397 --mandir=DIR man documentation [DATAROOTDIR/man]
1398 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
1399 --htmldir=DIR html documentation [DOCDIR]
1400 --dvidir=DIR dvi documentation [DOCDIR]
1401 --pdfdir=DIR pdf documentation [DOCDIR]
1402 --psdir=DIR ps documentation [DOCDIR]
1408 --program-prefix=PREFIX prepend PREFIX to installed program names
1409 --program-suffix=SUFFIX append SUFFIX to installed program names
1410 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1413 --build=BUILD configure for building on BUILD [guessed]
1414 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1415 --target=TARGET configure for building compilers for TARGET [HOST]
1419 if test -n "$ac_init_help"; then
1420 case $ac_init_help in
1421 short | recursive ) echo "Configuration of ld 2.24.90:";;
1426 --disable-option-checking ignore unrecognized --enable/--with options
1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1429 --disable-dependency-tracking speeds up one-time build
1430 --enable-dependency-tracking do not reject slow dependency extractors
1431 --enable-maintainer-mode enable make rules and dependencies not useful
1432 (and sometimes confusing) to the casual installer
1433 --enable-shared[=PKGS] build shared libraries [default=yes]
1434 --enable-static[=PKGS] build static libraries [default=yes]
1435 --enable-fast-install[=PKGS]
1436 optimize for fast installation [default=yes]
1437 --disable-libtool-lock avoid locking (might break parallel builds)
1438 --enable-plugins Enable support for plugins
1439 --disable-largefile omit support for large files
1440 --enable-targets alternative target configurations
1441 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1442 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1443 --enable-got=<type> GOT handling scheme (target, single, negative,
1445 --enable-werror treat compile warnings as errors
1446 --enable-build-warnings enable build-time compiler warnings
1447 --disable-nls do not use Native Language Support
1448 --enable-initfini-array use .init_array/.fini_array sections
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-pic try to use only PIC/non-PIC objects [default=use
1455 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1456 --with-lib-path=dir1:dir2... set default LIB_PATH
1457 --with-sysroot=DIR Search for usr/lib et al within DIR.
1458 --with-zlib include zlib support (auto/yes/no) default=auto
1460 Some influential environment variables:
1461 CC C compiler command
1462 CFLAGS C compiler flags
1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1464 nonstandard directory <lib dir>
1465 LIBS libraries to pass to the linker, e.g. -l<library>
1466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1468 CXX C++ compiler command
1469 CXXFLAGS C++ compiler flags
1471 CXXCPP C++ preprocessor
1472 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1473 the first program found out of: `bison -y', `byacc', `yacc'.
1474 YFLAGS The list of arguments that will be passed by default to $YACC.
1475 This script will default YFLAGS to the empty string to avoid a
1476 default value of `-d' given by some make applications.
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1481 Report bugs to the package provider.
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" ||
1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1498 # A ".." for each directory in $ac_dir_suffix.
1499 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500 case $ac_top_builddir_sub in
1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505 ac_abs_top_builddir=$ac_pwd
1506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507 # for backward compatibility:
1508 ac_top_builddir=$ac_top_build_prefix
1511 .) # We are building in place.
1513 ac_top_srcdir=$ac_top_builddir_sub
1514 ac_abs_top_srcdir=$ac_pwd ;;
1515 [\\/]* | ?:[\\/]* ) # Absolute name.
1516 ac_srcdir=$srcdir$ac_dir_suffix;
1517 ac_top_srcdir=$srcdir
1518 ac_abs_top_srcdir=$srcdir ;;
1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521 ac_top_srcdir=$ac_top_build_prefix$srcdir
1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1526 cd "$ac_dir" || { ac_status=$?; continue; }
1527 # Check for guested configure.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1533 $SHELL "$ac_srcdir/configure" --help=recursive
1535 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1537 cd "$ac_pwd" || { ac_status=$?; break; }
1541 test -n "$ac_init_help" && exit $ac_status
1542 if $ac_init_version; then
1544 ld configure 2.24.90
1545 generated by GNU Autoconf 2.64
1547 Copyright (C) 2009 Free Software Foundation, Inc.
1548 This configure script is free software; the Free Software Foundation
1549 gives unlimited permission to copy, distribute and modify it.
1554 ## ------------------------ ##
1555 ## Autoconf initialization. ##
1556 ## ------------------------ ##
1558 # ac_fn_c_try_compile LINENO
1559 # --------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_c_try_compile ()
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext
1565 if { { ac_try="$ac_compile"
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_compile") 2>conftest.err
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest.$ac_objext; then :
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1591 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1594 } # ac_fn_c_try_compile
1596 # ac_fn_c_try_link LINENO
1597 # -----------------------
1598 # Try to link conftest.$ac_ext, and return whether this succeeded.
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 rm -f conftest.$ac_objext conftest$ac_exeext
1603 if { { ac_try="$ac_link"
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_link") 2>conftest.err
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } && {
1619 test -z "$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 } && test -s conftest$ac_exeext && {
1622 test "$cross_compiling" = yes ||
1623 $as_test_x conftest$ac_exeext
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1632 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1633 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1634 # interfere with the next link command; also delete a directory that is
1635 # left behind by Apple's compiler. We do this before executing the actions.
1636 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1637 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640 } # ac_fn_c_try_link
1642 # ac_fn_cxx_try_compile LINENO
1643 # ----------------------------
1644 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_cxx_try_compile ()
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 rm -f conftest.$ac_objext
1649 if { { ac_try="$ac_compile"
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_compile") 2>conftest.err
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_cxx_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest.$ac_objext; then :
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1678 } # ac_fn_cxx_try_compile
1680 # ac_fn_c_try_cpp LINENO
1681 # ----------------------
1682 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 if { { ac_try="$ac_cpp conftest.$ac_ext"
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } >/dev/null && {
1702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1712 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1718 # -------------------------------------------------------
1719 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1720 # the include files in INCLUDES and setting the cache variable VAR
1722 ac_fn_c_check_header_mongrel ()
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1729 $as_echo_n "(cached) " >&6
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1735 # Is the header compilable?
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1737 $as_echo_n "checking $2 usability... " >&6; }
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1743 if ac_fn_c_try_compile "$LINENO"; then :
1744 ac_header_compiler=yes
1746 ac_header_compiler=no
1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1750 $as_echo "$ac_header_compiler" >&6; }
1752 # Is the header present?
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1754 $as_echo_n "checking $2 presence... " >&6; }
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1759 if ac_fn_c_try_cpp "$LINENO"; then :
1760 ac_header_preproc=yes
1762 ac_header_preproc=no
1764 rm -f conftest.err conftest.$ac_ext
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1766 $as_echo "$ac_header_preproc" >&6; }
1768 # So? What about this header?
1769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1772 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1774 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1778 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1780 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1782 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1784 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1786 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790 $as_echo_n "checking for $2... " >&6; }
1791 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1792 $as_echo_n "(cached) " >&6
1794 eval "$3=\$ac_header_compiler"
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1802 } # ac_fn_c_check_header_mongrel
1804 # ac_fn_c_try_run LINENO
1805 # ----------------------
1806 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1807 # that executables *can* be run.
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 if { { ac_try="$ac_link"
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_link") 2>&5
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1822 { { case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_try") 2>&5
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; }; }; then :
1834 $as_echo "$as_me: program exited with status $ac_status" >&5
1835 $as_echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1838 ac_retval=$ac_status
1840 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1847 # -------------------------------------------------------
1848 # Tests whether HEADER exists and can be compiled using the include files in
1849 # INCLUDES, setting the cache variable VAR accordingly.
1850 ac_fn_c_check_header_compile ()
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1856 $as_echo_n "(cached) " >&6
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1863 if ac_fn_c_try_compile "$LINENO"; then :
1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875 } # ac_fn_c_check_header_compile
1877 # ac_fn_c_check_func LINENO FUNC VAR
1878 # ----------------------------------
1879 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1880 ac_fn_c_check_func ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1886 $as_echo_n "(cached) " >&6
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1892 #define $2 innocuous_$2
1894 /* System header to define __stub macros and hopefully few prototypes,
1895 which can conflict with char $2 (); below.
1896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1897 <limits.h> exists even on freestanding compilers. */
1900 # include <limits.h>
1902 # include <assert.h>
1907 /* Override any GCC internal prototype to avoid an error.
1908 Use char because int might match the return type of a GCC
1909 builtin and then its argument prototype would still apply. */
1914 /* The GNU C library defines this for functions which it implements
1915 to always fail with ENOSYS. Some functions are actually named
1916 something starting with __ and the normal name is an alias. */
1917 #if defined __stub_$2 || defined __stub___$2
1929 if ac_fn_c_try_link "$LINENO"; then :
1934 rm -f core conftest.err conftest.$ac_objext \
1935 conftest$ac_exeext conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1942 } # ac_fn_c_check_func
1944 # ac_fn_cxx_try_cpp LINENO
1945 # ------------------------
1946 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1947 ac_fn_cxx_try_cpp ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if { { ac_try="$ac_cpp conftest.$ac_ext"
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1959 if test -s conftest.err; then
1960 grep -v '^ *+' conftest.err >conftest.er1
1961 cat conftest.er1 >&5
1962 mv -f conftest.er1 conftest.err
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; } >/dev/null && {
1966 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1967 test ! -s conftest.err
1971 $as_echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.$ac_ext >&5
1976 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1979 } # ac_fn_cxx_try_cpp
1981 # ac_fn_cxx_try_link LINENO
1982 # -------------------------
1983 # Try to link conftest.$ac_ext, and return whether this succeeded.
1984 ac_fn_cxx_try_link ()
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 rm -f conftest.$ac_objext conftest$ac_exeext
1988 if { { ac_try="$ac_link"
1990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991 *) ac_try_echo=$ac_try;;
1993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994 $as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_link") 2>conftest.err
1997 if test -s conftest.err; then
1998 grep -v '^ *+' conftest.err >conftest.er1
1999 cat conftest.er1 >&5
2000 mv -f conftest.er1 conftest.err
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; } && {
2004 test -z "$ac_cxx_werror_flag" ||
2005 test ! -s conftest.err
2006 } && test -s conftest$ac_exeext && {
2007 test "$cross_compiling" = yes ||
2008 $as_test_x conftest$ac_exeext
2012 $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2017 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2018 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2019 # interfere with the next link command; also delete a directory that is
2020 # left behind by Apple's compiler. We do this before executing the actions.
2021 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2022 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2025 } # ac_fn_cxx_try_link
2027 # ac_fn_c_check_decl LINENO SYMBOL VAR
2028 # ------------------------------------
2029 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2030 ac_fn_c_check_decl ()
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 as_decl_name=`echo $2|sed 's/ *(.*//'`
2034 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2036 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2037 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2038 $as_echo_n "(cached) " >&6
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2046 #ifndef $as_decl_name
2048 (void) $as_decl_use;
2050 (void) $as_decl_name;
2058 if ac_fn_c_try_compile "$LINENO"; then :
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067 $as_echo "$ac_res" >&6; }
2068 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2070 } # ac_fn_c_check_decl
2072 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2073 # --------------------------------------------
2074 # Tries to find the compile-time value of EXPR in a program that includes
2075 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2077 ac_fn_c_compute_int ()
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 if test "$cross_compiling" = yes; then
2081 # Depending upon the size, compute the lo and hi bounds.
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2088 static int test_array [1 - 2 * !(($2) >= 0)];
2095 if ac_fn_c_try_compile "$LINENO"; then :
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2104 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_hi=$ac_mid; break
2114 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2115 if test $ac_lo -le $ac_mid; then
2119 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2130 static int test_array [1 - 2 * !(($2) < 0)];
2137 if ac_fn_c_try_compile "$LINENO"; then :
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2146 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 ac_lo=$ac_mid; break
2156 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2157 if test $ac_mid -le $ac_hi; then
2161 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 # Binary search between lo and hi bounds.
2172 while test "x$ac_lo" != "x$ac_hi"; do
2173 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2180 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2187 if ac_fn_c_try_compile "$LINENO"; then :
2190 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2202 static long int longval () { return $2; }
2203 static unsigned long int ulongval () { return $2; }
2210 FILE *f = fopen ("conftest.val", "w");
2215 long int i = longval ();
2218 fprintf (f, "%ld", i);
2222 unsigned long int i = ulongval ();
2225 fprintf (f, "%lu", i);
2227 /* Do not output a trailing newline, as this causes \r\n confusion
2228 on some platforms. */
2229 return ferror (f) || fclose (f) != 0;
2235 if ac_fn_c_try_run "$LINENO"; then :
2236 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2241 conftest.$ac_objext conftest.beam conftest.$ac_ext
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2248 } # ac_fn_c_compute_int
2249 cat >config.log <<_ACEOF
2250 This file contains any messages produced by compilers while
2251 running configure, to aid debugging if configure makes a mistake.
2253 It was created by ld $as_me 2.24.90, which was
2254 generated by GNU Autoconf 2.64. Invocation command line was
2266 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2267 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2268 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2269 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2270 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2272 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2273 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2275 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2276 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2277 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2278 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2279 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2280 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2281 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 test -z "$as_dir" && as_dir=.
2290 $as_echo "PATH: $as_dir"
2306 # Keep a trace of the command line.
2307 # Strip out --no-create and --no-recursion so they do not pile up.
2308 # Strip out --silent because we don't want to record it for future runs.
2309 # Also quote any args containing shell meta-characters.
2310 # Make two passes to allow for proper duplicate-argument suppression.
2314 ac_must_keep_next=false
2320 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2322 | -silent | --silent | --silen | --sile | --sil)
2325 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2328 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2330 as_fn_append ac_configure_args1 " '$ac_arg'"
2331 if test $ac_must_keep_next = true; then
2332 ac_must_keep_next=false # Got value, back to normal.
2335 *=* | --config-cache | -C | -disable-* | --disable-* \
2336 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2337 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2338 | -with-* | --with-* | -without-* | --without-* | --x)
2339 case "$ac_configure_args0 " in
2340 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2343 -* ) ac_must_keep_next=true ;;
2346 as_fn_append ac_configure_args " '$ac_arg'"
2351 { ac_configure_args0=; unset ac_configure_args0;}
2352 { ac_configure_args1=; unset ac_configure_args1;}
2354 # When interrupted or exit'd, cleanup temporary files, and complete
2355 # config.log. We remove comments because anyway the quotes in there
2356 # would cause problems or look ugly.
2357 # WARNING: Use '\'' to represent an apostrophe within the trap.
2358 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2359 trap 'exit_status=$?
2360 # Save into config.log some information that might help in debugging.
2365 ## ---------------- ##
2366 ## Cache variables. ##
2367 ## ---------------- ##
2370 # The following way of writing the cache mishandles newlines in values,
2372 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2373 eval ac_val=\$$ac_var
2377 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2378 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2381 _ | IFS | as_nl) ;; #(
2382 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2383 *) { eval $ac_var=; unset $ac_var;} ;;
2388 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2389 *${as_nl}ac_space=\ *)
2391 "s/'\''/'\''\\\\'\'''\''/g;
2392 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2395 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2403 ## ----------------- ##
2404 ## Output variables. ##
2405 ## ----------------- ##
2408 for ac_var in $ac_subst_vars
2410 eval ac_val=\$$ac_var
2412 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2414 $as_echo "$ac_var='\''$ac_val'\''"
2418 if test -n "$ac_subst_files"; then
2420 ## ------------------- ##
2421 ## File substitutions. ##
2422 ## ------------------- ##
2425 for ac_var in $ac_subst_files
2427 eval ac_val=\$$ac_var
2429 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2431 $as_echo "$ac_var='\''$ac_val'\''"
2436 if test -s confdefs.h; then
2446 test "$ac_signal" != 0 &&
2447 $as_echo "$as_me: caught signal $ac_signal"
2448 $as_echo "$as_me: exit $exit_status"
2450 rm -f core *.core core.conftest.* &&
2451 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2454 for ac_signal in 1 2 13 15; do
2455 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2460 rm -f -r conftest* confdefs.h
2462 $as_echo "/* confdefs.h */" > confdefs.h
2464 # Predefined preprocessor variables.
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_NAME "$PACKAGE_NAME"
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_STRING "$PACKAGE_STRING"
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_URL "$PACKAGE_URL"
2491 # Let the site file select an alternate cache file if it wants to.
2492 # Prefer an explicitly selected file to automatically selected ones.
2495 if test -n "$CONFIG_SITE"; then
2496 ac_site_file1=$CONFIG_SITE
2497 elif test "x$prefix" != xNONE; then
2498 ac_site_file1=$prefix/share/config.site
2499 ac_site_file2=$prefix/etc/config.site
2501 ac_site_file1=$ac_default_prefix/share/config.site
2502 ac_site_file2=$ac_default_prefix/etc/config.site
2504 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2506 test "x$ac_site_file" = xNONE && continue
2507 if test -r "$ac_site_file"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2509 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2510 sed 's/^/| /' "$ac_site_file" >&5
2515 if test -r "$cache_file"; then
2516 # Some versions of bash will fail to source /dev/null (special
2517 # files actually), so we avoid doing that.
2518 if test -f "$cache_file"; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2520 $as_echo "$as_me: loading cache $cache_file" >&6;}
2522 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2523 *) . "./$cache_file";;
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2528 $as_echo "$as_me: creating cache $cache_file" >&6;}
2532 # Check that the precious variables saved in the cache have kept the same
2534 ac_cache_corrupted=false
2535 for ac_var in $ac_precious_vars; do
2536 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2537 eval ac_new_set=\$ac_env_${ac_var}_set
2538 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2539 eval ac_new_val=\$ac_env_${ac_var}_value
2540 case $ac_old_set,$ac_new_set in
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2543 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2544 ac_cache_corrupted=: ;;
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2547 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2548 ac_cache_corrupted=: ;;
2551 if test "x$ac_old_val" != "x$ac_new_val"; then
2552 # differences in whitespace do not lead to failure.
2553 ac_old_val_w=`echo x $ac_old_val`
2554 ac_new_val_w=`echo x $ac_new_val`
2555 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2557 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2558 ac_cache_corrupted=:
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2561 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2562 eval $ac_var=\$ac_old_val
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2565 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2567 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2570 # Pass precious variables to config.status.
2571 if test "$ac_new_set" = set; then
2573 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2574 *) ac_arg=$ac_var=$ac_new_val ;;
2576 case " $ac_configure_args " in
2577 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2578 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2582 if $ac_cache_corrupted; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2586 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2587 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2589 ## -------------------- ##
2590 ## Main body of script. ##
2591 ## -------------------- ##
2594 ac_cpp='$CPP $CPPFLAGS'
2595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2607 for ac_t in install-sh install.sh shtool; do
2608 if test -f "$ac_dir/$ac_t"; then
2610 ac_install_sh="$ac_aux_dir/$ac_t -c"
2615 if test -z "$ac_aux_dir"; then
2616 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2619 # These three variables are undocumented and unsupported,
2620 # and are intended to be withdrawn in a future Autoconf release.
2621 # They can cause serious problems if a builder's source tree is in a directory
2622 # whose full name contains unusual characters.
2623 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2624 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2625 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2628 # Make sure we can run config.sub.
2629 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2630 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2633 $as_echo_n "checking build system type... " >&6; }
2634 if test "${ac_cv_build+set}" = set; then :
2635 $as_echo_n "(cached) " >&6
2637 ac_build_alias=$build_alias
2638 test "x$ac_build_alias" = x &&
2639 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2640 test "x$ac_build_alias" = x &&
2641 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2642 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2643 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2647 $as_echo "$ac_cv_build" >&6; }
2648 case $ac_cv_build in
2650 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2653 ac_save_IFS=$IFS; IFS='-'
2659 # Remember, the first character of IFS is used to create $*,
2660 # except with old shells:
2663 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2667 $as_echo_n "checking host system type... " >&6; }
2668 if test "${ac_cv_host+set}" = set; then :
2669 $as_echo_n "(cached) " >&6
2671 if test "x$host_alias" = x; then
2672 ac_cv_host=$ac_cv_build
2674 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2675 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2680 $as_echo "$ac_cv_host" >&6; }
2683 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2686 ac_save_IFS=$IFS; IFS='-'
2692 # Remember, the first character of IFS is used to create $*,
2693 # except with old shells:
2696 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2700 $as_echo_n "checking target system type... " >&6; }
2701 if test "${ac_cv_target+set}" = set; then :
2702 $as_echo_n "(cached) " >&6
2704 if test "x$target_alias" = x; then
2705 ac_cv_target=$ac_cv_host
2707 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2708 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2713 $as_echo "$ac_cv_target" >&6; }
2714 case $ac_cv_target in
2716 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2718 target=$ac_cv_target
2719 ac_save_IFS=$IFS; IFS='-'
2725 # Remember, the first character of IFS is used to create $*,
2726 # except with old shells:
2729 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2732 # The aliases save the names the user supplied, while $host etc.
2733 # will get canonicalized.
2734 test -n "$target_alias" &&
2735 test "$program_prefix$program_suffix$program_transform_name" = \
2737 program_prefix=${target_alias}-
2740 ac_cpp='$CPP $CPPFLAGS'
2741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2744 if test -n "$ac_tool_prefix"; then
2745 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2746 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748 $as_echo_n "checking for $ac_word... " >&6; }
2749 if test "${ac_cv_prog_CC+set}" = set; then :
2750 $as_echo_n "(cached) " >&6
2752 if test -n "$CC"; then
2753 ac_cv_prog_CC="$CC" # Let the user override the test.
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 test -z "$as_dir" && as_dir=.
2760 for ac_exec_ext in '' $ac_executable_extensions; do
2761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2762 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2773 if test -n "$CC"; then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2775 $as_echo "$CC" >&6; }
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778 $as_echo "no" >&6; }
2783 if test -z "$ac_cv_prog_CC"; then
2785 # Extract the first word of "gcc", so it can be a program name with args.
2786 set dummy gcc; ac_word=$2
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788 $as_echo_n "checking for $ac_word... " >&6; }
2789 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2790 $as_echo_n "(cached) " >&6
2792 if test -n "$ac_ct_CC"; then
2793 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2802 ac_cv_prog_ac_ct_CC="gcc"
2803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2813 if test -n "$ac_ct_CC"; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2815 $as_echo "$ac_ct_CC" >&6; }
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 $as_echo "no" >&6; }
2821 if test "x$ac_ct_CC" = x; then
2824 case $cross_compiling:$ac_tool_warned in
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2828 ac_tool_warned=yes ;;
2836 if test -z "$CC"; then
2837 if test -n "$ac_tool_prefix"; then
2838 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2839 set dummy ${ac_tool_prefix}cc; ac_word=$2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if test "${ac_cv_prog_CC+set}" = set; then :
2843 $as_echo_n "(cached) " >&6
2845 if test -n "$CC"; then
2846 ac_cv_prog_CC="$CC" # Let the user override the test.
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855 ac_cv_prog_CC="${ac_tool_prefix}cc"
2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 if test -n "$CC"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2868 $as_echo "$CC" >&6; }
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2877 if test -z "$CC"; then
2878 # Extract the first word of "cc", so it can be a program name with args.
2879 set dummy cc; ac_word=$2
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881 $as_echo_n "checking for $ac_word... " >&6; }
2882 if test "${ac_cv_prog_CC+set}" = set; then :
2883 $as_echo_n "(cached) " >&6
2885 if test -n "$CC"; then
2886 ac_cv_prog_CC="$CC" # Let the user override the test.
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2897 ac_prog_rejected=yes
2901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 if test $ac_prog_rejected = yes; then
2909 # We found a bogon in the path, so make sure we never use it.
2910 set dummy $ac_cv_prog_CC
2912 if test $# != 0; then
2913 # We chose a different compiler from the bogus one.
2914 # However, it has the same basename, so the bogon will be chosen
2915 # first if we set CC to just the basename; use the full file name.
2917 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2923 if test -n "$CC"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2925 $as_echo "$CC" >&6; }
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2933 if test -z "$CC"; then
2934 if test -n "$ac_tool_prefix"; then
2935 for ac_prog in cl.exe
2937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if test "${ac_cv_prog_CC+set}" = set; then :
2942 $as_echo_n "(cached) " >&6
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC="$CC" # Let the user override the test.
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 if test -n "$CC"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967 $as_echo "$CC" >&6; }
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2974 test -n "$CC" && break
2977 if test -z "$CC"; then
2979 for ac_prog in cl.exe
2981 # Extract the first word of "$ac_prog", so it can be a program name with args.
2982 set dummy $ac_prog; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2986 $as_echo_n "(cached) " >&6
2988 if test -n "$ac_ct_CC"; then
2989 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2998 ac_cv_prog_ac_ct_CC="$ac_prog"
2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3009 if test -n "$ac_ct_CC"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3011 $as_echo "$ac_ct_CC" >&6; }
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3018 test -n "$ac_ct_CC" && break
3021 if test "x$ac_ct_CC" = x; then
3024 case $cross_compiling:$ac_tool_warned in
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3028 ac_tool_warned=yes ;;
3037 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3039 as_fn_error "no acceptable C compiler found in \$PATH
3040 See \`config.log' for more details." "$LINENO" 5; }
3042 # Provide some information about the compiler.
3043 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3046 for ac_option in --version -v -V -qversion; do
3047 { { ac_try="$ac_compiler $ac_option >&5"
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053 $as_echo "$ac_try_echo"; } >&5
3054 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3056 if test -s conftest.err; then
3058 ... rest of stderr output deleted ...
3059 10q' conftest.err >conftest.er1
3060 cat conftest.er1 >&5
3061 rm -f conftest.er1 conftest.err
3063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064 test $ac_status = 0; }
3067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3068 /* end confdefs.h. */
3078 ac_clean_files_save=$ac_clean_files
3079 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3080 # Try to create an executable without -o first, disregard a.out.
3081 # It will help us diagnose broken compilers, and finding out an intuition
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3084 $as_echo_n "checking for C compiler default output file name... " >&6; }
3085 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3087 # The possible output files:
3088 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3091 for ac_file in $ac_files
3094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3095 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3100 if { { ac_try="$ac_link_default"
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106 $as_echo "$ac_try_echo"; } >&5
3107 (eval "$ac_link_default") 2>&5
3109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110 test $ac_status = 0; }; then :
3111 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3112 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3113 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3114 # so that the user can short-circuit this test for compilers unknown to
3116 for ac_file in $ac_files ''
3118 test -f "$ac_file" || continue
3120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3123 # We found the default executable, but exeext='' is most
3127 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3129 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3131 # We set ac_cv_exeext here because the later test for it is not
3132 # safe: cross compilers may not add the suffix if given an `-o'
3133 # argument, so we may need to know it at that point already.
3134 # Even if this section looks crufty: it has the advantage of
3141 test "$ac_cv_exeext" = no && ac_cv_exeext=
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3147 $as_echo "$ac_file" >&6; }
3148 if test -z "$ac_file"; then :
3149 $as_echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154 { as_fn_set_status 77
3155 as_fn_error "C compiler cannot create executables
3156 See \`config.log' for more details." "$LINENO" 5; }; }
3158 ac_exeext=$ac_cv_exeext
3160 # Check that the compiler produces executables we can run. If not, either
3161 # the compiler is broken, or we cross compile.
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3163 $as_echo_n "checking whether the C compiler works... " >&6; }
3164 # If not cross compiling, check that we can run a simple program.
3165 if test "$cross_compiling" != yes; then
3166 if { ac_try='./$ac_file'
3167 { { case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172 $as_echo "$ac_try_echo"; } >&5
3173 (eval "$ac_try") 2>&5
3175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176 test $ac_status = 0; }; }; then
3179 if test "$cross_compiling" = maybe; then
3182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 as_fn_error "cannot run C compiled programs.
3185 If you meant to cross compile, use \`--host'.
3186 See \`config.log' for more details." "$LINENO" 5; }
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3191 $as_echo "yes" >&6; }
3193 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3194 ac_clean_files=$ac_clean_files_save
3195 # Check that the compiler produces executables we can run. If not, either
3196 # the compiler is broken, or we cross compile.
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3198 $as_echo_n "checking whether we are cross compiling... " >&6; }
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3200 $as_echo "$cross_compiling" >&6; }
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3203 $as_echo_n "checking for suffix of executables... " >&6; }
3204 if { { ac_try="$ac_link"
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210 $as_echo "$ac_try_echo"; } >&5
3211 (eval "$ac_link") 2>&5
3213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214 test $ac_status = 0; }; then :
3215 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3216 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3217 # work properly (i.e., refer to `conftest.exe'), while it won't with
3219 for ac_file in conftest.exe conftest conftest.*; do
3220 test -f "$ac_file" || continue
3222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3223 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231 as_fn_error "cannot compute suffix of executables: cannot compile and link
3232 See \`config.log' for more details." "$LINENO" 5; }
3234 rm -f conftest$ac_cv_exeext
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3236 $as_echo "$ac_cv_exeext" >&6; }
3238 rm -f conftest.$ac_ext
3239 EXEEXT=$ac_cv_exeext
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3242 $as_echo_n "checking for suffix of object files... " >&6; }
3243 if test "${ac_cv_objext+set}" = set; then :
3244 $as_echo_n "(cached) " >&6
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h. */
3257 rm -f conftest.o conftest.obj
3258 if { { ac_try="$ac_compile"
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_compile") 2>&5
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; then :
3269 for ac_file in conftest.o conftest.obj conftest.*; do
3270 test -f "$ac_file" || continue;
3272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3273 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3278 $as_echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283 as_fn_error "cannot compute suffix of object files: cannot compile
3284 See \`config.log' for more details." "$LINENO" 5; }
3286 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3289 $as_echo "$ac_cv_objext" >&6; }
3290 OBJEXT=$ac_cv_objext
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3293 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3294 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3295 $as_echo_n "(cached) " >&6
3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298 /* end confdefs.h. */
3311 if ac_fn_c_try_compile "$LINENO"; then :
3316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3317 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3321 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3322 if test $ac_compiler_gnu = yes; then
3327 ac_test_CFLAGS=${CFLAGS+set}
3328 ac_save_CFLAGS=$CFLAGS
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3330 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3331 if test "${ac_cv_prog_cc_g+set}" = set; then :
3332 $as_echo_n "(cached) " >&6
3334 ac_save_c_werror_flag=$ac_c_werror_flag
3335 ac_c_werror_flag=yes
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h. */
3349 if ac_fn_c_try_compile "$LINENO"; then :
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3364 if ac_fn_c_try_compile "$LINENO"; then :
3367 ac_c_werror_flag=$ac_save_c_werror_flag
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3380 if ac_fn_c_try_compile "$LINENO"; then :
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388 ac_c_werror_flag=$ac_save_c_werror_flag
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3391 $as_echo "$ac_cv_prog_cc_g" >&6; }
3392 if test "$ac_test_CFLAGS" = set; then
3393 CFLAGS=$ac_save_CFLAGS
3394 elif test $ac_cv_prog_cc_g = yes; then
3395 if test "$GCC" = yes; then
3401 if test "$GCC" = yes; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3408 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3409 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3410 $as_echo_n "(cached) " >&6
3412 ac_cv_prog_cc_c89=no
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3418 #include <sys/types.h>
3419 #include <sys/stat.h>
3420 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3421 struct buf { int x; };
3422 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3423 static char *e (p, i)
3429 static char *f (char * (*g) (char **, int), char **p, ...)
3434 s = g (p, va_arg (v,int));
3439 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3440 function prototypes and stuff, but not '\xHH' hex character constants.
3441 These don't provoke an error unfortunately, instead are silently treated
3442 as 'x'. The following induces an error, until -std is added to get
3443 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3444 array size at least. It's necessary to write '\x00'==0 to get something
3445 that's true only with -std. */
3446 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3448 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3449 inside strings and character constants. */
3451 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3453 int test (int i, double x);
3454 struct s1 {int (*f) (int a);};
3455 struct s2 {int (*f) (double a);};
3456 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3462 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3467 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3468 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3470 CC="$ac_save_CC $ac_arg"
3471 if ac_fn_c_try_compile "$LINENO"; then :
3472 ac_cv_prog_cc_c89=$ac_arg
3474 rm -f core conftest.err conftest.$ac_objext
3475 test "x$ac_cv_prog_cc_c89" != "xno" && break
3477 rm -f conftest.$ac_ext
3482 case "x$ac_cv_prog_cc_c89" in
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3485 $as_echo "none needed" >&6; } ;;
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3488 $as_echo "unsupported" >&6; } ;;
3490 CC="$CC $ac_cv_prog_cc_c89"
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3492 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3494 if test "x$ac_cv_prog_cc_c89" != xno; then :
3499 ac_cpp='$CPP $CPPFLAGS'
3500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3506 $as_echo_n "checking for library containing strerror... " >&6; }
3507 if test "${ac_cv_search_strerror+set}" = set; then :
3508 $as_echo_n "(cached) " >&6
3510 ac_func_search_save_LIBS=$LIBS
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3514 /* Override any GCC internal prototype to avoid an error.
3515 Use char because int might match the return type of a GCC
3516 builtin and then its argument prototype would still apply. */
3529 for ac_lib in '' cposix; do
3530 if test -z "$ac_lib"; then
3531 ac_res="none required"
3534 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3536 if ac_fn_c_try_link "$LINENO"; then :
3537 ac_cv_search_strerror=$ac_res
3539 rm -f core conftest.err conftest.$ac_objext \
3541 if test "${ac_cv_search_strerror+set}" = set; then :
3545 if test "${ac_cv_search_strerror+set}" = set; then :
3548 ac_cv_search_strerror=no
3551 LIBS=$ac_func_search_save_LIBS
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3554 $as_echo "$ac_cv_search_strerror" >&6; }
3555 ac_res=$ac_cv_search_strerror
3556 if test "$ac_res" != no; then :
3557 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3562 am__api_version='1.11'
3564 # Find a good install program. We prefer a C program (faster),
3565 # so one script is as good as another. But avoid the broken or
3566 # incompatible versions:
3567 # SysV /etc/install, /usr/sbin/install
3568 # SunOS /usr/etc/install
3569 # IRIX /sbin/install
3571 # AmigaOS /C/install, which installs bootblocks on floppy discs
3572 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3573 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3574 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3575 # OS/2's system install, which has a completely different semantic
3576 # ./install, which can be erroneously created by make from ./install.sh.
3577 # Reject install programs that cannot install multiple files.
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3579 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3580 if test -z "$INSTALL"; then
3581 if test "${ac_cv_path_install+set}" = set; then :
3582 $as_echo_n "(cached) " >&6
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 test -z "$as_dir" && as_dir=.
3589 # Account for people who put trailing slashes in PATH elements.
3590 case $as_dir/ in #((
3591 ./ | .// | /[cC]/* | \
3592 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3593 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3596 # OSF1 and SCO ODT 3.0 have their own names for install.
3597 # Don't use installbsd from OSF since it installs stuff as root
3599 for ac_prog in ginstall scoinst install; do
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3602 if test $ac_prog = install &&
3603 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3604 # AIX install. It has an incompatible calling convention.
3606 elif test $ac_prog = install &&
3607 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3608 # program-specific install script used by HP pwplus--don't use.
3611 rm -rf conftest.one conftest.two conftest.dir
3612 echo one > conftest.one
3613 echo two > conftest.two
3615 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3616 test -s conftest.one && test -s conftest.two &&
3617 test -s conftest.dir/conftest.one &&
3618 test -s conftest.dir/conftest.two
3620 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3633 rm -rf conftest.one conftest.two conftest.dir
3636 if test "${ac_cv_path_install+set}" = set; then
3637 INSTALL=$ac_cv_path_install
3639 # As a last resort, use the slow shell script. Don't cache a
3640 # value for INSTALL within a source directory, because that will
3641 # break other packages using the cache if that directory is
3642 # removed, or if the value is a relative name.
3643 INSTALL=$ac_install_sh
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3647 $as_echo "$INSTALL" >&6; }
3649 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3650 # It thinks the first close brace ends the variable substitution.
3651 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3653 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3655 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3658 $as_echo_n "checking whether build environment is sane... " >&6; }
3661 echo timestamp > conftest.file
3662 # Reject unsafe characters in $srcdir or the absolute working directory
3663 # name. Accept space and tab only in the latter.
3667 *[\\\"\#\$\&\'\`$am_lf]*)
3668 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3671 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3672 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3675 # Do `set' in a subshell so we don't clobber the current shell's
3676 # arguments. Must try -L first in case configure is actually a
3677 # symlink; some systems play weird games with the mod time of symlinks
3678 # (eg FreeBSD returns the mod time of the symlink's containing
3681 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3682 if test "$*" = "X"; then
3684 set X `ls -t "$srcdir/configure" conftest.file`
3687 if test "$*" != "X $srcdir/configure conftest.file" \
3688 && test "$*" != "X conftest.file $srcdir/configure"; then
3690 # If neither matched, then we have a broken ls. This can happen
3691 # if, for instance, CONFIG_SHELL is bash and it inherits a
3692 # broken ls alias from the environment. This has actually
3693 # happened. Such a system could not be considered "sane".
3694 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3695 alias in your environment" "$LINENO" 5
3698 test "$2" = conftest.file
3704 as_fn_error "newly created file is older than distributed files!
3705 Check your system clock" "$LINENO" 5
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3708 $as_echo "yes" >&6; }
3709 test "$program_prefix" != NONE &&
3710 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3711 # Use a double $ so make ignores it.
3712 test "$program_suffix" != NONE &&
3713 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3714 # Double any \ or $.
3715 # By default was `s,x,x', remove it if useless.
3716 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3717 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3719 # expand $ac_aux_dir to an absolute path
3720 am_aux_dir=`cd $ac_aux_dir && pwd`
3722 if test x"${MISSING+set}" != xset; then
3725 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3727 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3730 # Use eval to expand $SHELL
3731 if eval "$MISSING --run true"; then
3732 am_missing_run="$MISSING --run "
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3736 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3739 if test x"${install_sh}" != xset; then
3742 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3744 install_sh="\${SHELL} $am_aux_dir/install-sh"
3748 # Installed binaries are usually stripped using `strip' when the user
3749 # run `make install-strip'. However `strip' might not be the right
3750 # tool to use in cross-compilation environments, therefore Automake
3751 # will honor the `STRIP' environment variable to overrule this program.
3752 if test "$cross_compiling" != no; then
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3755 set dummy ${ac_tool_prefix}strip; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if test "${ac_cv_prog_STRIP+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3761 if test -n "$STRIP"; then
3762 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 STRIP=$ac_cv_prog_STRIP
3782 if test -n "$STRIP"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3784 $as_echo "$STRIP" >&6; }
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3792 if test -z "$ac_cv_prog_STRIP"; then
3794 # Extract the first word of "strip", so it can be a program name with args.
3795 set dummy strip; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3799 $as_echo_n "(cached) " >&6
3801 if test -n "$ac_ct_STRIP"; then
3802 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3811 ac_cv_prog_ac_ct_STRIP="strip"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3822 if test -n "$ac_ct_STRIP"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3824 $as_echo "$ac_ct_STRIP" >&6; }
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3830 if test "x$ac_ct_STRIP" = x; then
3833 case $cross_compiling:$ac_tool_warned in
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3837 ac_tool_warned=yes ;;
3842 STRIP="$ac_cv_prog_STRIP"
3846 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3849 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3850 if test -z "$MKDIR_P"; then
3851 if test "${ac_cv_path_mkdir+set}" = set; then :
3852 $as_echo_n "(cached) " >&6
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3858 test -z "$as_dir" && as_dir=.
3859 for ac_prog in mkdir gmkdir; do
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3862 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3863 'mkdir (GNU coreutils) '* | \
3864 'mkdir (coreutils) '* | \
3865 'mkdir (fileutils) '4.1*)
3866 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3876 if test "${ac_cv_path_mkdir+set}" = set; then
3877 MKDIR_P="$ac_cv_path_mkdir -p"
3879 # As a last resort, use the slow shell script. Don't cache a
3880 # value for MKDIR_P within a source directory, because that will
3881 # break other packages using the cache if that directory is
3882 # removed, or if the value is a relative name.
3883 test -d ./--version && rmdir ./--version
3884 MKDIR_P="$ac_install_sh -d"
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3888 $as_echo "$MKDIR_P" >&6; }
3892 [\\/$]* | ?:[\\/]*) ;;
3893 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3896 for ac_prog in gawk mawk nawk awk
3898 # Extract the first word of "$ac_prog", so it can be a program name with args.
3899 set dummy $ac_prog; ac_word=$2
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3901 $as_echo_n "checking for $ac_word... " >&6; }
3902 if test "${ac_cv_prog_AWK+set}" = set; then :
3903 $as_echo_n "(cached) " >&6
3905 if test -n "$AWK"; then
3906 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 test -z "$as_dir" && as_dir=.
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3915 ac_cv_prog_AWK="$ac_prog"
3916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3926 if test -n "$AWK"; then
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3928 $as_echo "$AWK" >&6; }
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 $as_echo "no" >&6; }
3935 test -n "$AWK" && break
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3939 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3941 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3942 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3943 $as_echo_n "(cached) " >&6
3945 cat >conftest.make <<\_ACEOF
3948 @echo '@@@%%%=$(MAKE)=@@@%%%'
3950 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3951 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3953 eval ac_cv_prog_make_${ac_make}_set=yes;;
3955 eval ac_cv_prog_make_${ac_make}_set=no;;
3959 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3961 $as_echo "yes" >&6; }
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3966 SET_MAKE="MAKE=${MAKE-make}"
3969 rm -rf .tst 2>/dev/null
3970 mkdir .tst 2>/dev/null
3971 if test -d .tst; then
3976 rmdir .tst 2>/dev/null
3978 DEPDIR="${am__leading_dot}deps"
3980 ac_config_commands="$ac_config_commands depfiles"
3983 am_make=${MAKE-make}
3984 cat > confinc << 'END'
3986 @echo this is the am__doit target
3989 # If we don't find an include directive, just comment out the code.
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3991 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3995 # First try GNU make style include.
3996 echo "include confinc" > confmf
3997 # Ignore all kinds of additional output from `make'.
3998 case `$am_make -s -f confmf 2> /dev/null` in #(
3999 *the\ am__doit\ target*)
4005 # Now try BSD make style include.
4006 if test "$am__include" = "#"; then
4007 echo '.include "confinc"' > confmf
4008 case `$am_make -s -f confmf 2> /dev/null` in #(
4009 *the\ am__doit\ target*)
4010 am__include=.include
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4019 $as_echo "$_am_result" >&6; }
4020 rm -f confinc confmf
4022 # Check whether --enable-dependency-tracking was given.
4023 if test "${enable_dependency_tracking+set}" = set; then :
4024 enableval=$enable_dependency_tracking;
4027 if test "x$enable_dependency_tracking" != xno; then
4028 am_depcomp="$ac_aux_dir/depcomp"
4031 if test "x$enable_dependency_tracking" != xno; then
4040 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4041 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4042 # is not polluted with repeated "-I."
4043 am__isrc=' -I$(srcdir)'
4044 # test to see if srcdir already configured
4045 if test -f $srcdir/config.status; then
4046 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4050 # test whether we have cygpath
4051 if test -z "$CYGPATH_W"; then
4052 if (cygpath --version) >/dev/null 2>/dev/null; then
4053 CYGPATH_W='cygpath -w'
4060 # Define the identity of the package.
4065 cat >>confdefs.h <<_ACEOF
4066 #define PACKAGE "$PACKAGE"
4070 cat >>confdefs.h <<_ACEOF
4071 #define VERSION "$VERSION"
4074 # Some tools Automake needs.
4076 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4079 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4082 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4085 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4088 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4090 # We need awk for the "check" target. The system "awk" is bad on
4092 # Always define AMTAR for backward compatibility.
4094 AMTAR=${AMTAR-"${am_missing_run}tar"}
4096 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4101 depcc="$CC" am_compiler_list=
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4104 $as_echo_n "checking dependency style of $depcc... " >&6; }
4105 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
4108 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4109 # We make a subdir and do the tests there. Otherwise we can end up
4110 # making bogus files that we don't know about and never remove. For
4111 # instance it was reported that on HP-UX the gcc test will end up
4112 # making a dummy file named `D' -- because `-MD' means `put the output
4115 # Copy depcomp to subdir because otherwise we won't find it if we're
4116 # using a relative directory.
4117 cp "$am_depcomp" conftest.dir
4119 # We will build objects and dependencies in a subdirectory because
4120 # it helps to detect inapplicable dependency modes. For instance
4121 # both Tru64's cc and ICC support -MD to output dependencies as a
4122 # side effect of compilation, but ICC will put the dependencies in
4123 # the current directory while Tru64 will put them in the object
4127 am_cv_CC_dependencies_compiler_type=none
4128 if test "$am_compiler_list" = ""; then
4129 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4132 case " $depcc " in #(
4133 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4136 for depmode in $am_compiler_list; do
4137 # Setup a source with many dependencies, because some compilers
4138 # like to wrap large dependency lists on column 80 (with \), and
4139 # we should not choose a depcomp mode which is confused by this.
4141 # We need to recreate these files for each test, as the compiler may
4142 # overwrite some of them when testing with obscure command lines.
4143 # This happens at least with the AIX C compiler.
4145 for i in 1 2 3 4 5 6; do
4146 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4147 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4148 # Solaris 8's {/usr,}/bin/sh.
4149 touch sub/conftst$i.h
4151 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4153 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4154 # mode. It turns out that the SunPro C++ compiler does not properly
4155 # handle `-M -o', and we need to detect this. Also, some Intel
4156 # versions had trouble with output in subdirs
4157 am__obj=sub/conftest.${OBJEXT-o}
4158 am__minus_obj="-o $am__obj"
4161 # This depmode causes a compiler race in universal mode.
4162 test "$am__universal" = false || continue
4165 # after this tag, mechanisms are not by side-effect, so they'll
4166 # only be used when explicitly requested
4167 if test "x$enable_dependency_tracking" = xyes; then
4173 msvisualcpp | msvcmsys)
4174 # This compiler won't grok `-c -o', but also, the minuso test has
4175 # not run yet. These depmodes are late enough in the game, and
4176 # so weak that their functioning should not be impacted.
4177 am__obj=conftest.${OBJEXT-o}
4182 if depmode=$depmode \
4183 source=sub/conftest.c object=$am__obj \
4184 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4185 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4186 >/dev/null 2>conftest.err &&
4187 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4188 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4189 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4190 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4191 # icc doesn't choke on unknown options, it will just issue warnings
4192 # or remarks (even with -Werror). So we grep stderr for any message
4193 # that says an option was ignored or not supported.
4194 # When given -MP, icc 7.0 and 7.1 complain thusly:
4195 # icc: Command line warning: ignoring option '-M'; no argument required
4196 # The diagnosis changed in icc 8.0:
4197 # icc: Command line remark: option '-MP' not supported
4198 if (grep 'ignoring option' conftest.err ||
4199 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4200 am_cv_CC_dependencies_compiler_type=$depmode
4209 am_cv_CC_dependencies_compiler_type=none
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4214 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4215 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4218 test "x$enable_dependency_tracking" != xno \
4219 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4221 am__fastdepCC_FALSE='#'
4223 am__fastdepCC_TRUE='#'
4224 am__fastdepCC_FALSE=
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4231 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4232 # Check whether --enable-maintainer-mode was given.
4233 if test "${enable_maintainer_mode+set}" = set; then :
4234 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4236 USE_MAINTAINER_MODE=no
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4240 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4241 if test $USE_MAINTAINER_MODE = yes; then
4242 MAINTAINER_MODE_TRUE=
4243 MAINTAINER_MODE_FALSE='#'
4245 MAINTAINER_MODE_TRUE='#'
4246 MAINTAINER_MODE_FALSE=
4249 MAINT=$MAINTAINER_MODE_TRUE
4254 ac_cpp='$CPP $CPPFLAGS'
4255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258 if test -n "$ac_tool_prefix"; then
4259 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4260 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if test "${ac_cv_prog_CC+set}" = set; then :
4264 $as_echo_n "(cached) " >&6
4266 if test -n "$CC"; then
4267 ac_cv_prog_CC="$CC" # Let the user override the test.
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 test -z "$as_dir" && as_dir=.
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4276 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 if test -n "$CC"; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4289 $as_echo "$CC" >&6; }
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4297 if test -z "$ac_cv_prog_CC"; then
4299 # Extract the first word of "gcc", so it can be a program name with args.
4300 set dummy gcc; ac_word=$2
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302 $as_echo_n "checking for $ac_word... " >&6; }
4303 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4304 $as_echo_n "(cached) " >&6
4306 if test -n "$ac_ct_CC"; then
4307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316 ac_cv_prog_ac_ct_CC="gcc"
4317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4327 if test -n "$ac_ct_CC"; then
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4329 $as_echo "$ac_ct_CC" >&6; }
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 $as_echo "no" >&6; }
4335 if test "x$ac_ct_CC" = x; then
4338 case $cross_compiling:$ac_tool_warned in
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4342 ac_tool_warned=yes ;;
4350 if test -z "$CC"; then
4351 if test -n "$ac_tool_prefix"; then
4352 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4353 set dummy ${ac_tool_prefix}cc; ac_word=$2
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355 $as_echo_n "checking for $ac_word... " >&6; }
4356 if test "${ac_cv_prog_CC+set}" = set; then :
4357 $as_echo_n "(cached) " >&6
4359 if test -n "$CC"; then
4360 ac_cv_prog_CC="$CC" # Let the user override the test.
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369 ac_cv_prog_CC="${ac_tool_prefix}cc"
4370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 if test -n "$CC"; then
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4382 $as_echo "$CC" >&6; }
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4391 if test -z "$CC"; then
4392 # Extract the first word of "cc", so it can be a program name with args.
4393 set dummy cc; ac_word=$2
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4395 $as_echo_n "checking for $ac_word... " >&6; }
4396 if test "${ac_cv_prog_CC+set}" = set; then :
4397 $as_echo_n "(cached) " >&6
4399 if test -n "$CC"; then
4400 ac_cv_prog_CC="$CC" # Let the user override the test.
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4411 ac_prog_rejected=yes
4415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 if test $ac_prog_rejected = yes; then
4423 # We found a bogon in the path, so make sure we never use it.
4424 set dummy $ac_cv_prog_CC
4426 if test $# != 0; then
4427 # We chose a different compiler from the bogus one.
4428 # However, it has the same basename, so the bogon will be chosen
4429 # first if we set CC to just the basename; use the full file name.
4431 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4437 if test -n "$CC"; then
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4439 $as_echo "$CC" >&6; }
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4442 $as_echo "no" >&6; }
4447 if test -z "$CC"; then
4448 if test -n "$ac_tool_prefix"; then
4449 for ac_prog in cl.exe
4451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4452 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454 $as_echo_n "checking for $ac_word... " >&6; }
4455 if test "${ac_cv_prog_CC+set}" = set; then :
4456 $as_echo_n "(cached) " >&6
4458 if test -n "$CC"; then
4459 ac_cv_prog_CC="$CC" # Let the user override the test.
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 if test -n "$CC"; then
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4481 $as_echo "$CC" >&6; }
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 $as_echo "no" >&6; }
4488 test -n "$CC" && break
4491 if test -z "$CC"; then
4493 for ac_prog in cl.exe
4495 # Extract the first word of "$ac_prog", so it can be a program name with args.
4496 set dummy $ac_prog; ac_word=$2
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4500 $as_echo_n "(cached) " >&6
4502 if test -n "$ac_ct_CC"; then
4503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512 ac_cv_prog_ac_ct_CC="$ac_prog"
4513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4523 if test -n "$ac_ct_CC"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4525 $as_echo "$ac_ct_CC" >&6; }
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4532 test -n "$ac_ct_CC" && break
4535 if test "x$ac_ct_CC" = x; then
4538 case $cross_compiling:$ac_tool_warned in
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4542 ac_tool_warned=yes ;;
4551 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4553 as_fn_error "no acceptable C compiler found in \$PATH
4554 See \`config.log' for more details." "$LINENO" 5; }
4556 # Provide some information about the compiler.
4557 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4560 for ac_option in --version -v -V -qversion; do
4561 { { ac_try="$ac_compiler $ac_option >&5"
4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4567 $as_echo "$ac_try_echo"; } >&5
4568 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4570 if test -s conftest.err; then
4572 ... rest of stderr output deleted ...
4573 10q' conftest.err >conftest.er1
4574 cat conftest.er1 >&5
4575 rm -f conftest.er1 conftest.err
4577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4578 test $ac_status = 0; }
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4582 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4583 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4584 $as_echo_n "(cached) " >&6
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h. */
4600 if ac_fn_c_try_compile "$LINENO"; then :
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4610 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4611 if test $ac_compiler_gnu = yes; then
4616 ac_test_CFLAGS=${CFLAGS+set}
4617 ac_save_CFLAGS=$CFLAGS
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4619 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4620 if test "${ac_cv_prog_cc_g+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4623 ac_save_c_werror_flag=$ac_c_werror_flag
4624 ac_c_werror_flag=yes
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4638 if ac_fn_c_try_compile "$LINENO"; then :
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4653 if ac_fn_c_try_compile "$LINENO"; then :
4656 ac_c_werror_flag=$ac_save_c_werror_flag
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4669 if ac_fn_c_try_compile "$LINENO"; then :
4672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677 ac_c_werror_flag=$ac_save_c_werror_flag
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4680 $as_echo "$ac_cv_prog_cc_g" >&6; }
4681 if test "$ac_test_CFLAGS" = set; then
4682 CFLAGS=$ac_save_CFLAGS
4683 elif test $ac_cv_prog_cc_g = yes; then
4684 if test "$GCC" = yes; then
4690 if test "$GCC" = yes; then
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4697 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4698 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4699 $as_echo_n "(cached) " >&6
4701 ac_cv_prog_cc_c89=no
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4707 #include <sys/types.h>
4708 #include <sys/stat.h>
4709 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4710 struct buf { int x; };
4711 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4712 static char *e (p, i)
4718 static char *f (char * (*g) (char **, int), char **p, ...)
4723 s = g (p, va_arg (v,int));
4728 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4729 function prototypes and stuff, but not '\xHH' hex character constants.
4730 These don't provoke an error unfortunately, instead are silently treated
4731 as 'x'. The following induces an error, until -std is added to get
4732 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4733 array size at least. It's necessary to write '\x00'==0 to get something
4734 that's true only with -std. */
4735 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4737 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4738 inside strings and character constants. */
4740 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4742 int test (int i, double x);
4743 struct s1 {int (*f) (int a);};
4744 struct s2 {int (*f) (double a);};
4745 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4751 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4756 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4757 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4759 CC="$ac_save_CC $ac_arg"
4760 if ac_fn_c_try_compile "$LINENO"; then :
4761 ac_cv_prog_cc_c89=$ac_arg
4763 rm -f core conftest.err conftest.$ac_objext
4764 test "x$ac_cv_prog_cc_c89" != "xno" && break
4766 rm -f conftest.$ac_ext
4771 case "x$ac_cv_prog_cc_c89" in
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4774 $as_echo "none needed" >&6; } ;;
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4777 $as_echo "unsupported" >&6; } ;;
4779 CC="$CC $ac_cv_prog_cc_c89"
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4781 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4783 if test "x$ac_cv_prog_cc_c89" != xno; then :
4788 ac_cpp='$CPP $CPPFLAGS'
4789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4794 ac_cpp='$CXXCPP $CPPFLAGS'
4795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4798 if test -z "$CXX"; then
4799 if test -n "$CCC"; then
4802 if test -n "$ac_tool_prefix"; then
4803 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4806 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808 $as_echo_n "checking for $ac_word... " >&6; }
4809 if test "${ac_cv_prog_CXX+set}" = set; then :
4810 $as_echo_n "(cached) " >&6
4812 if test -n "$CXX"; then
4813 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4822 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 if test -n "$CXX"; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4835 $as_echo "$CXX" >&6; }
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 $as_echo "no" >&6; }
4842 test -n "$CXX" && break
4845 if test -z "$CXX"; then
4847 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4849 # Extract the first word of "$ac_prog", so it can be a program name with args.
4850 set dummy $ac_prog; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4856 if test -n "$ac_ct_CXX"; then
4857 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_prog_ac_ct_CXX="$ac_prog"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4877 if test -n "$ac_ct_CXX"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4879 $as_echo "$ac_ct_CXX" >&6; }
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4886 test -n "$ac_ct_CXX" && break
4889 if test "x$ac_ct_CXX" = x; then
4892 case $cross_compiling:$ac_tool_warned in
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4896 ac_tool_warned=yes ;;
4904 # Provide some information about the compiler.
4905 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4908 for ac_option in --version -v -V -qversion; do
4909 { { ac_try="$ac_compiler $ac_option >&5"
4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912 *) ac_try_echo=$ac_try;;
4914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4915 $as_echo "$ac_try_echo"; } >&5
4916 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4918 if test -s conftest.err; then
4920 ... rest of stderr output deleted ...
4921 10q' conftest.err >conftest.er1
4922 cat conftest.er1 >&5
4923 rm -f conftest.er1 conftest.err
4925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4926 test $ac_status = 0; }
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4930 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4931 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4932 $as_echo_n "(cached) " >&6
4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h. */
4948 if ac_fn_cxx_try_compile "$LINENO"; then :
4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4958 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4959 if test $ac_compiler_gnu = yes; then
4964 ac_test_CXXFLAGS=${CXXFLAGS+set}
4965 ac_save_CXXFLAGS=$CXXFLAGS
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4967 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4968 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4969 $as_echo_n "(cached) " >&6
4971 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4972 ac_cxx_werror_flag=yes
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4986 if ac_fn_cxx_try_compile "$LINENO"; then :
4987 ac_cv_prog_cxx_g=yes
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
5001 if ac_fn_cxx_try_compile "$LINENO"; then :
5004 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5017 if ac_fn_cxx_try_compile "$LINENO"; then :
5018 ac_cv_prog_cxx_g=yes
5020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5028 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5029 if test "$ac_test_CXXFLAGS" = set; then
5030 CXXFLAGS=$ac_save_CXXFLAGS
5031 elif test $ac_cv_prog_cxx_g = yes; then
5032 if test "$GXX" = yes; then
5038 if test "$GXX" = yes; then
5045 ac_cpp='$CPP $CPPFLAGS'
5046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5050 depcc="$CXX" am_compiler_list=
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5053 $as_echo_n "checking dependency style of $depcc... " >&6; }
5054 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5055 $as_echo_n "(cached) " >&6
5057 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5058 # We make a subdir and do the tests there. Otherwise we can end up
5059 # making bogus files that we don't know about and never remove. For
5060 # instance it was reported that on HP-UX the gcc test will end up
5061 # making a dummy file named `D' -- because `-MD' means `put the output
5064 # Copy depcomp to subdir because otherwise we won't find it if we're
5065 # using a relative directory.
5066 cp "$am_depcomp" conftest.dir
5068 # We will build objects and dependencies in a subdirectory because
5069 # it helps to detect inapplicable dependency modes. For instance
5070 # both Tru64's cc and ICC support -MD to output dependencies as a
5071 # side effect of compilation, but ICC will put the dependencies in
5072 # the current directory while Tru64 will put them in the object
5076 am_cv_CXX_dependencies_compiler_type=none
5077 if test "$am_compiler_list" = ""; then
5078 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5081 case " $depcc " in #(
5082 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5085 for depmode in $am_compiler_list; do
5086 # Setup a source with many dependencies, because some compilers
5087 # like to wrap large dependency lists on column 80 (with \), and
5088 # we should not choose a depcomp mode which is confused by this.
5090 # We need to recreate these files for each test, as the compiler may
5091 # overwrite some of them when testing with obscure command lines.
5092 # This happens at least with the AIX C compiler.
5094 for i in 1 2 3 4 5 6; do
5095 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5096 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5097 # Solaris 8's {/usr,}/bin/sh.
5098 touch sub/conftst$i.h
5100 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5102 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5103 # mode. It turns out that the SunPro C++ compiler does not properly
5104 # handle `-M -o', and we need to detect this. Also, some Intel
5105 # versions had trouble with output in subdirs
5106 am__obj=sub/conftest.${OBJEXT-o}
5107 am__minus_obj="-o $am__obj"
5110 # This depmode causes a compiler race in universal mode.
5111 test "$am__universal" = false || continue
5114 # after this tag, mechanisms are not by side-effect, so they'll
5115 # only be used when explicitly requested
5116 if test "x$enable_dependency_tracking" = xyes; then
5122 msvisualcpp | msvcmsys)
5123 # This compiler won't grok `-c -o', but also, the minuso test has
5124 # not run yet. These depmodes are late enough in the game, and
5125 # so weak that their functioning should not be impacted.
5126 am__obj=conftest.${OBJEXT-o}
5131 if depmode=$depmode \
5132 source=sub/conftest.c object=$am__obj \
5133 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5134 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5135 >/dev/null 2>conftest.err &&
5136 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5137 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5138 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5139 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5140 # icc doesn't choke on unknown options, it will just issue warnings
5141 # or remarks (even with -Werror). So we grep stderr for any message
5142 # that says an option was ignored or not supported.
5143 # When given -MP, icc 7.0 and 7.1 complain thusly:
5144 # icc: Command line warning: ignoring option '-M'; no argument required
5145 # The diagnosis changed in icc 8.0:
5146 # icc: Command line remark: option '-MP' not supported
5147 if (grep 'ignoring option' conftest.err ||
5148 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5149 am_cv_CXX_dependencies_compiler_type=$depmode
5158 am_cv_CXX_dependencies_compiler_type=none
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5163 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5164 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5167 test "x$enable_dependency_tracking" != xno \
5168 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5169 am__fastdepCXX_TRUE=
5170 am__fastdepCXX_FALSE='#'
5172 am__fastdepCXX_TRUE='#'
5173 am__fastdepCXX_FALSE=
5178 ac_cpp='$CPP $CPPFLAGS'
5179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5183 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5184 # On Suns, sometimes $CPP names a directory.
5185 if test -n "$CPP" && test -d "$CPP"; then
5188 if test -z "$CPP"; then
5189 if test "${ac_cv_prog_CPP+set}" = set; then :
5190 $as_echo_n "(cached) " >&6
5192 # Double quotes because CPP needs to be expanded
5193 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5196 for ac_c_preproc_warn_flag in '' yes
5198 # Use a header file that comes with gcc, so configuring glibc
5199 # with a fresh cross-compiler works.
5200 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5201 # <limits.h> exists even on freestanding compilers.
5202 # On the NeXT, cc -E runs the code through the compiler's parser,
5203 # not just through cpp. "Syntax error" is here to catch this case.
5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h. */
5207 # include <limits.h>
5209 # include <assert.h>
5213 if ac_fn_c_try_cpp "$LINENO"; then :
5216 # Broken: fails on valid input.
5219 rm -f conftest.err conftest.$ac_ext
5221 # OK, works on sane cases. Now check whether nonexistent headers
5222 # can be detected and how.
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h. */
5225 #include <ac_nonexistent.h>
5227 if ac_fn_c_try_cpp "$LINENO"; then :
5228 # Broken: success on invalid input.
5231 # Passes both tests.
5235 rm -f conftest.err conftest.$ac_ext
5238 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5239 rm -f conftest.err conftest.$ac_ext
5240 if $ac_preproc_ok; then :
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5253 $as_echo "$CPP" >&6; }
5255 for ac_c_preproc_warn_flag in '' yes
5257 # Use a header file that comes with gcc, so configuring glibc
5258 # with a fresh cross-compiler works.
5259 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5260 # <limits.h> exists even on freestanding compilers.
5261 # On the NeXT, cc -E runs the code through the compiler's parser,
5262 # not just through cpp. "Syntax error" is here to catch this case.
5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5266 # include <limits.h>
5268 # include <assert.h>
5272 if ac_fn_c_try_cpp "$LINENO"; then :
5275 # Broken: fails on valid input.
5278 rm -f conftest.err conftest.$ac_ext
5280 # OK, works on sane cases. Now check whether nonexistent headers
5281 # can be detected and how.
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5284 #include <ac_nonexistent.h>
5286 if ac_fn_c_try_cpp "$LINENO"; then :
5287 # Broken: success on invalid input.
5290 # Passes both tests.
5294 rm -f conftest.err conftest.$ac_ext
5297 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5298 rm -f conftest.err conftest.$ac_ext
5299 if $ac_preproc_ok; then :
5302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5304 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5305 See \`config.log' for more details." "$LINENO" 5; }
5309 ac_cpp='$CPP $CPPFLAGS'
5310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5316 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5317 if test "${ac_cv_path_GREP+set}" = set; then :
5318 $as_echo_n "(cached) " >&6
5320 if test -z "$GREP"; then
5321 ac_path_GREP_found=false
5322 # Loop through the user's path and test for each of PROGNAME-LIST
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5327 test -z "$as_dir" && as_dir=.
5328 for ac_prog in grep ggrep; do
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5331 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5332 # Check for GNU ac_path_GREP and select it if it is found.
5333 # Check for GNU $ac_path_GREP
5334 case `"$ac_path_GREP" --version 2>&1` in
5336 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5339 $as_echo_n 0123456789 >"conftest.in"
5342 cat "conftest.in" "conftest.in" >"conftest.tmp"
5343 mv "conftest.tmp" "conftest.in"
5344 cp "conftest.in" "conftest.nl"
5345 $as_echo 'GREP' >> "conftest.nl"
5346 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5348 as_fn_arith $ac_count + 1 && ac_count=$as_val
5349 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5350 # Best one so far, save it but keep looking for a better one
5351 ac_cv_path_GREP="$ac_path_GREP"
5352 ac_path_GREP_max=$ac_count
5354 # 10*(2^10) chars as input seems more than enough
5355 test $ac_count -gt 10 && break
5357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5360 $ac_path_GREP_found && break 3
5365 if test -z "$ac_cv_path_GREP"; then
5366 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5369 ac_cv_path_GREP=$GREP
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5374 $as_echo "$ac_cv_path_GREP" >&6; }
5375 GREP="$ac_cv_path_GREP"
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5379 $as_echo_n "checking for egrep... " >&6; }
5380 if test "${ac_cv_path_EGREP+set}" = set; then :
5381 $as_echo_n "(cached) " >&6
5383 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5384 then ac_cv_path_EGREP="$GREP -E"
5386 if test -z "$EGREP"; then
5387 ac_path_EGREP_found=false
5388 # Loop through the user's path and test for each of PROGNAME-LIST
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5393 test -z "$as_dir" && as_dir=.
5394 for ac_prog in egrep; do
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5397 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5398 # Check for GNU ac_path_EGREP and select it if it is found.
5399 # Check for GNU $ac_path_EGREP
5400 case `"$ac_path_EGREP" --version 2>&1` in
5402 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5405 $as_echo_n 0123456789 >"conftest.in"
5408 cat "conftest.in" "conftest.in" >"conftest.tmp"
5409 mv "conftest.tmp" "conftest.in"
5410 cp "conftest.in" "conftest.nl"
5411 $as_echo 'EGREP' >> "conftest.nl"
5412 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5413 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5414 as_fn_arith $ac_count + 1 && ac_count=$as_val
5415 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5416 # Best one so far, save it but keep looking for a better one
5417 ac_cv_path_EGREP="$ac_path_EGREP"
5418 ac_path_EGREP_max=$ac_count
5420 # 10*(2^10) chars as input seems more than enough
5421 test $ac_count -gt 10 && break
5423 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5426 $ac_path_EGREP_found && break 3
5431 if test -z "$ac_cv_path_EGREP"; then
5432 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5435 ac_cv_path_EGREP=$EGREP
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5441 $as_echo "$ac_cv_path_EGREP" >&6; }
5442 EGREP="$ac_cv_path_EGREP"
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5446 $as_echo_n "checking for ANSI C header files... " >&6; }
5447 if test "${ac_cv_header_stdc+set}" = set; then :
5448 $as_echo_n "(cached) " >&6
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5465 if ac_fn_c_try_compile "$LINENO"; then :
5466 ac_cv_header_stdc=yes
5468 ac_cv_header_stdc=no
5470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472 if test $ac_cv_header_stdc = yes; then
5473 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h. */
5479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5480 $EGREP "memchr" >/dev/null 2>&1; then :
5483 ac_cv_header_stdc=no
5489 if test $ac_cv_header_stdc = yes; then
5490 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5497 $EGREP "free" >/dev/null 2>&1; then :
5500 ac_cv_header_stdc=no
5506 if test $ac_cv_header_stdc = yes; then
5507 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5508 if test "$cross_compiling" = yes; then :
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5515 #if ((' ' & 0x0FF) == 0x020)
5516 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5517 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5519 # define ISLOWER(c) \
5520 (('a' <= (c) && (c) <= 'i') \
5521 || ('j' <= (c) && (c) <= 'r') \
5522 || ('s' <= (c) && (c) <= 'z'))
5523 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5526 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5531 for (i = 0; i < 256; i++)
5532 if (XOR (islower (i), ISLOWER (i))
5533 || toupper (i) != TOUPPER (i))
5538 if ac_fn_c_try_run "$LINENO"; then :
5541 ac_cv_header_stdc=no
5543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5544 conftest.$ac_objext conftest.beam conftest.$ac_ext
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5550 $as_echo "$ac_cv_header_stdc" >&6; }
5551 if test $ac_cv_header_stdc = yes; then
5553 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5557 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5558 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5559 inttypes.h stdint.h unistd.h
5561 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5562 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5564 eval as_val=\$$as_ac_Header
5565 if test "x$as_val" = x""yes; then :
5566 cat >>confdefs.h <<_ACEOF
5567 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5576 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5577 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5584 if test "$MINIX" = yes; then
5586 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5589 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5592 $as_echo "#define _MINIX 1" >>confdefs.h
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5598 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5599 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5600 $as_echo_n "(cached) " >&6
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5605 # define __EXTENSIONS__ 1
5606 $ac_includes_default
5615 if ac_fn_c_try_compile "$LINENO"; then :
5616 ac_cv_safe_to_define___extensions__=yes
5618 ac_cv_safe_to_define___extensions__=no
5620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5623 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5624 test $ac_cv_safe_to_define___extensions__ = yes &&
5625 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5627 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5629 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5631 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5633 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5643 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5648 macro_version='2.2.7a'
5649 macro_revision='1.3134'
5663 ltmain="$ac_aux_dir/ltmain.sh"
5665 # Backslashify metacharacters that are still active within
5666 # double-quoted strings.
5667 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5669 # Same as above, but do not quote variable references.
5670 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5672 # Sed substitution to delay expansion of an escaped shell variable in a
5673 # double_quote_subst'ed string.
5674 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5676 # Sed substitution to delay expansion of an escaped single quote.
5677 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5679 # Sed substitution to avoid accidental globbing in evaled expressions
5680 no_glob_subst='s/\*/\\\*/g'
5682 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5683 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5684 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5687 $as_echo_n "checking how to print strings... " >&6; }
5688 # Test print first, because it will be a builtin if present.
5689 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5690 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5692 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5695 # Use this function as a fallback that always works.
5696 func_fallback_echo ()
5698 eval 'cat <<_LTECHO_EOF
5702 ECHO='func_fallback_echo'
5705 # func_echo_all arg...
5706 # Invoke $ECHO with all args, space-separated.
5713 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5714 $as_echo "printf" >&6; } ;;
5715 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5716 $as_echo "print -r" >&6; } ;;
5717 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5718 $as_echo "cat" >&6; } ;;
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5735 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5736 if test "${ac_cv_path_SED+set}" = set; then :
5737 $as_echo_n "(cached) " >&6
5739 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5740 for ac_i in 1 2 3 4 5 6 7; do
5741 ac_script="$ac_script$as_nl$ac_script"
5743 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5744 { ac_script=; unset ac_script;}
5745 if test -z "$SED"; then
5746 ac_path_SED_found=false
5747 # Loop through the user's path and test for each of PROGNAME-LIST
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 test -z "$as_dir" && as_dir=.
5753 for ac_prog in sed gsed; do
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5756 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5757 # Check for GNU ac_path_SED and select it if it is found.
5758 # Check for GNU $ac_path_SED
5759 case `"$ac_path_SED" --version 2>&1` in
5761 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5764 $as_echo_n 0123456789 >"conftest.in"
5767 cat "conftest.in" "conftest.in" >"conftest.tmp"
5768 mv "conftest.tmp" "conftest.in"
5769 cp "conftest.in" "conftest.nl"
5770 $as_echo '' >> "conftest.nl"
5771 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5772 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5773 as_fn_arith $ac_count + 1 && ac_count=$as_val
5774 if test $ac_count -gt ${ac_path_SED_max-0}; then
5775 # Best one so far, save it but keep looking for a better one
5776 ac_cv_path_SED="$ac_path_SED"
5777 ac_path_SED_max=$ac_count
5779 # 10*(2^10) chars as input seems more than enough
5780 test $ac_count -gt 10 && break
5782 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5785 $ac_path_SED_found && break 3
5790 if test -z "$ac_cv_path_SED"; then
5791 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5799 $as_echo "$ac_cv_path_SED" >&6; }
5800 SED="$ac_cv_path_SED"
5803 test -z "$SED" && SED=sed
5804 Xsed="$SED -e 1s/^X//"
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5817 $as_echo_n "checking for fgrep... " >&6; }
5818 if test "${ac_cv_path_FGREP+set}" = set; then :
5819 $as_echo_n "(cached) " >&6
5821 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5822 then ac_cv_path_FGREP="$GREP -F"
5824 if test -z "$FGREP"; then
5825 ac_path_FGREP_found=false
5826 # Loop through the user's path and test for each of PROGNAME-LIST
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5831 test -z "$as_dir" && as_dir=.
5832 for ac_prog in fgrep; do
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5835 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5836 # Check for GNU ac_path_FGREP and select it if it is found.
5837 # Check for GNU $ac_path_FGREP
5838 case `"$ac_path_FGREP" --version 2>&1` in
5840 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5843 $as_echo_n 0123456789 >"conftest.in"
5846 cat "conftest.in" "conftest.in" >"conftest.tmp"
5847 mv "conftest.tmp" "conftest.in"
5848 cp "conftest.in" "conftest.nl"
5849 $as_echo 'FGREP' >> "conftest.nl"
5850 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5851 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5852 as_fn_arith $ac_count + 1 && ac_count=$as_val
5853 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5854 # Best one so far, save it but keep looking for a better one
5855 ac_cv_path_FGREP="$ac_path_FGREP"
5856 ac_path_FGREP_max=$ac_count
5858 # 10*(2^10) chars as input seems more than enough
5859 test $ac_count -gt 10 && break
5861 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5864 $ac_path_FGREP_found && break 3
5869 if test -z "$ac_cv_path_FGREP"; then
5870 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5873 ac_cv_path_FGREP=$FGREP
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5879 $as_echo "$ac_cv_path_FGREP" >&6; }
5880 FGREP="$ac_cv_path_FGREP"
5883 test -z "$GREP" && GREP=grep
5903 # Check whether --with-gnu-ld was given.
5904 if test "${with_gnu_ld+set}" = set; then :
5905 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5911 if test "$GCC" = yes; then
5912 # Check if gcc -print-prog-name=ld gives a path.
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5914 $as_echo_n "checking for ld used by $CC... " >&6; }
5917 # gcc leaves a trailing carriage return which upsets mingw
5918 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5920 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5923 # Accept absolute paths.
5925 re_direlt='/[^/][^/]*/\.\./'
5926 # Canonicalize the pathname of ld
5927 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5928 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5929 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5931 test -z "$LD" && LD="$ac_prog"
5934 # If it fails, then pretend we aren't using GCC.
5938 # If it is relative, then search for the first ld in PATH.
5942 elif test "$with_gnu_ld" = yes; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5944 $as_echo_n "checking for GNU ld... " >&6; }
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5947 $as_echo_n "checking for non-GNU ld... " >&6; }
5949 if test "${lt_cv_path_LD+set}" = set; then :
5950 $as_echo_n "(cached) " >&6
5952 if test -z "$LD"; then
5953 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5954 for ac_dir in $PATH; do
5956 test -z "$ac_dir" && ac_dir=.
5957 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5958 lt_cv_path_LD="$ac_dir/$ac_prog"
5959 # Check to see if the program is GNU ld. I'd rather use --version,
5960 # but apparently some variants of GNU ld only accept -v.
5961 # Break only if it was the GNU/non-GNU ld that we prefer.
5962 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5963 *GNU* | *'with BFD'*)
5964 test "$with_gnu_ld" != no && break
5967 test "$with_gnu_ld" != yes && break
5974 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5979 if test -n "$LD"; then
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5981 $as_echo "$LD" >&6; }
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984 $as_echo "no" >&6; }
5986 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5988 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5989 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5990 $as_echo_n "(cached) " >&6
5992 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5993 case `$LD -v 2>&1 </dev/null` in
5994 *GNU* | *'with BFD'*)
5995 lt_cv_prog_gnu_ld=yes
5998 lt_cv_prog_gnu_ld=no
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6003 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6004 with_gnu_ld=$lt_cv_prog_gnu_ld
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6015 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6016 if test "${lt_cv_path_NM+set}" = set; then :
6017 $as_echo_n "(cached) " >&6
6019 if test -n "$NM"; then
6020 # Let the user override the test.
6023 lt_nm_to_check="${ac_tool_prefix}nm"
6024 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6025 lt_nm_to_check="$lt_nm_to_check nm"
6027 for lt_tmp_nm in $lt_nm_to_check; do
6028 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6029 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6031 test -z "$ac_dir" && ac_dir=.
6032 tmp_nm="$ac_dir/$lt_tmp_nm"
6033 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6034 # Check to see if the nm accepts a BSD-compat flag.
6035 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6036 # nm: unknown option "B" ignored
6037 # Tru64's nm complains that /dev/null is an invalid object file
6038 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6039 */dev/null* | *'Invalid file or object type'*)
6040 lt_cv_path_NM="$tmp_nm -B"
6044 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6046 lt_cv_path_NM="$tmp_nm -p"
6050 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6051 continue # so that we can try to find one that supports BSD flags
6060 : ${lt_cv_path_NM=no}
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6064 $as_echo "$lt_cv_path_NM" >&6; }
6065 if test "$lt_cv_path_NM" != "no"; then
6068 # Didn't find any BSD compatible name lister, look for dumpbin.
6069 if test -n "$DUMPBIN"; then :
6070 # Let the user override the test.
6072 if test -n "$ac_tool_prefix"; then
6073 for ac_prog in dumpbin "link -dump"
6075 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6076 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6080 $as_echo_n "(cached) " >&6
6082 if test -n "$DUMPBIN"; then
6083 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6092 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 DUMPBIN=$ac_cv_prog_DUMPBIN
6103 if test -n "$DUMPBIN"; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6105 $as_echo "$DUMPBIN" >&6; }
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6112 test -n "$DUMPBIN" && break
6115 if test -z "$DUMPBIN"; then
6116 ac_ct_DUMPBIN=$DUMPBIN
6117 for ac_prog in dumpbin "link -dump"
6119 # Extract the first word of "$ac_prog", so it can be a program name with args.
6120 set dummy $ac_prog; ac_word=$2
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122 $as_echo_n "checking for $ac_word... " >&6; }
6123 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6124 $as_echo_n "(cached) " >&6
6126 if test -n "$ac_ct_DUMPBIN"; then
6127 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133 test -z "$as_dir" && as_dir=.
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6136 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6147 if test -n "$ac_ct_DUMPBIN"; then
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6149 $as_echo "$ac_ct_DUMPBIN" >&6; }
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152 $as_echo "no" >&6; }
6156 test -n "$ac_ct_DUMPBIN" && break
6159 if test "x$ac_ct_DUMPBIN" = x; then
6162 case $cross_compiling:$ac_tool_warned in
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6166 ac_tool_warned=yes ;;
6168 DUMPBIN=$ac_ct_DUMPBIN
6172 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6174 DUMPBIN="$DUMPBIN -symbols"
6182 if test "$DUMPBIN" != ":"; then
6186 test -z "$NM" && NM=nm
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6194 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6195 if test "${lt_cv_nm_interface+set}" = set; then :
6196 $as_echo_n "(cached) " >&6
6198 lt_cv_nm_interface="BSD nm"
6199 echo "int some_variable = 0;" > conftest.$ac_ext
6200 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6201 (eval "$ac_compile" 2>conftest.err)
6202 cat conftest.err >&5
6203 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6204 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6205 cat conftest.err >&5
6206 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6207 cat conftest.out >&5
6208 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6209 lt_cv_nm_interface="MS dumpbin"
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6214 $as_echo "$lt_cv_nm_interface" >&6; }
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6217 $as_echo_n "checking whether ln -s works... " >&6; }
6219 if test "$LN_S" = "ln -s"; then
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6221 $as_echo "yes" >&6; }
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6224 $as_echo "no, using $LN_S" >&6; }
6227 # find the maximum length of command line arguments
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6229 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6230 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6231 $as_echo_n "(cached) " >&6
6238 # On DJGPP, this test can blow up pretty badly due to problems in libc
6239 # (any single argument exceeding 2000 bytes causes a buffer overrun
6240 # during glob expansion). Even if it were fixed, the result of this
6241 # check would be larger than it should be.
6242 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6246 # Under GNU Hurd, this test is not required because there is
6247 # no limit to the length of command line arguments.
6248 # Libtool will interpret -1 as no limit whatsoever
6249 lt_cv_sys_max_cmd_len=-1;
6252 cygwin* | mingw* | cegcc*)
6253 # On Win9x/ME, this test blows up -- it succeeds, but takes
6254 # about 5 minutes as the teststring grows exponentially.
6255 # Worse, since 9x/ME are not pre-emptively multitasking,
6256 # you end up with a "frozen" computer, even though with patience
6257 # the test eventually succeeds (with a max line length of 256k).
6258 # Instead, let's just punt: use the minimum linelength reported by
6259 # all of the supported platforms: 8192 (on NT/2K/XP).
6260 lt_cv_sys_max_cmd_len=8192;
6264 # On MiNT this can take a long time and run out of memory.
6265 lt_cv_sys_max_cmd_len=8192;
6269 # On AmigaOS with pdksh, this test takes hours, literally.
6270 # So we just punt and use a minimum line length of 8192.
6271 lt_cv_sys_max_cmd_len=8192;
6274 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6275 # This has been around since 386BSD, at least. Likely further.
6276 if test -x /sbin/sysctl; then
6277 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6278 elif test -x /usr/sbin/sysctl; then
6279 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6281 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6283 # And add a safety zone
6284 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6285 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6289 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6290 lt_cv_sys_max_cmd_len=196608
6294 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6295 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6296 # nice to cause kernel panics so lets avoid the loop below.
6297 # First set a reasonable default.
6298 lt_cv_sys_max_cmd_len=16384
6300 if test -x /sbin/sysconfig; then
6301 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6302 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6307 lt_cv_sys_max_cmd_len=102400
6309 sysv5* | sco5v6* | sysv4.2uw2*)
6310 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6311 if test -n "$kargmax"; then
6312 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6314 lt_cv_sys_max_cmd_len=32768
6318 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6319 if test -n "$lt_cv_sys_max_cmd_len"; then
6320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6321 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6323 # Make teststring a little bigger before we do anything with it.
6324 # a 1K string should be a reasonable start.
6325 for i in 1 2 3 4 5 6 7 8 ; do
6326 teststring=$teststring$teststring
6328 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6329 # If test is not a shell built-in, we'll probably end up computing a
6330 # maximum length that is only half of the actual maximum length, but
6332 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6333 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6334 test $i != 17 # 1/2 MB should be enough
6337 teststring=$teststring$teststring
6339 # Only check the string length outside the loop.
6340 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6342 # Add a significant safety factor because C++ compilers can tack on
6343 # massive amounts of additional arguments before passing them to the
6344 # linker. It appears as though 1/2 is a usable value.
6345 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6352 if test -n $lt_cv_sys_max_cmd_len ; then
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6354 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6357 $as_echo "none" >&6; }
6359 max_cmd_len=$lt_cv_sys_max_cmd_len
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6371 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6372 # Try some XSI features
6375 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6377 && eval 'test $(( 1 + 1 )) -eq 2 \
6378 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6381 $as_echo "$xsi_shell" >&6; }
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6385 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6387 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6389 && lt_shell_append=yes
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6391 $as_echo "$lt_shell_append" >&6; }
6394 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6404 # test EBCDIC or ASCII
6405 case `echo X|tr X '\101'` in
6406 A) # ASCII based system
6407 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6408 lt_SP2NL='tr \040 \012'
6409 lt_NL2SP='tr \015\012 \040\040'
6411 *) # EBCDIC based system
6412 lt_SP2NL='tr \100 \n'
6413 lt_NL2SP='tr \r\n \100\100'
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6426 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6427 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
6430 lt_cv_ld_reload_flag='-r'
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6433 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6434 reload_flag=$lt_cv_ld_reload_flag
6435 case $reload_flag in
6437 *) reload_flag=" $reload_flag" ;;
6439 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6442 if test "$GCC" = yes; then
6443 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6445 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6458 if test -n "$ac_tool_prefix"; then
6459 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6460 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6464 $as_echo_n "(cached) " >&6
6466 if test -n "$OBJDUMP"; then
6467 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6476 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 OBJDUMP=$ac_cv_prog_OBJDUMP
6487 if test -n "$OBJDUMP"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6489 $as_echo "$OBJDUMP" >&6; }
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6497 if test -z "$ac_cv_prog_OBJDUMP"; then
6498 ac_ct_OBJDUMP=$OBJDUMP
6499 # Extract the first word of "objdump", so it can be a program name with args.
6500 set dummy objdump; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
6506 if test -n "$ac_ct_OBJDUMP"; then
6507 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6527 if test -n "$ac_ct_OBJDUMP"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6529 $as_echo "$ac_ct_OBJDUMP" >&6; }
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6535 if test "x$ac_ct_OBJDUMP" = x; then
6538 case $cross_compiling:$ac_tool_warned in
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6542 ac_tool_warned=yes ;;
6544 OBJDUMP=$ac_ct_OBJDUMP
6547 OBJDUMP="$ac_cv_prog_OBJDUMP"
6550 test -z "$OBJDUMP" && OBJDUMP=objdump
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6561 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6562 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6563 $as_echo_n "(cached) " >&6
6565 lt_cv_file_magic_cmd='$MAGIC_CMD'
6566 lt_cv_file_magic_test_file=
6567 lt_cv_deplibs_check_method='unknown'
6568 # Need to set the preceding variable on all platforms that support
6569 # interlibrary dependencies.
6570 # 'none' -- dependencies not supported.
6571 # `unknown' -- same as none, but documents that we really don't know.
6572 # 'pass_all' -- all dependencies passed with no checks.
6573 # 'test_compile' -- check by making test program.
6574 # 'file_magic [[regex]]' -- check by looking for files in library path
6575 # which responds to the $file_magic_cmd with a given extended regex.
6576 # If you have `file' or equivalent on your system and you're not sure
6577 # whether `pass_all' will *always* work, you probably want this one.
6581 lt_cv_deplibs_check_method=pass_all
6585 lt_cv_deplibs_check_method=pass_all
6589 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6590 lt_cv_file_magic_cmd='/usr/bin/file -L'
6591 lt_cv_file_magic_test_file=/shlib/libc.so
6595 # func_win32_libid is a shell function defined in ltmain.sh
6596 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6597 lt_cv_file_magic_cmd='func_win32_libid'
6601 # Base MSYS/MinGW do not provide the 'file' command needed by
6602 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6603 # unless we find 'file', for example because we are cross-compiling.
6604 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6605 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6606 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6607 lt_cv_file_magic_cmd='func_win32_libid'
6609 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6610 lt_cv_file_magic_cmd='$OBJDUMP -f'
6615 # use the weaker test based on 'objdump'. See mingw*.
6616 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6617 lt_cv_file_magic_cmd='$OBJDUMP -f'
6620 darwin* | rhapsody*)
6621 lt_cv_deplibs_check_method=pass_all
6624 freebsd* | dragonfly*)
6625 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6628 # Not sure whether the presence of OpenBSD here was a mistake.
6629 # Let's accept both of them until this is cleared up.
6630 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6631 lt_cv_file_magic_cmd=/usr/bin/file
6632 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6636 lt_cv_deplibs_check_method=pass_all
6641 lt_cv_deplibs_check_method=pass_all
6645 lt_cv_deplibs_check_method=pass_all
6648 hpux10.20* | hpux11*)
6649 lt_cv_file_magic_cmd=/usr/bin/file
6652 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6653 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6656 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]'
6657 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6660 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6661 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6667 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6668 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6671 irix5* | irix6* | nonstopux*)
6673 *-32|*"-32 ") libmagic=32-bit;;
6674 *-n32|*"-n32 ") libmagic=N32;;
6675 *-64|*"-64 ") libmagic=64-bit;;
6676 *) libmagic=never-match;;
6678 lt_cv_deplibs_check_method=pass_all
6681 # This must be Linux ELF.
6682 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6683 lt_cv_deplibs_check_method=pass_all
6687 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6688 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6695 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6696 lt_cv_file_magic_cmd=/usr/bin/file
6697 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6701 lt_cv_deplibs_check_method=pass_all
6705 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6706 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6712 osf3* | osf4* | osf5*)
6713 lt_cv_deplibs_check_method=pass_all
6717 lt_cv_deplibs_check_method=pass_all
6721 lt_cv_deplibs_check_method=pass_all
6724 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6725 lt_cv_deplibs_check_method=pass_all
6729 case $host_vendor in
6731 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]'
6732 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6735 lt_cv_deplibs_check_method=pass_all
6738 lt_cv_file_magic_cmd='/bin/file'
6739 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6742 lt_cv_file_magic_cmd='/bin/file'
6743 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6744 lt_cv_file_magic_test_file=/lib/libc.so
6747 lt_cv_deplibs_check_method=pass_all
6750 lt_cv_deplibs_check_method=pass_all
6756 lt_cv_deplibs_check_method=pass_all
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6762 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6763 file_magic_cmd=$lt_cv_file_magic_cmd
6764 deplibs_check_method=$lt_cv_deplibs_check_method
6765 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6778 if test -n "$ac_tool_prefix"; then
6779 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6780 set dummy ${ac_tool_prefix}ar; ac_word=$2
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if test "${ac_cv_prog_AR+set}" = set; then :
6784 $as_echo_n "(cached) " >&6
6786 if test -n "$AR"; then
6787 ac_cv_prog_AR="$AR" # Let the user override the test.
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796 ac_cv_prog_AR="${ac_tool_prefix}ar"
6797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 if test -n "$AR"; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6809 $as_echo "$AR" >&6; }
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6817 if test -z "$ac_cv_prog_AR"; then
6819 # Extract the first word of "ar", so it can be a program name with args.
6820 set dummy ar; ac_word=$2
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6824 $as_echo_n "(cached) " >&6
6826 if test -n "$ac_ct_AR"; then
6827 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_prog_ac_ct_AR="ar"
6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6847 if test -n "$ac_ct_AR"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6849 $as_echo "$ac_ct_AR" >&6; }
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6855 if test "x$ac_ct_AR" = x; then
6858 case $cross_compiling:$ac_tool_warned in
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6862 ac_tool_warned=yes ;;
6870 test -z "$AR" && AR=ar
6871 test -z "$AR_FLAGS" && AR_FLAGS=cru
6883 if test -n "$ac_tool_prefix"; then
6884 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6885 set dummy ${ac_tool_prefix}strip; ac_word=$2
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if test "${ac_cv_prog_STRIP+set}" = set; then :
6889 $as_echo_n "(cached) " >&6
6891 if test -n "$STRIP"; then
6892 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6901 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 STRIP=$ac_cv_prog_STRIP
6912 if test -n "$STRIP"; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6914 $as_echo "$STRIP" >&6; }
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 $as_echo "no" >&6; }
6922 if test -z "$ac_cv_prog_STRIP"; then
6924 # Extract the first word of "strip", so it can be a program name with args.
6925 set dummy strip; ac_word=$2
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927 $as_echo_n "checking for $ac_word... " >&6; }
6928 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6929 $as_echo_n "(cached) " >&6
6931 if test -n "$ac_ct_STRIP"; then
6932 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6941 ac_cv_prog_ac_ct_STRIP="strip"
6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6952 if test -n "$ac_ct_STRIP"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6954 $as_echo "$ac_ct_STRIP" >&6; }
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6960 if test "x$ac_ct_STRIP" = x; then
6963 case $cross_compiling:$ac_tool_warned in
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6967 ac_tool_warned=yes ;;
6972 STRIP="$ac_cv_prog_STRIP"
6975 test -z "$STRIP" && STRIP=:
6982 if test -n "$ac_tool_prefix"; then
6983 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6984 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6986 $as_echo_n "checking for $ac_word... " >&6; }
6987 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6988 $as_echo_n "(cached) " >&6
6990 if test -n "$RANLIB"; then
6991 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7000 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 RANLIB=$ac_cv_prog_RANLIB
7011 if test -n "$RANLIB"; then
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7013 $as_echo "$RANLIB" >&6; }
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7016 $as_echo "no" >&6; }
7021 if test -z "$ac_cv_prog_RANLIB"; then
7022 ac_ct_RANLIB=$RANLIB
7023 # Extract the first word of "ranlib", so it can be a program name with args.
7024 set dummy ranlib; ac_word=$2
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7026 $as_echo_n "checking for $ac_word... " >&6; }
7027 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7028 $as_echo_n "(cached) " >&6
7030 if test -n "$ac_ct_RANLIB"; then
7031 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 test -z "$as_dir" && as_dir=.
7038 for ac_exec_ext in '' $ac_executable_extensions; do
7039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7040 ac_cv_prog_ac_ct_RANLIB="ranlib"
7041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7051 if test -n "$ac_ct_RANLIB"; then
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7053 $as_echo "$ac_ct_RANLIB" >&6; }
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056 $as_echo "no" >&6; }
7059 if test "x$ac_ct_RANLIB" = x; then
7062 case $cross_compiling:$ac_tool_warned in
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7066 ac_tool_warned=yes ;;
7068 RANLIB=$ac_ct_RANLIB
7071 RANLIB="$ac_cv_prog_RANLIB"
7074 test -z "$RANLIB" && RANLIB=:
7081 # Determine commands to create old-style static archives.
7082 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7083 old_postinstall_cmds='chmod 644 $oldlib'
7084 old_postuninstall_cmds=
7086 if test -n "$RANLIB"; then
7089 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7092 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7095 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7100 lock_old_archive_extraction=yes ;;
7102 lock_old_archive_extraction=no ;;
7143 # If no C compiler was specified, use CC.
7146 # If no C compiler flags were specified, use CFLAGS.
7147 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7149 # Allow CC to be a program name with arguments.
7153 # Check for command to grab the raw symbol name followed by C symbol from nm.
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7155 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7156 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7157 $as_echo_n "(cached) " >&6
7160 # These are sane defaults that work on at least a few old systems.
7161 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7163 # Character class describing NM global symbol codes.
7164 symcode='[BCDEGRST]'
7166 # Regexp to match symbols that can be accessed directly from C.
7167 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7169 # Define system-specific variables.
7174 cygwin* | mingw* | pw32* | cegcc*)
7175 symcode='[ABCDGISTW]'
7178 if test "$host_cpu" = ia64; then
7179 symcode='[ABCDEGRST]'
7183 symcode='[BCDEGRST]'
7186 symcode='[BCDEGQRST]'
7197 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7205 # If we're using GNU nm, then use its standard symbol codes.
7206 case `$NM -V 2>&1` in
7207 *GNU* | *'with BFD'*)
7208 symcode='[ABCDGIRSTW]' ;;
7211 # Transform an extracted symbol line into a proper C declaration.
7212 # Some systems (esp. on ia64) link data and code symbols differently,
7213 # so use this general approach.
7214 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7216 # Transform an extracted symbol line into symbol name and symbol address
7217 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7218 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'"
7220 # Handle CRLF in mingw tool chain
7224 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7228 # Try without a prefix underscore, then with it.
7229 for ac_symprfx in "" "_"; do
7231 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7232 symxfrm="\\1 $ac_symprfx\\2 \\2"
7234 # Write the raw and C identifiers.
7235 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7236 # Fake it for dumpbin and say T for any non-static function
7237 # and D for any global variable.
7238 # Also find C++ and __fastcall symbols from MSVC++,
7239 # which start with @ or ?.
7240 lt_cv_sys_global_symbol_pipe="$AWK '"\
7241 " {last_section=section; section=\$ 3};"\
7242 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7243 " \$ 0!~/External *\|/{next};"\
7244 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7245 " {if(hide[section]) next};"\
7246 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7247 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7248 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7249 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7250 " ' prfx=^$ac_symprfx"
7252 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7255 # Check to see that the pipe works correctly.
7259 cat > conftest.$ac_ext <<_LT_EOF
7264 void nm_test_func(void);
7265 void nm_test_func(void){}
7269 int main(){nm_test_var='a';nm_test_func();return(0);}
7272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7273 (eval $ac_compile) 2>&5
7275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7276 test $ac_status = 0; }; then
7277 # Now try to grab the symbols.
7279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7280 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7283 test $ac_status = 0; } && test -s "$nlist"; then
7284 # Try sorting and uniquifying the output.
7285 if sort "$nlist" | uniq > "$nlist"T; then
7286 mv -f "$nlist"T "$nlist"
7291 # Make sure that we snagged all the symbols we need.
7292 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7293 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7294 cat <<_LT_EOF > conftest.$ac_ext
7300 # Now generate the symbol file.
7301 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7303 cat <<_LT_EOF >> conftest.$ac_ext
7305 /* The mapping between symbol names and symbols. */
7310 lt__PROGRAM__LTX_preloaded_symbols[] =
7312 { "@PROGRAM@", (void *) 0 },
7314 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7315 cat <<\_LT_EOF >> conftest.$ac_ext
7319 /* This works around a problem in FreeBSD linker */
7320 #ifdef FREEBSD_WORKAROUND
7321 static const void *lt_preloaded_setup() {
7322 return lt__PROGRAM__LTX_preloaded_symbols;
7330 # Now try linking the two files.
7331 mv conftest.$ac_objext conftstm.$ac_objext
7332 lt_save_LIBS="$LIBS"
7333 lt_save_CFLAGS="$CFLAGS"
7334 LIBS="conftstm.$ac_objext"
7335 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7337 (eval $ac_link) 2>&5
7339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7340 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7343 LIBS="$lt_save_LIBS"
7344 CFLAGS="$lt_save_CFLAGS"
7346 echo "cannot find nm_test_func in $nlist" >&5
7349 echo "cannot find nm_test_var in $nlist" >&5
7352 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7355 echo "$progname: failed program was:" >&5
7356 cat conftest.$ac_ext >&5
7358 rm -rf conftest* conftst*
7360 # Do not use the global_symbol_pipe unless it works.
7361 if test "$pipe_works" = yes; then
7364 lt_cv_sys_global_symbol_pipe=
7370 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7371 lt_cv_sys_global_symbol_to_cdecl=
7373 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7375 $as_echo "failed" >&6; }
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7378 $as_echo "ok" >&6; }
7402 # Check whether --enable-libtool-lock was given.
7403 if test "${enable_libtool_lock+set}" = set; then :
7404 enableval=$enable_libtool_lock;
7407 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7409 # Some flags need to be propagated to the compiler or linker for good
7413 # Find out which ABI we are using.
7414 echo 'int i;' > conftest.$ac_ext
7415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7416 (eval $ac_compile) 2>&5
7418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7419 test $ac_status = 0; }; then
7420 case `/usr/bin/file conftest.$ac_objext` in
7432 # Find out which ABI we are using.
7433 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7435 (eval $ac_compile) 2>&5
7437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7438 test $ac_status = 0; }; then
7439 if test "$lt_cv_prog_gnu_ld" = yes; then
7440 case `/usr/bin/file conftest.$ac_objext` in
7442 LD="${LD-ld} -melf32bsmip"
7445 LD="${LD-ld} -melf32bmipn32"
7448 LD="${LD-ld} -melf64bmip"
7452 case `/usr/bin/file conftest.$ac_objext` in
7468 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7469 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7470 # Find out which ABI we are using.
7471 echo 'int i;' > conftest.$ac_ext
7472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7473 (eval $ac_compile) 2>&5
7475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7476 test $ac_status = 0; }; then
7477 case `/usr/bin/file conftest.o` in
7480 x86_64-*kfreebsd*-gnu)
7481 LD="${LD-ld} -m elf_i386_fbsd"
7484 case `/usr/bin/file conftest.o` in
7486 LD="${LD-ld} -m elf32_x86_64"
7489 LD="${LD-ld} -m elf_i386"
7493 powerpc64le-*linux*)
7494 LD="${LD-ld} -m elf32lppclinux"
7497 LD="${LD-ld} -m elf32ppclinux"
7500 LD="${LD-ld} -m elf_s390"
7503 LD="${LD-ld} -m elf32_sparc"
7509 x86_64-*kfreebsd*-gnu)
7510 LD="${LD-ld} -m elf_x86_64_fbsd"
7513 LD="${LD-ld} -m elf_x86_64"
7516 LD="${LD-ld} -m elf64lppc"
7519 LD="${LD-ld} -m elf64ppc"
7521 s390*-*linux*|s390*-*tpf*)
7522 LD="${LD-ld} -m elf64_s390"
7525 LD="${LD-ld} -m elf64_sparc"
7535 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7536 SAVE_CFLAGS="$CFLAGS"
7537 CFLAGS="$CFLAGS -belf"
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7539 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7540 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7541 $as_echo_n "(cached) " >&6
7544 ac_cpp='$CPP $CPPFLAGS'
7545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h. */
7560 if ac_fn_c_try_link "$LINENO"; then :
7561 lt_cv_cc_needs_belf=yes
7563 lt_cv_cc_needs_belf=no
7565 rm -f core conftest.err conftest.$ac_objext \
7566 conftest$ac_exeext conftest.$ac_ext
7568 ac_cpp='$CPP $CPPFLAGS'
7569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7575 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7576 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7577 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7578 CFLAGS="$SAVE_CFLAGS"
7582 # Find out which ABI we are using.
7583 echo 'int i;' > conftest.$ac_ext
7584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7585 (eval $ac_compile) 2>&5
7587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7588 test $ac_status = 0; }; then
7589 case `/usr/bin/file conftest.o` in
7591 case $lt_cv_prog_gnu_ld in
7592 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7594 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7606 need_locks="$enable_libtool_lock"
7610 rhapsody* | darwin*)
7611 if test -n "$ac_tool_prefix"; then
7612 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7613 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615 $as_echo_n "checking for $ac_word... " >&6; }
7616 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7617 $as_echo_n "(cached) " >&6
7619 if test -n "$DSYMUTIL"; then
7620 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7629 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7640 if test -n "$DSYMUTIL"; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7642 $as_echo "$DSYMUTIL" >&6; }
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 $as_echo "no" >&6; }
7650 if test -z "$ac_cv_prog_DSYMUTIL"; then
7651 ac_ct_DSYMUTIL=$DSYMUTIL
7652 # Extract the first word of "dsymutil", so it can be a program name with args.
7653 set dummy dsymutil; ac_word=$2
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655 $as_echo_n "checking for $ac_word... " >&6; }
7656 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7657 $as_echo_n "(cached) " >&6
7659 if test -n "$ac_ct_DSYMUTIL"; then
7660 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 test -z "$as_dir" && as_dir=.
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7669 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7679 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7680 if test -n "$ac_ct_DSYMUTIL"; then
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7682 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 $as_echo "no" >&6; }
7688 if test "x$ac_ct_DSYMUTIL" = x; then
7691 case $cross_compiling:$ac_tool_warned in
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7695 ac_tool_warned=yes ;;
7697 DSYMUTIL=$ac_ct_DSYMUTIL
7700 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7703 if test -n "$ac_tool_prefix"; then
7704 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7705 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7709 $as_echo_n "(cached) " >&6
7711 if test -n "$NMEDIT"; then
7712 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7721 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 NMEDIT=$ac_cv_prog_NMEDIT
7732 if test -n "$NMEDIT"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7734 $as_echo "$NMEDIT" >&6; }
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7742 if test -z "$ac_cv_prog_NMEDIT"; then
7743 ac_ct_NMEDIT=$NMEDIT
7744 # Extract the first word of "nmedit", so it can be a program name with args.
7745 set dummy nmedit; ac_word=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7749 $as_echo_n "(cached) " >&6
7751 if test -n "$ac_ct_NMEDIT"; then
7752 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7772 if test -n "$ac_ct_NMEDIT"; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7774 $as_echo "$ac_ct_NMEDIT" >&6; }
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7780 if test "x$ac_ct_NMEDIT" = x; then
7783 case $cross_compiling:$ac_tool_warned in
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7787 ac_tool_warned=yes ;;
7789 NMEDIT=$ac_ct_NMEDIT
7792 NMEDIT="$ac_cv_prog_NMEDIT"
7795 if test -n "$ac_tool_prefix"; then
7796 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7797 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799 $as_echo_n "checking for $ac_word... " >&6; }
7800 if test "${ac_cv_prog_LIPO+set}" = set; then :
7801 $as_echo_n "(cached) " >&6
7803 if test -n "$LIPO"; then
7804 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7813 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 LIPO=$ac_cv_prog_LIPO
7824 if test -n "$LIPO"; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7826 $as_echo "$LIPO" >&6; }
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 $as_echo "no" >&6; }
7834 if test -z "$ac_cv_prog_LIPO"; then
7836 # Extract the first word of "lipo", so it can be a program name with args.
7837 set dummy lipo; ac_word=$2
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839 $as_echo_n "checking for $ac_word... " >&6; }
7840 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7841 $as_echo_n "(cached) " >&6
7843 if test -n "$ac_ct_LIPO"; then
7844 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 test -z "$as_dir" && as_dir=.
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7853 ac_cv_prog_ac_ct_LIPO="lipo"
7854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7864 if test -n "$ac_ct_LIPO"; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7866 $as_echo "$ac_ct_LIPO" >&6; }
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7872 if test "x$ac_ct_LIPO" = x; then
7875 case $cross_compiling:$ac_tool_warned in
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7879 ac_tool_warned=yes ;;
7884 LIPO="$ac_cv_prog_LIPO"
7887 if test -n "$ac_tool_prefix"; then
7888 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7889 set dummy ${ac_tool_prefix}otool; ac_word=$2
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891 $as_echo_n "checking for $ac_word... " >&6; }
7892 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7893 $as_echo_n "(cached) " >&6
7895 if test -n "$OTOOL"; then
7896 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902 test -z "$as_dir" && as_dir=.
7903 for ac_exec_ext in '' $ac_executable_extensions; do
7904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7905 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915 OTOOL=$ac_cv_prog_OTOOL
7916 if test -n "$OTOOL"; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7918 $as_echo "$OTOOL" >&6; }
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921 $as_echo "no" >&6; }
7926 if test -z "$ac_cv_prog_OTOOL"; then
7928 # Extract the first word of "otool", so it can be a program name with args.
7929 set dummy otool; ac_word=$2
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931 $as_echo_n "checking for $ac_word... " >&6; }
7932 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7933 $as_echo_n "(cached) " >&6
7935 if test -n "$ac_ct_OTOOL"; then
7936 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 test -z "$as_dir" && as_dir=.
7943 for ac_exec_ext in '' $ac_executable_extensions; do
7944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7945 ac_cv_prog_ac_ct_OTOOL="otool"
7946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7956 if test -n "$ac_ct_OTOOL"; then
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7958 $as_echo "$ac_ct_OTOOL" >&6; }
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961 $as_echo "no" >&6; }
7964 if test "x$ac_ct_OTOOL" = x; then
7967 case $cross_compiling:$ac_tool_warned in
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7971 ac_tool_warned=yes ;;
7976 OTOOL="$ac_cv_prog_OTOOL"
7979 if test -n "$ac_tool_prefix"; then
7980 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7981 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983 $as_echo_n "checking for $ac_word... " >&6; }
7984 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
7987 if test -n "$OTOOL64"; then
7988 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 test -z "$as_dir" && as_dir=.
7995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7997 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007 OTOOL64=$ac_cv_prog_OTOOL64
8008 if test -n "$OTOOL64"; then
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8010 $as_echo "$OTOOL64" >&6; }
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8018 if test -z "$ac_cv_prog_OTOOL64"; then
8019 ac_ct_OTOOL64=$OTOOL64
8020 # Extract the first word of "otool64", so it can be a program name with args.
8021 set dummy otool64; ac_word=$2
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023 $as_echo_n "checking for $ac_word... " >&6; }
8024 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8025 $as_echo_n "(cached) " >&6
8027 if test -n "$ac_ct_OTOOL64"; then
8028 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 test -z "$as_dir" && as_dir=.
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8037 ac_cv_prog_ac_ct_OTOOL64="otool64"
8038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8048 if test -n "$ac_ct_OTOOL64"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8050 $as_echo "$ac_ct_OTOOL64" >&6; }
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8056 if test "x$ac_ct_OTOOL64" = x; then
8059 case $cross_compiling:$ac_tool_warned in
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8063 ac_tool_warned=yes ;;
8065 OTOOL64=$ac_ct_OTOOL64
8068 OTOOL64="$ac_cv_prog_OTOOL64"
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8098 $as_echo_n "checking for -single_module linker flag... " >&6; }
8099 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
8102 lt_cv_apple_cc_single_mod=no
8103 if test -z "${LT_MULTI_MODULE}"; then
8104 # By default we will add the -single_module flag. You can override
8105 # by either setting the environment variable LT_MULTI_MODULE
8106 # non-empty at configure time, or by adding -multi_module to the
8108 rm -rf libconftest.dylib*
8109 echo "int foo(void){return 1;}" > conftest.c
8110 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8111 -dynamiclib -Wl,-single_module conftest.c" >&5
8112 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8113 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8115 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8116 lt_cv_apple_cc_single_mod=yes
8118 cat conftest.err >&5
8120 rm -rf libconftest.dylib*
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8125 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8127 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8128 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8129 $as_echo_n "(cached) " >&6
8131 lt_cv_ld_exported_symbols_list=no
8132 save_LDFLAGS=$LDFLAGS
8133 echo "_main" > conftest.sym
8134 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136 /* end confdefs.h. */
8146 if ac_fn_c_try_link "$LINENO"; then :
8147 lt_cv_ld_exported_symbols_list=yes
8149 lt_cv_ld_exported_symbols_list=no
8151 rm -f core conftest.err conftest.$ac_objext \
8152 conftest$ac_exeext conftest.$ac_ext
8153 LDFLAGS="$save_LDFLAGS"
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8157 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8159 $as_echo_n "checking for -force_load linker flag... " >&6; }
8160 if test "${lt_cv_ld_force_load+set}" = set; then :
8161 $as_echo_n "(cached) " >&6
8163 lt_cv_ld_force_load=no
8164 cat > conftest.c << _LT_EOF
8165 int forced_loaded() { return 2;}
8167 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8168 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8169 echo "$AR cru libconftest.a conftest.o" >&5
8170 $AR cru libconftest.a conftest.o 2>&5
8171 cat > conftest.c << _LT_EOF
8172 int main() { return 0;}
8174 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8175 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8177 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8178 lt_cv_ld_force_load=yes
8180 cat conftest.err >&5
8182 rm -f conftest.err libconftest.a conftest conftest.c
8183 rm -rf conftest.dSYM
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8187 $as_echo "$lt_cv_ld_force_load" >&6; }
8189 rhapsody* | darwin1.[012])
8190 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8192 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8193 darwin*) # darwin 5.x on
8194 # if running on 10.5 or later, the deployment target defaults
8195 # to the OS version, if on x86, and 10.4, the deployment
8196 # target defaults to 10.4. Don't you love it?
8197 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8198 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8199 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8201 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8203 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8207 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8208 _lt_dar_single_mod='$single_module'
8210 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8211 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8213 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8215 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8216 _lt_dsymutil='~$DSYMUTIL $lib || :'
8223 for ac_header in dlfcn.h
8225 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8227 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8228 cat >>confdefs.h <<_ACEOF
8229 #define HAVE_DLFCN_H 1
8251 # Check whether --enable-shared was given.
8252 if test "${enable_shared+set}" = set; then :
8253 enableval=$enable_shared; p=${PACKAGE-default}
8255 yes) enable_shared=yes ;;
8256 no) enable_shared=no ;;
8259 # Look at the argument we got. We use all the common list separators.
8260 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8261 for pkg in $enableval; do
8263 if test "X$pkg" = "X$p"; then
8282 # Check whether --enable-static was given.
8283 if test "${enable_static+set}" = set; then :
8284 enableval=$enable_static; p=${PACKAGE-default}
8286 yes) enable_static=yes ;;
8287 no) enable_static=no ;;
8290 # Look at the argument we got. We use all the common list separators.
8291 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8292 for pkg in $enableval; do
8294 if test "X$pkg" = "X$p"; then
8314 # Check whether --with-pic was given.
8315 if test "${with_pic+set}" = set; then :
8316 withval=$with_pic; pic_mode="$withval"
8322 test -z "$pic_mode" && pic_mode=default
8330 # Check whether --enable-fast-install was given.
8331 if test "${enable_fast_install+set}" = set; then :
8332 enableval=$enable_fast_install; p=${PACKAGE-default}
8334 yes) enable_fast_install=yes ;;
8335 no) enable_fast_install=no ;;
8337 enable_fast_install=no
8338 # Look at the argument we got. We use all the common list separators.
8339 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8340 for pkg in $enableval; do
8342 if test "X$pkg" = "X$p"; then
8343 enable_fast_install=yes
8350 enable_fast_install=yes
8363 # This can be used to rebuild libtool when needed
8364 LIBTOOL_DEPS="$ltmain"
8366 # Always use our own libtool.
8367 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8394 test -z "$LN_S" && LN_S="ln -s"
8409 if test -n "${ZSH_VERSION+set}" ; then
8410 setopt NO_GLOB_SUBST
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8414 $as_echo_n "checking for objdir... " >&6; }
8415 if test "${lt_cv_objdir+set}" = set; then :
8416 $as_echo_n "(cached) " >&6
8418 rm -f .libs 2>/dev/null
8419 mkdir .libs 2>/dev/null
8420 if test -d .libs; then
8423 # MS-DOS does not allow filenames that begin with a dot.
8426 rmdir .libs 2>/dev/null
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8429 $as_echo "$lt_cv_objdir" >&6; }
8430 objdir=$lt_cv_objdir
8436 cat >>confdefs.h <<_ACEOF
8437 #define LT_OBJDIR "$lt_cv_objdir/"
8445 # AIX sometimes has problems with the GCC collect2 program. For some
8446 # reason, if we set the COLLECT_NAMES environment variable, the problems
8447 # vanish in a puff of smoke.
8448 if test "X${COLLECT_NAMES+set}" != Xset; then
8450 export COLLECT_NAMES
8457 can_build_shared=yes
8459 # All known linkers require a `.a' archive for static linking (except MSVC,
8460 # which needs '.lib').
8463 with_gnu_ld="$lt_cv_prog_gnu_ld"
8466 old_CFLAGS="$CFLAGS"
8468 # Set sane defaults for various variables
8469 test -z "$CC" && CC=cc
8470 test -z "$LTCC" && LTCC=$CC
8471 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8472 test -z "$LD" && LD=ld
8473 test -z "$ac_objext" && ac_objext=o
8475 for cc_temp in $compiler""; do
8477 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8478 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8483 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8486 # Only perform the check for file, if the check method requires it
8487 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8488 case $deplibs_check_method in
8490 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8492 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8493 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8494 $as_echo_n "(cached) " >&6
8498 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8501 lt_save_MAGIC_CMD="$MAGIC_CMD"
8502 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8503 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8504 for ac_dir in $ac_dummy; do
8506 test -z "$ac_dir" && ac_dir=.
8507 if test -f $ac_dir/${ac_tool_prefix}file; then
8508 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8509 if test -n "$file_magic_test_file"; then
8510 case $deplibs_check_method in
8512 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8514 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8515 $EGREP "$file_magic_regex" > /dev/null; then
8520 *** Warning: the command libtool uses to detect shared libraries,
8521 *** $file_magic_cmd, produces output that libtool cannot recognize.
8522 *** The result is that libtool may fail to recognize shared libraries
8523 *** as such. This will affect the creation of libtool libraries that
8524 *** depend on shared libraries, but programs linked with such libtool
8525 *** libraries will work regardless of this problem. Nevertheless, you
8526 *** may want to report the problem to your system manager and/or to
8527 *** bug-libtool@gnu.org
8537 MAGIC_CMD="$lt_save_MAGIC_CMD"
8542 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8543 if test -n "$MAGIC_CMD"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8545 $as_echo "$MAGIC_CMD" >&6; }
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8555 if test -z "$lt_cv_path_MAGIC_CMD"; then
8556 if test -n "$ac_tool_prefix"; then
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8558 $as_echo_n "checking for file... " >&6; }
8559 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8560 $as_echo_n "(cached) " >&6
8564 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8567 lt_save_MAGIC_CMD="$MAGIC_CMD"
8568 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8569 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8570 for ac_dir in $ac_dummy; do
8572 test -z "$ac_dir" && ac_dir=.
8573 if test -f $ac_dir/file; then
8574 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8575 if test -n "$file_magic_test_file"; then
8576 case $deplibs_check_method in
8578 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8580 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8581 $EGREP "$file_magic_regex" > /dev/null; then
8586 *** Warning: the command libtool uses to detect shared libraries,
8587 *** $file_magic_cmd, produces output that libtool cannot recognize.
8588 *** The result is that libtool may fail to recognize shared libraries
8589 *** as such. This will affect the creation of libtool libraries that
8590 *** depend on shared libraries, but programs linked with such libtool
8591 *** libraries will work regardless of this problem. Nevertheless, you
8592 *** may want to report the problem to your system manager and/or to
8593 *** bug-libtool@gnu.org
8603 MAGIC_CMD="$lt_save_MAGIC_CMD"
8608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8609 if test -n "$MAGIC_CMD"; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8611 $as_echo "$MAGIC_CMD" >&6; }
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8627 # Use C for the default configuration in the libtool script
8631 ac_cpp='$CPP $CPPFLAGS'
8632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8637 # Source file extension for C test sources.
8640 # Object file extension for compiled C test sources.
8644 # Code to be used in simple compile tests
8645 lt_simple_compile_test_code="int some_variable = 0;"
8647 # Code to be used in simple link tests
8648 lt_simple_link_test_code='int main(){return(0);}'
8656 # If no C compiler was specified, use CC.
8659 # If no C compiler flags were specified, use CFLAGS.
8660 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8662 # Allow CC to be a program name with arguments.
8665 # Save the default compiler, since it gets overwritten when the other
8666 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8667 compiler_DEFAULT=$CC
8669 # save warnings/boilerplate of simple test code
8670 ac_outfile=conftest.$ac_objext
8671 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8672 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8673 _lt_compiler_boilerplate=`cat conftest.err`
8676 ac_outfile=conftest.$ac_objext
8677 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8678 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8679 _lt_linker_boilerplate=`cat conftest.err`
8684 ## There is no encapsulation within the following macros, do not change
8685 ## the running order or otherwise move them around unless you know exactly
8686 ## what you are doing...
8687 if test -n "$compiler"; then
8689 lt_prog_compiler_no_builtin_flag=
8691 if test "$GCC" = yes; then
8692 case $cc_basename in
8694 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8696 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8700 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8701 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8702 $as_echo_n "(cached) " >&6
8704 lt_cv_prog_compiler_rtti_exceptions=no
8705 ac_outfile=conftest.$ac_objext
8706 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8707 lt_compiler_flag="-fno-rtti -fno-exceptions"
8708 # Insert the option either (1) after the last *FLAGS variable, or
8709 # (2) before a word containing "conftest.", or (3) at the end.
8710 # Note that $ac_compile itself does not contain backslashes and begins
8711 # with a dollar sign (not a hyphen), so the echo should work correctly.
8712 # The option is referenced via a variable to avoid confusing sed.
8713 lt_compile=`echo "$ac_compile" | $SED \
8714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8716 -e 's:$: $lt_compiler_flag:'`
8717 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8718 (eval "$lt_compile" 2>conftest.err)
8720 cat conftest.err >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 if (exit $ac_status) && test -s "$ac_outfile"; then
8723 # The compiler can only warn and ignore the option if not recognized
8724 # So say no if there are warnings other than the usual output.
8725 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8726 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8727 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8728 lt_cv_prog_compiler_rtti_exceptions=yes
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8735 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8737 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8738 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8750 lt_prog_compiler_wl=
8751 lt_prog_compiler_pic=
8752 lt_prog_compiler_static=
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8755 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8757 if test "$GCC" = yes; then
8758 lt_prog_compiler_wl='-Wl,'
8759 lt_prog_compiler_static='-static'
8763 # All AIX code is PIC.
8764 if test "$host_cpu" = ia64; then
8765 # AIX 5 now supports IA64 processor
8766 lt_prog_compiler_static='-Bstatic'
8768 lt_prog_compiler_pic='-fPIC'
8774 # see comment about AmigaOS4 .so support
8775 lt_prog_compiler_pic='-fPIC'
8778 # FIXME: we need at least 68020 code to build shared libraries, but
8779 # adding the `-m68020' flag to GCC prevents building anything better,
8781 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8786 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8787 # PIC is the default for these OSes.
8790 mingw* | cygwin* | pw32* | os2* | cegcc*)
8791 # This hack is so that the source file can tell whether it is being
8792 # built for inclusion in a dll (and should export symbols for example).
8793 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8794 # (--disable-auto-import) libraries
8795 lt_prog_compiler_pic='-DDLL_EXPORT'
8798 darwin* | rhapsody*)
8799 # PIC is the default on this platform
8800 # Common symbols not allowed in MH_DYLIB files
8801 lt_prog_compiler_pic='-fno-common'
8805 # PIC is the default for Haiku.
8806 # The "-static" flag exists, but is broken.
8807 lt_prog_compiler_static=
8811 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8812 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8813 # sets the default TLS model and affects inlining.
8819 lt_prog_compiler_pic='-fPIC'
8825 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8826 # Instead, we relocate shared libraries at runtime.
8830 # Just because we use GCC doesn't mean we suddenly get shared libraries
8831 # on systems that don't support them.
8832 lt_prog_compiler_can_build_shared=no
8837 # QNX uses GNU C++, but need to define -shared option too, otherwise
8839 lt_prog_compiler_pic='-fPIC -shared'
8843 if test -d /usr/nec; then
8844 lt_prog_compiler_pic=-Kconform_pic
8849 lt_prog_compiler_pic='-fPIC'
8853 case $cc_basename in
8854 nvcc*) # Cuda Compiler Driver 2.2
8855 lt_prog_compiler_wl='-Xlinker '
8856 lt_prog_compiler_pic='-Xcompiler -fPIC'
8860 # PORTME Check for flag to pass linker flags through the system compiler.
8863 lt_prog_compiler_wl='-Wl,'
8864 if test "$host_cpu" = ia64; then
8865 # AIX 5 now supports IA64 processor
8866 lt_prog_compiler_static='-Bstatic'
8868 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8872 mingw* | cygwin* | pw32* | os2* | cegcc*)
8873 # This hack is so that the source file can tell whether it is being
8874 # built for inclusion in a dll (and should export symbols for example).
8875 lt_prog_compiler_pic='-DDLL_EXPORT'
8878 hpux9* | hpux10* | hpux11*)
8879 lt_prog_compiler_wl='-Wl,'
8880 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8887 lt_prog_compiler_pic='+Z'
8890 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8891 lt_prog_compiler_static='${wl}-a ${wl}archive'
8894 irix5* | irix6* | nonstopux*)
8895 lt_prog_compiler_wl='-Wl,'
8896 # PIC (with -KPIC) is the default.
8897 lt_prog_compiler_static='-non_shared'
8900 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8901 case $cc_basename in
8902 # old Intel for x86_64 which still supported -KPIC.
8904 lt_prog_compiler_wl='-Wl,'
8905 lt_prog_compiler_pic='-KPIC'
8906 lt_prog_compiler_static='-static'
8908 # icc used to be incompatible with GCC.
8909 # ICC 10 doesn't accept -KPIC any more.
8911 lt_prog_compiler_wl='-Wl,'
8912 lt_prog_compiler_pic='-fPIC'
8913 lt_prog_compiler_static='-static'
8915 # Lahey Fortran 8.1.
8917 lt_prog_compiler_wl='-Wl,'
8918 lt_prog_compiler_pic='--shared'
8919 lt_prog_compiler_static='--static'
8921 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8922 # Portland Group compilers (*not* the Pentium gcc compiler,
8923 # which looks to be a dead project)
8924 lt_prog_compiler_wl='-Wl,'
8925 lt_prog_compiler_pic='-fpic'
8926 lt_prog_compiler_static='-Bstatic'
8929 lt_prog_compiler_wl='-Wl,'
8930 # All Alpha code is PIC.
8931 lt_prog_compiler_static='-non_shared'
8933 xl* | bgxl* | bgf* | mpixl*)
8934 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8935 lt_prog_compiler_wl='-Wl,'
8936 lt_prog_compiler_pic='-qpic'
8937 lt_prog_compiler_static='-qstaticlink'
8940 case `$CC -V 2>&1 | sed 5q` in
8941 *Sun\ F* | *Sun*Fortran*)
8942 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8943 lt_prog_compiler_pic='-KPIC'
8944 lt_prog_compiler_static='-Bstatic'
8945 lt_prog_compiler_wl=''
8949 lt_prog_compiler_pic='-KPIC'
8950 lt_prog_compiler_static='-Bstatic'
8951 lt_prog_compiler_wl='-Wl,'
8959 lt_prog_compiler_pic='-KPIC'
8960 lt_prog_compiler_static='-Bstatic'
8964 # QNX uses GNU C++, but need to define -shared option too, otherwise
8966 lt_prog_compiler_pic='-fPIC -shared'
8969 osf3* | osf4* | osf5*)
8970 lt_prog_compiler_wl='-Wl,'
8971 # All OSF/1 code is PIC.
8972 lt_prog_compiler_static='-non_shared'
8976 lt_prog_compiler_static='-non_shared'
8980 lt_prog_compiler_pic='-KPIC'
8981 lt_prog_compiler_static='-Bstatic'
8982 case $cc_basename in
8984 lt_prog_compiler_wl='-Qoption ld ';;
8986 lt_prog_compiler_wl='-Wl,';;
8991 lt_prog_compiler_wl='-Qoption ld '
8992 lt_prog_compiler_pic='-PIC'
8993 lt_prog_compiler_static='-Bstatic'
8996 sysv4 | sysv4.2uw2* | sysv4.3*)
8997 lt_prog_compiler_wl='-Wl,'
8998 lt_prog_compiler_pic='-KPIC'
8999 lt_prog_compiler_static='-Bstatic'
9003 if test -d /usr/nec ;then
9004 lt_prog_compiler_pic='-Kconform_pic'
9005 lt_prog_compiler_static='-Bstatic'
9009 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9010 lt_prog_compiler_wl='-Wl,'
9011 lt_prog_compiler_pic='-KPIC'
9012 lt_prog_compiler_static='-Bstatic'
9016 lt_prog_compiler_wl='-Wl,'
9017 lt_prog_compiler_can_build_shared=no
9021 lt_prog_compiler_pic='-pic'
9022 lt_prog_compiler_static='-Bstatic'
9026 lt_prog_compiler_can_build_shared=no
9032 # For platforms which do not support PIC, -DPIC is meaningless:
9034 lt_prog_compiler_pic=
9037 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9041 $as_echo "$lt_prog_compiler_pic" >&6; }
9049 # Check to make sure the PIC flag actually works.
9051 if test -n "$lt_prog_compiler_pic"; then
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9053 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9054 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9055 $as_echo_n "(cached) " >&6
9057 lt_cv_prog_compiler_pic_works=no
9058 ac_outfile=conftest.$ac_objext
9059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9060 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9061 # Insert the option either (1) after the last *FLAGS variable, or
9062 # (2) before a word containing "conftest.", or (3) at the end.
9063 # Note that $ac_compile itself does not contain backslashes and begins
9064 # with a dollar sign (not a hyphen), so the echo should work correctly.
9065 # The option is referenced via a variable to avoid confusing sed.
9066 lt_compile=`echo "$ac_compile" | $SED \
9067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9069 -e 's:$: $lt_compiler_flag:'`
9070 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9071 (eval "$lt_compile" 2>conftest.err)
9073 cat conftest.err >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 if (exit $ac_status) && test -s "$ac_outfile"; then
9076 # The compiler can only warn and ignore the option if not recognized
9077 # So say no if there are warnings other than the usual output.
9078 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9080 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9081 lt_cv_prog_compiler_pic_works=yes
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9088 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9090 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9091 case $lt_prog_compiler_pic in
9093 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9096 lt_prog_compiler_pic=
9097 lt_prog_compiler_can_build_shared=no
9108 # Check to make sure the static flag actually works.
9110 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9112 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9113 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9114 $as_echo_n "(cached) " >&6
9116 lt_cv_prog_compiler_static_works=no
9117 save_LDFLAGS="$LDFLAGS"
9118 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9119 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9120 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9121 # The linker can only warn and ignore the option if not recognized
9122 # So say no if there are warnings
9123 if test -s conftest.err; then
9124 # Append any errors to the config.log.
9125 cat conftest.err 1>&5
9126 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9128 if diff conftest.exp conftest.er2 >/dev/null; then
9129 lt_cv_prog_compiler_static_works=yes
9132 lt_cv_prog_compiler_static_works=yes
9136 LDFLAGS="$save_LDFLAGS"
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9140 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9142 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9145 lt_prog_compiler_static=
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9155 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9156 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9157 $as_echo_n "(cached) " >&6
9159 lt_cv_prog_compiler_c_o=no
9160 $RM -r conftest 2>/dev/null
9164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9166 lt_compiler_flag="-o out/conftest2.$ac_objext"
9167 # Insert the option either (1) after the last *FLAGS variable, or
9168 # (2) before a word containing "conftest.", or (3) at the end.
9169 # Note that $ac_compile itself does not contain backslashes and begins
9170 # with a dollar sign (not a hyphen), so the echo should work correctly.
9171 lt_compile=`echo "$ac_compile" | $SED \
9172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9174 -e 's:$: $lt_compiler_flag:'`
9175 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9176 (eval "$lt_compile" 2>out/conftest.err)
9178 cat out/conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9182 # The compiler can only warn and ignore the option if not recognized
9183 # So say no if there are warnings
9184 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9185 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9186 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9187 lt_cv_prog_compiler_c_o=yes
9192 # SGI C++ compiler will create directory out/ii_files/ for
9193 # template instantiation
9194 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9195 $RM out/* && rmdir out
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9202 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9210 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9211 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9212 $as_echo_n "(cached) " >&6
9214 lt_cv_prog_compiler_c_o=no
9215 $RM -r conftest 2>/dev/null
9219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9221 lt_compiler_flag="-o out/conftest2.$ac_objext"
9222 # Insert the option either (1) after the last *FLAGS variable, or
9223 # (2) before a word containing "conftest.", or (3) at the end.
9224 # Note that $ac_compile itself does not contain backslashes and begins
9225 # with a dollar sign (not a hyphen), so the echo should work correctly.
9226 lt_compile=`echo "$ac_compile" | $SED \
9227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9229 -e 's:$: $lt_compiler_flag:'`
9230 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9231 (eval "$lt_compile" 2>out/conftest.err)
9233 cat out/conftest.err >&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9237 # The compiler can only warn and ignore the option if not recognized
9238 # So say no if there are warnings
9239 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9240 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9241 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9242 lt_cv_prog_compiler_c_o=yes
9247 # SGI C++ compiler will create directory out/ii_files/ for
9248 # template instantiation
9249 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9250 $RM out/* && rmdir out
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9257 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9262 hard_links="nottested"
9263 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9264 # do not overwrite the value of need_locks provided by the user
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9266 $as_echo_n "checking if we can lock with hard links... " >&6; }
9269 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9271 ln conftest.a conftest.b 2>&5 || hard_links=no
9272 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9274 $as_echo "$hard_links" >&6; }
9275 if test "$hard_links" = no; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9277 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9290 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9293 allow_undefined_flag=
9294 always_export_symbols=no
9296 archive_expsym_cmds=
9297 compiler_needs_object=no
9298 enable_shared_with_static_runtimes=no
9299 export_dynamic_flag_spec=
9300 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9301 hardcode_automatic=no
9303 hardcode_direct_absolute=no
9304 hardcode_libdir_flag_spec=
9305 hardcode_libdir_flag_spec_ld=
9306 hardcode_libdir_separator=
9308 hardcode_shlibpath_var=unsupported
9310 link_all_deplibs=unknown
9313 old_archive_from_new_cmds=
9314 old_archive_from_expsyms_cmds=
9315 thread_safe_flag_spec=
9316 whole_archive_flag_spec=
9317 # include_expsyms should be a list of space-separated symbols to be *always*
9318 # included in the symbol list
9320 # exclude_expsyms can be an extended regexp of symbols to exclude
9321 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9322 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9323 # as well as any symbol that contains `d'.
9324 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9325 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9326 # platforms (ab)use it in PIC code, but their linkers get confused if
9327 # the symbol is explicitly referenced. Since portable code cannot
9328 # rely on this symbol name, it's probably fine to never include it in
9329 # preloaded symbol tables.
9330 # Exclude shared library initialization/finalization symbols.
9331 extract_expsyms_cmds=
9334 cygwin* | mingw* | pw32* | cegcc*)
9335 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9336 # When not using gcc, we currently assume that we are using
9337 # Microsoft Visual C++.
9338 if test "$GCC" != yes; then
9343 # we just hope/assume this is gcc and not c89 (= MSVC++)
9353 # On some targets, GNU ld is compatible enough with the native linker
9354 # that we're better off using the native interface for both.
9355 lt_use_gnu_ld_interface=no
9356 if test "$with_gnu_ld" = yes; then
9359 # The AIX port of GNU ld has always aspired to compatibility
9360 # with the native linker. However, as the warning in the GNU ld
9361 # block says, versions before 2.19.5* couldn't really create working
9362 # shared libraries, regardless of the interface used.
9363 case `$LD -v 2>&1` in
9364 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9365 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9366 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9368 lt_use_gnu_ld_interface=yes
9373 lt_use_gnu_ld_interface=yes
9378 if test "$lt_use_gnu_ld_interface" = yes; then
9379 # If archive_cmds runs LD, not CC, wlarc should be empty
9382 # Set some defaults for GNU ld with shared library support. These
9383 # are reset later if shared libraries are not supported. Putting them
9384 # here allows them to be overridden if necessary.
9385 runpath_var=LD_RUN_PATH
9386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9387 export_dynamic_flag_spec='${wl}--export-dynamic'
9388 # ancient GNU ld didn't support --whole-archive et. al.
9389 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9390 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9392 whole_archive_flag_spec=
9394 supports_anon_versioning=no
9395 case `$LD -v 2>&1` in
9396 *GNU\ gold*) supports_anon_versioning=yes ;;
9397 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9398 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9399 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9400 *\ 2.11.*) ;; # other 2.11 versions
9401 *) supports_anon_versioning=yes ;;
9404 # See if GNU ld supports shared libraries.
9407 # On AIX/PPC, the GNU linker is very broken
9408 if test "$host_cpu" != ia64; then
9412 *** Warning: the GNU linker, at least up to release 2.19, is reported
9413 *** to be unable to reliably create shared libraries on AIX.
9414 *** Therefore, libtool is disabling shared libraries support. If you
9415 *** really care for shared libraries, you may want to install binutils
9416 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9417 *** You will then need to restart the configuration process.
9426 # see comment about AmigaOS4 .so support
9427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9428 archive_expsym_cmds=''
9431 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)'
9432 hardcode_libdir_flag_spec='-L$libdir'
9433 hardcode_minus_L=yes
9439 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9440 allow_undefined_flag=unsupported
9441 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9442 # support --undefined. This deserves some investigation. FIXME
9443 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449 cygwin* | mingw* | pw32* | cegcc*)
9450 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9451 # as there is no search path for DLLs.
9452 hardcode_libdir_flag_spec='-L$libdir'
9453 export_dynamic_flag_spec='${wl}--export-all-symbols'
9454 allow_undefined_flag=unsupported
9455 always_export_symbols=no
9456 enable_shared_with_static_runtimes=yes
9457 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9459 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9461 # If the export-symbols file already is a .def file (1st line
9462 # is EXPORTS), use it as is; otherwise, prepend...
9463 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9464 cp $export_symbols $output_objdir/$soname.def;
9466 echo EXPORTS > $output_objdir/$soname.def;
9467 cat $export_symbols >> $output_objdir/$soname.def;
9469 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9476 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9477 link_all_deplibs=yes
9482 hardcode_shlibpath_var=no
9483 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9484 export_dynamic_flag_spec='${wl}-E'
9485 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9486 # Instead, shared libraries are loaded at an image base (0x10000000 by
9487 # default) and relocated if they conflict, which is a slow very memory
9488 # consuming and fragmenting process. To avoid this, we pick a random,
9489 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9490 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9491 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9492 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'
9495 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9497 if test "$host_os" = linux-dietlibc; then
9498 case $cc_basename in
9499 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9502 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9503 && test "$tmp_diet" = no
9506 tmp_sharedflag='-shared'
9507 case $cc_basename,$host_cpu in
9508 pgcc*) # Portland Group C compiler
9509 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'
9510 tmp_addflag=' $pic_flag'
9512 pgf77* | pgf90* | pgf95* | pgfortran*)
9513 # Portland Group f77 and f90 compilers
9514 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'
9515 tmp_addflag=' $pic_flag -Mnomain' ;;
9516 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9517 tmp_addflag=' -i_dynamic' ;;
9518 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9519 tmp_addflag=' -i_dynamic -nofor_main' ;;
9520 ifc* | ifort*) # Intel Fortran compiler
9521 tmp_addflag=' -nofor_main' ;;
9522 lf95*) # Lahey Fortran 8.1
9523 whole_archive_flag_spec=
9524 tmp_sharedflag='--shared' ;;
9525 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9526 tmp_sharedflag='-qmkshrobj'
9528 nvcc*) # Cuda Compiler Driver 2.2
9529 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'
9530 compiler_needs_object=yes
9533 case `$CC -V 2>&1 | sed 5q` in
9534 *Sun\ C*) # Sun C 5.9
9535 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'
9536 compiler_needs_object=yes
9537 tmp_sharedflag='-G' ;;
9538 *Sun\ F*) # Sun Fortran 8.3
9539 tmp_sharedflag='-G' ;;
9541 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9543 if test "x$supports_anon_versioning" = xyes; then
9544 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9545 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9546 echo "local: *; };" >> $output_objdir/$libname.ver~
9547 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9550 case $cc_basename in
9551 xlf* | bgf* | bgxlf* | mpixlf*)
9552 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9553 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9554 hardcode_libdir_flag_spec=
9555 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9556 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9557 if test "x$supports_anon_versioning" = xyes; then
9558 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9559 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9560 echo "local: *; };" >> $output_objdir/$libname.ver~
9561 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9571 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9572 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9576 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9581 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9585 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9586 *** create shared libraries on Solaris systems. Therefore, libtool
9587 *** is disabling shared libraries support. We urge you to upgrade GNU
9588 *** binutils to release 2.9.1 or newer. Another option is to modify
9589 *** your PATH or compiler configuration so that the native linker is
9590 *** used, and then restart.
9593 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9594 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9595 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9601 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9602 case `$LD -v 2>&1` in
9603 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9607 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9608 *** reliably create shared libraries on SCO systems. Therefore, libtool
9609 *** is disabling shared libraries support. We urge you to upgrade GNU
9610 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9611 *** your PATH or compiler configuration so that the native linker is
9612 *** used, and then restart.
9617 # For security reasons, it is highly recommended that you always
9618 # use absolute paths for naming shared libraries, and exclude the
9619 # DT_RUNPATH tag from executables and libraries. But doing so
9620 # requires that you compile everything twice, which is a pain.
9621 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9624 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9633 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9636 hardcode_shlibpath_var=no
9640 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9642 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9649 if test "$ld_shlibs" = no; then
9651 hardcode_libdir_flag_spec=
9652 export_dynamic_flag_spec=
9653 whole_archive_flag_spec=
9656 # PORTME fill in a description of your system's linker (not GNU ld)
9659 allow_undefined_flag=unsupported
9660 always_export_symbols=yes
9661 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'
9662 # Note: this linker hardcodes the directories in LIBPATH if there
9663 # are no directories specified by -L.
9664 hardcode_minus_L=yes
9665 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9666 # Neither direct hardcoding nor static linking is supported with a
9668 hardcode_direct=unsupported
9673 if test "$host_cpu" = ia64; then
9674 # On IA64, the linker does run time linking by default, so we don't
9675 # have to do anything special.
9676 aix_use_runtimelinking=no
9677 exp_sym_flag='-Bexport'
9680 # If we're using GNU nm, then we don't want the "-C" option.
9681 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9682 # Also, AIX nm treats weak defined symbols like other global
9683 # defined symbols, whereas GNU nm marks them as "W".
9684 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9685 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'
9687 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'
9689 aix_use_runtimelinking=no
9691 # Test if we are trying to use run time linking or normal
9692 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9693 # need to do runtime linking.
9694 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9695 for ld_flag in $LDFLAGS; do
9696 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9697 aix_use_runtimelinking=yes
9704 exp_sym_flag='-bexport'
9705 no_entry_flag='-bnoentry'
9708 # When large executables or shared objects are built, AIX ld can
9709 # have problems creating the table of contents. If linking a library
9710 # or program results in "error TOC overflow" add -mminimal-toc to
9711 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9712 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9716 hardcode_direct_absolute=yes
9717 hardcode_libdir_separator=':'
9718 link_all_deplibs=yes
9719 file_list_spec='${wl}-f,'
9721 if test "$GCC" = yes; then
9722 case $host_os in aix4.[012]|aix4.[012].*)
9723 # We only want to do this on AIX 4.2 and lower, the check
9724 # below for broken collect2 doesn't work under 4.3+
9725 collect2name=`${CC} -print-prog-name=collect2`
9726 if test -f "$collect2name" &&
9727 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9729 # We have reworked collect2
9732 # We have old collect2
9733 hardcode_direct=unsupported
9734 # It fails to find uninstalled libraries when the uninstalled
9735 # path is not listed in the libpath. Setting hardcode_minus_L
9736 # to unsupported forces relinking
9737 hardcode_minus_L=yes
9738 hardcode_libdir_flag_spec='-L$libdir'
9739 hardcode_libdir_separator=
9743 shared_flag='-shared'
9744 if test "$aix_use_runtimelinking" = yes; then
9745 shared_flag="$shared_flag "'${wl}-G'
9749 if test "$host_cpu" = ia64; then
9750 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9751 # chokes on -Wl,-G. The following line is correct:
9754 if test "$aix_use_runtimelinking" = yes; then
9755 shared_flag='${wl}-G'
9757 shared_flag='${wl}-bM:SRE'
9762 export_dynamic_flag_spec='${wl}-bexpall'
9763 # It seems that -bexpall does not export symbols beginning with
9764 # underscore (_), so it is better to generate a list of symbols to export.
9765 always_export_symbols=yes
9766 if test "$aix_use_runtimelinking" = yes; then
9767 # Warning - without using the other runtime loading flags (-brtl),
9768 # -berok will link without error, but may produce a broken library.
9769 allow_undefined_flag='-berok'
9770 # Determine the default libpath from the value encoded in an
9772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773 /* end confdefs.h. */
9783 if ac_fn_c_try_link "$LINENO"; then :
9785 lt_aix_libpath_sed='
9786 /Import File Strings/,/^$/ {
9792 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9793 # Check for a 64-bit object if we didn't find anything.
9794 if test -z "$aix_libpath"; then
9795 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9798 rm -f core conftest.err conftest.$ac_objext \
9799 conftest$ac_exeext conftest.$ac_ext
9800 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9802 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9803 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"
9805 if test "$host_cpu" = ia64; then
9806 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9807 allow_undefined_flag="-z nodefs"
9808 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"
9810 # Determine the default libpath from the value encoded in an
9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h. */
9823 if ac_fn_c_try_link "$LINENO"; then :
9825 lt_aix_libpath_sed='
9826 /Import File Strings/,/^$/ {
9832 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9833 # Check for a 64-bit object if we didn't find anything.
9834 if test -z "$aix_libpath"; then
9835 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9838 rm -f core conftest.err conftest.$ac_objext \
9839 conftest$ac_exeext conftest.$ac_ext
9840 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9842 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9843 # Warning - without using the other run time loading flags,
9844 # -berok will link without error, but may produce a broken library.
9845 no_undefined_flag=' ${wl}-bernotok'
9846 allow_undefined_flag=' ${wl}-berok'
9847 if test "$with_gnu_ld" = yes; then
9848 # We only use this code for GNU lds that support --whole-archive.
9849 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9851 # Exported symbols can be pulled into shared objects from archives
9852 whole_archive_flag_spec='$convenience'
9854 archive_cmds_need_lc=yes
9855 # This is similar to how AIX traditionally builds its shared libraries.
9856 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'
9864 # see comment about AmigaOS4 .so support
9865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9866 archive_expsym_cmds=''
9869 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)'
9870 hardcode_libdir_flag_spec='-L$libdir'
9871 hardcode_minus_L=yes
9877 export_dynamic_flag_spec=-rdynamic
9880 cygwin* | mingw* | pw32* | cegcc*)
9881 # When not using gcc, we currently assume that we are using
9882 # Microsoft Visual C++.
9883 # hardcode_libdir_flag_spec is actually meaningless, as there is
9884 # no search path for DLLs.
9885 hardcode_libdir_flag_spec=' '
9886 allow_undefined_flag=unsupported
9887 # Tell ltmain to make .lib files, not .a files.
9889 # Tell ltmain to make .dll files, not .so files.
9891 # FIXME: Setting linknames here is a bad hack.
9892 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9893 # The linker will automatically build a .lib file if we build a DLL.
9894 old_archive_from_new_cmds='true'
9895 # FIXME: Should let the user specify the lib program.
9896 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9897 fix_srcfile_path='`cygpath -w "$srcfile"`'
9898 enable_shared_with_static_runtimes=yes
9901 darwin* | rhapsody*)
9904 archive_cmds_need_lc=no
9906 hardcode_automatic=yes
9907 hardcode_shlibpath_var=unsupported
9908 if test "$lt_cv_ld_force_load" = "yes"; then
9909 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\"`'
9911 whole_archive_flag_spec=''
9913 link_all_deplibs=yes
9914 allow_undefined_flag="$_lt_dar_allow_undefined"
9915 case $cc_basename in
9916 ifort*) _lt_dar_can_shared=yes ;;
9917 *) _lt_dar_can_shared=$GCC ;;
9919 if test "$_lt_dar_can_shared" = "yes"; then
9920 output_verbose_link_cmd=func_echo_all
9921 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9922 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9923 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}"
9924 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}"
9933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9934 hardcode_libdir_flag_spec='-L$libdir'
9935 hardcode_shlibpath_var=no
9938 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9939 # support. Future versions do this automatically, but an explicit c++rt0.o
9940 # does not break anything, and helps significantly (at the cost of a little
9943 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9944 hardcode_libdir_flag_spec='-R$libdir'
9946 hardcode_shlibpath_var=no
9949 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9953 hardcode_minus_L=yes
9954 hardcode_shlibpath_var=no
9957 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9958 freebsd* | dragonfly*)
9959 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9960 hardcode_libdir_flag_spec='-R$libdir'
9962 hardcode_shlibpath_var=no
9966 if test "$GCC" = yes; then
9967 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9969 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'
9971 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9972 hardcode_libdir_separator=:
9975 # hardcode_minus_L: Not really in the search PATH,
9976 # but as the default location of the library.
9977 hardcode_minus_L=yes
9978 export_dynamic_flag_spec='${wl}-E'
9982 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9983 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9985 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9987 if test "$with_gnu_ld" = no; then
9988 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9989 hardcode_libdir_flag_spec_ld='+b $libdir'
9990 hardcode_libdir_separator=:
9992 hardcode_direct_absolute=yes
9993 export_dynamic_flag_spec='${wl}-E'
9994 # hardcode_minus_L: Not really in the search PATH,
9995 # but as the default location of the library.
9996 hardcode_minus_L=yes
10001 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10004 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10007 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10010 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10016 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10019 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10023 # Older versions of the 11.00 compiler do not understand -b yet
10024 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10026 $as_echo_n "checking if $CC understands -b... " >&6; }
10027 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10028 $as_echo_n "(cached) " >&6
10030 lt_cv_prog_compiler__b=no
10031 save_LDFLAGS="$LDFLAGS"
10032 LDFLAGS="$LDFLAGS -b"
10033 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10034 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10035 # The linker can only warn and ignore the option if not recognized
10036 # So say no if there are warnings
10037 if test -s conftest.err; then
10038 # Append any errors to the config.log.
10039 cat conftest.err 1>&5
10040 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10042 if diff conftest.exp conftest.er2 >/dev/null; then
10043 lt_cv_prog_compiler__b=yes
10046 lt_cv_prog_compiler__b=yes
10050 LDFLAGS="$save_LDFLAGS"
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10054 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10056 if test x"$lt_cv_prog_compiler__b" = xyes; then
10057 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10059 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10065 if test "$with_gnu_ld" = no; then
10066 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10067 hardcode_libdir_separator=:
10072 hardcode_shlibpath_var=no
10075 hardcode_direct=yes
10076 hardcode_direct_absolute=yes
10077 export_dynamic_flag_spec='${wl}-E'
10079 # hardcode_minus_L: Not really in the search PATH,
10080 # but as the default location of the library.
10081 hardcode_minus_L=yes
10087 irix5* | irix6* | nonstopux*)
10088 if test "$GCC" = yes; then
10089 archive_cmds='$CC -shared $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'
10090 # Try to use the -exported_symbol ld option, if it does not
10091 # work, assume that -exports_file does not work either and
10092 # implicitly export all symbols.
10093 save_LDFLAGS="$LDFLAGS"
10094 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h. */
10099 if ac_fn_c_try_link "$LINENO"; then :
10100 archive_expsym_cmds='$CC -shared $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'
10103 rm -f core conftest.err conftest.$ac_objext \
10104 conftest$ac_exeext conftest.$ac_ext
10105 LDFLAGS="$save_LDFLAGS"
10107 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'
10108 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'
10110 archive_cmds_need_lc='no'
10111 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10112 hardcode_libdir_separator=:
10114 link_all_deplibs=yes
10118 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10119 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10121 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10123 hardcode_libdir_flag_spec='-R$libdir'
10124 hardcode_direct=yes
10125 hardcode_shlibpath_var=no
10129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10130 hardcode_direct=yes
10131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10132 hardcode_libdir_separator=:
10133 hardcode_shlibpath_var=no
10140 if test -f /usr/libexec/ld.so; then
10141 hardcode_direct=yes
10142 hardcode_shlibpath_var=no
10143 hardcode_direct_absolute=yes
10144 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10145 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10146 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10147 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10148 export_dynamic_flag_spec='${wl}-E'
10151 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10152 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10153 hardcode_libdir_flag_spec='-R$libdir'
10156 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10157 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10167 hardcode_libdir_flag_spec='-L$libdir'
10168 hardcode_minus_L=yes
10169 allow_undefined_flag=unsupported
10170 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'
10171 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10175 if test "$GCC" = yes; then
10176 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10177 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'
10179 allow_undefined_flag=' -expect_unresolved \*'
10180 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'
10182 archive_cmds_need_lc='no'
10183 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10184 hardcode_libdir_separator=:
10187 osf4* | osf5*) # as osf3* with the addition of -msym flag
10188 if test "$GCC" = yes; then
10189 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10190 archive_cmds='$CC -shared${allow_undefined_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'
10191 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10193 allow_undefined_flag=' -expect_unresolved \*'
10194 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'
10195 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~
10196 $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'
10198 # Both c and cxx compiler support -rpath directly
10199 hardcode_libdir_flag_spec='-rpath $libdir'
10201 archive_cmds_need_lc='no'
10202 hardcode_libdir_separator=:
10206 no_undefined_flag=' -z defs'
10207 if test "$GCC" = yes; then
10209 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10210 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10211 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10213 case `$CC -V 2>&1` in
10216 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10217 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10218 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10222 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10223 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10224 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10228 hardcode_libdir_flag_spec='-R$libdir'
10229 hardcode_shlibpath_var=no
10231 solaris2.[0-5] | solaris2.[0-5].*) ;;
10233 # The compiler driver will combine and reorder linker options,
10234 # but understands `-z linker_flag'. GCC discards it without `$wl',
10235 # but is careful enough not to reorder.
10236 # Supported since Solaris 2.6 (maybe 2.5.1?)
10237 if test "$GCC" = yes; then
10238 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10240 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10244 link_all_deplibs=yes
10248 if test "x$host_vendor" = xsequent; then
10249 # Use $CC to link under sequent, because it throws in some extra .o
10250 # files that make .init and .fini sections work.
10251 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10253 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10255 hardcode_libdir_flag_spec='-L$libdir'
10256 hardcode_direct=yes
10257 hardcode_minus_L=yes
10258 hardcode_shlibpath_var=no
10262 case $host_vendor in
10264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10265 hardcode_direct=yes # is this really true???
10268 ## LD is ld it makes a PLAMLIB
10269 ## CC just makes a GrossModule.
10270 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10271 reload_cmds='$CC -r -o $output$reload_objs'
10275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10276 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10279 runpath_var='LD_RUN_PATH'
10280 hardcode_shlibpath_var=no
10284 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10285 hardcode_shlibpath_var=no
10286 export_dynamic_flag_spec='-Bexport'
10290 if test -d /usr/nec; then
10291 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10292 hardcode_shlibpath_var=no
10293 runpath_var=LD_RUN_PATH
10294 hardcode_runpath_var=yes
10299 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10300 no_undefined_flag='${wl}-z,text'
10301 archive_cmds_need_lc=no
10302 hardcode_shlibpath_var=no
10303 runpath_var='LD_RUN_PATH'
10305 if test "$GCC" = yes; then
10306 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10307 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10309 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10310 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10314 sysv5* | sco3.2v5* | sco5v6*)
10315 # Note: We can NOT use -z defs as we might desire, because we do not
10316 # link with -lc, and that would cause any symbols used from libc to
10317 # always be unresolved, which means just about no library would
10318 # ever link correctly. If we're not using GNU ld we use -z text
10319 # though, which does catch some bad symbols but isn't as heavy-handed
10321 no_undefined_flag='${wl}-z,text'
10322 allow_undefined_flag='${wl}-z,nodefs'
10323 archive_cmds_need_lc=no
10324 hardcode_shlibpath_var=no
10325 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10326 hardcode_libdir_separator=':'
10327 link_all_deplibs=yes
10328 export_dynamic_flag_spec='${wl}-Bexport'
10329 runpath_var='LD_RUN_PATH'
10331 if test "$GCC" = yes; then
10332 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10333 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10335 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10336 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10342 hardcode_libdir_flag_spec='-L$libdir'
10343 hardcode_shlibpath_var=no
10351 if test x$host_vendor = xsni; then
10353 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10354 export_dynamic_flag_spec='${wl}-Blargedynsym'
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10361 $as_echo "$ld_shlibs" >&6; }
10362 test "$ld_shlibs" = no && can_build_shared=no
10364 with_gnu_ld=$with_gnu_ld
10381 # Do we need to explicitly link libc?
10383 case "x$archive_cmds_need_lc" in
10385 # Assume -lc should be added
10386 archive_cmds_need_lc=yes
10388 if test "$enable_shared" = yes && test "$GCC" = yes; then
10389 case $archive_cmds in
10391 # FIXME: we may have to deal with multi-command sequences.
10394 # Test whether the compiler implicitly links with -lc since on some
10395 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10396 # to ld, don't add -lc before -lgcc.
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10398 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10399 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10400 $as_echo_n "(cached) " >&6
10403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10406 (eval $ac_compile) 2>&5
10408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10409 test $ac_status = 0; } 2>conftest.err; then
10412 libobjs=conftest.$ac_objext
10414 wl=$lt_prog_compiler_wl
10415 pic_flag=$lt_prog_compiler_pic
10421 lt_save_allow_undefined_flag=$allow_undefined_flag
10422 allow_undefined_flag=
10423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10424 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10427 test $ac_status = 0; }
10429 lt_cv_archive_cmds_need_lc=no
10431 lt_cv_archive_cmds_need_lc=yes
10433 allow_undefined_flag=$lt_save_allow_undefined_flag
10435 cat conftest.err 1>&5
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10441 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10442 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10606 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10608 if test "$GCC" = yes; then
10610 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10611 *) lt_awk_arg="/^libraries:/" ;;
10614 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10615 *) lt_sed_strip_eq="s,=/,/,g" ;;
10617 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10618 case $lt_search_path_spec in
10620 # if the path contains ";" then we assume it to be the separator
10621 # otherwise default to the standard path separator (i.e. ":") - it is
10622 # assumed that no part of a normal pathname contains ";" but that should
10623 # okay in the real world where ";" in dirpaths is itself problematic.
10624 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10627 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10630 # Ok, now we have the path, separated by spaces, we can step through it
10631 # and add multilib dir if necessary.
10632 lt_tmp_lt_search_path_spec=
10633 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10634 for lt_sys_path in $lt_search_path_spec; do
10635 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10636 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10638 test -d "$lt_sys_path" && \
10639 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10642 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10643 BEGIN {RS=" "; FS="/|\n";} {
10646 for (lt_i = NF; lt_i > 0; lt_i--) {
10647 if ($lt_i != "" && $lt_i != ".") {
10648 if ($lt_i == "..") {
10651 if (lt_count == 0) {
10652 lt_foo="/" $lt_i lt_foo;
10659 if (lt_foo != "") { lt_freq[lt_foo]++; }
10660 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10662 # AWK program above erroneously prepends '/' to C:/dos/paths
10665 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10666 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10668 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10670 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10672 library_names_spec=
10673 libname_spec='lib$name'
10677 postuninstall_cmds=
10681 shlibpath_overrides_runpath=unknown
10683 dynamic_linker="$host_os ld.so"
10684 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10685 need_lib_prefix=unknown
10686 hardcode_into_libs=no
10688 # when you set need_version to no, make sure it does not cause -set_version
10689 # flags to be left without arguments
10690 need_version=unknown
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10696 shlibpath_var=LIBPATH
10698 # AIX 3 has no versioning support, so we append a major version to the name.
10699 soname_spec='${libname}${release}${shared_ext}$major'
10706 hardcode_into_libs=yes
10707 if test "$host_cpu" = ia64; then
10708 # AIX 5 supports IA64
10709 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10710 shlibpath_var=LD_LIBRARY_PATH
10712 # With GCC up to 2.95.x, collect2 would create an import file
10713 # for dependence libraries. The import file would start with
10714 # the line `#! .'. This would cause the generated library to
10715 # depend on `.', always an invalid library. This was fixed in
10716 # development snapshots of GCC prior to 3.0.
10718 aix4 | aix4.[01] | aix4.[01].*)
10719 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10721 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10724 can_build_shared=no
10728 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10729 # soname into executable. Probably we can add versioning support to
10730 # collect2, so additional links can be useful in future.
10731 if test "$aix_use_runtimelinking" = yes; then
10732 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10733 # instead of lib<name>.a to let people know that these are not
10734 # typical AIX shared libraries.
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10737 # We preserve .a as extension for shared libraries through AIX4.2
10738 # and later when we are not doing run time linking.
10739 library_names_spec='${libname}${release}.a $libname.a'
10740 soname_spec='${libname}${release}${shared_ext}$major'
10742 shlibpath_var=LIBPATH
10749 # Since July 2007 AmigaOS4 officially supports .so libraries.
10750 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10754 library_names_spec='$libname.ixlibrary $libname.a'
10755 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10756 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'
10762 library_names_spec='${libname}${shared_ext}'
10763 dynamic_linker="$host_os ld.so"
10764 shlibpath_var=LIBRARY_PATH
10770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10771 soname_spec='${libname}${release}${shared_ext}$major'
10772 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10773 shlibpath_var=LD_LIBRARY_PATH
10774 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10775 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10776 # the default ld.so.conf also contains /usr/contrib/lib and
10777 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10778 # libtool to hard-code these into programs
10781 cygwin* | mingw* | pw32* | cegcc*)
10782 version_type=windows
10787 case $GCC,$host_os in
10788 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10789 library_names_spec='$libname.dll.a'
10790 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10791 postinstall_cmds='base_file=`basename \${file}`~
10792 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10793 dldir=$destdir/`dirname \$dlpath`~
10794 test -d \$dldir || mkdir -p \$dldir~
10795 $install_prog $dir/$dlname \$dldir/$dlname~
10796 chmod a+x \$dldir/$dlname~
10797 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10798 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10800 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10801 dlpath=$dir/\$dldll~
10803 shlibpath_overrides_runpath=yes
10807 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10808 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10810 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10813 # MinGW DLLs use traditional 'lib' prefix
10814 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10817 # pw32 DLLs use 'pw' prefix rather than 'lib'
10818 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10824 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10827 dynamic_linker='Win32 ld.exe'
10828 # FIXME: first we should search . and the directory the executable is in
10832 darwin* | rhapsody*)
10833 dynamic_linker="$host_os dyld"
10834 version_type=darwin
10837 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10838 soname_spec='${libname}${release}${major}$shared_ext'
10839 shlibpath_overrides_runpath=yes
10840 shlibpath_var=DYLD_LIBRARY_PATH
10841 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10843 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10844 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10852 soname_spec='${libname}${release}${shared_ext}$major'
10853 shlibpath_var=LD_LIBRARY_PATH
10856 freebsd* | dragonfly*)
10857 # DragonFly does not have aout. When/if they implement a new
10858 # versioning mechanism, adjust this.
10859 if test -x /usr/bin/objformat; then
10860 objformat=`/usr/bin/objformat`
10863 freebsd[23].*) objformat=aout ;;
10864 *) objformat=elf ;;
10867 version_type=freebsd-$objformat
10868 case $version_type in
10870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10875 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10879 shlibpath_var=LD_LIBRARY_PATH
10882 shlibpath_overrides_runpath=yes
10884 freebsd3.[01]* | freebsdelf3.[01]*)
10885 shlibpath_overrides_runpath=yes
10886 hardcode_into_libs=yes
10888 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10889 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10890 shlibpath_overrides_runpath=no
10891 hardcode_into_libs=yes
10893 *) # from 4.6 on, and DragonFly
10894 shlibpath_overrides_runpath=yes
10895 hardcode_into_libs=yes
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10905 soname_spec='${libname}${release}${shared_ext}$major'
10906 shlibpath_var=LD_LIBRARY_PATH
10907 hardcode_into_libs=yes
10914 dynamic_linker="$host_os runtime_loader"
10915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10916 soname_spec='${libname}${release}${shared_ext}$major'
10917 shlibpath_var=LIBRARY_PATH
10918 shlibpath_overrides_runpath=yes
10919 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10920 hardcode_into_libs=yes
10923 hpux9* | hpux10* | hpux11*)
10924 # Give a soname corresponding to the major version so that dld.sl refuses to
10925 # link against other versions.
10932 hardcode_into_libs=yes
10933 dynamic_linker="$host_os dld.so"
10934 shlibpath_var=LD_LIBRARY_PATH
10935 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937 soname_spec='${libname}${release}${shared_ext}$major'
10938 if test "X$HPUX_IA64_MODE" = X32; then
10939 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10941 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10947 hardcode_into_libs=yes
10948 dynamic_linker="$host_os dld.sl"
10949 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952 soname_spec='${libname}${release}${shared_ext}$major'
10953 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10958 dynamic_linker="$host_os dld.sl"
10959 shlibpath_var=SHLIB_PATH
10960 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10962 soname_spec='${libname}${release}${shared_ext}$major'
10965 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10966 postinstall_cmds='chmod 555 $lib'
10967 # or fails outright, so override atomically:
10968 install_override_mode=555
10975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10976 soname_spec='${libname}${release}${shared_ext}$major'
10977 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10978 shlibpath_var=LD_LIBRARY_PATH
10979 shlibpath_overrides_runpath=no
10980 hardcode_into_libs=yes
10983 irix5* | irix6* | nonstopux*)
10985 nonstopux*) version_type=nonstopux ;;
10987 if test "$lt_cv_prog_gnu_ld" = yes; then
10995 soname_spec='${libname}${release}${shared_ext}$major'
10996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10998 irix5* | nonstopux*)
10999 libsuff= shlibsuff=
11002 case $LD in # libtool.m4 will add one of these switches to LD
11003 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11004 libsuff= shlibsuff= libmagic=32-bit;;
11005 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11006 libsuff=32 shlibsuff=N32 libmagic=N32;;
11007 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11008 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11009 *) libsuff= shlibsuff= libmagic=never-match;;
11013 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11014 shlibpath_overrides_runpath=no
11015 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11016 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11017 hardcode_into_libs=yes
11020 # No shared lib support for Linux oldld, aout, or coff.
11021 linux*oldld* | linux*aout* | linux*coff*)
11025 # This must be Linux ELF.
11026 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031 soname_spec='${libname}${release}${shared_ext}$major'
11032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11033 shlibpath_var=LD_LIBRARY_PATH
11034 shlibpath_overrides_runpath=no
11036 # Some binutils ld are patched to set DT_RUNPATH
11037 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11038 $as_echo_n "(cached) " >&6
11040 lt_cv_shlibpath_overrides_runpath=no
11041 save_LDFLAGS=$LDFLAGS
11042 save_libdir=$libdir
11043 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11044 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11046 /* end confdefs.h. */
11056 if ac_fn_c_try_link "$LINENO"; then :
11057 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11058 lt_cv_shlibpath_overrides_runpath=yes
11061 rm -f core conftest.err conftest.$ac_objext \
11062 conftest$ac_exeext conftest.$ac_ext
11063 LDFLAGS=$save_LDFLAGS
11064 libdir=$save_libdir
11068 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11070 # This implies no fast_install, which is unacceptable.
11071 # Some rework will be needed to allow for fast_install
11072 # before this can be enabled.
11073 hardcode_into_libs=yes
11075 # Append ld.so.conf contents to the search path
11076 if test -f /etc/ld.so.conf; then
11077 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' ' '`
11078 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11081 # We used to test for /lib/ld.so.1 and disable shared libraries on
11082 # powerpc, because MkLinux only supported shared libraries with the
11083 # GNU dynamic linker. Since this was broken with cross compilers,
11084 # most powerpc-linux boxes support dynamic linking these days and
11085 # people can always --disable-shared, the test was removed, and we
11086 # assume the GNU/Linux dynamic linker is in use.
11087 dynamic_linker='GNU/Linux ld.so'
11094 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11097 dynamic_linker='NetBSD (a.out) ld.so'
11099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11100 soname_spec='${libname}${release}${shared_ext}$major'
11101 dynamic_linker='NetBSD ld.elf_so'
11103 shlibpath_var=LD_LIBRARY_PATH
11104 shlibpath_overrides_runpath=yes
11105 hardcode_into_libs=yes
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111 shlibpath_var=LD_LIBRARY_PATH
11112 shlibpath_overrides_runpath=yes
11119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11120 soname_spec='${libname}${release}${shared_ext}$major'
11121 shlibpath_var=LD_LIBRARY_PATH
11122 shlibpath_overrides_runpath=no
11123 hardcode_into_libs=yes
11124 dynamic_linker='ldqnx.so'
11129 sys_lib_dlsearch_path_spec="/usr/lib"
11131 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11133 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11134 *) need_version=no ;;
11136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11138 shlibpath_var=LD_LIBRARY_PATH
11139 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11141 openbsd2.[89] | openbsd2.[89].*)
11142 shlibpath_overrides_runpath=no
11145 shlibpath_overrides_runpath=yes
11149 shlibpath_overrides_runpath=yes
11154 libname_spec='$name'
11157 library_names_spec='$libname${shared_ext} $libname.a'
11158 dynamic_linker='OS/2 ld.exe'
11159 shlibpath_var=LIBPATH
11162 osf3* | osf4* | osf5*)
11166 soname_spec='${libname}${release}${shared_ext}$major'
11167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11168 shlibpath_var=LD_LIBRARY_PATH
11169 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11170 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11182 soname_spec='${libname}${release}${shared_ext}$major'
11183 shlibpath_var=LD_LIBRARY_PATH
11184 shlibpath_overrides_runpath=yes
11185 hardcode_into_libs=yes
11186 # ldd complains unless libraries are executable
11187 postinstall_cmds='chmod +x $lib'
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11193 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11194 shlibpath_var=LD_LIBRARY_PATH
11195 shlibpath_overrides_runpath=yes
11196 if test "$with_gnu_ld" = yes; then
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205 soname_spec='${libname}${release}${shared_ext}$major'
11206 shlibpath_var=LD_LIBRARY_PATH
11207 case $host_vendor in
11209 shlibpath_overrides_runpath=no
11211 runpath_var=LD_RUN_PATH
11219 shlibpath_overrides_runpath=no
11220 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11226 if test -d /usr/nec ;then
11228 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11229 soname_spec='$libname${shared_ext}.$major'
11230 shlibpath_var=LD_LIBRARY_PATH
11234 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11235 version_type=freebsd-elf
11238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11239 soname_spec='${libname}${release}${shared_ext}$major'
11240 shlibpath_var=LD_LIBRARY_PATH
11241 shlibpath_overrides_runpath=yes
11242 hardcode_into_libs=yes
11243 if test "$with_gnu_ld" = yes; then
11244 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11246 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11249 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11253 sys_lib_dlsearch_path_spec='/usr/lib'
11257 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11262 shlibpath_var=LD_LIBRARY_PATH
11263 shlibpath_overrides_runpath=no
11264 hardcode_into_libs=yes
11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11270 soname_spec='${libname}${release}${shared_ext}$major'
11271 shlibpath_var=LD_LIBRARY_PATH
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11279 $as_echo "$dynamic_linker" >&6; }
11280 test "$dynamic_linker" = no && can_build_shared=no
11282 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11283 if test "$GCC" = yes; then
11284 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11287 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11288 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11290 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11291 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11386 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11388 if test -n "$hardcode_libdir_flag_spec" ||
11389 test -n "$runpath_var" ||
11390 test "X$hardcode_automatic" = "Xyes" ; then
11392 # We can hardcode non-existent directories.
11393 if test "$hardcode_direct" != no &&
11394 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11395 # have to relink, otherwise we might link with an installed library
11396 # when we should be linking with a yet-to-be-installed one
11397 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11398 test "$hardcode_minus_L" != no; then
11399 # Linking always hardcodes the temporary library directory.
11400 hardcode_action=relink
11402 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11403 hardcode_action=immediate
11406 # We cannot hardcode anything, or else we can only hardcode existing
11408 hardcode_action=unsupported
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11411 $as_echo "$hardcode_action" >&6; }
11413 if test "$hardcode_action" = relink ||
11414 test "$inherit_rpath" = yes; then
11415 # Fast installation is not supported
11416 enable_fast_install=no
11417 elif test "$shlibpath_overrides_runpath" = yes ||
11418 test "$enable_shared" = no; then
11419 # Fast installation is not necessary
11420 enable_fast_install=needless
11428 if test "x$enable_dlopen" != xyes; then
11429 enable_dlopen=unknown
11430 enable_dlopen_self=unknown
11431 enable_dlopen_self_static=unknown
11438 lt_cv_dlopen="load_add_on"
11440 lt_cv_dlopen_self=yes
11443 mingw* | pw32* | cegcc*)
11444 lt_cv_dlopen="LoadLibrary"
11449 lt_cv_dlopen="dlopen"
11454 # if libdl is installed we need to link against it
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11456 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11457 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11458 $as_echo_n "(cached) " >&6
11460 ac_check_lib_save_LIBS=$LIBS
11462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11465 /* Override any GCC internal prototype to avoid an error.
11466 Use char because int might match the return type of a GCC
11467 builtin and then its argument prototype would still apply. */
11480 if ac_fn_c_try_link "$LINENO"; then :
11481 ac_cv_lib_dl_dlopen=yes
11483 ac_cv_lib_dl_dlopen=no
11485 rm -f core conftest.err conftest.$ac_objext \
11486 conftest$ac_exeext conftest.$ac_ext
11487 LIBS=$ac_check_lib_save_LIBS
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11490 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11491 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11492 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11495 lt_cv_dlopen="dyld"
11497 lt_cv_dlopen_self=yes
11504 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11505 if test "x$ac_cv_func_shl_load" = x""yes; then :
11506 lt_cv_dlopen="shl_load"
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11509 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11510 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11511 $as_echo_n "(cached) " >&6
11513 ac_check_lib_save_LIBS=$LIBS
11515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11516 /* end confdefs.h. */
11518 /* Override any GCC internal prototype to avoid an error.
11519 Use char because int might match the return type of a GCC
11520 builtin and then its argument prototype would still apply. */
11528 return shl_load ();
11533 if ac_fn_c_try_link "$LINENO"; then :
11534 ac_cv_lib_dld_shl_load=yes
11536 ac_cv_lib_dld_shl_load=no
11538 rm -f core conftest.err conftest.$ac_objext \
11539 conftest$ac_exeext conftest.$ac_ext
11540 LIBS=$ac_check_lib_save_LIBS
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11543 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11544 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11545 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11547 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11548 if test "x$ac_cv_func_dlopen" = x""yes; then :
11549 lt_cv_dlopen="dlopen"
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11552 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11553 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11554 $as_echo_n "(cached) " >&6
11556 ac_check_lib_save_LIBS=$LIBS
11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11561 /* Override any GCC internal prototype to avoid an error.
11562 Use char because int might match the return type of a GCC
11563 builtin and then its argument prototype would still apply. */
11576 if ac_fn_c_try_link "$LINENO"; then :
11577 ac_cv_lib_dl_dlopen=yes
11579 ac_cv_lib_dl_dlopen=no
11581 rm -f core conftest.err conftest.$ac_objext \
11582 conftest$ac_exeext conftest.$ac_ext
11583 LIBS=$ac_check_lib_save_LIBS
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11586 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11587 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11588 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11591 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11592 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11593 $as_echo_n "(cached) " >&6
11595 ac_check_lib_save_LIBS=$LIBS
11596 LIBS="-lsvld $LIBS"
11597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11598 /* end confdefs.h. */
11600 /* Override any GCC internal prototype to avoid an error.
11601 Use char because int might match the return type of a GCC
11602 builtin and then its argument prototype would still apply. */
11615 if ac_fn_c_try_link "$LINENO"; then :
11616 ac_cv_lib_svld_dlopen=yes
11618 ac_cv_lib_svld_dlopen=no
11620 rm -f core conftest.err conftest.$ac_objext \
11621 conftest$ac_exeext conftest.$ac_ext
11622 LIBS=$ac_check_lib_save_LIBS
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11625 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11626 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11627 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11630 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11631 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11632 $as_echo_n "(cached) " >&6
11634 ac_check_lib_save_LIBS=$LIBS
11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637 /* end confdefs.h. */
11639 /* Override any GCC internal prototype to avoid an error.
11640 Use char because int might match the return type of a GCC
11641 builtin and then its argument prototype would still apply. */
11649 return dld_link ();
11654 if ac_fn_c_try_link "$LINENO"; then :
11655 ac_cv_lib_dld_dld_link=yes
11657 ac_cv_lib_dld_dld_link=no
11659 rm -f core conftest.err conftest.$ac_objext \
11660 conftest$ac_exeext conftest.$ac_ext
11661 LIBS=$ac_check_lib_save_LIBS
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11664 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11665 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11666 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11687 if test "x$lt_cv_dlopen" != xno; then
11693 case $lt_cv_dlopen in
11695 save_CPPFLAGS="$CPPFLAGS"
11696 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11698 save_LDFLAGS="$LDFLAGS"
11699 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11702 LIBS="$lt_cv_dlopen_libs $LIBS"
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11705 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11706 if test "${lt_cv_dlopen_self+set}" = set; then :
11707 $as_echo_n "(cached) " >&6
11709 if test "$cross_compiling" = yes; then :
11710 lt_cv_dlopen_self=cross
11712 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11713 lt_status=$lt_dlunknown
11714 cat > conftest.$ac_ext <<_LT_EOF
11715 #line 11715 "configure"
11716 #include "confdefs.h"
11725 # define LT_DLGLOBAL RTLD_GLOBAL
11728 # define LT_DLGLOBAL DL_GLOBAL
11730 # define LT_DLGLOBAL 0
11734 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11735 find out it does not work in some platform. */
11736 #ifndef LT_DLLAZY_OR_NOW
11738 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11741 # define LT_DLLAZY_OR_NOW DL_LAZY
11744 # define LT_DLLAZY_OR_NOW RTLD_NOW
11747 # define LT_DLLAZY_OR_NOW DL_NOW
11749 # define LT_DLLAZY_OR_NOW 0
11756 /* When -fvisbility=hidden is used, assume the code has been annotated
11757 correspondingly for the symbols needed. */
11758 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11759 void fnord () __attribute__((visibility("default")));
11762 void fnord () { int i=42; }
11765 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11766 int status = $lt_dlunknown;
11770 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11773 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11774 else puts (dlerror ());
11776 /* dlclose (self); */
11784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11785 (eval $ac_link) 2>&5
11787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11788 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11789 (./conftest; exit; ) >&5 2>/dev/null
11791 case x$lt_status in
11792 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11793 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11794 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11797 # compilation failed
11798 lt_cv_dlopen_self=no
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11806 $as_echo "$lt_cv_dlopen_self" >&6; }
11808 if test "x$lt_cv_dlopen_self" = xyes; then
11809 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11811 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11812 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11813 $as_echo_n "(cached) " >&6
11815 if test "$cross_compiling" = yes; then :
11816 lt_cv_dlopen_self_static=cross
11818 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11819 lt_status=$lt_dlunknown
11820 cat > conftest.$ac_ext <<_LT_EOF
11821 #line 11821 "configure"
11822 #include "confdefs.h"
11831 # define LT_DLGLOBAL RTLD_GLOBAL
11834 # define LT_DLGLOBAL DL_GLOBAL
11836 # define LT_DLGLOBAL 0
11840 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11841 find out it does not work in some platform. */
11842 #ifndef LT_DLLAZY_OR_NOW
11844 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11847 # define LT_DLLAZY_OR_NOW DL_LAZY
11850 # define LT_DLLAZY_OR_NOW RTLD_NOW
11853 # define LT_DLLAZY_OR_NOW DL_NOW
11855 # define LT_DLLAZY_OR_NOW 0
11862 /* When -fvisbility=hidden is used, assume the code has been annotated
11863 correspondingly for the symbols needed. */
11864 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11865 void fnord () __attribute__((visibility("default")));
11868 void fnord () { int i=42; }
11871 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11872 int status = $lt_dlunknown;
11876 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11879 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11880 else puts (dlerror ());
11882 /* dlclose (self); */
11890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11891 (eval $ac_link) 2>&5
11893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11894 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11895 (./conftest; exit; ) >&5 2>/dev/null
11897 case x$lt_status in
11898 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11899 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11900 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11903 # compilation failed
11904 lt_cv_dlopen_self_static=no
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11912 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11915 CPPFLAGS="$save_CPPFLAGS"
11916 LDFLAGS="$save_LDFLAGS"
11921 case $lt_cv_dlopen_self in
11922 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11923 *) enable_dlopen_self=unknown ;;
11926 case $lt_cv_dlopen_self_static in
11927 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11928 *) enable_dlopen_self_static=unknown ;;
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11951 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11952 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11953 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11954 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11956 $as_echo "yes" >&6; }
11958 # FIXME - insert some real tests, host_os isn't really good enough
11961 if test -n "$STRIP" ; then
11962 striplib="$STRIP -x"
11963 old_striplib="$STRIP -S"
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11965 $as_echo "yes" >&6; }
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11968 $as_echo "no" >&6; }
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11989 # Report which library types will actually be built
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11991 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11993 $as_echo "$can_build_shared" >&6; }
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11996 $as_echo_n "checking whether to build shared libraries... " >&6; }
11997 test "$can_build_shared" = "no" && enable_shared=no
11999 # On AIX, shared libraries and static libraries use the same namespace, and
12000 # are all built from PIC.
12003 test "$enable_shared" = yes && enable_static=no
12004 if test -n "$RANLIB"; then
12005 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12006 postinstall_cmds='$RANLIB $lib'
12011 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12012 test "$enable_shared" = yes && enable_static=no
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12017 $as_echo "$enable_shared" >&6; }
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12020 $as_echo_n "checking whether to build static libraries... " >&6; }
12021 # Make sure either enable_shared or enable_static is yes.
12022 test "$enable_shared" = yes || enable_static=yes
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12024 $as_echo "$enable_static" >&6; }
12031 ac_cpp='$CPP $CPPFLAGS'
12032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12038 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12039 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12040 (test "X$CXX" != "Xg++"))) ; then
12042 ac_cpp='$CXXCPP $CPPFLAGS'
12043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12047 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12048 if test -z "$CXXCPP"; then
12049 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12050 $as_echo_n "(cached) " >&6
12052 # Double quotes because CXXCPP needs to be expanded
12053 for CXXCPP in "$CXX -E" "/lib/cpp"
12055 ac_preproc_ok=false
12056 for ac_cxx_preproc_warn_flag in '' yes
12058 # Use a header file that comes with gcc, so configuring glibc
12059 # with a fresh cross-compiler works.
12060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12061 # <limits.h> exists even on freestanding compilers.
12062 # On the NeXT, cc -E runs the code through the compiler's parser,
12063 # not just through cpp. "Syntax error" is here to catch this case.
12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 /* end confdefs.h. */
12067 # include <limits.h>
12069 # include <assert.h>
12073 if ac_fn_cxx_try_cpp "$LINENO"; then :
12076 # Broken: fails on valid input.
12079 rm -f conftest.err conftest.$ac_ext
12081 # OK, works on sane cases. Now check whether nonexistent headers
12082 # can be detected and how.
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
12085 #include <ac_nonexistent.h>
12087 if ac_fn_cxx_try_cpp "$LINENO"; then :
12088 # Broken: success on invalid input.
12091 # Passes both tests.
12095 rm -f conftest.err conftest.$ac_ext
12098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12099 rm -f conftest.err conftest.$ac_ext
12100 if $ac_preproc_ok; then :
12105 ac_cv_prog_CXXCPP=$CXXCPP
12108 CXXCPP=$ac_cv_prog_CXXCPP
12110 ac_cv_prog_CXXCPP=$CXXCPP
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12113 $as_echo "$CXXCPP" >&6; }
12114 ac_preproc_ok=false
12115 for ac_cxx_preproc_warn_flag in '' yes
12117 # Use a header file that comes with gcc, so configuring glibc
12118 # with a fresh cross-compiler works.
12119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12120 # <limits.h> exists even on freestanding compilers.
12121 # On the NeXT, cc -E runs the code through the compiler's parser,
12122 # not just through cpp. "Syntax error" is here to catch this case.
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12126 # include <limits.h>
12128 # include <assert.h>
12132 if ac_fn_cxx_try_cpp "$LINENO"; then :
12135 # Broken: fails on valid input.
12138 rm -f conftest.err conftest.$ac_ext
12140 # OK, works on sane cases. Now check whether nonexistent headers
12141 # can be detected and how.
12142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h. */
12144 #include <ac_nonexistent.h>
12146 if ac_fn_cxx_try_cpp "$LINENO"; then :
12147 # Broken: success on invalid input.
12150 # Passes both tests.
12154 rm -f conftest.err conftest.$ac_ext
12157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12158 rm -f conftest.err conftest.$ac_ext
12159 if $ac_preproc_ok; then :
12162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12164 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12165 See \`config.log' for more details." "$LINENO" 5; }
12169 ac_cpp='$CPP $CPPFLAGS'
12170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12175 _lt_caught_CXX_error=yes
12179 ac_cpp='$CXXCPP $CPPFLAGS'
12180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12184 archive_cmds_need_lc_CXX=no
12185 allow_undefined_flag_CXX=
12186 always_export_symbols_CXX=no
12187 archive_expsym_cmds_CXX=
12188 compiler_needs_object_CXX=no
12189 export_dynamic_flag_spec_CXX=
12190 hardcode_direct_CXX=no
12191 hardcode_direct_absolute_CXX=no
12192 hardcode_libdir_flag_spec_CXX=
12193 hardcode_libdir_flag_spec_ld_CXX=
12194 hardcode_libdir_separator_CXX=
12195 hardcode_minus_L_CXX=no
12196 hardcode_shlibpath_var_CXX=unsupported
12197 hardcode_automatic_CXX=no
12198 inherit_rpath_CXX=no
12200 module_expsym_cmds_CXX=
12201 link_all_deplibs_CXX=unknown
12202 old_archive_cmds_CXX=$old_archive_cmds
12203 reload_flag_CXX=$reload_flag
12204 reload_cmds_CXX=$reload_cmds
12205 no_undefined_flag_CXX=
12206 whole_archive_flag_spec_CXX=
12207 enable_shared_with_static_runtimes_CXX=no
12209 # Source file extension for C++ test sources.
12212 # Object file extension for compiled C++ test sources.
12216 # No sense in running all these tests if we already determined that
12217 # the CXX compiler isn't working. Some variables (like enable_shared)
12218 # are currently assumed to apply to all compilers on this platform,
12219 # and will be corrupted by setting them based on a non-working compiler.
12220 if test "$_lt_caught_CXX_error" != yes; then
12221 # Code to be used in simple compile tests
12222 lt_simple_compile_test_code="int some_variable = 0;"
12224 # Code to be used in simple link tests
12225 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12227 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12234 # If no C compiler was specified, use CC.
12237 # If no C compiler flags were specified, use CFLAGS.
12238 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12240 # Allow CC to be a program name with arguments.
12244 # save warnings/boilerplate of simple test code
12245 ac_outfile=conftest.$ac_objext
12246 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12247 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12248 _lt_compiler_boilerplate=`cat conftest.err`
12251 ac_outfile=conftest.$ac_objext
12252 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12253 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12254 _lt_linker_boilerplate=`cat conftest.err`
12258 # Allow CC to be a program name with arguments.
12263 lt_save_with_gnu_ld=$with_gnu_ld
12264 lt_save_path_LD=$lt_cv_path_LD
12265 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12266 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12268 $as_unset lt_cv_prog_gnu_ld
12270 if test -n "${lt_cv_path_LDCXX+set}"; then
12271 lt_cv_path_LD=$lt_cv_path_LDCXX
12273 $as_unset lt_cv_path_LD
12275 test -z "${LDCXX+set}" || LD=$LDCXX
12279 for cc_temp in $compiler""; do
12281 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12282 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12287 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12290 if test -n "$compiler"; then
12291 # We don't want -fno-exception when compiling C++ code, so set the
12292 # no_builtin_flag separately
12293 if test "$GXX" = yes; then
12294 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12296 lt_prog_compiler_no_builtin_flag_CXX=
12299 if test "$GXX" = yes; then
12300 # Set up default GNU C++ configuration
12304 # Check whether --with-gnu-ld was given.
12305 if test "${with_gnu_ld+set}" = set; then :
12306 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12312 if test "$GCC" = yes; then
12313 # Check if gcc -print-prog-name=ld gives a path.
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12315 $as_echo_n "checking for ld used by $CC... " >&6; }
12318 # gcc leaves a trailing carriage return which upsets mingw
12319 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12321 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12324 # Accept absolute paths.
12326 re_direlt='/[^/][^/]*/\.\./'
12327 # Canonicalize the pathname of ld
12328 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12329 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12330 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12332 test -z "$LD" && LD="$ac_prog"
12335 # If it fails, then pretend we aren't using GCC.
12339 # If it is relative, then search for the first ld in PATH.
12340 with_gnu_ld=unknown
12343 elif test "$with_gnu_ld" = yes; then
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12345 $as_echo_n "checking for GNU ld... " >&6; }
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12348 $as_echo_n "checking for non-GNU ld... " >&6; }
12350 if test "${lt_cv_path_LD+set}" = set; then :
12351 $as_echo_n "(cached) " >&6
12353 if test -z "$LD"; then
12354 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12355 for ac_dir in $PATH; do
12357 test -z "$ac_dir" && ac_dir=.
12358 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12359 lt_cv_path_LD="$ac_dir/$ac_prog"
12360 # Check to see if the program is GNU ld. I'd rather use --version,
12361 # but apparently some variants of GNU ld only accept -v.
12362 # Break only if it was the GNU/non-GNU ld that we prefer.
12363 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12364 *GNU* | *'with BFD'*)
12365 test "$with_gnu_ld" != no && break
12368 test "$with_gnu_ld" != yes && break
12375 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12379 LD="$lt_cv_path_LD"
12380 if test -n "$LD"; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12382 $as_echo "$LD" >&6; }
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385 $as_echo "no" >&6; }
12387 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12389 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12390 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12391 $as_echo_n "(cached) " >&6
12393 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12394 case `$LD -v 2>&1 </dev/null` in
12395 *GNU* | *'with BFD'*)
12396 lt_cv_prog_gnu_ld=yes
12399 lt_cv_prog_gnu_ld=no
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12404 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12405 with_gnu_ld=$lt_cv_prog_gnu_ld
12413 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12414 # archiving commands below assume that GNU ld is being used.
12415 if test "$with_gnu_ld" = yes; then
12416 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12417 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12419 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12420 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12422 # If archive_cmds runs LD, not CC, wlarc should be empty
12423 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12424 # investigate it a little bit more. (MM)
12427 # ancient GNU ld didn't support --whole-archive et. al.
12428 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12429 $GREP 'no-whole-archive' > /dev/null; then
12430 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12432 whole_archive_flag_spec_CXX=
12438 # A generic and very simple default shared library creation
12439 # command for GNU C++ for the case where it uses the native
12440 # linker, instead of GNU ld. If possible, this setting should
12441 # overridden to take advantage of the native linker features on
12442 # the platform it is being used on.
12443 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12446 # Commands to make compiler produce verbose output that lists
12447 # what "hidden" libraries, object files and flags are used when
12448 # linking a shared library.
12449 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12457 # PORTME: fill in a description of your system's C++ link characteristics
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12459 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12463 # FIXME: insert proper C++ library support
12467 if test "$host_cpu" = ia64; then
12468 # On IA64, the linker does run time linking by default, so we don't
12469 # have to do anything special.
12470 aix_use_runtimelinking=no
12471 exp_sym_flag='-Bexport'
12474 aix_use_runtimelinking=no
12476 # Test if we are trying to use run time linking or normal
12477 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12478 # need to do runtime linking.
12479 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12480 for ld_flag in $LDFLAGS; do
12483 aix_use_runtimelinking=yes
12491 exp_sym_flag='-bexport'
12492 no_entry_flag='-bnoentry'
12495 # When large executables or shared objects are built, AIX ld can
12496 # have problems creating the table of contents. If linking a library
12497 # or program results in "error TOC overflow" add -mminimal-toc to
12498 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12499 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12501 archive_cmds_CXX=''
12502 hardcode_direct_CXX=yes
12503 hardcode_direct_absolute_CXX=yes
12504 hardcode_libdir_separator_CXX=':'
12505 link_all_deplibs_CXX=yes
12506 file_list_spec_CXX='${wl}-f,'
12508 if test "$GXX" = yes; then
12509 case $host_os in aix4.[012]|aix4.[012].*)
12510 # We only want to do this on AIX 4.2 and lower, the check
12511 # below for broken collect2 doesn't work under 4.3+
12512 collect2name=`${CC} -print-prog-name=collect2`
12513 if test -f "$collect2name" &&
12514 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12516 # We have reworked collect2
12519 # We have old collect2
12520 hardcode_direct_CXX=unsupported
12521 # It fails to find uninstalled libraries when the uninstalled
12522 # path is not listed in the libpath. Setting hardcode_minus_L
12523 # to unsupported forces relinking
12524 hardcode_minus_L_CXX=yes
12525 hardcode_libdir_flag_spec_CXX='-L$libdir'
12526 hardcode_libdir_separator_CXX=
12529 shared_flag='-shared'
12530 if test "$aix_use_runtimelinking" = yes; then
12531 shared_flag="$shared_flag "'${wl}-G'
12535 if test "$host_cpu" = ia64; then
12536 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12537 # chokes on -Wl,-G. The following line is correct:
12540 if test "$aix_use_runtimelinking" = yes; then
12541 shared_flag='${wl}-G'
12543 shared_flag='${wl}-bM:SRE'
12548 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12549 # It seems that -bexpall does not export symbols beginning with
12550 # underscore (_), so it is better to generate a list of symbols to
12552 always_export_symbols_CXX=yes
12553 if test "$aix_use_runtimelinking" = yes; then
12554 # Warning - without using the other runtime loading flags (-brtl),
12555 # -berok will link without error, but may produce a broken library.
12556 allow_undefined_flag_CXX='-berok'
12557 # Determine the default libpath from the value encoded in an empty
12559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h. */
12570 if ac_fn_cxx_try_link "$LINENO"; then :
12572 lt_aix_libpath_sed='
12573 /Import File Strings/,/^$/ {
12579 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12580 # Check for a 64-bit object if we didn't find anything.
12581 if test -z "$aix_libpath"; then
12582 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12585 rm -f core conftest.err conftest.$ac_objext \
12586 conftest$ac_exeext conftest.$ac_ext
12587 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12589 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12591 archive_expsym_cmds_CXX='$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"
12593 if test "$host_cpu" = ia64; then
12594 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12595 allow_undefined_flag_CXX="-z nodefs"
12596 archive_expsym_cmds_CXX="\$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"
12598 # Determine the default libpath from the value encoded in an
12599 # empty executable.
12600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12601 /* end confdefs.h. */
12611 if ac_fn_cxx_try_link "$LINENO"; then :
12613 lt_aix_libpath_sed='
12614 /Import File Strings/,/^$/ {
12620 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12621 # Check for a 64-bit object if we didn't find anything.
12622 if test -z "$aix_libpath"; then
12623 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12626 rm -f core conftest.err conftest.$ac_objext \
12627 conftest$ac_exeext conftest.$ac_ext
12628 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12630 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12631 # Warning - without using the other run time loading flags,
12632 # -berok will link without error, but may produce a broken library.
12633 no_undefined_flag_CXX=' ${wl}-bernotok'
12634 allow_undefined_flag_CXX=' ${wl}-berok'
12635 if test "$with_gnu_ld" = yes; then
12636 # We only use this code for GNU lds that support --whole-archive.
12637 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12639 # Exported symbols can be pulled into shared objects from archives
12640 whole_archive_flag_spec_CXX='$convenience'
12642 archive_cmds_need_lc_CXX=yes
12643 # This is similar to how AIX traditionally builds its shared
12645 archive_expsym_cmds_CXX="\$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'
12651 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12652 allow_undefined_flag_CXX=unsupported
12653 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12654 # support --undefined. This deserves some investigation. FIXME
12655 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12662 case $cc_basename in
12664 # FIXME: insert proper C++ library support
12670 cygwin* | mingw* | pw32* | cegcc*)
12671 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12672 # as there is no search path for DLLs.
12673 hardcode_libdir_flag_spec_CXX='-L$libdir'
12674 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12675 allow_undefined_flag_CXX=unsupported
12676 always_export_symbols_CXX=no
12677 enable_shared_with_static_runtimes_CXX=yes
12679 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12680 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12681 # If the export-symbols file already is a .def file (1st line
12682 # is EXPORTS), use it as is; otherwise, prepend...
12683 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12684 cp $export_symbols $output_objdir/$soname.def;
12686 echo EXPORTS > $output_objdir/$soname.def;
12687 cat $export_symbols >> $output_objdir/$soname.def;
12689 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12694 darwin* | rhapsody*)
12697 archive_cmds_need_lc_CXX=no
12698 hardcode_direct_CXX=no
12699 hardcode_automatic_CXX=yes
12700 hardcode_shlibpath_var_CXX=unsupported
12701 if test "$lt_cv_ld_force_load" = "yes"; then
12702 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12704 whole_archive_flag_spec_CXX=''
12706 link_all_deplibs_CXX=yes
12707 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12708 case $cc_basename in
12709 ifort*) _lt_dar_can_shared=yes ;;
12710 *) _lt_dar_can_shared=$GCC ;;
12712 if test "$_lt_dar_can_shared" = "yes"; then
12713 output_verbose_link_cmd=func_echo_all
12714 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12715 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12716 archive_expsym_cmds_CXX="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}"
12717 module_expsym_cmds_CXX="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}"
12718 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12719 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12720 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12730 case $cc_basename in
12732 # FIXME: insert proper C++ library support
12736 # Green Hills C++ Compiler
12737 # FIXME: insert proper C++ library support
12741 # FIXME: insert proper C++ library support
12748 # C++ shared libraries reported to be fairly broken before
12754 archive_cmds_need_lc_CXX=no
12757 freebsd* | dragonfly*)
12758 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12767 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12768 link_all_deplibs_CXX=yes
12772 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12773 hardcode_libdir_separator_CXX=:
12774 export_dynamic_flag_spec_CXX='${wl}-E'
12775 hardcode_direct_CXX=yes
12776 hardcode_minus_L_CXX=yes # Not in the search PATH,
12777 # but as the default
12778 # location of the library.
12780 case $cc_basename in
12782 # FIXME: insert proper C++ library support
12786 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12787 # Commands to make compiler produce verbose output that lists
12788 # what "hidden" libraries, object files and flags are used when
12789 # linking a shared library.
12791 # There doesn't appear to be a way to prevent this compiler from
12792 # explicitly linking system object files so we need to strip them
12793 # from the output so that they don't get included in the library
12795 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12798 if test "$GXX" = yes; then
12799 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12801 # FIXME: insert proper C++ library support
12809 if test $with_gnu_ld = no; then
12810 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12811 hardcode_libdir_separator_CXX=:
12817 export_dynamic_flag_spec_CXX='${wl}-E'
12823 hardcode_direct_CXX=no
12824 hardcode_shlibpath_var_CXX=no
12827 hardcode_direct_CXX=yes
12828 hardcode_direct_absolute_CXX=yes
12829 hardcode_minus_L_CXX=yes # Not in the search PATH,
12830 # but as the default
12831 # location of the library.
12835 case $cc_basename in
12837 # FIXME: insert proper C++ library support
12843 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12846 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12849 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12852 # Commands to make compiler produce verbose output that lists
12853 # what "hidden" libraries, object files and flags are used when
12854 # linking a shared library.
12856 # There doesn't appear to be a way to prevent this compiler from
12857 # explicitly linking system object files so we need to strip them
12858 # from the output so that they don't get included in the library
12860 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12863 if test "$GXX" = yes; then
12864 if test $with_gnu_ld = no; then
12867 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12870 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12873 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12878 # FIXME: insert proper C++ library support
12886 hardcode_direct_CXX=no
12887 hardcode_shlibpath_var_CXX=no
12888 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12889 export_dynamic_flag_spec_CXX='${wl}-E'
12890 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12891 # Instead, shared libraries are loaded at an image base (0x10000000 by
12892 # default) and relocated if they conflict, which is a slow very memory
12893 # consuming and fragmenting process. To avoid this, we pick a random,
12894 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12895 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12896 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12897 archive_expsym_cmds_CXX='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'
12900 case $cc_basename in
12903 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12905 # Archives containing C++ object files must be created using
12906 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12907 # necessary to make sure instantiated templates are included
12909 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12912 if test "$GXX" = yes; then
12913 if test "$with_gnu_ld" = no; then
12914 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12916 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12919 link_all_deplibs_CXX=yes
12922 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12923 hardcode_libdir_separator_CXX=:
12924 inherit_rpath_CXX=yes
12927 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12928 case $cc_basename in
12930 # Kuck and Associates, Inc. (KAI) C++ Compiler
12932 # KCC will only create a shared library if the output file
12933 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12934 # to its proper name (with version) after linking.
12935 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12936 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12937 # Commands to make compiler produce verbose output that lists
12938 # what "hidden" libraries, object files and flags are used when
12939 # linking a shared library.
12941 # There doesn't appear to be a way to prevent this compiler from
12942 # explicitly linking system object files so we need to strip them
12943 # from the output so that they don't get included in the library
12945 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12947 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12948 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12950 # Archives containing C++ object files must be created using
12951 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12952 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12957 # version 8.0 and above of icpc choke on multiply defined symbols
12958 # if we add $predep_objects and $postdep_objects, however 7.1 and
12959 # earlier do not add the objects themselves.
12960 case `$CC -V 2>&1` in
12962 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12963 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12965 *) # Version 8.0 or newer
12968 ia64*) tmp_idyn=' -i_dynamic';;
12970 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12971 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12974 archive_cmds_need_lc_CXX=no
12975 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12976 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12977 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12980 # Portland Group C++ compiler
12982 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12983 prelink_cmds_CXX='tpldir=Template.dir~
12985 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12986 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12987 old_archive_cmds_CXX='tpldir=Template.dir~
12989 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12990 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12992 archive_cmds_CXX='tpldir=Template.dir~
12994 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12995 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12996 archive_expsym_cmds_CXX='tpldir=Template.dir~
12998 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12999 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13001 *) # Version 6 and above use weak symbols
13002 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13003 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13007 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13008 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13009 whole_archive_flag_spec_CXX='${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'
13013 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13014 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13016 runpath_var=LD_RUN_PATH
13017 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13018 hardcode_libdir_separator_CXX=:
13020 # Commands to make compiler produce verbose output that lists
13021 # what "hidden" libraries, object files and flags are used when
13022 # linking a shared library.
13024 # There doesn't appear to be a way to prevent this compiler from
13025 # explicitly linking system object files so we need to strip them
13026 # from the output so that they don't get included in the library
13028 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13030 xl* | mpixl* | bgxl*)
13031 # IBM XL 8.0 on PPC, with GNU ld
13032 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13033 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13034 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13035 if test "x$supports_anon_versioning" = xyes; then
13036 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13037 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13038 echo "local: *; };" >> $output_objdir/$libname.ver~
13039 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13043 case `$CC -V 2>&1 | sed 5q` in
13046 no_undefined_flag_CXX=' -zdefs'
13047 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13048 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13049 hardcode_libdir_flag_spec_CXX='-R$libdir'
13050 whole_archive_flag_spec_CXX='${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'
13051 compiler_needs_object_CXX=yes
13053 # Not sure whether something based on
13054 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13056 output_verbose_link_cmd='func_echo_all'
13058 # Archives containing C++ object files must be created using
13059 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13060 # necessary to make sure instantiated templates are included
13062 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13070 # FIXME: insert proper C++ library support
13075 # FIXME: insert proper C++ library support
13080 case $cc_basename in
13082 # FIXME: insert proper C++ library support
13086 # FIXME: insert proper C++ library support
13093 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13094 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13096 hardcode_libdir_flag_spec_CXX='-R$libdir'
13097 hardcode_direct_CXX=yes
13098 hardcode_shlibpath_var_CXX=no
13100 # Workaround some broken pre-1.5 toolchains
13101 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13109 # C++ shared libraries are fairly broken
13114 if test -f /usr/libexec/ld.so; then
13115 hardcode_direct_CXX=yes
13116 hardcode_shlibpath_var_CXX=no
13117 hardcode_direct_absolute_CXX=yes
13118 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13119 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13120 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13121 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13122 export_dynamic_flag_spec_CXX='${wl}-E'
13123 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13125 output_verbose_link_cmd=func_echo_all
13131 osf3* | osf4* | osf5*)
13132 case $cc_basename in
13134 # Kuck and Associates, Inc. (KAI) C++ Compiler
13136 # KCC will only create a shared library if the output file
13137 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13138 # to its proper name (with version) after linking.
13139 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13141 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13142 hardcode_libdir_separator_CXX=:
13144 # Archives containing C++ object files must be created using
13145 # the KAI C++ compiler.
13147 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13148 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13152 # Rational C++ 2.4.1
13153 # FIXME: insert proper C++ library support
13159 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13160 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13161 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13164 allow_undefined_flag_CXX=' -expect_unresolved \*'
13165 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13166 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13167 echo "-hidden">> $lib.exp~
13168 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13170 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13174 hardcode_libdir_separator_CXX=:
13176 # Commands to make compiler produce verbose output that lists
13177 # what "hidden" libraries, object files and flags are used when
13178 # linking a shared library.
13180 # There doesn't appear to be a way to prevent this compiler from
13181 # explicitly linking system object files so we need to strip them
13182 # from the output so that they don't get included in the library
13184 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13187 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13188 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13191 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13194 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13198 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13199 hardcode_libdir_separator_CXX=:
13201 # Commands to make compiler produce verbose output that lists
13202 # what "hidden" libraries, object files and flags are used when
13203 # linking a shared library.
13204 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13207 # FIXME: insert proper C++ library support
13215 # FIXME: insert proper C++ library support
13220 case $cc_basename in
13223 # FIXME: insert proper C++ library support
13228 # FIXME: insert proper C++ library support
13232 # FIXME: insert proper C++ library support
13239 case $cc_basename in
13241 # Sun C++ 4.2, 5.x and Centerline C++
13242 archive_cmds_need_lc_CXX=yes
13243 no_undefined_flag_CXX=' -zdefs'
13244 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13245 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13246 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13248 hardcode_libdir_flag_spec_CXX='-R$libdir'
13249 hardcode_shlibpath_var_CXX=no
13251 solaris2.[0-5] | solaris2.[0-5].*) ;;
13253 # The compiler driver will combine and reorder linker options,
13254 # but understands `-z linker_flag'.
13255 # Supported since Solaris 2.6 (maybe 2.5.1?)
13256 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13259 link_all_deplibs_CXX=yes
13261 output_verbose_link_cmd='func_echo_all'
13263 # Archives containing C++ object files must be created using
13264 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13265 # necessary to make sure instantiated templates are included
13267 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13270 # Green Hills C++ Compiler
13271 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13273 # The C++ compiler must be used to create the archive.
13274 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13277 # GNU C++ compiler with Solaris linker
13278 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13279 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13280 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13281 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13282 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13283 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13285 # Commands to make compiler produce verbose output that lists
13286 # what "hidden" libraries, object files and flags are used when
13287 # linking a shared library.
13288 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13290 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13292 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13293 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13294 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13296 # Commands to make compiler produce verbose output that lists
13297 # what "hidden" libraries, object files and flags are used when
13298 # linking a shared library.
13299 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13302 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13304 solaris2.[0-5] | solaris2.[0-5].*) ;;
13306 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13314 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13315 no_undefined_flag_CXX='${wl}-z,text'
13316 archive_cmds_need_lc_CXX=no
13317 hardcode_shlibpath_var_CXX=no
13318 runpath_var='LD_RUN_PATH'
13320 case $cc_basename in
13322 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13323 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13326 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13327 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13332 sysv5* | sco3.2v5* | sco5v6*)
13333 # Note: We can NOT use -z defs as we might desire, because we do not
13334 # link with -lc, and that would cause any symbols used from libc to
13335 # always be unresolved, which means just about no library would
13336 # ever link correctly. If we're not using GNU ld we use -z text
13337 # though, which does catch some bad symbols but isn't as heavy-handed
13339 no_undefined_flag_CXX='${wl}-z,text'
13340 allow_undefined_flag_CXX='${wl}-z,nodefs'
13341 archive_cmds_need_lc_CXX=no
13342 hardcode_shlibpath_var_CXX=no
13343 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13344 hardcode_libdir_separator_CXX=':'
13345 link_all_deplibs_CXX=yes
13346 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13347 runpath_var='LD_RUN_PATH'
13349 case $cc_basename in
13351 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13352 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13353 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13354 '"$old_archive_cmds_CXX"
13355 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13356 '"$reload_cmds_CXX"
13359 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13360 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13366 case $cc_basename in
13368 # NonStop-UX NCC 3.20
13369 # FIXME: insert proper C++ library support
13373 # FIXME: insert proper C++ library support
13380 # FIXME: insert proper C++ library support
13385 # FIXME: insert proper C++ library support
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13391 $as_echo "$ld_shlibs_CXX" >&6; }
13392 test "$ld_shlibs_CXX" = no && can_build_shared=no
13398 ## There is no encapsulation within the following macros, do not change
13399 ## the running order or otherwise move them around unless you know exactly
13400 ## what you are doing...
13401 # Dependencies to place before and after the object being linked:
13402 predep_objects_CXX=
13403 postdep_objects_CXX=
13406 compiler_lib_search_path_CXX=
13408 cat > conftest.$ac_ext <<_LT_EOF
13412 Foo (void) { a = 0; }
13418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13419 (eval $ac_compile) 2>&5
13421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13422 test $ac_status = 0; }; then
13423 # Parse the compiler output and extract the necessary
13424 # objects, libraries and library flags.
13426 # Sentinel used to keep track of whether or not we are before
13427 # the conftest object file.
13428 pre_test_object_deps_done=no
13430 for p in `eval "$output_verbose_link_cmd"`; do
13434 # Some compilers place space between "-{L,R}" and the path.
13435 # Remove the space.
13436 if test $p = "-L" ||
13437 test $p = "-R"; then
13444 if test "$pre_test_object_deps_done" = no; then
13447 # Internal compiler library paths should come after those
13448 # provided the user. The postdeps already come after the
13449 # user supplied libs so there is no need to process them.
13450 if test -z "$compiler_lib_search_path_CXX"; then
13451 compiler_lib_search_path_CXX="${prev}${p}"
13453 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13456 # The "-l" case would never come before the object being
13457 # linked, so don't bother handling this case.
13460 if test -z "$postdeps_CXX"; then
13461 postdeps_CXX="${prev}${p}"
13463 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13469 # This assumes that the test object file only shows up
13470 # once in the compiler output.
13471 if test "$p" = "conftest.$objext"; then
13472 pre_test_object_deps_done=yes
13476 if test "$pre_test_object_deps_done" = no; then
13477 if test -z "$predep_objects_CXX"; then
13478 predep_objects_CXX="$p"
13480 predep_objects_CXX="$predep_objects_CXX $p"
13483 if test -z "$postdep_objects_CXX"; then
13484 postdep_objects_CXX="$p"
13486 postdep_objects_CXX="$postdep_objects_CXX $p"
13491 *) ;; # Ignore the rest.
13499 echo "libtool.m4: error: problem compiling CXX test program"
13502 $RM -f confest.$objext
13504 # PORTME: override above test on systems where it is broken
13507 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13508 # hack all around it, let's just trust "g++" to DTRT.
13509 predep_objects_CXX=
13510 postdep_objects_CXX=
13515 case `$CC -V 2>&1 | sed 5q` in
13519 # The more standards-conforming stlport4 library is
13520 # incompatible with the Cstd library. Avoid specifying
13521 # it if it's in CXXFLAGS. Ignore libCrun as
13522 # -library=stlport4 depends on it.
13523 case " $CXX $CXXFLAGS " in
13524 *" -library=stlport4 "*)
13525 solaris_use_stlport4=yes
13529 if test "$solaris_use_stlport4" != yes; then
13530 postdeps_CXX='-library=Cstd -library=Crun'
13537 case $cc_basename in
13539 # The more standards-conforming stlport4 library is
13540 # incompatible with the Cstd library. Avoid specifying
13541 # it if it's in CXXFLAGS. Ignore libCrun as
13542 # -library=stlport4 depends on it.
13543 case " $CXX $CXXFLAGS " in
13544 *" -library=stlport4 "*)
13545 solaris_use_stlport4=yes
13549 # Adding this requires a known-good setup of shared libraries for
13550 # Sun compiler versions before 5.6, else PIC objects from an old
13551 # archive will be linked into the output, leading to subtle bugs.
13552 if test "$solaris_use_stlport4" != yes; then
13553 postdeps_CXX='-library=Cstd -library=Crun'
13561 case " $postdeps_CXX " in
13562 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13564 compiler_lib_search_dirs_CXX=
13565 if test -n "${compiler_lib_search_path_CXX}"; then
13566 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13599 lt_prog_compiler_wl_CXX=
13600 lt_prog_compiler_pic_CXX=
13601 lt_prog_compiler_static_CXX=
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13604 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13606 # C++ specific cases for pic, static, wl, etc.
13607 if test "$GXX" = yes; then
13608 lt_prog_compiler_wl_CXX='-Wl,'
13609 lt_prog_compiler_static_CXX='-static'
13613 # All AIX code is PIC.
13614 if test "$host_cpu" = ia64; then
13615 # AIX 5 now supports IA64 processor
13616 lt_prog_compiler_static_CXX='-Bstatic'
13618 lt_prog_compiler_pic_CXX='-fPIC'
13624 # see comment about AmigaOS4 .so support
13625 lt_prog_compiler_pic_CXX='-fPIC'
13628 # FIXME: we need at least 68020 code to build shared libraries, but
13629 # adding the `-m68020' flag to GCC prevents building anything better,
13631 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13636 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13637 # PIC is the default for these OSes.
13639 mingw* | cygwin* | os2* | pw32* | cegcc*)
13640 # This hack is so that the source file can tell whether it is being
13641 # built for inclusion in a dll (and should export symbols for example).
13642 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13643 # (--disable-auto-import) libraries
13644 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13646 darwin* | rhapsody*)
13647 # PIC is the default on this platform
13648 # Common symbols not allowed in MH_DYLIB files
13649 lt_prog_compiler_pic_CXX='-fno-common'
13652 # DJGPP does not support shared libraries at all
13653 lt_prog_compiler_pic_CXX=
13656 # PIC is the default for Haiku.
13657 # The "-static" flag exists, but is broken.
13658 lt_prog_compiler_static_CXX=
13661 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13662 # Instead, we relocate shared libraries at runtime.
13665 if test -d /usr/nec; then
13666 lt_prog_compiler_pic_CXX=-Kconform_pic
13670 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13671 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13672 # sets the default TLS model and affects inlining.
13677 lt_prog_compiler_pic_CXX='-fPIC'
13682 # QNX uses GNU C++, but need to define -shared option too, otherwise
13683 # it will coredump.
13684 lt_prog_compiler_pic_CXX='-fPIC -shared'
13687 lt_prog_compiler_pic_CXX='-fPIC'
13693 # All AIX code is PIC.
13694 if test "$host_cpu" = ia64; then
13695 # AIX 5 now supports IA64 processor
13696 lt_prog_compiler_static_CXX='-Bstatic'
13698 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13702 case $cc_basename in
13704 # Green Hills C++ Compiler
13705 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13710 case $cc_basename in
13712 lt_prog_compiler_pic_CXX='-KPIC'
13715 # Green Hills C++ Compiler
13716 lt_prog_compiler_pic_CXX='-pic'
13722 freebsd* | dragonfly*)
13723 # FreeBSD uses GNU C++
13725 hpux9* | hpux10* | hpux11*)
13726 case $cc_basename in
13728 lt_prog_compiler_wl_CXX='-Wl,'
13729 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13730 if test "$host_cpu" != ia64; then
13731 lt_prog_compiler_pic_CXX='+Z'
13735 lt_prog_compiler_wl_CXX='-Wl,'
13736 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13742 lt_prog_compiler_pic_CXX='+Z'
13751 # This is c89, which is MS Visual C++ (no shared libs)
13752 # Anyone wants to do a port?
13754 irix5* | irix6* | nonstopux*)
13755 case $cc_basename in
13757 lt_prog_compiler_wl_CXX='-Wl,'
13758 lt_prog_compiler_static_CXX='-non_shared'
13759 # CC pic flag -KPIC is the default.
13765 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13766 case $cc_basename in
13769 lt_prog_compiler_wl_CXX='--backend -Wl,'
13770 lt_prog_compiler_pic_CXX='-fPIC'
13773 # old Intel C++ for x86_64 which still supported -KPIC.
13774 lt_prog_compiler_wl_CXX='-Wl,'
13775 lt_prog_compiler_pic_CXX='-KPIC'
13776 lt_prog_compiler_static_CXX='-static'
13779 # Intel C++, used to be incompatible with GCC.
13780 # ICC 10 doesn't accept -KPIC any more.
13781 lt_prog_compiler_wl_CXX='-Wl,'
13782 lt_prog_compiler_pic_CXX='-fPIC'
13783 lt_prog_compiler_static_CXX='-static'
13786 # Portland Group C++ compiler
13787 lt_prog_compiler_wl_CXX='-Wl,'
13788 lt_prog_compiler_pic_CXX='-fpic'
13789 lt_prog_compiler_static_CXX='-Bstatic'
13793 # Make sure the PIC flag is empty. It appears that all Alpha
13794 # Linux and Compaq Tru64 Unix objects are PIC.
13795 lt_prog_compiler_pic_CXX=
13796 lt_prog_compiler_static_CXX='-non_shared'
13798 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13799 # IBM XL 8.0, 9.0 on PPC and BlueGene
13800 lt_prog_compiler_wl_CXX='-Wl,'
13801 lt_prog_compiler_pic_CXX='-qpic'
13802 lt_prog_compiler_static_CXX='-qstaticlink'
13805 case `$CC -V 2>&1 | sed 5q` in
13808 lt_prog_compiler_pic_CXX='-KPIC'
13809 lt_prog_compiler_static_CXX='-Bstatic'
13810 lt_prog_compiler_wl_CXX='-Qoption ld '
13821 case $cc_basename in
13823 lt_prog_compiler_pic_CXX='-W c,exportall'
13832 # QNX uses GNU C++, but need to define -shared option too, otherwise
13833 # it will coredump.
13834 lt_prog_compiler_pic_CXX='-fPIC -shared'
13836 osf3* | osf4* | osf5*)
13837 case $cc_basename in
13839 lt_prog_compiler_wl_CXX='--backend -Wl,'
13842 # Rational C++ 2.4.1
13843 lt_prog_compiler_pic_CXX='-pic'
13846 # Digital/Compaq C++
13847 lt_prog_compiler_wl_CXX='-Wl,'
13848 # Make sure the PIC flag is empty. It appears that all Alpha
13849 # Linux and Compaq Tru64 Unix objects are PIC.
13850 lt_prog_compiler_pic_CXX=
13851 lt_prog_compiler_static_CXX='-non_shared'
13860 case $cc_basename in
13862 # Sun C++ 4.2, 5.x and Centerline C++
13863 lt_prog_compiler_pic_CXX='-KPIC'
13864 lt_prog_compiler_static_CXX='-Bstatic'
13865 lt_prog_compiler_wl_CXX='-Qoption ld '
13868 # Green Hills C++ Compiler
13869 lt_prog_compiler_pic_CXX='-PIC'
13876 case $cc_basename in
13879 lt_prog_compiler_pic_CXX='-pic'
13880 lt_prog_compiler_static_CXX='-Bstatic'
13884 lt_prog_compiler_pic_CXX='-pic'
13890 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13891 case $cc_basename in
13893 lt_prog_compiler_wl_CXX='-Wl,'
13894 lt_prog_compiler_pic_CXX='-KPIC'
13895 lt_prog_compiler_static_CXX='-Bstatic'
13900 case $cc_basename in
13902 # NonStop-UX NCC 3.20
13903 lt_prog_compiler_pic_CXX='-KPIC'
13912 lt_prog_compiler_can_build_shared_CXX=no
13918 # For platforms which do not support PIC, -DPIC is meaningless:
13920 lt_prog_compiler_pic_CXX=
13923 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13927 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13932 # Check to make sure the PIC flag actually works.
13934 if test -n "$lt_prog_compiler_pic_CXX"; then
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13936 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13937 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13938 $as_echo_n "(cached) " >&6
13940 lt_cv_prog_compiler_pic_works_CXX=no
13941 ac_outfile=conftest.$ac_objext
13942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13943 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13944 # Insert the option either (1) after the last *FLAGS variable, or
13945 # (2) before a word containing "conftest.", or (3) at the end.
13946 # Note that $ac_compile itself does not contain backslashes and begins
13947 # with a dollar sign (not a hyphen), so the echo should work correctly.
13948 # The option is referenced via a variable to avoid confusing sed.
13949 lt_compile=`echo "$ac_compile" | $SED \
13950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13952 -e 's:$: $lt_compiler_flag:'`
13953 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13954 (eval "$lt_compile" 2>conftest.err)
13956 cat conftest.err >&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 if (exit $ac_status) && test -s "$ac_outfile"; then
13959 # The compiler can only warn and ignore the option if not recognized
13960 # So say no if there are warnings other than the usual output.
13961 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13963 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13964 lt_cv_prog_compiler_pic_works_CXX=yes
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13971 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13973 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13974 case $lt_prog_compiler_pic_CXX in
13976 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13979 lt_prog_compiler_pic_CXX=
13980 lt_prog_compiler_can_build_shared_CXX=no
13988 # Check to make sure the static flag actually works.
13990 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13992 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13993 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13994 $as_echo_n "(cached) " >&6
13996 lt_cv_prog_compiler_static_works_CXX=no
13997 save_LDFLAGS="$LDFLAGS"
13998 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13999 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14000 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14001 # The linker can only warn and ignore the option if not recognized
14002 # So say no if there are warnings
14003 if test -s conftest.err; then
14004 # Append any errors to the config.log.
14005 cat conftest.err 1>&5
14006 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14007 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14008 if diff conftest.exp conftest.er2 >/dev/null; then
14009 lt_cv_prog_compiler_static_works_CXX=yes
14012 lt_cv_prog_compiler_static_works_CXX=yes
14016 LDFLAGS="$save_LDFLAGS"
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14020 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14022 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14025 lt_prog_compiler_static_CXX=
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14032 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14033 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14034 $as_echo_n "(cached) " >&6
14036 lt_cv_prog_compiler_c_o_CXX=no
14037 $RM -r conftest 2>/dev/null
14041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14043 lt_compiler_flag="-o out/conftest2.$ac_objext"
14044 # Insert the option either (1) after the last *FLAGS variable, or
14045 # (2) before a word containing "conftest.", or (3) at the end.
14046 # Note that $ac_compile itself does not contain backslashes and begins
14047 # with a dollar sign (not a hyphen), so the echo should work correctly.
14048 lt_compile=`echo "$ac_compile" | $SED \
14049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14051 -e 's:$: $lt_compiler_flag:'`
14052 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14053 (eval "$lt_compile" 2>out/conftest.err)
14055 cat out/conftest.err >&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14059 # The compiler can only warn and ignore the option if not recognized
14060 # So say no if there are warnings
14061 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14062 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14063 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14064 lt_cv_prog_compiler_c_o_CXX=yes
14069 # SGI C++ compiler will create directory out/ii_files/ for
14070 # template instantiation
14071 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14072 $RM out/* && rmdir out
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14079 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14084 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14085 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14086 $as_echo_n "(cached) " >&6
14088 lt_cv_prog_compiler_c_o_CXX=no
14089 $RM -r conftest 2>/dev/null
14093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14095 lt_compiler_flag="-o out/conftest2.$ac_objext"
14096 # Insert the option either (1) after the last *FLAGS variable, or
14097 # (2) before a word containing "conftest.", or (3) at the end.
14098 # Note that $ac_compile itself does not contain backslashes and begins
14099 # with a dollar sign (not a hyphen), so the echo should work correctly.
14100 lt_compile=`echo "$ac_compile" | $SED \
14101 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14103 -e 's:$: $lt_compiler_flag:'`
14104 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14105 (eval "$lt_compile" 2>out/conftest.err)
14107 cat out/conftest.err >&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14111 # The compiler can only warn and ignore the option if not recognized
14112 # So say no if there are warnings
14113 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14114 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14115 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14116 lt_cv_prog_compiler_c_o_CXX=yes
14121 # SGI C++ compiler will create directory out/ii_files/ for
14122 # template instantiation
14123 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14124 $RM out/* && rmdir out
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14131 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14136 hard_links="nottested"
14137 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14138 # do not overwrite the value of need_locks provided by the user
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14140 $as_echo_n "checking if we can lock with hard links... " >&6; }
14143 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14145 ln conftest.a conftest.b 2>&5 || hard_links=no
14146 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14148 $as_echo "$hard_links" >&6; }
14149 if test "$hard_links" = no; then
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14151 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14161 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14163 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14166 # If we're using GNU nm, then we don't want the "-C" option.
14167 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14168 # Also, AIX nm treats weak defined symbols like other global defined
14169 # symbols, whereas GNU nm marks them as "W".
14170 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14171 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14173 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14177 export_symbols_cmds_CXX="$ltdll_cmds"
14179 cygwin* | mingw* | cegcc*)
14180 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14183 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14186 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14189 $as_echo "$ld_shlibs_CXX" >&6; }
14190 test "$ld_shlibs_CXX" = no && can_build_shared=no
14192 with_gnu_ld_CXX=$with_gnu_ld
14200 # Do we need to explicitly link libc?
14202 case "x$archive_cmds_need_lc_CXX" in
14204 # Assume -lc should be added
14205 archive_cmds_need_lc_CXX=yes
14207 if test "$enable_shared" = yes && test "$GCC" = yes; then
14208 case $archive_cmds_CXX in
14210 # FIXME: we may have to deal with multi-command sequences.
14213 # Test whether the compiler implicitly links with -lc since on some
14214 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14215 # to ld, don't add -lc before -lgcc.
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14217 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14218 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14219 $as_echo_n "(cached) " >&6
14222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14225 (eval $ac_compile) 2>&5
14227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14228 test $ac_status = 0; } 2>conftest.err; then
14231 libobjs=conftest.$ac_objext
14233 wl=$lt_prog_compiler_wl_CXX
14234 pic_flag=$lt_prog_compiler_pic_CXX
14240 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14241 allow_undefined_flag_CXX=
14242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14243 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14246 test $ac_status = 0; }
14248 lt_cv_archive_cmds_need_lc_CXX=no
14250 lt_cv_archive_cmds_need_lc_CXX=yes
14252 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14254 cat conftest.err 1>&5
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14260 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14261 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14332 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14334 library_names_spec=
14335 libname_spec='lib$name'
14339 postuninstall_cmds=
14343 shlibpath_overrides_runpath=unknown
14345 dynamic_linker="$host_os ld.so"
14346 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14347 need_lib_prefix=unknown
14348 hardcode_into_libs=no
14350 # when you set need_version to no, make sure it does not cause -set_version
14351 # flags to be left without arguments
14352 need_version=unknown
14357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14358 shlibpath_var=LIBPATH
14360 # AIX 3 has no versioning support, so we append a major version to the name.
14361 soname_spec='${libname}${release}${shared_ext}$major'
14368 hardcode_into_libs=yes
14369 if test "$host_cpu" = ia64; then
14370 # AIX 5 supports IA64
14371 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14372 shlibpath_var=LD_LIBRARY_PATH
14374 # With GCC up to 2.95.x, collect2 would create an import file
14375 # for dependence libraries. The import file would start with
14376 # the line `#! .'. This would cause the generated library to
14377 # depend on `.', always an invalid library. This was fixed in
14378 # development snapshots of GCC prior to 3.0.
14380 aix4 | aix4.[01] | aix4.[01].*)
14381 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14383 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14386 can_build_shared=no
14390 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14391 # soname into executable. Probably we can add versioning support to
14392 # collect2, so additional links can be useful in future.
14393 if test "$aix_use_runtimelinking" = yes; then
14394 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14395 # instead of lib<name>.a to let people know that these are not
14396 # typical AIX shared libraries.
14397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14399 # We preserve .a as extension for shared libraries through AIX4.2
14400 # and later when we are not doing run time linking.
14401 library_names_spec='${libname}${release}.a $libname.a'
14402 soname_spec='${libname}${release}${shared_ext}$major'
14404 shlibpath_var=LIBPATH
14411 # Since July 2007 AmigaOS4 officially supports .so libraries.
14412 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14416 library_names_spec='$libname.ixlibrary $libname.a'
14417 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14418 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'
14424 library_names_spec='${libname}${shared_ext}'
14425 dynamic_linker="$host_os ld.so"
14426 shlibpath_var=LIBRARY_PATH
14432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14433 soname_spec='${libname}${release}${shared_ext}$major'
14434 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14435 shlibpath_var=LD_LIBRARY_PATH
14436 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14437 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14438 # the default ld.so.conf also contains /usr/contrib/lib and
14439 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14440 # libtool to hard-code these into programs
14443 cygwin* | mingw* | pw32* | cegcc*)
14444 version_type=windows
14449 case $GCC,$host_os in
14450 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14451 library_names_spec='$libname.dll.a'
14452 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14453 postinstall_cmds='base_file=`basename \${file}`~
14454 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14455 dldir=$destdir/`dirname \$dlpath`~
14456 test -d \$dldir || mkdir -p \$dldir~
14457 $install_prog $dir/$dlname \$dldir/$dlname~
14458 chmod a+x \$dldir/$dlname~
14459 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14460 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14462 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14463 dlpath=$dir/\$dldll~
14465 shlibpath_overrides_runpath=yes
14469 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14470 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14474 # MinGW DLLs use traditional 'lib' prefix
14475 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14478 # pw32 DLLs use 'pw' prefix rather than 'lib'
14479 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14485 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14488 dynamic_linker='Win32 ld.exe'
14489 # FIXME: first we should search . and the directory the executable is in
14493 darwin* | rhapsody*)
14494 dynamic_linker="$host_os dyld"
14495 version_type=darwin
14498 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14499 soname_spec='${libname}${release}${major}$shared_ext'
14500 shlibpath_overrides_runpath=yes
14501 shlibpath_var=DYLD_LIBRARY_PATH
14502 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14504 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14512 soname_spec='${libname}${release}${shared_ext}$major'
14513 shlibpath_var=LD_LIBRARY_PATH
14516 freebsd* | dragonfly*)
14517 # DragonFly does not have aout. When/if they implement a new
14518 # versioning mechanism, adjust this.
14519 if test -x /usr/bin/objformat; then
14520 objformat=`/usr/bin/objformat`
14523 freebsd[23].*) objformat=aout ;;
14524 *) objformat=elf ;;
14527 version_type=freebsd-$objformat
14528 case $version_type in
14530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14535 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14539 shlibpath_var=LD_LIBRARY_PATH
14542 shlibpath_overrides_runpath=yes
14544 freebsd3.[01]* | freebsdelf3.[01]*)
14545 shlibpath_overrides_runpath=yes
14546 hardcode_into_libs=yes
14548 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14549 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14550 shlibpath_overrides_runpath=no
14551 hardcode_into_libs=yes
14553 *) # from 4.6 on, and DragonFly
14554 shlibpath_overrides_runpath=yes
14555 hardcode_into_libs=yes
14564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14565 soname_spec='${libname}${release}${shared_ext}$major'
14566 shlibpath_var=LD_LIBRARY_PATH
14567 hardcode_into_libs=yes
14574 dynamic_linker="$host_os runtime_loader"
14575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14576 soname_spec='${libname}${release}${shared_ext}$major'
14577 shlibpath_var=LIBRARY_PATH
14578 shlibpath_overrides_runpath=yes
14579 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14580 hardcode_into_libs=yes
14583 hpux9* | hpux10* | hpux11*)
14584 # Give a soname corresponding to the major version so that dld.sl refuses to
14585 # link against other versions.
14592 hardcode_into_libs=yes
14593 dynamic_linker="$host_os dld.so"
14594 shlibpath_var=LD_LIBRARY_PATH
14595 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14597 soname_spec='${libname}${release}${shared_ext}$major'
14598 if test "X$HPUX_IA64_MODE" = X32; then
14599 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14601 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14607 hardcode_into_libs=yes
14608 dynamic_linker="$host_os dld.sl"
14609 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14610 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14612 soname_spec='${libname}${release}${shared_ext}$major'
14613 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14618 dynamic_linker="$host_os dld.sl"
14619 shlibpath_var=SHLIB_PATH
14620 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14622 soname_spec='${libname}${release}${shared_ext}$major'
14625 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14626 postinstall_cmds='chmod 555 $lib'
14627 # or fails outright, so override atomically:
14628 install_override_mode=555
14635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14636 soname_spec='${libname}${release}${shared_ext}$major'
14637 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14638 shlibpath_var=LD_LIBRARY_PATH
14639 shlibpath_overrides_runpath=no
14640 hardcode_into_libs=yes
14643 irix5* | irix6* | nonstopux*)
14645 nonstopux*) version_type=nonstopux ;;
14647 if test "$lt_cv_prog_gnu_ld" = yes; then
14655 soname_spec='${libname}${release}${shared_ext}$major'
14656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14658 irix5* | nonstopux*)
14659 libsuff= shlibsuff=
14662 case $LD in # libtool.m4 will add one of these switches to LD
14663 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14664 libsuff= shlibsuff= libmagic=32-bit;;
14665 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14666 libsuff=32 shlibsuff=N32 libmagic=N32;;
14667 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14668 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14669 *) libsuff= shlibsuff= libmagic=never-match;;
14673 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14674 shlibpath_overrides_runpath=no
14675 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14676 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14677 hardcode_into_libs=yes
14680 # No shared lib support for Linux oldld, aout, or coff.
14681 linux*oldld* | linux*aout* | linux*coff*)
14685 # This must be Linux ELF.
14686 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691 soname_spec='${libname}${release}${shared_ext}$major'
14692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14693 shlibpath_var=LD_LIBRARY_PATH
14694 shlibpath_overrides_runpath=no
14696 # Some binutils ld are patched to set DT_RUNPATH
14697 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14698 $as_echo_n "(cached) " >&6
14700 lt_cv_shlibpath_overrides_runpath=no
14701 save_LDFLAGS=$LDFLAGS
14702 save_libdir=$libdir
14703 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14704 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14706 /* end confdefs.h. */
14716 if ac_fn_cxx_try_link "$LINENO"; then :
14717 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14718 lt_cv_shlibpath_overrides_runpath=yes
14721 rm -f core conftest.err conftest.$ac_objext \
14722 conftest$ac_exeext conftest.$ac_ext
14723 LDFLAGS=$save_LDFLAGS
14724 libdir=$save_libdir
14728 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14730 # This implies no fast_install, which is unacceptable.
14731 # Some rework will be needed to allow for fast_install
14732 # before this can be enabled.
14733 hardcode_into_libs=yes
14735 # Append ld.so.conf contents to the search path
14736 if test -f /etc/ld.so.conf; then
14737 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' ' '`
14738 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14741 # We used to test for /lib/ld.so.1 and disable shared libraries on
14742 # powerpc, because MkLinux only supported shared libraries with the
14743 # GNU dynamic linker. Since this was broken with cross compilers,
14744 # most powerpc-linux boxes support dynamic linking these days and
14745 # people can always --disable-shared, the test was removed, and we
14746 # assume the GNU/Linux dynamic linker is in use.
14747 dynamic_linker='GNU/Linux ld.so'
14754 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14756 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14757 dynamic_linker='NetBSD (a.out) ld.so'
14759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14760 soname_spec='${libname}${release}${shared_ext}$major'
14761 dynamic_linker='NetBSD ld.elf_so'
14763 shlibpath_var=LD_LIBRARY_PATH
14764 shlibpath_overrides_runpath=yes
14765 hardcode_into_libs=yes
14770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14771 shlibpath_var=LD_LIBRARY_PATH
14772 shlibpath_overrides_runpath=yes
14779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14780 soname_spec='${libname}${release}${shared_ext}$major'
14781 shlibpath_var=LD_LIBRARY_PATH
14782 shlibpath_overrides_runpath=no
14783 hardcode_into_libs=yes
14784 dynamic_linker='ldqnx.so'
14789 sys_lib_dlsearch_path_spec="/usr/lib"
14791 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14793 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14794 *) need_version=no ;;
14796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14798 shlibpath_var=LD_LIBRARY_PATH
14799 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14801 openbsd2.[89] | openbsd2.[89].*)
14802 shlibpath_overrides_runpath=no
14805 shlibpath_overrides_runpath=yes
14809 shlibpath_overrides_runpath=yes
14814 libname_spec='$name'
14817 library_names_spec='$libname${shared_ext} $libname.a'
14818 dynamic_linker='OS/2 ld.exe'
14819 shlibpath_var=LIBPATH
14822 osf3* | osf4* | osf5*)
14826 soname_spec='${libname}${release}${shared_ext}$major'
14827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14828 shlibpath_var=LD_LIBRARY_PATH
14829 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14830 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14842 soname_spec='${libname}${release}${shared_ext}$major'
14843 shlibpath_var=LD_LIBRARY_PATH
14844 shlibpath_overrides_runpath=yes
14845 hardcode_into_libs=yes
14846 # ldd complains unless libraries are executable
14847 postinstall_cmds='chmod +x $lib'
14852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14853 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14854 shlibpath_var=LD_LIBRARY_PATH
14855 shlibpath_overrides_runpath=yes
14856 if test "$with_gnu_ld" = yes; then
14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14865 soname_spec='${libname}${release}${shared_ext}$major'
14866 shlibpath_var=LD_LIBRARY_PATH
14867 case $host_vendor in
14869 shlibpath_overrides_runpath=no
14871 runpath_var=LD_RUN_PATH
14879 shlibpath_overrides_runpath=no
14880 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14886 if test -d /usr/nec ;then
14888 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14889 soname_spec='$libname${shared_ext}.$major'
14890 shlibpath_var=LD_LIBRARY_PATH
14894 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14895 version_type=freebsd-elf
14898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14899 soname_spec='${libname}${release}${shared_ext}$major'
14900 shlibpath_var=LD_LIBRARY_PATH
14901 shlibpath_overrides_runpath=yes
14902 hardcode_into_libs=yes
14903 if test "$with_gnu_ld" = yes; then
14904 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14906 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14909 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14913 sys_lib_dlsearch_path_spec='/usr/lib'
14917 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14922 shlibpath_var=LD_LIBRARY_PATH
14923 shlibpath_overrides_runpath=no
14924 hardcode_into_libs=yes
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930 soname_spec='${libname}${release}${shared_ext}$major'
14931 shlibpath_var=LD_LIBRARY_PATH
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14939 $as_echo "$dynamic_linker" >&6; }
14940 test "$dynamic_linker" = no && can_build_shared=no
14942 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14943 if test "$GCC" = yes; then
14944 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14947 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14948 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14950 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14951 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14992 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14993 hardcode_action_CXX=
14994 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14995 test -n "$runpath_var_CXX" ||
14996 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14998 # We can hardcode non-existent directories.
14999 if test "$hardcode_direct_CXX" != no &&
15000 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15001 # have to relink, otherwise we might link with an installed library
15002 # when we should be linking with a yet-to-be-installed one
15003 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15004 test "$hardcode_minus_L_CXX" != no; then
15005 # Linking always hardcodes the temporary library directory.
15006 hardcode_action_CXX=relink
15008 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15009 hardcode_action_CXX=immediate
15012 # We cannot hardcode anything, or else we can only hardcode existing
15014 hardcode_action_CXX=unsupported
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15017 $as_echo "$hardcode_action_CXX" >&6; }
15019 if test "$hardcode_action_CXX" = relink ||
15020 test "$inherit_rpath_CXX" = yes; then
15021 # Fast installation is not supported
15022 enable_fast_install=no
15023 elif test "$shlibpath_overrides_runpath" = yes ||
15024 test "$enable_shared" = no; then
15025 # Fast installation is not necessary
15026 enable_fast_install=needless
15035 fi # test -n "$compiler"
15041 with_gnu_ld=$lt_save_with_gnu_ld
15042 lt_cv_path_LDCXX=$lt_cv_path_LD
15043 lt_cv_path_LD=$lt_save_path_LD
15044 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15045 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15046 fi # test "$_lt_caught_CXX_error" != yes
15049 ac_cpp='$CPP $CPPFLAGS'
15050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15066 ac_config_commands="$ac_config_commands libtool"
15071 # Only expand once:
15075 # The tests for host and target for $enable_largefile require
15080 # As the $enable_largefile decision depends on --enable-plugins we must set it
15081 # even in directories otherwise not depending on the $plugins option.
15085 for ac_header in dlfcn.h
15087 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15089 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
15090 cat >>confdefs.h <<_ACEOF
15091 #define HAVE_DLFCN_H 1
15098 for ac_header in windows.h
15100 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15102 if test "x$ac_cv_header_windows_h" = x""yes; then :
15103 cat >>confdefs.h <<_ACEOF
15104 #define HAVE_WINDOWS_H 1
15112 # Check whether --enable-plugins was given.
15113 if test "${enable_plugins+set}" = set; then :
15114 enableval=$enable_plugins; case "${enableval}" in
15117 if test "$maybe_plugins" != "yes" ; then
15118 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15122 plugins=$maybe_plugins
15126 if test "$plugins" = "yes"; then
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15128 $as_echo_n "checking for library containing dlopen... " >&6; }
15129 if test "${ac_cv_search_dlopen+set}" = set; then :
15130 $as_echo_n "(cached) " >&6
15132 ac_func_search_save_LIBS=$LIBS
15133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15134 /* end confdefs.h. */
15136 /* Override any GCC internal prototype to avoid an error.
15137 Use char because int might match the return type of a GCC
15138 builtin and then its argument prototype would still apply. */
15151 for ac_lib in '' dl; do
15152 if test -z "$ac_lib"; then
15153 ac_res="none required"
15156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15158 if ac_fn_c_try_link "$LINENO"; then :
15159 ac_cv_search_dlopen=$ac_res
15161 rm -f core conftest.err conftest.$ac_objext \
15163 if test "${ac_cv_search_dlopen+set}" = set; then :
15167 if test "${ac_cv_search_dlopen+set}" = set; then :
15170 ac_cv_search_dlopen=no
15172 rm conftest.$ac_ext
15173 LIBS=$ac_func_search_save_LIBS
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15176 $as_echo "$ac_cv_search_dlopen" >&6; }
15177 ac_res=$ac_cv_search_dlopen
15178 if test "$ac_res" != no; then :
15179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15187 sparc-*-solaris*|i[3-7]86-*-solaris*)
15188 # On native 32bit sparc and ia32 solaris, large-file and procfs support
15189 # are mutually exclusive; and without procfs support, the bfd/ elf module
15190 # cannot provide certain routines such as elfcore_write_prpsinfo
15191 # or elfcore_write_prstatus. So unless the user explicitly requested
15192 # large-file support through the --enable-largefile switch, disable
15193 # large-file support in favor of procfs support.
15194 test "${target}" = "${host}" -a "x$plugins" = xno \
15195 && : ${enable_largefile="no"}
15199 # Check whether --enable-largefile was given.
15200 if test "${enable_largefile+set}" = set; then :
15201 enableval=$enable_largefile;
15204 if test "$enable_largefile" != no; then
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15207 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15208 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15209 $as_echo_n "(cached) " >&6
15211 ac_cv_sys_largefile_CC=no
15212 if test "$GCC" != yes; then
15215 # IRIX 6.2 and later do not support large files by default,
15216 # so use the C compiler's -n32 option if that helps.
15217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218 /* end confdefs.h. */
15219 #include <sys/types.h>
15220 /* Check that off_t can represent 2**63 - 1 correctly.
15221 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15222 since some C++ compilers masquerading as C compilers
15223 incorrectly reject 9223372036854775807. */
15224 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15225 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15226 && LARGE_OFF_T % 2147483647 == 1)
15236 if ac_fn_c_try_compile "$LINENO"; then :
15239 rm -f core conftest.err conftest.$ac_objext
15241 if ac_fn_c_try_compile "$LINENO"; then :
15242 ac_cv_sys_largefile_CC=' -n32'; break
15244 rm -f core conftest.err conftest.$ac_objext
15248 rm -f conftest.$ac_ext
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15252 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15253 if test "$ac_cv_sys_largefile_CC" != no; then
15254 CC=$CC$ac_cv_sys_largefile_CC
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15258 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15259 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15260 $as_echo_n "(cached) " >&6
15263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15264 /* end confdefs.h. */
15265 #include <sys/types.h>
15266 /* Check that off_t can represent 2**63 - 1 correctly.
15267 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15268 since some C++ compilers masquerading as C compilers
15269 incorrectly reject 9223372036854775807. */
15270 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15271 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15272 && LARGE_OFF_T % 2147483647 == 1)
15282 if ac_fn_c_try_compile "$LINENO"; then :
15283 ac_cv_sys_file_offset_bits=no; break
15285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15287 /* end confdefs.h. */
15288 #define _FILE_OFFSET_BITS 64
15289 #include <sys/types.h>
15290 /* Check that off_t can represent 2**63 - 1 correctly.
15291 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15292 since some C++ compilers masquerading as C compilers
15293 incorrectly reject 9223372036854775807. */
15294 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15295 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15296 && LARGE_OFF_T % 2147483647 == 1)
15306 if ac_fn_c_try_compile "$LINENO"; then :
15307 ac_cv_sys_file_offset_bits=64; break
15309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15310 ac_cv_sys_file_offset_bits=unknown
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15315 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15316 case $ac_cv_sys_file_offset_bits in #(
15319 cat >>confdefs.h <<_ACEOF
15320 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15325 if test $ac_cv_sys_file_offset_bits = unknown; then
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15327 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15328 if test "${ac_cv_sys_large_files+set}" = set; then :
15329 $as_echo_n "(cached) " >&6
15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h. */
15334 #include <sys/types.h>
15335 /* Check that off_t can represent 2**63 - 1 correctly.
15336 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15337 since some C++ compilers masquerading as C compilers
15338 incorrectly reject 9223372036854775807. */
15339 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15340 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15341 && LARGE_OFF_T % 2147483647 == 1)
15351 if ac_fn_c_try_compile "$LINENO"; then :
15352 ac_cv_sys_large_files=no; break
15354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15356 /* end confdefs.h. */
15357 #define _LARGE_FILES 1
15358 #include <sys/types.h>
15359 /* Check that off_t can represent 2**63 - 1 correctly.
15360 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15361 since some C++ compilers masquerading as C compilers
15362 incorrectly reject 9223372036854775807. */
15363 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15364 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15365 && LARGE_OFF_T % 2147483647 == 1)
15375 if ac_fn_c_try_compile "$LINENO"; then :
15376 ac_cv_sys_large_files=1; break
15378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15379 ac_cv_sys_large_files=unknown
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15384 $as_echo "$ac_cv_sys_large_files" >&6; }
15385 case $ac_cv_sys_large_files in #(
15388 cat >>confdefs.h <<_ACEOF
15389 #define _LARGE_FILES $ac_cv_sys_large_files
15400 # Check whether --with-lib-path was given.
15401 if test "${with_lib_path+set}" = set; then :
15402 withval=$with_lib_path; LIB_PATH=$withval
15405 # Check whether --enable-targets was given.
15406 if test "${enable_targets+set}" = set; then :
15407 enableval=$enable_targets; case "${enableval}" in
15408 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
15410 no) enable_targets= ;;
15411 *) enable_targets=$enableval ;;
15414 # Check whether --enable-64-bit-bfd was given.
15415 if test "${enable_64_bit_bfd+set}" = set; then :
15416 enableval=$enable_64_bit_bfd; case "${enableval}" in
15417 yes) want64=true ;;
15418 no) want64=false ;;
15419 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
15426 # Check whether --with-sysroot was given.
15427 if test "${with_sysroot+set}" = set; then :
15428 withval=$with_sysroot;
15429 case ${with_sysroot} in
15430 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15431 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15434 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15437 if test "x$prefix" = xNONE; then
15438 test_prefix=/usr/local
15440 test_prefix=$prefix
15442 if test "x$exec_prefix" = xNONE; then
15443 test_exec_prefix=$test_prefix
15445 test_exec_prefix=$exec_prefix
15447 case ${TARGET_SYSTEM_ROOT} in
15448 "${test_prefix}"|"${test_prefix}/"*|\
15449 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15450 '${prefix}'|'${prefix}/'*|\
15451 '${exec_prefix}'|'${exec_prefix}/'*)
15452 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15453 TARGET_SYSTEM_ROOT_DEFINE="$t"
15460 TARGET_SYSTEM_ROOT=
15461 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15469 # Check whether --enable-gold was given.
15470 if test "${enable_gold+set}" = set; then :
15471 enableval=$enable_gold; case "${enableval}" in
15473 install_as_default=no
15474 installed_linker=ld.bfd
15477 install_as_default=yes
15478 installed_linker=ld.bfd
15481 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
15485 install_as_default=yes
15486 installed_linker=ld.bfd
15492 # Check whether --enable-got was given.
15493 if test "${enable_got+set}" = set; then :
15494 enableval=$enable_got; case "${enableval}" in
15495 target | single | negative | multigot) got_handling=$enableval ;;
15496 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15499 got_handling=target
15503 case "${got_handling}" in
15506 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15510 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15514 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15518 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15520 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15524 # Set the 'development' global.
15525 . $srcdir/../bfd/development.sh
15527 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15529 /* end confdefs.h. */
15532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15533 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15536 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
15541 # Check whether --enable-werror was given.
15542 if test "${enable_werror+set}" = set; then :
15543 enableval=$enable_werror; case "${enableval}" in
15544 yes | y) ERROR_ON_WARNING="yes" ;;
15545 no | n) ERROR_ON_WARNING="no" ;;
15546 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15551 # Disable -Wformat by default when using gcc on mingw
15554 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15555 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
15561 # Enable -Werror by default when using gcc. Turn it off for releases.
15562 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
15563 ERROR_ON_WARNING=yes
15567 if test "${ERROR_ON_WARNING}" = yes ; then
15568 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
15569 NO_WERROR="-Wno-error"
15572 if test "${GCC}" = yes ; then
15573 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15576 # Check whether --enable-build-warnings was given.
15577 if test "${enable_build_warnings+set}" = set; then :
15578 enableval=$enable_build_warnings; case "${enableval}" in
15579 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
15580 no) if test "${GCC}" = yes ; then
15583 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15584 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
15585 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15586 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
15587 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15592 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
15593 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15602 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15603 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
15604 $as_echo_n "(cached) " >&6
15606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15607 /* end confdefs.h. */
15608 #include <locale.h>
15617 if ac_fn_c_try_link "$LINENO"; then :
15618 am_cv_val_LC_MESSAGES=yes
15620 am_cv_val_LC_MESSAGES=no
15622 rm -f core conftest.err conftest.$ac_objext \
15623 conftest$ac_exeext conftest.$ac_ext
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15626 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15627 if test $am_cv_val_LC_MESSAGES = yes; then
15629 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15634 ac_config_headers="$ac_config_headers config.h:config.in"
15640 if test -z "$target" ; then
15641 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
15643 if test -z "$host" ; then
15644 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
15647 # host-specific stuff:
15649 ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk"
15650 # If we haven't got the data from the intl directory,
15651 # assume NLS is disabled.
15660 if test -f ../intl/config.intl; then
15661 . ../intl/config.intl
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15664 $as_echo_n "checking whether NLS is requested... " >&6; }
15665 if test x"$USE_NLS" != xyes; then
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15667 $as_echo "no" >&6; }
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15670 $as_echo "yes" >&6; }
15672 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15676 $as_echo_n "checking for catalogs to be installed... " >&6; }
15677 # Look for .po and .gmo files in the source directory.
15680 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15681 # If there aren't any .gmo files the shell will give us the
15682 # literal string "../path/to/srcdir/po/*.gmo" which has to be
15684 case "$cat" in *\**)
15687 # The quadruple backslash is collapsed to a double backslash
15688 # by the backticks, then collapsed again by the double quotes,
15689 # leaving us with one backslash in the sed expression (right
15690 # before the dot that mustn't act as a wildcard).
15691 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15692 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15693 # The user is allowed to set LINGUAS to a list of languages to
15694 # install catalogs for. If it's empty that means "all of them."
15695 if test "x$LINGUAS" = x; then
15696 CATALOGS="$CATALOGS $cat"
15697 XLINGUAS="$XLINGUAS $lang"
15699 case "$LINGUAS" in *$lang*)
15700 CATALOGS="$CATALOGS $cat"
15701 XLINGUAS="$XLINGUAS $lang"
15706 LINGUAS="$XLINGUAS"
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15708 $as_echo "$LINGUAS" >&6; }
15722 if test -n "$ac_aux_dir"; then
15723 case "$ac_aux_dir" in
15724 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15725 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15728 if test -z "$MKINSTALLDIRS"; then
15729 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15735 $as_echo_n "checking whether NLS is requested... " >&6; }
15736 # Check whether --enable-nls was given.
15737 if test "${enable_nls+set}" = set; then :
15738 enableval=$enable_nls; USE_NLS=$enableval
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15744 $as_echo "$USE_NLS" >&6; }
15751 # Prepare PATH_SEPARATOR.
15752 # The user is always right.
15753 if test "${PATH_SEPARATOR+set}" != set; then
15754 echo "#! /bin/sh" >conf$$.sh
15755 echo "exit 0" >>conf$$.sh
15757 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15765 # Find out how to test for executable files. Don't use a zero-byte file,
15766 # as systems may use methods other than mode bits to determine executability.
15767 cat >conf$$.file <<_ASEOF
15771 chmod +x conf$$.file
15772 if test -x conf$$.file >/dev/null 2>&1; then
15773 ac_executable_p="test -x"
15775 ac_executable_p="test -f"
15779 # Extract the first word of "msgfmt", so it can be a program name with args.
15780 set dummy msgfmt; ac_word=$2
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15782 $as_echo_n "checking for $ac_word... " >&6; }
15783 if test "${ac_cv_path_MSGFMT+set}" = set; then :
15784 $as_echo_n "(cached) " >&6
15788 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15791 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15792 for ac_dir in $PATH; do
15794 test -z "$ac_dir" && ac_dir=.
15795 for ac_exec_ext in '' $ac_executable_extensions; do
15796 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15797 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15798 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15799 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15806 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15810 MSGFMT="$ac_cv_path_MSGFMT"
15811 if test "$MSGFMT" != ":"; then
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15813 $as_echo "$MSGFMT" >&6; }
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15816 $as_echo "no" >&6; }
15819 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15820 set dummy gmsgfmt; ac_word=$2
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15822 $as_echo_n "checking for $ac_word... " >&6; }
15823 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15824 $as_echo_n "(cached) " >&6
15828 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15832 for as_dir in $PATH
15835 test -z "$as_dir" && as_dir=.
15836 for ac_exec_ext in '' $ac_executable_extensions; do
15837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15838 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15846 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15850 GMSGFMT=$ac_cv_path_GMSGFMT
15851 if test -n "$GMSGFMT"; then
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15853 $as_echo "$GMSGFMT" >&6; }
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15856 $as_echo "no" >&6; }
15862 # Prepare PATH_SEPARATOR.
15863 # The user is always right.
15864 if test "${PATH_SEPARATOR+set}" != set; then
15865 echo "#! /bin/sh" >conf$$.sh
15866 echo "exit 0" >>conf$$.sh
15868 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15876 # Find out how to test for executable files. Don't use a zero-byte file,
15877 # as systems may use methods other than mode bits to determine executability.
15878 cat >conf$$.file <<_ASEOF
15882 chmod +x conf$$.file
15883 if test -x conf$$.file >/dev/null 2>&1; then
15884 ac_executable_p="test -x"
15886 ac_executable_p="test -f"
15890 # Extract the first word of "xgettext", so it can be a program name with args.
15891 set dummy xgettext; ac_word=$2
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15893 $as_echo_n "checking for $ac_word... " >&6; }
15894 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15895 $as_echo_n "(cached) " >&6
15897 case "$XGETTEXT" in
15899 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15902 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15903 for ac_dir in $PATH; do
15905 test -z "$ac_dir" && ac_dir=.
15906 for ac_exec_ext in '' $ac_executable_extensions; do
15907 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15908 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15909 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15910 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15917 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15921 XGETTEXT="$ac_cv_path_XGETTEXT"
15922 if test "$XGETTEXT" != ":"; then
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15924 $as_echo "$XGETTEXT" >&6; }
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15927 $as_echo "no" >&6; }
15933 # Prepare PATH_SEPARATOR.
15934 # The user is always right.
15935 if test "${PATH_SEPARATOR+set}" != set; then
15936 echo "#! /bin/sh" >conf$$.sh
15937 echo "exit 0" >>conf$$.sh
15939 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15947 # Find out how to test for executable files. Don't use a zero-byte file,
15948 # as systems may use methods other than mode bits to determine executability.
15949 cat >conf$$.file <<_ASEOF
15953 chmod +x conf$$.file
15954 if test -x conf$$.file >/dev/null 2>&1; then
15955 ac_executable_p="test -x"
15957 ac_executable_p="test -f"
15961 # Extract the first word of "msgmerge", so it can be a program name with args.
15962 set dummy msgmerge; ac_word=$2
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15964 $as_echo_n "checking for $ac_word... " >&6; }
15965 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
15966 $as_echo_n "(cached) " >&6
15968 case "$MSGMERGE" in
15970 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15973 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15974 for ac_dir in $PATH; do
15976 test -z "$ac_dir" && ac_dir=.
15977 for ac_exec_ext in '' $ac_executable_extensions; do
15978 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15979 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15980 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15987 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15991 MSGMERGE="$ac_cv_path_MSGMERGE"
15992 if test "$MSGMERGE" != ":"; then
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15994 $as_echo "$MSGMERGE" >&6; }
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15997 $as_echo "no" >&6; }
16001 if test "$GMSGFMT" != ":"; then
16002 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16003 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16006 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16008 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16013 if test "$XGETTEXT" != ":"; then
16014 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16015 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16019 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16025 ac_config_commands="$ac_config_commands default-1"
16031 for ac_prog in 'bison -y' byacc
16033 # Extract the first word of "$ac_prog", so it can be a program name with args.
16034 set dummy $ac_prog; ac_word=$2
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16036 $as_echo_n "checking for $ac_word... " >&6; }
16037 if test "${ac_cv_prog_YACC+set}" = set; then :
16038 $as_echo_n "(cached) " >&6
16040 if test -n "$YACC"; then
16041 ac_cv_prog_YACC="$YACC" # Let the user override the test.
16043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16044 for as_dir in $PATH
16047 test -z "$as_dir" && as_dir=.
16048 for ac_exec_ext in '' $ac_executable_extensions; do
16049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16050 ac_cv_prog_YACC="$ac_prog"
16051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16060 YACC=$ac_cv_prog_YACC
16061 if test -n "$YACC"; then
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16063 $as_echo "$YACC" >&6; }
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16066 $as_echo "no" >&6; }
16070 test -n "$YACC" && break
16072 test -n "$YACC" || YACC="yacc"
16074 for ac_prog in flex lex
16076 # Extract the first word of "$ac_prog", so it can be a program name with args.
16077 set dummy $ac_prog; ac_word=$2
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16079 $as_echo_n "checking for $ac_word... " >&6; }
16080 if test "${ac_cv_prog_LEX+set}" = set; then :
16081 $as_echo_n "(cached) " >&6
16083 if test -n "$LEX"; then
16084 ac_cv_prog_LEX="$LEX" # Let the user override the test.
16086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16087 for as_dir in $PATH
16090 test -z "$as_dir" && as_dir=.
16091 for ac_exec_ext in '' $ac_executable_extensions; do
16092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16093 ac_cv_prog_LEX="$ac_prog"
16094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16103 LEX=$ac_cv_prog_LEX
16104 if test -n "$LEX"; then
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16106 $as_echo "$LEX" >&6; }
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16109 $as_echo "no" >&6; }
16113 test -n "$LEX" && break
16115 test -n "$LEX" || LEX=":"
16117 if test "x$LEX" != "x:"; then
16118 cat >conftest.l <<_ACEOF
16124 e { yyless (input () != 0); }
16125 f { unput (yytext[0]); }
16126 . { BEGIN INITIAL; }
16128 #ifdef YYTEXT_POINTER
16129 extern char *yytext;
16134 return ! yylex () + ! yywrap ();
16137 { { ac_try="$LEX conftest.l"
16138 case "(($ac_try" in
16139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140 *) ac_try_echo=$ac_try;;
16142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16143 $as_echo "$ac_try_echo"; } >&5
16144 (eval "$LEX conftest.l") 2>&5
16146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16147 test $ac_status = 0; }
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16149 $as_echo_n "checking lex output file root... " >&6; }
16150 if test "${ac_cv_prog_lex_root+set}" = set; then :
16151 $as_echo_n "(cached) " >&6
16154 if test -f lex.yy.c; then
16155 ac_cv_prog_lex_root=lex.yy
16156 elif test -f lexyy.c; then
16157 ac_cv_prog_lex_root=lexyy
16159 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16163 $as_echo "$ac_cv_prog_lex_root" >&6; }
16164 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
16166 if test -z "${LEXLIB+set}"; then
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16168 $as_echo_n "checking lex library... " >&6; }
16169 if test "${ac_cv_lib_lex+set}" = set; then :
16170 $as_echo_n "(cached) " >&6
16174 ac_cv_lib_lex='none needed'
16175 for ac_lib in '' -lfl -ll; do
16176 LIBS="$ac_lib $ac_save_LIBS"
16177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178 /* end confdefs.h. */
16179 `cat $LEX_OUTPUT_ROOT.c`
16181 if ac_fn_c_try_link "$LINENO"; then :
16182 ac_cv_lib_lex=$ac_lib
16184 rm -f core conftest.err conftest.$ac_objext \
16185 conftest$ac_exeext conftest.$ac_ext
16186 test "$ac_cv_lib_lex" != 'none needed' && break
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16192 $as_echo "$ac_cv_lib_lex" >&6; }
16193 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16198 $as_echo_n "checking whether yytext is a pointer... " >&6; }
16199 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16200 $as_echo_n "(cached) " >&6
16202 # POSIX says lex can declare yytext either as a pointer or an array; the
16203 # default is implementation-dependent. Figure out which it is, since
16204 # not all implementations provide the %pointer and %array declarations.
16205 ac_cv_prog_lex_yytext_pointer=no
16207 LIBS="$LEXLIB $ac_save_LIBS"
16208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16209 /* end confdefs.h. */
16210 #define YYTEXT_POINTER 1
16211 `cat $LEX_OUTPUT_ROOT.c`
16213 if ac_fn_c_try_link "$LINENO"; then :
16214 ac_cv_prog_lex_yytext_pointer=yes
16216 rm -f core conftest.err conftest.$ac_objext \
16217 conftest$ac_exeext conftest.$ac_ext
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16222 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
16223 if test $ac_cv_prog_lex_yytext_pointer = yes; then
16225 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
16228 rm -f conftest.l $LEX_OUTPUT_ROOT.c
16231 if test "$LEX" = :; then
16232 LEX=${am_missing_run}flex
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16237 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16238 # Check whether --enable-maintainer-mode was given.
16239 if test "${enable_maintainer_mode+set}" = set; then :
16240 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16242 USE_MAINTAINER_MODE=no
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16246 $as_echo "$USE_MAINTAINER_MODE" >&6; }
16247 if test $USE_MAINTAINER_MODE = yes; then
16248 MAINTAINER_MODE_TRUE=
16249 MAINTAINER_MODE_FALSE='#'
16251 MAINTAINER_MODE_TRUE='#'
16252 MAINTAINER_MODE_FALSE=
16255 MAINT=$MAINTAINER_MODE_TRUE
16259 GENINSRC_NEVER_TRUE=
16260 GENINSRC_NEVER_FALSE='#'
16262 GENINSRC_NEVER_TRUE='#'
16263 GENINSRC_NEVER_FALSE=
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16267 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16268 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16269 $as_echo_n "(cached) " >&6
16273 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16274 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16275 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16278 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16281 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16282 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16285 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16292 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
16293 do_compare="$gcc_cv_prog_cmp_skip"
16297 . ${srcdir}/configure.host
16306 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
16308 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16309 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16310 eval as_val=\$$as_ac_Header
16311 if test "x$as_val" = x""yes; then :
16312 cat >>confdefs.h <<_ACEOF
16313 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16320 for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16322 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16323 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16324 eval as_val=\$$as_ac_Header
16325 if test "x$as_val" = x""yes; then :
16326 cat >>confdefs.h <<_ACEOF
16327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16335 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
16336 if test "${gcc_cv_header_string+set}" = set; then :
16337 $as_echo_n "(cached) " >&6
16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340 /* end confdefs.h. */
16341 #include <string.h>
16342 #include <strings.h>
16351 if ac_fn_c_try_compile "$LINENO"; then :
16352 gcc_cv_header_string=yes
16354 gcc_cv_header_string=no
16356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16359 $as_echo "$gcc_cv_header_string" >&6; }
16360 if test $gcc_cv_header_string = yes; then
16362 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16366 for ac_func in glob mkstemp realpath sbrk setlocale waitpid
16368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16369 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16370 eval as_val=\$$as_ac_var
16371 if test "x$as_val" = x""yes; then :
16372 cat >>confdefs.h <<_ACEOF
16373 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16379 for ac_func in open lseek close
16381 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16382 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16383 eval as_val=\$$as_ac_var
16384 if test "x$as_val" = x""yes; then :
16385 cat >>confdefs.h <<_ACEOF
16386 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16392 ac_header_dirent=no
16393 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16394 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16396 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16398 $as_echo_n "(cached) " >&6
16400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16401 /* end confdefs.h. */
16402 #include <sys/types.h>
16414 if ac_fn_c_try_compile "$LINENO"; then :
16415 eval "$as_ac_Header=yes"
16417 eval "$as_ac_Header=no"
16419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16421 eval ac_res=\$$as_ac_Header
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16423 $as_echo "$ac_res" >&6; }
16424 eval as_val=\$$as_ac_Header
16425 if test "x$as_val" = x""yes; then :
16426 cat >>confdefs.h <<_ACEOF
16427 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16430 ac_header_dirent=$ac_hdr; break
16434 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16435 if test $ac_header_dirent = dirent.h; then
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16437 $as_echo_n "checking for library containing opendir... " >&6; }
16438 if test "${ac_cv_search_opendir+set}" = set; then :
16439 $as_echo_n "(cached) " >&6
16441 ac_func_search_save_LIBS=$LIBS
16442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16443 /* end confdefs.h. */
16445 /* Override any GCC internal prototype to avoid an error.
16446 Use char because int might match the return type of a GCC
16447 builtin and then its argument prototype would still apply. */
16460 for ac_lib in '' dir; do
16461 if test -z "$ac_lib"; then
16462 ac_res="none required"
16465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16467 if ac_fn_c_try_link "$LINENO"; then :
16468 ac_cv_search_opendir=$ac_res
16470 rm -f core conftest.err conftest.$ac_objext \
16472 if test "${ac_cv_search_opendir+set}" = set; then :
16476 if test "${ac_cv_search_opendir+set}" = set; then :
16479 ac_cv_search_opendir=no
16481 rm conftest.$ac_ext
16482 LIBS=$ac_func_search_save_LIBS
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16485 $as_echo "$ac_cv_search_opendir" >&6; }
16486 ac_res=$ac_cv_search_opendir
16487 if test "$ac_res" != no; then :
16488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16494 $as_echo_n "checking for library containing opendir... " >&6; }
16495 if test "${ac_cv_search_opendir+set}" = set; then :
16496 $as_echo_n "(cached) " >&6
16498 ac_func_search_save_LIBS=$LIBS
16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h. */
16502 /* Override any GCC internal prototype to avoid an error.
16503 Use char because int might match the return type of a GCC
16504 builtin and then its argument prototype would still apply. */
16517 for ac_lib in '' x; do
16518 if test -z "$ac_lib"; then
16519 ac_res="none required"
16522 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16524 if ac_fn_c_try_link "$LINENO"; then :
16525 ac_cv_search_opendir=$ac_res
16527 rm -f core conftest.err conftest.$ac_objext \
16529 if test "${ac_cv_search_opendir+set}" = set; then :
16533 if test "${ac_cv_search_opendir+set}" = set; then :
16536 ac_cv_search_opendir=no
16538 rm conftest.$ac_ext
16539 LIBS=$ac_func_search_save_LIBS
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16542 $as_echo "$ac_cv_search_opendir" >&6; }
16543 ac_res=$ac_cv_search_opendir
16544 if test "$ac_res" != no; then :
16545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16553 $as_echo_n "checking for library containing dlopen... " >&6; }
16554 if test "${ac_cv_search_dlopen+set}" = set; then :
16555 $as_echo_n "(cached) " >&6
16557 ac_func_search_save_LIBS=$LIBS
16558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559 /* end confdefs.h. */
16561 /* Override any GCC internal prototype to avoid an error.
16562 Use char because int might match the return type of a GCC
16563 builtin and then its argument prototype would still apply. */
16576 for ac_lib in '' dl; do
16577 if test -z "$ac_lib"; then
16578 ac_res="none required"
16581 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16583 if ac_fn_c_try_link "$LINENO"; then :
16584 ac_cv_search_dlopen=$ac_res
16586 rm -f core conftest.err conftest.$ac_objext \
16588 if test "${ac_cv_search_dlopen+set}" = set; then :
16592 if test "${ac_cv_search_dlopen+set}" = set; then :
16595 ac_cv_search_dlopen=no
16597 rm conftest.$ac_ext
16598 LIBS=$ac_func_search_save_LIBS
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16601 $as_echo "$ac_cv_search_dlopen" >&6; }
16602 ac_res=$ac_cv_search_dlopen
16603 if test "$ac_res" != no; then :
16604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16608 if test x$plugins = xyes; then
16609 ENABLE_PLUGINS_TRUE=
16610 ENABLE_PLUGINS_FALSE='#'
16612 ENABLE_PLUGINS_TRUE='#'
16613 ENABLE_PLUGINS_FALSE=
16617 # Check whether --enable-initfini-array was given.
16618 if test "${enable_initfini_array+set}" = set; then :
16619 enableval=$enable_initfini_array;
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
16623 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
16624 if test "${gcc_cv_initfini_array+set}" = set; then :
16625 $as_echo_n "(cached) " >&6
16627 if test "x${build}" = "x${target}" ; then
16628 if test "$cross_compiling" = yes; then :
16629 gcc_cv_initfini_array=no
16631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632 /* end confdefs.h. */
16635 int main (void) { return x; }
16636 int foo (void) { x = 0; }
16637 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
16639 if ac_fn_c_try_run "$LINENO"; then :
16640 gcc_cv_initfini_array=yes
16642 gcc_cv_initfini_array=no
16644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16645 conftest.$ac_objext conftest.beam conftest.$ac_ext
16649 gcc_cv_initfini_array=no
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
16653 $as_echo "$gcc_cv_initfini_array" >&6; }
16654 enable_initfini_array=$gcc_cv_initfini_array
16659 if test $enable_initfini_array = yes; then
16661 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16666 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16667 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16668 $as_echo_n "(cached) " >&6
16670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16671 /* end confdefs.h. */
16672 #include <unistd.h>
16676 extern int getopt (int, char *const*, const char *);
16681 if ac_fn_c_try_compile "$LINENO"; then :
16682 ld_cv_decl_getopt_unistd_h=yes
16684 ld_cv_decl_getopt_unistd_h=no
16686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16690 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
16691 if test $ld_cv_decl_getopt_unistd_h = yes; then
16693 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
16699 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16701 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
16705 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16706 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16712 cat >>confdefs.h <<_ACEOF
16713 #define HAVE_DECL_STRSTR $ac_have_decl
16715 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16716 if test "x$ac_cv_have_decl_free" = x""yes; then :
16722 cat >>confdefs.h <<_ACEOF
16723 #define HAVE_DECL_FREE $ac_have_decl
16725 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16726 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16732 cat >>confdefs.h <<_ACEOF
16733 #define HAVE_DECL_SBRK $ac_have_decl
16735 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16736 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16742 cat >>confdefs.h <<_ACEOF
16743 #define HAVE_DECL_GETENV $ac_have_decl
16745 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16746 if test "x$ac_cv_have_decl_environ" = x""yes; then :
16752 cat >>confdefs.h <<_ACEOF
16753 #define HAVE_DECL_ENVIRON $ac_have_decl
16757 # Link in zlib if we can. This is needed only for the bootstrap tests
16758 # right now, since those tests use libbfd, which depends on zlib.
16760 # See if the user specified whether he wants zlib support or not.
16762 # Check whether --with-zlib was given.
16763 if test "${with_zlib+set}" = set; then :
16764 withval=$with_zlib;
16770 if test "$with_zlib" != "no"; then
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
16772 $as_echo_n "checking for library containing zlibVersion... " >&6; }
16773 if test "${ac_cv_search_zlibVersion+set}" = set; then :
16774 $as_echo_n "(cached) " >&6
16776 ac_func_search_save_LIBS=$LIBS
16777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16778 /* end confdefs.h. */
16780 /* Override any GCC internal prototype to avoid an error.
16781 Use char because int might match the return type of a GCC
16782 builtin and then its argument prototype would still apply. */
16786 char zlibVersion ();
16790 return zlibVersion ();
16795 for ac_lib in '' z; do
16796 if test -z "$ac_lib"; then
16797 ac_res="none required"
16800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16802 if ac_fn_c_try_link "$LINENO"; then :
16803 ac_cv_search_zlibVersion=$ac_res
16805 rm -f core conftest.err conftest.$ac_objext \
16807 if test "${ac_cv_search_zlibVersion+set}" = set; then :
16811 if test "${ac_cv_search_zlibVersion+set}" = set; then :
16814 ac_cv_search_zlibVersion=no
16816 rm conftest.$ac_ext
16817 LIBS=$ac_func_search_save_LIBS
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
16820 $as_echo "$ac_cv_search_zlibVersion" >&6; }
16821 ac_res=$ac_cv_search_zlibVersion
16822 if test "$ac_res" != no; then :
16823 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16824 for ac_header in zlib.h
16826 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16827 if test "x$ac_cv_header_zlib_h" = x""yes; then :
16828 cat >>confdefs.h <<_ACEOF
16829 #define HAVE_ZLIB_H 1
16838 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
16839 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
16844 # When converting linker scripts into strings for use in emulation
16845 # files, use astring.sed if the compiler supports ANSI string
16846 # concatenation, or ostring.sed otherwise. This is to support the
16847 # broken Microsoft MSVC compiler, which limits the length of string
16848 # constants, while still supporting pre-ANSI compilers which do not
16849 # support string concatenation.
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
16851 $as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
16852 if test "${ld_cv_string_concatenation+set}" = set; then :
16853 $as_echo_n "(cached) " >&6
16855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856 /* end confdefs.h. */
16866 if ac_fn_c_try_compile "$LINENO"; then :
16867 ld_cv_string_concatenation=yes
16869 ld_cv_string_concatenation=no
16871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
16875 $as_echo "$ld_cv_string_concatenation" >&6; }
16876 if test "$ld_cv_string_concatenation" = "yes"; then
16877 STRINGIFY=astring.sed
16879 STRINGIFY=ostring.sed
16883 # target-specific stuff:
16893 # If the host is 64-bit, then we enable 64-bit targets by default.
16894 # This is consistent with what ../bfd/configure.ac does.
16895 if test x${want64} = xfalse; then
16896 # The cast to long int works around a bug in the HP C Compiler
16897 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16898 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16899 # This bug is HP SR number 8606223364.
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16901 $as_echo_n "checking size of void *... " >&6; }
16902 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16903 $as_echo_n "(cached) " >&6
16905 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16908 if test "$ac_cv_type_void_p" = yes; then
16909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16911 { as_fn_set_status 77
16912 as_fn_error "cannot compute sizeof (void *)
16913 See \`config.log' for more details." "$LINENO" 5; }; }
16915 ac_cv_sizeof_void_p=0
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16921 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16925 cat >>confdefs.h <<_ACEOF
16926 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16930 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
16935 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
16937 if test "$targ_alias" = "all"; then
16940 # Canonicalize the secondary target names.
16941 result=`$ac_config_sub $targ_alias 2>/dev/null`
16942 if test -n "$result"; then
16948 . ${srcdir}/configure.tgt
16950 if test "$targ" = "$target"; then
16954 if test x${want64} = xfalse; then
16955 . ${srcdir}/../bfd/config.bfd
16958 if test x${want64} = xtrue; then
16959 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
16960 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
16963 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
16964 case " $all_emuls " in
16967 all_emuls="$all_emuls e${i}.o"
16968 eval result=\$tdir_$i
16969 test -z "$result" && result=$targ_alias
16970 echo tdir_$i=$result >> tdirs
16975 for i in $targ_emul $targ_extra_libpath; do
16976 case " $all_libpath " in
16979 if test -z "$all_libpath"; then
16982 all_libpath="$all_libpath ${i}"
16988 for i in $targ_extra_ofiles; do
16989 case " $all_emul_extras " in
16992 all_emul_extras="$all_emul_extras ${i}"
17005 if test x${all_targets} = xtrue; then
17006 if test x${want64} = xtrue; then
17007 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
17008 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
17010 EMULATION_OFILES='$(ALL_EMULATIONS)'
17011 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
17014 EMULATION_OFILES=$all_emuls
17015 EMUL_EXTRA_OFILES=$all_emul_extras
17021 EMULATION_LIBPATH=$all_libpath
17024 if test x${enable_static} = xno; then
17025 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
17027 TESTBFDLIB="../bfd/.libs/libbfd.a"
17031 target_vendor=${target_vendor=$host_vendor}
17032 case "$target_vendor" in
17033 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17034 *) EXTRA_SHLIB_EXTENSION= ;;
17037 case "$target_os" in
17038 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17041 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17043 cat >>confdefs.h <<_ACEOF
17044 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17054 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
17056 cat >confcache <<\_ACEOF
17057 # This file is a shell script that caches the results of configure
17058 # tests run on this system so they can be shared between configure
17059 # scripts and configure runs, see configure's option --config-cache.
17060 # It is not useful on other systems. If it contains results you don't
17061 # want to keep, you may remove or edit it.
17063 # config.status only pays attention to the cache file if you give it
17064 # the --recheck option to rerun configure.
17066 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17067 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17068 # following values.
17072 # The following way of writing the cache mishandles newlines in values,
17073 # but we know of no workaround that is simple, portable, and efficient.
17074 # So, we kill variables containing newlines.
17075 # Ultrix sh set writes to stderr and can't be redirected directly,
17076 # and sets the high bit in the cache file unless we assign to the vars.
17078 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17079 eval ac_val=\$$ac_var
17083 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17084 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17087 _ | IFS | as_nl) ;; #(
17088 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17089 *) { eval $ac_var=; unset $ac_var;} ;;
17095 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17096 *${as_nl}ac_space=\ *)
17097 # `set' does not quote correctly, so add quotes: double-quote
17098 # substitution turns \\\\ into \\, and sed turns \\ into \.
17101 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17104 # `set' quotes correctly as required by POSIX, so do not add quotes.
17105 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17114 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17116 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17118 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17119 if test -w "$cache_file"; then
17120 test "x$cache_file" != "x/dev/null" &&
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17122 $as_echo "$as_me: updating cache $cache_file" >&6;}
17123 cat confcache >$cache_file
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17126 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17131 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17132 # Let make expand exec_prefix.
17133 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17135 DEFS=-DHAVE_CONFIG_H
17139 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17140 # 1. Remove the extension, and $U if already installed.
17141 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17142 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17143 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17144 # will be set to the directory where LIBOBJS objects are built.
17145 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17146 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17148 LIBOBJS=$ac_libobjs
17150 LTLIBOBJS=$ac_ltlibobjs
17153 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17154 as_fn_error "conditional \"AMDEP\" was never defined.
17155 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17157 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17158 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17161 if test -n "$EXEEXT"; then
17163 am__EXEEXT_FALSE='#'
17165 am__EXEEXT_TRUE='#'
17169 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17170 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17173 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17174 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17177 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17178 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17181 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
17182 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17185 if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17186 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17190 : ${CONFIG_STATUS=./config.status}
17192 ac_clean_files_save=$ac_clean_files
17193 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17195 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17197 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17199 # Generated by $as_me.
17200 # Run this file to recreate the current configuration.
17201 # Compiler output produced by configure, useful for debugging
17202 # configure, is in config.log if it exists.
17205 ac_cs_recheck=false
17208 SHELL=\${CONFIG_SHELL-$SHELL}
17211 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17212 ## -------------------- ##
17213 ## M4sh Initialization. ##
17214 ## -------------------- ##
17216 # Be more Bourne compatible
17217 DUALCASE=1; export DUALCASE # for MKS sh
17218 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17221 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17222 # is contrary to our usage. Disable this feature.
17223 alias -g '${1+"$@"}'='"$@"'
17224 setopt NO_GLOB_SUBST
17226 case `(set -o) 2>/dev/null` in #(
17238 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17239 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17240 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17241 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17242 # Prefer a ksh shell builtin over an external printf program on Solaris,
17243 # but without wasting forks for bash or zsh.
17244 if test -z "$BASH_VERSION$ZSH_VERSION" \
17245 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17246 as_echo='print -r --'
17247 as_echo_n='print -rn --'
17248 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17249 as_echo='printf %s\n'
17250 as_echo_n='printf %s'
17252 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17253 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17254 as_echo_n='/usr/ucb/echo -n'
17256 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17257 as_echo_n_body='eval
17261 expr "X$arg" : "X\\(.*\\)$as_nl";
17262 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17264 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17266 export as_echo_n_body
17267 as_echo_n='sh -c $as_echo_n_body as_echo'
17269 export as_echo_body
17270 as_echo='sh -c $as_echo_body as_echo'
17273 # The user is always right.
17274 if test "${PATH_SEPARATOR+set}" != set; then
17276 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17277 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17284 # We need space, tab and new line, in precisely that order. Quoting is
17285 # there to prevent editors from complaining about space-tab.
17286 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17287 # splitting by setting IFS to empty value.)
17290 # Find who we are. Look in the path if we contain no directory separator.
17292 *[\\/]* ) as_myself=$0 ;;
17293 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17294 for as_dir in $PATH
17297 test -z "$as_dir" && as_dir=.
17298 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17304 # We did not find ourselves, most probably we were run as `sh COMMAND'
17305 # in which case we are not to be found in the path.
17306 if test "x$as_myself" = x; then
17309 if test ! -f "$as_myself"; then
17310 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17314 # Unset variables that we do not need and which cause bugs (e.g. in
17315 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17316 # suppresses any "Segmentation fault" message there. '((' could
17317 # trigger a bug in pdksh 5.2.14.
17318 for as_var in BASH_ENV ENV MAIL MAILPATH
17319 do eval test x\${$as_var+set} = xset \
17320 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17333 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17336 # as_fn_error ERROR [LINENO LOG_FD]
17337 # ---------------------------------
17338 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17339 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17340 # script with status $?, using 1 if that was 0.
17343 as_status=$?; test $as_status -eq 0 && as_status=1
17345 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17346 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17348 $as_echo "$as_me: error: $1" >&2
17349 as_fn_exit $as_status
17353 # as_fn_set_status STATUS
17354 # -----------------------
17355 # Set $? to STATUS, without forking.
17356 as_fn_set_status ()
17359 } # as_fn_set_status
17361 # as_fn_exit STATUS
17362 # -----------------
17363 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17367 as_fn_set_status $1
17373 # Portably unset VAR.
17376 { eval $1=; unset $1;}
17378 as_unset=as_fn_unset
17379 # as_fn_append VAR VALUE
17380 # ----------------------
17381 # Append the text in VALUE to the end of the definition contained in VAR. Take
17382 # advantage of any shell optimizations that allow amortized linear growth over
17383 # repeated appends, instead of the typical quadratic growth present in naive
17385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17386 eval 'as_fn_append ()
17397 # as_fn_arith ARG...
17398 # ------------------
17399 # Perform arithmetic evaluation on the ARGs, and store the result in the
17400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17401 # must be portable across $(()) and expr.
17402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17403 eval 'as_fn_arith ()
17410 as_val=`expr "$@" || test $? -eq 1`
17415 if expr a : '\(a\)' >/dev/null 2>&1 &&
17416 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17422 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17423 as_basename=basename
17428 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17434 as_me=`$as_basename -- "$0" ||
17435 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17436 X"$0" : 'X\(//\)$' \| \
17437 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17439 sed '/^.*\/\([^/][^/]*\)\/*$/{
17453 # Avoid depending upon Character Ranges.
17454 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17455 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17456 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17457 as_cr_digits='0123456789'
17458 as_cr_alnum=$as_cr_Letters$as_cr_digits
17460 ECHO_C= ECHO_N= ECHO_T=
17461 case `echo -n x` in #(((((
17463 case `echo 'xy\c'` in
17464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17473 rm -f conf$$ conf$$.exe conf$$.file
17474 if test -d conf$$.dir; then
17475 rm -f conf$$.dir/conf$$.file
17478 mkdir conf$$.dir 2>/dev/null
17480 if (echo >conf$$.file) 2>/dev/null; then
17481 if ln -s conf$$.file conf$$ 2>/dev/null; then
17483 # ... but there are two gotchas:
17484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17486 # In both cases, we have to default to `cp -p'.
17487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17489 elif ln conf$$.file conf$$ 2>/dev/null; then
17497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17498 rmdir conf$$.dir 2>/dev/null
17503 # Create "$as_dir" as a directory, including parents if necessary.
17508 -*) as_dir=./$as_dir;;
17510 test -d "$as_dir" || eval $as_mkdir_p || {
17514 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17515 *) as_qdir=$as_dir;;
17517 as_dirs="'$as_qdir' $as_dirs"
17518 as_dir=`$as_dirname -- "$as_dir" ||
17519 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17520 X"$as_dir" : 'X\(//\)[^/]' \| \
17521 X"$as_dir" : 'X\(//\)$' \| \
17522 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17523 $as_echo X"$as_dir" |
17524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17528 /^X\(\/\/\)[^/].*/{
17541 test -d "$as_dir" && break
17543 test -z "$as_dirs" || eval "mkdir $as_dirs"
17544 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17548 if mkdir -p . 2>/dev/null; then
17549 as_mkdir_p='mkdir -p "$as_dir"'
17551 test -d ./-p && rmdir ./-p
17555 if test -x / >/dev/null 2>&1; then
17556 as_test_x='test -x'
17558 if ls -dL / >/dev/null 2>&1; then
17565 if test -d "$1"; then
17571 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17572 ???[sx]*):;;*)false;;esac;fi
17576 as_executable_p=$as_test_x
17578 # Sed expression to map a string onto a valid CPP name.
17579 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17581 # Sed expression to map a string onto a valid variable name.
17582 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17586 ## ----------------------------------- ##
17587 ## Main body of $CONFIG_STATUS script. ##
17588 ## ----------------------------------- ##
17590 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17593 # Save the log message, to keep $0 and so on meaningful, and to
17594 # report actual input values of CONFIG_FILES etc. instead of their
17595 # values after options handling.
17597 This file was extended by ld $as_me 2.24.90, which was
17598 generated by GNU Autoconf 2.64. Invocation command line was
17600 CONFIG_FILES = $CONFIG_FILES
17601 CONFIG_HEADERS = $CONFIG_HEADERS
17602 CONFIG_LINKS = $CONFIG_LINKS
17603 CONFIG_COMMANDS = $CONFIG_COMMANDS
17606 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17611 case $ac_config_files in *"
17612 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17615 case $ac_config_headers in *"
17616 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17621 # Files that config.status was made for.
17622 config_files="$ac_config_files"
17623 config_headers="$ac_config_headers"
17624 config_commands="$ac_config_commands"
17628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17630 \`$as_me' instantiates files and other configuration actions
17631 from templates according to the current configuration. Unless the files
17632 and actions are specified as TAGs, all are instantiated by default.
17634 Usage: $0 [OPTION]... [TAG]...
17636 -h, --help print this help, then exit
17637 -V, --version print version number and configuration settings, then exit
17638 -q, --quiet, --silent
17639 do not print progress messages
17640 -d, --debug don't remove temporary files
17641 --recheck update $as_me by reconfiguring in the same conditions
17642 --file=FILE[:TEMPLATE]
17643 instantiate the configuration file FILE
17644 --header=FILE[:TEMPLATE]
17645 instantiate the configuration header FILE
17647 Configuration files:
17650 Configuration headers:
17653 Configuration commands:
17656 Report bugs to the package provider."
17659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17661 ld config.status 2.24.90
17662 configured by $0, generated by GNU Autoconf 2.64,
17663 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17665 Copyright (C) 2009 Free Software Foundation, Inc.
17666 This config.status script is free software; the Free Software Foundation
17667 gives unlimited permission to copy, distribute and modify it."
17674 test -n "\$AWK" || AWK=awk
17677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17678 # The default lists apply if the user does not specify any file.
17684 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17685 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17696 # Handling of the options.
17697 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17699 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17700 $as_echo "$ac_cs_version"; exit ;;
17701 --debug | --debu | --deb | --de | --d | -d )
17703 --file | --fil | --fi | --f )
17706 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17708 as_fn_append CONFIG_FILES " '$ac_optarg'"
17709 ac_need_defaults=false;;
17710 --header | --heade | --head | --hea )
17713 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17715 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17716 ac_need_defaults=false;;
17718 # Conflict between --help and --header
17719 as_fn_error "ambiguous option: \`$1'
17720 Try \`$0 --help' for more information.";;
17721 --help | --hel | -h )
17722 $as_echo "$ac_cs_usage"; exit ;;
17723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17724 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17727 # This is an error.
17728 -*) as_fn_error "unrecognized option: \`$1'
17729 Try \`$0 --help' for more information." ;;
17731 *) as_fn_append ac_config_targets " $1"
17732 ac_need_defaults=false ;;
17738 ac_configure_extra_args=
17740 if $ac_cs_silent; then
17742 ac_configure_extra_args="$ac_configure_extra_args --silent"
17746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17747 if \$ac_cs_recheck; then
17748 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17750 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17751 CONFIG_SHELL='$SHELL'
17752 export CONFIG_SHELL
17757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17761 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17762 ## Running $as_me. ##
17768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17772 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17775 # The HP-UX ksh and POSIX shell print the target directory to stdout
17776 # if CDPATH is set.
17777 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17779 sed_quote_subst='$sed_quote_subst'
17780 double_quote_subst='$double_quote_subst'
17781 delay_variable_subst='$delay_variable_subst'
17782 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17783 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17784 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17785 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17786 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17787 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17788 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17789 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17790 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17791 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17792 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17793 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17794 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17795 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17796 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17797 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17798 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17799 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17800 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17801 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17802 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17803 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17804 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17805 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17806 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17807 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17808 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17809 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17810 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17811 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17812 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17813 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17814 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17815 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17816 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17817 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17818 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17819 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17820 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17821 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17822 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17823 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17824 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17825 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17826 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17827 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17828 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17829 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17830 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"`'
17831 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17832 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17833 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17834 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17835 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17836 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17837 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17838 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17839 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17840 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17841 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17842 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17843 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17844 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17845 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17846 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17847 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17848 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17849 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17850 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17851 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17852 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17853 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17854 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17855 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17856 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17857 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17858 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17859 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17860 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17861 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17862 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17863 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17864 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17865 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17866 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17867 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17868 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17869 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17870 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17871 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17872 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17873 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17874 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17875 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17876 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17877 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17878 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17879 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17880 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17881 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17882 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17883 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17884 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17885 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17886 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17887 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17888 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17889 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17890 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17891 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17892 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17893 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17894 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17895 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17896 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17897 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17898 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17899 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17900 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17901 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17902 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17903 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17904 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17905 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17906 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17907 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17908 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17909 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17910 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17911 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17912 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17913 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17914 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17915 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17916 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17917 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17918 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17919 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17920 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17921 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17922 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17923 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17924 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17925 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17926 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17927 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17928 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17929 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17930 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17931 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17932 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17933 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17934 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17935 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17936 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17937 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17938 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17939 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17940 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17941 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17942 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17943 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17944 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17945 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17946 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17947 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17948 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17949 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17950 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17951 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17952 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17953 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17954 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17955 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17956 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17959 LTCFLAGS='$LTCFLAGS'
17960 compiler='$compiler_DEFAULT'
17962 # A function that is used when there is no print builtin or printf.
17963 func_fallback_echo ()
17965 eval 'cat <<_LTECHO_EOF
17970 # Quote evaled strings.
17984 deplibs_check_method \
17993 lt_cv_sys_global_symbol_pipe \
17994 lt_cv_sys_global_symbol_to_cdecl \
17995 lt_cv_sys_global_symbol_to_c_name_address \
17996 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17997 lt_prog_compiler_no_builtin_flag \
17998 lt_prog_compiler_wl \
17999 lt_prog_compiler_pic \
18000 lt_prog_compiler_static \
18001 lt_cv_prog_compiler_c_o \
18009 export_dynamic_flag_spec \
18010 whole_archive_flag_spec \
18011 compiler_needs_object \
18013 allow_undefined_flag \
18014 no_undefined_flag \
18015 hardcode_libdir_flag_spec \
18016 hardcode_libdir_flag_spec_ld \
18017 hardcode_libdir_separator \
18022 variables_saved_for_relink \
18024 library_names_spec \
18026 install_override_mode \
18030 compiler_lib_search_dirs \
18035 compiler_lib_search_path \
18039 lt_prog_compiler_no_builtin_flag_CXX \
18040 lt_prog_compiler_wl_CXX \
18041 lt_prog_compiler_pic_CXX \
18042 lt_prog_compiler_static_CXX \
18043 lt_cv_prog_compiler_c_o_CXX \
18044 export_dynamic_flag_spec_CXX \
18045 whole_archive_flag_spec_CXX \
18046 compiler_needs_object_CXX \
18048 allow_undefined_flag_CXX \
18049 no_undefined_flag_CXX \
18050 hardcode_libdir_flag_spec_CXX \
18051 hardcode_libdir_flag_spec_ld_CXX \
18052 hardcode_libdir_separator_CXX \
18053 fix_srcfile_path_CXX \
18054 exclude_expsyms_CXX \
18055 include_expsyms_CXX \
18056 file_list_spec_CXX \
18057 compiler_lib_search_dirs_CXX \
18058 predep_objects_CXX \
18059 postdep_objects_CXX \
18062 compiler_lib_search_path_CXX; do
18063 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18064 *[\\\\\\\`\\"\\\$]*)
18065 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18068 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18073 # Double-quote double-evaled strings.
18074 for var in reload_cmds \
18075 old_postinstall_cmds \
18076 old_postuninstall_cmds \
18078 extract_expsyms_cmds \
18079 old_archive_from_new_cmds \
18080 old_archive_from_expsyms_cmds \
18082 archive_expsym_cmds \
18084 module_expsym_cmds \
18085 export_symbols_cmds \
18088 postuninstall_cmds \
18090 sys_lib_search_path_spec \
18091 sys_lib_dlsearch_path_spec \
18093 old_archive_cmds_CXX \
18094 old_archive_from_new_cmds_CXX \
18095 old_archive_from_expsyms_cmds_CXX \
18097 archive_expsym_cmds_CXX \
18099 module_expsym_cmds_CXX \
18100 export_symbols_cmds_CXX \
18101 prelink_cmds_CXX; do
18102 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18103 *[\\\\\\\`\\"\\\$]*)
18104 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18107 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18112 ac_aux_dir='$ac_aux_dir'
18113 xsi_shell='$xsi_shell'
18114 lt_shell_append='$lt_shell_append'
18116 # See if we are running on zsh, and set the options which allow our
18117 # commands through without removal of \ escapes INIT.
18118 if test -n "\${ZSH_VERSION+set}" ; then
18119 setopt NO_GLOB_SUBST
18125 TIMESTAMP='$TIMESTAMP'
18133 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18134 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18136 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18137 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18138 LINGUAS="${LINGUAS-%UNSET%}"
18143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18145 # Handling of arguments.
18146 for ac_config_target in $ac_config_targets
18148 case $ac_config_target in
18149 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18150 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18151 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18152 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18153 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18154 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18156 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18161 # If the user did not use the arguments to specify the items to instantiate,
18162 # then the envvar interface is used. Set only those that are not.
18163 # We use the long form for the default assignment because of an extremely
18164 # bizarre bug on SunOS 4.1.3.
18165 if $ac_need_defaults; then
18166 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18167 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18168 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18171 # Have a temporary directory for convenience. Make it in the build tree
18172 # simply because there is no reason against having it here, and in addition,
18173 # creating and moving files from /tmp can sometimes cause problems.
18174 # Hook for its removal unless debugging.
18175 # Note that there is a small window in which the directory will not be cleaned:
18176 # after its creation but before its name has been assigned to `$tmp'.
18180 trap 'exit_status=$?
18181 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18183 trap 'as_fn_exit 1' 1 2 13 15
18185 # Create a (secure) tmp directory for tmp files.
18188 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18189 test -n "$tmp" && test -d "$tmp"
18192 tmp=./conf$$-$RANDOM
18193 (umask 077 && mkdir "$tmp")
18194 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18196 # Set up the scripts for CONFIG_FILES section.
18197 # No need to generate them if there are no CONFIG_FILES.
18198 # This happens for instance with `./config.status config.h'.
18199 if test -n "$CONFIG_FILES"; then
18201 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18202 ac_cs_awk_getline=:
18203 ac_cs_awk_pipe_init=
18204 ac_cs_awk_read_file='
18205 while ((getline aline < (F[key])) > 0)
18208 ac_cs_awk_pipe_fini=
18210 ac_cs_awk_getline=false
18211 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18212 ac_cs_awk_read_file='
18214 print "cat " F[key] " &&"
18215 '$ac_cs_awk_pipe_init
18216 # The final `:' finishes the AND list.
18217 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18219 ac_cr=`echo X | tr X '\015'`
18220 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18221 # But we know of no other shell where ac_cr would be empty at this
18222 # point, so we can use a bashism as a fallback.
18223 if test "x$ac_cr" = x; then
18224 eval ac_cr=\$\'\\r\'
18226 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18227 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18230 ac_cs_awk_cr=$ac_cr
18233 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18236 # Create commands to substitute file output variables.
18238 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18239 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18240 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18243 } >conf$$files.sh &&
18244 . ./conf$$files.sh ||
18245 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18246 rm -f conf$$files.sh
18249 echo "cat >conf$$subs.awk <<_ACEOF" &&
18250 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18252 } >conf$$subs.sh ||
18253 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18254 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18256 for ac_last_try in false false false false false :; do
18257 . ./conf$$subs.sh ||
18258 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18260 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18261 if test $ac_delim_n = $ac_delim_num; then
18263 elif $ac_last_try; then
18264 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18266 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18269 rm -f conf$$subs.sh
18271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18272 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18276 s/^/S["/; s/!.*/"]=/
18286 s/\(.\{148\}\).*/\1/
18288 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18293 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18300 s/\(.\{148\}\).*/\1/
18302 s/["\\]/\\&/g; s/^/"/; s/$/"/
18306 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18311 ' <conf$$subs.awk | sed '
18316 ' >>$CONFIG_STATUS || ac_write_fail=1
18317 rm -f conf$$subs.awk
18318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18320 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18321 for (key in S) S_is_set[key] = 1
18323 \$ac_cs_awk_pipe_init
18327 nfields = split(line, field, "@")
18329 len = length(field[1])
18330 for (i = 2; i < nfields; i++) {
18332 keylen = length(key)
18333 if (S_is_set[key]) {
18335 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18336 len += length(value) + length(field[++i])
18341 if (nfields == 3 && !substed) {
18343 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18344 \$ac_cs_awk_read_file
18350 \$ac_cs_awk_pipe_fini
18353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18354 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18355 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18358 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18359 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18362 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18363 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18364 # trailing colons and then remove the whole line if VPATH becomes empty
18365 # (actually we leave an empty line to preserve line numbers).
18366 if test "x$srcdir" = x.; then
18367 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18368 s/:*\$(srcdir):*/:/
18369 s/:*\${srcdir}:*/:/
18371 s/^\([^=]*=[ ]*\):*/\1/
18377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18378 fi # test -n "$CONFIG_FILES"
18380 # Set up the scripts for CONFIG_HEADERS section.
18381 # No need to generate them if there are no CONFIG_HEADERS.
18382 # This happens for instance with `./config.status Makefile'.
18383 if test -n "$CONFIG_HEADERS"; then
18384 cat >"$tmp/defines.awk" <<\_ACAWK ||
18388 # Transform confdefs.h into an awk script `defines.awk', embedded as
18389 # here-document in config.status, that substitutes the proper values into
18390 # config.h.in to produce config.h.
18392 # Create a delimiter string that does not exist in confdefs.h, to ease
18393 # handling of long lines.
18395 for ac_last_try in false false :; do
18396 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18397 if test -z "$ac_t"; then
18399 elif $ac_last_try; then
18400 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18402 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18406 # For the awk script, D is an array of macro values keyed by name,
18407 # likewise P contains macro parameters if any. Preserve backslash
18408 # newline sequences.
18410 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18412 s/.\{148\}/&'"$ac_delim"'/g
18415 s/^[ ]*#[ ]*define[ ][ ]*/ /
18422 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18424 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18428 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18429 D["\1"]=" \3\\\\\\n"\\/p
18431 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18436 s/.\{148\}/&'"$ac_delim"'/g
18441 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18444 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18446 ' <confdefs.h | sed '
18447 s/'"$ac_delim"'/"\\\
18448 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18451 for (key in D) D_is_set[key] = 1
18454 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18456 split(line, arg, " ")
18457 if (arg[1] == "#") {
18461 defundef = substr(arg[1], 2)
18464 split(mac1, mac2, "(") #)
18466 prefix = substr(line, 1, index(line, defundef) - 1)
18467 if (D_is_set[macro]) {
18468 # Preserve the white space surrounding the "#".
18469 print prefix "define", macro P[macro] D[macro]
18472 # Replace #undef with comments. This is necessary, for example,
18473 # in the case of _POSIX_SOURCE, which is predefined and required
18474 # on some systems where configure will not decide to define it.
18475 if (defundef == "undef") {
18476 print "/*", prefix defundef, macro, "*/"
18484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18485 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18486 fi # test -n "$CONFIG_HEADERS"
18489 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18494 :[FHLC]) ac_mode=$ac_tag; continue;;
18496 case $ac_mode$ac_tag in
18498 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18499 :[FH]-) ac_tag=-:-;;
18500 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18517 -) ac_f="$tmp/stdin";;
18518 *) # Look for the file first in the build tree, then in the source tree
18519 # (if the path is not absolute). The absolute path cannot be DOS-style,
18520 # because $ac_f cannot contain `:'.
18524 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18526 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18528 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18529 as_fn_append ac_file_inputs " '$ac_f'"
18532 # Let's still pretend it is `configure' which instantiates (i.e., don't
18533 # use $as_me), people would be surprised to read:
18534 # /* config.h. Generated by config.status. */
18535 configure_input='Generated from '`
18536 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18538 if test x"$ac_file" != x-; then
18539 configure_input="$ac_file. $configure_input"
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18541 $as_echo "$as_me: creating $ac_file" >&6;}
18543 # Neutralize special characters interpreted by sed in replacement strings.
18544 case $configure_input in #(
18545 *\&* | *\|* | *\\* )
18546 ac_sed_conf_input=`$as_echo "$configure_input" |
18547 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18548 *) ac_sed_conf_input=$configure_input;;
18552 *:-:* | *:-) cat >"$tmp/stdin" \
18553 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18558 ac_dir=`$as_dirname -- "$ac_file" ||
18559 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18560 X"$ac_file" : 'X\(//\)[^/]' \| \
18561 X"$ac_file" : 'X\(//\)$' \| \
18562 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18563 $as_echo X"$ac_file" |
18564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18568 /^X\(\/\/\)[^/].*/{
18581 as_dir="$ac_dir"; as_fn_mkdir_p
18585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18587 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18588 # A ".." for each directory in $ac_dir_suffix.
18589 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18590 case $ac_top_builddir_sub in
18591 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18592 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18595 ac_abs_top_builddir=$ac_pwd
18596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18597 # for backward compatibility:
18598 ac_top_builddir=$ac_top_build_prefix
18601 .) # We are building in place.
18603 ac_top_srcdir=$ac_top_builddir_sub
18604 ac_abs_top_srcdir=$ac_pwd ;;
18605 [\\/]* | ?:[\\/]* ) # Absolute name.
18606 ac_srcdir=$srcdir$ac_dir_suffix;
18607 ac_top_srcdir=$srcdir
18608 ac_abs_top_srcdir=$srcdir ;;
18609 *) # Relative name.
18610 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18611 ac_top_srcdir=$ac_top_build_prefix$srcdir
18612 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18624 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18625 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18627 ac_MKDIR_P=$MKDIR_P
18629 [\\/$]* | ?:[\\/]* ) ;;
18630 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18635 # If the template does not know about datarootdir, expand it.
18636 # FIXME: This hack should be removed a few years after 2.60.
18637 ac_datarootdir_hack=; ac_datarootdir_seen=
18648 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18649 *datarootdir*) ac_datarootdir_seen=yes;;
18650 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18652 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18655 ac_datarootdir_hack='
18656 s&@datadir@&$datadir&g
18657 s&@docdir@&$docdir&g
18658 s&@infodir@&$infodir&g
18659 s&@localedir@&$localedir&g
18660 s&@mandir@&$mandir&g
18661 s&\\\${datarootdir}&$datarootdir&g' ;;
18665 # Neutralize VPATH when `$srcdir' = `.'.
18666 # Shell code in configure.ac might set extrasub.
18667 # FIXME: do we really want to maintain this feature?
18668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18669 ac_sed_extra="$ac_vpsub
18672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18674 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18675 s|@configure_input@|$ac_sed_conf_input|;t t
18676 s&@top_builddir@&$ac_top_builddir_sub&;t t
18677 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18678 s&@srcdir@&$ac_srcdir&;t t
18679 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18680 s&@top_srcdir@&$ac_top_srcdir&;t t
18681 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18682 s&@builddir@&$ac_builddir&;t t
18683 s&@abs_builddir@&$ac_abs_builddir&;t t
18684 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18685 s&@INSTALL@&$ac_INSTALL&;t t
18686 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18687 $ac_datarootdir_hack
18689 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18690 if $ac_cs_awk_getline; then
18691 $AWK -f "$tmp/subs.awk"
18693 $AWK -f "$tmp/subs.awk" | $SHELL
18695 || as_fn_error "could not create $ac_file" "$LINENO" 5
18697 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18698 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18699 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18701 which seems to be undefined. Please make sure it is defined." >&5
18702 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18703 which seems to be undefined. Please make sure it is defined." >&2;}
18707 -) cat "$tmp/out" && rm -f "$tmp/out";;
18708 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18710 || as_fn_error "could not create $ac_file" "$LINENO" 5
18716 if test x"$ac_file" != x-; then
18718 $as_echo "/* $configure_input */" \
18719 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18720 } >"$tmp/config.h" \
18721 || as_fn_error "could not create $ac_file" "$LINENO" 5
18722 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18724 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18727 mv "$tmp/config.h" "$ac_file" \
18728 || as_fn_error "could not create $ac_file" "$LINENO" 5
18731 $as_echo "/* $configure_input */" \
18732 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18733 || as_fn_error "could not create -" "$LINENO" 5
18735 # Compute "$ac_file"'s index in $config_headers.
18738 for _am_header in $config_headers :; do
18739 case $_am_header in
18740 $_am_arg | $_am_arg:* )
18743 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18746 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18747 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18748 X"$_am_arg" : 'X\(//\)[^/]' \| \
18749 X"$_am_arg" : 'X\(//\)$' \| \
18750 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18751 $as_echo X"$_am_arg" |
18752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18756 /^X\(\/\/\)[^/].*/{
18768 s/.*/./; q'`/stamp-h$_am_stamp_count
18771 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18772 $as_echo "$as_me: executing $ac_file commands" >&6;}
18777 case $ac_file$ac_mode in
18778 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18779 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18780 # are listed without --file. Let's play safe and only enable the eval
18781 # if we detect the quoting.
18782 case $CONFIG_FILES in
18783 *\'*) eval set x "$CONFIG_FILES" ;;
18784 *) set x $CONFIG_FILES ;;
18789 # Strip MF so we end up with the name of the file.
18790 mf=`echo "$mf" | sed -e 's/:.*$//'`
18791 # Check whether this is an Automake generated Makefile or not.
18792 # We used to match only the files named `Makefile.in', but
18793 # some people rename them; so instead we look at the file content.
18794 # Grep'ing the first line is not enough: some people post-process
18795 # each Makefile.in and add a new line on top of each file to say so.
18796 # Grep'ing the whole file is not good either: AIX grep has a line
18797 # limit of 2048, but all sed's we know have understand at least 4000.
18798 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18799 dirpart=`$as_dirname -- "$mf" ||
18800 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18801 X"$mf" : 'X\(//\)[^/]' \| \
18802 X"$mf" : 'X\(//\)$' \| \
18803 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18809 /^X\(\/\/\)[^/].*/{
18825 # Extract the definition of DEPDIR, am__include, and am__quote
18826 # from the Makefile without running `make'.
18827 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18828 test -z "$DEPDIR" && continue
18829 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18830 test -z "am__include" && continue
18831 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18832 # When using ansi2knr, U may be empty or an underscore; expand it
18833 U=`sed -n 's/^U = //p' < "$mf"`
18834 # Find all dependency output files, they are included files with
18835 # $(DEPDIR) in their names. We invoke sed twice because it is the
18836 # simplest approach to changing $(DEPDIR) to its actual value in the
18838 for file in `sed -n "
18839 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18840 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18841 # Make sure the directory exists.
18842 test -f "$dirpart/$file" && continue
18843 fdir=`$as_dirname -- "$file" ||
18844 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18845 X"$file" : 'X\(//\)[^/]' \| \
18846 X"$file" : 'X\(//\)$' \| \
18847 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18848 $as_echo X"$file" |
18849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18853 /^X\(\/\/\)[^/].*/{
18866 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18867 # echo "creating $dirpart/$file"
18868 echo '# dummy' > "$dirpart/$file"
18875 # See if we are running on zsh, and set the options which allow our
18876 # commands through without removal of \ escapes.
18877 if test -n "${ZSH_VERSION+set}" ; then
18878 setopt NO_GLOB_SUBST
18881 cfgfile="${ofile}T"
18882 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18885 cat <<_LT_EOF >> "$cfgfile"
18888 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18889 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18890 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18891 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18893 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18894 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18895 # Written by Gordon Matzigkeit, 1996
18897 # This file is part of GNU Libtool.
18899 # GNU Libtool is free software; you can redistribute it and/or
18900 # modify it under the terms of the GNU General Public License as
18901 # published by the Free Software Foundation; either version 2 of
18902 # the License, or (at your option) any later version.
18904 # As a special exception to the GNU General Public License,
18905 # if you distribute this file as part of a program or library that
18906 # is built using GNU Libtool, you may include this file under the
18907 # same distribution terms that you use for the rest of that program.
18909 # GNU Libtool is distributed in the hope that it will be useful,
18910 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18911 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18912 # GNU General Public License for more details.
18914 # You should have received a copy of the GNU General Public License
18915 # along with GNU Libtool; see the file COPYING. If not, a copy
18916 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18917 # obtained by writing to the Free Software Foundation, Inc.,
18918 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18921 # The names of the tagged configurations supported by this script.
18922 available_tags="CXX "
18924 # ### BEGIN LIBTOOL CONFIG
18926 # Which release of libtool.m4 was used?
18927 macro_version=$macro_version
18928 macro_revision=$macro_revision
18930 # Whether or not to build shared libraries.
18931 build_libtool_libs=$enable_shared
18933 # Whether or not to build static libraries.
18934 build_old_libs=$enable_static
18936 # What type of objects to build.
18939 # Whether or not to optimize for fast installation.
18940 fast_install=$enable_fast_install
18942 # Shell to use when invoking shell scripts.
18945 # An echo program that protects backslashes.
18949 host_alias=$host_alias
18953 # The build system.
18954 build_alias=$build_alias
18958 # A sed program that does not truncate output.
18961 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18962 Xsed="\$SED -e 1s/^X//"
18964 # A grep program that handles long lines.
18970 # A literal string matcher.
18973 # A BSD- or MS-compatible name lister.
18976 # Whether we need soft or hard links.
18979 # What is the maximum length of a command?
18980 max_cmd_len=$max_cmd_len
18982 # Object file suffix (normally "o").
18985 # Executable file suffix (normally "").
18988 # whether the shell understands "unset".
18991 # turn spaces into newlines.
18994 # turn newlines into spaces.
18997 # An object symbol dumper.
18998 OBJDUMP=$lt_OBJDUMP
19000 # Method to check whether dependent libraries are shared objects.
19001 deplibs_check_method=$lt_deplibs_check_method
19003 # Command to use when deplibs_check_method == "file_magic".
19004 file_magic_cmd=$lt_file_magic_cmd
19008 AR_FLAGS=$lt_AR_FLAGS
19010 # A symbol stripping program.
19013 # Commands used to install an old-style archive.
19015 old_postinstall_cmds=$lt_old_postinstall_cmds
19016 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19018 # Whether to use a lock for old archive extraction.
19019 lock_old_archive_extraction=$lock_old_archive_extraction
19024 # LTCC compiler flags.
19025 LTCFLAGS=$lt_CFLAGS
19027 # Take the output of nm and produce a listing of raw symbols and C names.
19028 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19030 # Transform the output of nm in a proper C declaration.
19031 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19033 # Transform the output of nm in a C name address pair.
19034 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19036 # Transform the output of nm in a C name address pair when lib prefix is needed.
19037 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19039 # The name of the directory that contains temporary libtool files.
19042 # Used to examine libraries when file_magic_cmd begins with "file".
19043 MAGIC_CMD=$MAGIC_CMD
19045 # Must we lock files when doing compilation?
19046 need_locks=$lt_need_locks
19048 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19049 DSYMUTIL=$lt_DSYMUTIL
19051 # Tool to change global to local symbols on Mac OS X.
19054 # Tool to manipulate fat objects and archives on Mac OS X.
19057 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19060 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19061 OTOOL64=$lt_OTOOL64
19063 # Old archive suffix (normally "a").
19066 # Shared library suffix (normally ".so").
19067 shrext_cmds=$lt_shrext_cmds
19069 # The commands to extract the exported symbol list from a shared archive.
19070 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19072 # Variables whose values should be saved in libtool wrapper scripts and
19073 # restored at link time.
19074 variables_saved_for_relink=$lt_variables_saved_for_relink
19076 # Do we need the "lib" prefix for modules?
19077 need_lib_prefix=$need_lib_prefix
19079 # Do we need a version for libraries?
19080 need_version=$need_version
19082 # Library versioning type.
19083 version_type=$version_type
19085 # Shared library runtime path variable.
19086 runpath_var=$runpath_var
19088 # Shared library path variable.
19089 shlibpath_var=$shlibpath_var
19091 # Is shlibpath searched before the hard-coded library search path?
19092 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19094 # Format of library name prefix.
19095 libname_spec=$lt_libname_spec
19097 # List of archive names. First name is the real one, the rest are links.
19098 # The last name is the one that the linker finds with -lNAME
19099 library_names_spec=$lt_library_names_spec
19101 # The coded name of the library, if different from the real name.
19102 soname_spec=$lt_soname_spec
19104 # Permission mode override for installation of shared libraries.
19105 install_override_mode=$lt_install_override_mode
19107 # Command to use after installation of a shared archive.
19108 postinstall_cmds=$lt_postinstall_cmds
19110 # Command to use after uninstallation of a shared archive.
19111 postuninstall_cmds=$lt_postuninstall_cmds
19113 # Commands used to finish a libtool library installation in a directory.
19114 finish_cmds=$lt_finish_cmds
19116 # As "finish_cmds", except a single script fragment to be evaled but
19118 finish_eval=$lt_finish_eval
19120 # Whether we should hardcode library paths into libraries.
19121 hardcode_into_libs=$hardcode_into_libs
19123 # Compile-time system search path for libraries.
19124 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19126 # Run-time system search path for libraries.
19127 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19129 # Whether dlopen is supported.
19130 dlopen_support=$enable_dlopen
19132 # Whether dlopen of programs is supported.
19133 dlopen_self=$enable_dlopen_self
19135 # Whether dlopen of statically linked programs is supported.
19136 dlopen_self_static=$enable_dlopen_self_static
19138 # Commands to strip libraries.
19139 old_striplib=$lt_old_striplib
19140 striplib=$lt_striplib
19143 # The linker used to build libraries.
19146 # How to create reloadable object files.
19147 reload_flag=$lt_reload_flag
19148 reload_cmds=$lt_reload_cmds
19150 # Commands used to build an old-style archive.
19151 old_archive_cmds=$lt_old_archive_cmds
19153 # A language specific compiler.
19156 # Is the compiler the GNU compiler?
19159 # Compiler flag to turn off builtin functions.
19160 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19162 # How to pass a linker flag through the compiler.
19163 wl=$lt_lt_prog_compiler_wl
19165 # Additional compiler flags for building library objects.
19166 pic_flag=$lt_lt_prog_compiler_pic
19168 # Compiler flag to prevent dynamic linking.
19169 link_static_flag=$lt_lt_prog_compiler_static
19171 # Does compiler simultaneously support -c and -o options?
19172 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19174 # Whether or not to add -lc for building shared libraries.
19175 build_libtool_need_lc=$archive_cmds_need_lc
19177 # Whether or not to disallow shared libs when runtime libs are static.
19178 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19180 # Compiler flag to allow reflexive dlopens.
19181 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19183 # Compiler flag to generate shared objects directly from archives.
19184 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19186 # Whether the compiler copes with passing no objects directly.
19187 compiler_needs_object=$lt_compiler_needs_object
19189 # Create an old-style archive from a shared archive.
19190 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19192 # Create a temporary old-style archive to link instead of a shared archive.
19193 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19195 # Commands used to build a shared archive.
19196 archive_cmds=$lt_archive_cmds
19197 archive_expsym_cmds=$lt_archive_expsym_cmds
19199 # Commands used to build a loadable module if different from building
19200 # a shared archive.
19201 module_cmds=$lt_module_cmds
19202 module_expsym_cmds=$lt_module_expsym_cmds
19204 # Whether we are building with GNU ld or not.
19205 with_gnu_ld=$lt_with_gnu_ld
19207 # Flag that allows shared libraries with undefined symbols to be built.
19208 allow_undefined_flag=$lt_allow_undefined_flag
19210 # Flag that enforces no undefined symbols.
19211 no_undefined_flag=$lt_no_undefined_flag
19213 # Flag to hardcode \$libdir into a binary during linking.
19214 # This must work even if \$libdir does not exist
19215 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19217 # If ld is used when linking, flag to hardcode \$libdir into a binary
19218 # during linking. This must work even if \$libdir does not exist.
19219 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19221 # Whether we need a single "-rpath" flag with a separated argument.
19222 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19224 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19225 # DIR into the resulting binary.
19226 hardcode_direct=$hardcode_direct
19228 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19229 # DIR into the resulting binary and the resulting library dependency is
19230 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19231 # library is relocated.
19232 hardcode_direct_absolute=$hardcode_direct_absolute
19234 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19235 # into the resulting binary.
19236 hardcode_minus_L=$hardcode_minus_L
19238 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19239 # into the resulting binary.
19240 hardcode_shlibpath_var=$hardcode_shlibpath_var
19242 # Set to "yes" if building a shared library automatically hardcodes DIR
19243 # into the library and all subsequent libraries and executables linked
19245 hardcode_automatic=$hardcode_automatic
19247 # Set to yes if linker adds runtime paths of dependent libraries
19248 # to runtime path list.
19249 inherit_rpath=$inherit_rpath
19251 # Whether libtool must link a program against all its dependency libraries.
19252 link_all_deplibs=$link_all_deplibs
19254 # Fix the shell variable \$srcfile for the compiler.
19255 fix_srcfile_path=$lt_fix_srcfile_path
19257 # Set to "yes" if exported symbols are required.
19258 always_export_symbols=$always_export_symbols
19260 # The commands to list exported symbols.
19261 export_symbols_cmds=$lt_export_symbols_cmds
19263 # Symbols that should not be listed in the preloaded symbols.
19264 exclude_expsyms=$lt_exclude_expsyms
19266 # Symbols that must always be exported.
19267 include_expsyms=$lt_include_expsyms
19269 # Commands necessary for linking programs (against libraries) with templates.
19270 prelink_cmds=$lt_prelink_cmds
19272 # Specify filename containing input files.
19273 file_list_spec=$lt_file_list_spec
19275 # How to hardcode a shared library path into an executable.
19276 hardcode_action=$hardcode_action
19278 # The directories searched by this compiler when creating a shared library.
19279 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19281 # Dependencies to place before and after the objects being linked to
19282 # create a shared library.
19283 predep_objects=$lt_predep_objects
19284 postdep_objects=$lt_postdep_objects
19285 predeps=$lt_predeps
19286 postdeps=$lt_postdeps
19288 # The library search path used internally by the compiler when linking
19289 # a shared library.
19290 compiler_lib_search_path=$lt_compiler_lib_search_path
19292 # ### END LIBTOOL CONFIG
19298 cat <<\_LT_EOF >> "$cfgfile"
19299 # AIX sometimes has problems with the GCC collect2 program. For some
19300 # reason, if we set the COLLECT_NAMES environment variable, the problems
19301 # vanish in a puff of smoke.
19302 if test "X${COLLECT_NAMES+set}" != Xset; then
19304 export COLLECT_NAMES
19311 ltmain="$ac_aux_dir/ltmain.sh"
19314 # We use sed instead of cat because bash on DJGPP gets confused if
19315 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19316 # text mode, it properly converts lines to CR/LF. This bash problem
19317 # is reportedly fixed, but why not run on old versions too?
19318 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19319 || (rm -f "$cfgfile"; exit 1)
19323 cat << \_LT_EOF >> "$cfgfile"
19325 # func_dirname file append nondir_replacement
19326 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19327 # otherwise set result to NONDIR_REPLACEMENT.
19331 */*) func_dirname_result="${1%/*}${2}" ;;
19332 * ) func_dirname_result="${3}" ;;
19336 # func_basename file
19339 func_basename_result="${1##*/}"
19342 # func_dirname_and_basename file append nondir_replacement
19343 # perform func_basename and func_dirname in a single function
19345 # dirname: Compute the dirname of FILE. If nonempty,
19346 # add APPEND to the result, otherwise set result
19347 # to NONDIR_REPLACEMENT.
19348 # value returned in "$func_dirname_result"
19349 # basename: Compute filename of FILE.
19350 # value retuned in "$func_basename_result"
19351 # Implementation must be kept synchronized with func_dirname
19352 # and func_basename. For efficiency, we do not delegate to
19353 # those functions but instead duplicate the functionality here.
19354 func_dirname_and_basename ()
19357 */*) func_dirname_result="${1%/*}${2}" ;;
19358 * ) func_dirname_result="${3}" ;;
19360 func_basename_result="${1##*/}"
19363 # func_stripname prefix suffix name
19364 # strip PREFIX and SUFFIX off of NAME.
19365 # PREFIX and SUFFIX must not contain globbing or regex special
19366 # characters, hashes, percent signs, but SUFFIX may contain a leading
19367 # dot (in which case that matches only a dot).
19370 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19371 # positional parameters, so assign one to ordinary parameter first.
19372 func_stripname_result=${3}
19373 func_stripname_result=${func_stripname_result#"${1}"}
19374 func_stripname_result=${func_stripname_result%"${2}"}
19380 func_opt_split_opt=${1%%=*}
19381 func_opt_split_arg=${1#*=}
19388 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19389 *) func_lo2o_result=${1} ;;
19393 # func_xform libobj-or-source
19396 func_xform_result=${1%.*}.lo
19399 # func_arith arithmetic-term...
19402 func_arith_result=$(( $* ))
19406 # STRING may not start with a hyphen.
19409 func_len_result=${#1}
19414 *) # Bourne compatible functions.
19415 cat << \_LT_EOF >> "$cfgfile"
19417 # func_dirname file append nondir_replacement
19418 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19419 # otherwise set result to NONDIR_REPLACEMENT.
19422 # Extract subdirectory from the argument.
19423 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19424 if test "X$func_dirname_result" = "X${1}"; then
19425 func_dirname_result="${3}"
19427 func_dirname_result="$func_dirname_result${2}"
19431 # func_basename file
19434 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19438 # func_stripname prefix suffix name
19439 # strip PREFIX and SUFFIX off of NAME.
19440 # PREFIX and SUFFIX must not contain globbing or regex special
19441 # characters, hashes, percent signs, but SUFFIX may contain a leading
19442 # dot (in which case that matches only a dot).
19443 # func_strip_suffix prefix name
19447 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19448 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19453 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19454 my_sed_long_arg='1s/^-[^=]*=//'
19459 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19460 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19466 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19469 # func_xform libobj-or-source
19472 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19475 # func_arith arithmetic-term...
19478 func_arith_result=`expr "$@"`
19482 # STRING may not start with a hyphen.
19485 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19491 case $lt_shell_append in
19493 cat << \_LT_EOF >> "$cfgfile"
19495 # func_append var value
19496 # Append VALUE to the end of shell variable VAR.
19504 cat << \_LT_EOF >> "$cfgfile"
19506 # func_append var value
19507 # Append VALUE to the end of shell variable VAR.
19518 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19519 || (rm -f "$cfgfile"; exit 1)
19521 mv -f "$cfgfile" "$ofile" ||
19522 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19526 cat <<_LT_EOF >> "$ofile"
19528 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19530 # The linker used to build libraries.
19533 # How to create reloadable object files.
19534 reload_flag=$lt_reload_flag_CXX
19535 reload_cmds=$lt_reload_cmds_CXX
19537 # Commands used to build an old-style archive.
19538 old_archive_cmds=$lt_old_archive_cmds_CXX
19540 # A language specific compiler.
19541 CC=$lt_compiler_CXX
19543 # Is the compiler the GNU compiler?
19546 # Compiler flag to turn off builtin functions.
19547 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19549 # How to pass a linker flag through the compiler.
19550 wl=$lt_lt_prog_compiler_wl_CXX
19552 # Additional compiler flags for building library objects.
19553 pic_flag=$lt_lt_prog_compiler_pic_CXX
19555 # Compiler flag to prevent dynamic linking.
19556 link_static_flag=$lt_lt_prog_compiler_static_CXX
19558 # Does compiler simultaneously support -c and -o options?
19559 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19561 # Whether or not to add -lc for building shared libraries.
19562 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19564 # Whether or not to disallow shared libs when runtime libs are static.
19565 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19567 # Compiler flag to allow reflexive dlopens.
19568 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19570 # Compiler flag to generate shared objects directly from archives.
19571 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19573 # Whether the compiler copes with passing no objects directly.
19574 compiler_needs_object=$lt_compiler_needs_object_CXX
19576 # Create an old-style archive from a shared archive.
19577 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19579 # Create a temporary old-style archive to link instead of a shared archive.
19580 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19582 # Commands used to build a shared archive.
19583 archive_cmds=$lt_archive_cmds_CXX
19584 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19586 # Commands used to build a loadable module if different from building
19587 # a shared archive.
19588 module_cmds=$lt_module_cmds_CXX
19589 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19591 # Whether we are building with GNU ld or not.
19592 with_gnu_ld=$lt_with_gnu_ld_CXX
19594 # Flag that allows shared libraries with undefined symbols to be built.
19595 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19597 # Flag that enforces no undefined symbols.
19598 no_undefined_flag=$lt_no_undefined_flag_CXX
19600 # Flag to hardcode \$libdir into a binary during linking.
19601 # This must work even if \$libdir does not exist
19602 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19604 # If ld is used when linking, flag to hardcode \$libdir into a binary
19605 # during linking. This must work even if \$libdir does not exist.
19606 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19608 # Whether we need a single "-rpath" flag with a separated argument.
19609 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19611 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19612 # DIR into the resulting binary.
19613 hardcode_direct=$hardcode_direct_CXX
19615 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19616 # DIR into the resulting binary and the resulting library dependency is
19617 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19618 # library is relocated.
19619 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19621 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19622 # into the resulting binary.
19623 hardcode_minus_L=$hardcode_minus_L_CXX
19625 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19626 # into the resulting binary.
19627 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19629 # Set to "yes" if building a shared library automatically hardcodes DIR
19630 # into the library and all subsequent libraries and executables linked
19632 hardcode_automatic=$hardcode_automatic_CXX
19634 # Set to yes if linker adds runtime paths of dependent libraries
19635 # to runtime path list.
19636 inherit_rpath=$inherit_rpath_CXX
19638 # Whether libtool must link a program against all its dependency libraries.
19639 link_all_deplibs=$link_all_deplibs_CXX
19641 # Fix the shell variable \$srcfile for the compiler.
19642 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19644 # Set to "yes" if exported symbols are required.
19645 always_export_symbols=$always_export_symbols_CXX
19647 # The commands to list exported symbols.
19648 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19650 # Symbols that should not be listed in the preloaded symbols.
19651 exclude_expsyms=$lt_exclude_expsyms_CXX
19653 # Symbols that must always be exported.
19654 include_expsyms=$lt_include_expsyms_CXX
19656 # Commands necessary for linking programs (against libraries) with templates.
19657 prelink_cmds=$lt_prelink_cmds_CXX
19659 # Specify filename containing input files.
19660 file_list_spec=$lt_file_list_spec_CXX
19662 # How to hardcode a shared library path into an executable.
19663 hardcode_action=$hardcode_action_CXX
19665 # The directories searched by this compiler when creating a shared library.
19666 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19668 # Dependencies to place before and after the objects being linked to
19669 # create a shared library.
19670 predep_objects=$lt_predep_objects_CXX
19671 postdep_objects=$lt_postdep_objects_CXX
19672 predeps=$lt_predeps_CXX
19673 postdeps=$lt_postdeps_CXX
19675 # The library search path used internally by the compiler when linking
19676 # a shared library.
19677 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19679 # ### END LIBTOOL TAG CONFIG: CXX
19684 for ac_file in $CONFIG_FILES; do
19685 # Support "outfile[:infile[:infile...]]"
19687 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19689 # PO directories have a Makefile.in generated from Makefile.in.in.
19690 case "$ac_file" in */Makefile.in)
19691 # Adjust a relative srcdir.
19692 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19693 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
19694 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19695 # In autoconf-2.13 it is called $ac_given_srcdir.
19696 # In autoconf-2.50 it is called $srcdir.
19697 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19698 case "$ac_given_srcdir" in
19699 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19700 /*) top_srcdir="$ac_given_srcdir" ;;
19701 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19703 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19704 rm -f "$ac_dir/POTFILES"
19705 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19706 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19707 POMAKEFILEDEPS="POTFILES.in"
19708 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19709 # on $ac_dir but don't depend on user-specified configuration
19711 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19712 # The LINGUAS file contains the set of available languages.
19713 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19714 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19716 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19717 # Hide the ALL_LINGUAS assigment from automake.
19718 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19719 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19721 # The set of available languages was given in configure.in.
19722 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19724 case "$ac_given_srcdir" in
19726 *) srcdirpre='$(srcdir)/' ;;
19732 for lang in $ALL_LINGUAS; do
19733 POFILES="$POFILES $srcdirpre$lang.po"
19734 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19735 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19736 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19738 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19739 # environment variable.
19741 if test -n "$ALL_LINGUAS"; then
19742 for presentlang in $ALL_LINGUAS; do
19744 if test "%UNSET%" != "$LINGUAS"; then
19745 desiredlanguages="$LINGUAS"
19747 desiredlanguages="$ALL_LINGUAS"
19749 for desiredlang in $desiredlanguages; do
19750 # Use the presentlang catalog if desiredlang is
19751 # a. equal to presentlang, or
19752 # b. a variant of presentlang (because in this case,
19753 # presentlang can be used as a fallback for messages
19754 # which are not translated in the desiredlang catalog).
19755 case "$desiredlang" in
19756 "$presentlang"*) useit=yes;;
19759 if test $useit = yes; then
19760 INST_LINGUAS="$INST_LINGUAS $presentlang"
19765 if test -n "$INST_LINGUAS"; then
19766 for lang in $INST_LINGUAS; do
19767 CATALOGS="$CATALOGS $lang.gmo"
19770 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19771 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
19772 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19773 if test -f "$f"; then
19775 *.orig | *.bak | *~) ;;
19776 *) cat "$f" >> "$ac_dir/Makefile" ;;
19791 ac_clean_files=$ac_clean_files_save
19793 test $ac_write_fail = 0 ||
19794 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19797 # configure is writing to config.log, and then calls config.status.
19798 # config.status does its own redirection, appending to config.log.
19799 # Unfortunately, on DOS this fails, as config.log is still kept open
19800 # by configure, so config.status won't be able to write to it; its
19801 # output is simply discarded. So we exec the FD to /dev/null,
19802 # effectively closing config.log, so it can be properly (re)opened and
19803 # appended to by config.status. When coming back to configure, we
19804 # need to make the FD available again.
19805 if test "$no_create" != yes; then
19807 ac_config_status_args=
19808 test "$silent" = yes &&
19809 ac_config_status_args="$ac_config_status_args --quiet"
19811 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19813 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19814 # would make configure fail if this is the last instruction.
19815 $ac_cs_success || as_fn_exit $?
19817 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19819 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}