2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for gas 2.25.51.
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.
558 PACKAGE_TARNAME='gas'
559 PACKAGE_VERSION='2.25.51'
560 PACKAGE_STRING='gas 2.25.51'
564 ac_unique_file="as.h"
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
611 MAINTAINER_MODE_FALSE
680 INSTALL_STRIP_PROGRAM
741 program_transform_name
754 enable_option_checking
755 enable_dependency_tracking
767 enable_build_warnings
769 enable_maintainer_mode
772 ac_precious_vars='build_alias
785 # Initialize some variables set by options.
787 ac_init_version=false
788 ac_unrecognized_opts=
790 # The variables have the same names as the options, with
791 # dashes changed to underlines.
799 program_transform_name=s,x,x,
807 # Installation directory options.
808 # These are left unexpanded so users can "make install exec_prefix=/foo"
809 # and all the variables that are supposed to be based on exec_prefix
810 # by default will actually change.
811 # Use braces instead of parens because sh, perl, etc. also accept them.
812 # (The list follows the same order as the GNU Coding Standards.)
813 bindir='${exec_prefix}/bin'
814 sbindir='${exec_prefix}/sbin'
815 libexecdir='${exec_prefix}/libexec'
816 datarootdir='${prefix}/share'
817 datadir='${datarootdir}'
818 sysconfdir='${prefix}/etc'
819 sharedstatedir='${prefix}/com'
820 localstatedir='${prefix}/var'
821 includedir='${prefix}/include'
822 oldincludedir='/usr/include'
823 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824 infodir='${datarootdir}/info'
829 libdir='${exec_prefix}/lib'
830 localedir='${datarootdir}/locale'
831 mandir='${datarootdir}/man'
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
839 eval $ac_prev=\$ac_option
845 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849 # Accept the important Cygnus configure options, so we can diagnose typos.
851 case $ac_dashdash$ac_option in
855 -bindir | --bindir | --bindi | --bind | --bin | --bi)
857 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860 -build | --build | --buil | --bui | --bu)
861 ac_prev=build_alias ;;
862 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
863 build_alias=$ac_optarg ;;
865 -cache-file | --cache-file | --cache-fil | --cache-fi \
866 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
867 ac_prev=cache_file ;;
868 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
869 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
870 cache_file=$ac_optarg ;;
873 cache_file=config.cache ;;
875 -datadir | --datadir | --datadi | --datad)
877 -datadir=* | --datadir=* | --datadi=* | --datad=*)
878 datadir=$ac_optarg ;;
880 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
881 | --dataroo | --dataro | --datar)
882 ac_prev=datarootdir ;;
883 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
884 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
885 datarootdir=$ac_optarg ;;
887 -disable-* | --disable-*)
888 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
889 # Reject names that are not valid shell variable names.
890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891 as_fn_error "invalid feature name: $ac_useropt"
892 ac_useropt_orig=$ac_useropt
893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
899 ac_unrecognized_sep=', ';;
901 eval enable_$ac_useropt=no ;;
903 -docdir | --docdir | --docdi | --doc | --do)
905 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 -enable-* | --enable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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--enable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
927 eval enable_$ac_useropt=\$ac_optarg ;;
929 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931 | --exec | --exe | --ex)
932 ac_prev=exec_prefix ;;
933 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935 | --exec=* | --exe=* | --ex=*)
936 exec_prefix=$ac_optarg ;;
938 -gas | --gas | --ga | --g)
939 # Obsolete; use --with-gas.
942 -help | --help | --hel | --he | -h)
944 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945 ac_init_help=recursive ;;
946 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947 ac_init_help=short ;;
949 -host | --host | --hos | --ho)
950 ac_prev=host_alias ;;
951 -host=* | --host=* | --hos=* | --ho=*)
952 host_alias=$ac_optarg ;;
954 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958 htmldir=$ac_optarg ;;
960 -includedir | --includedir | --includedi | --included | --include \
961 | --includ | --inclu | --incl | --inc)
962 ac_prev=includedir ;;
963 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964 | --includ=* | --inclu=* | --incl=* | --inc=*)
965 includedir=$ac_optarg ;;
967 -infodir | --infodir | --infodi | --infod | --info | --inf)
969 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
970 infodir=$ac_optarg ;;
972 -libdir | --libdir | --libdi | --libd)
974 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978 | --libexe | --libex | --libe)
979 ac_prev=libexecdir ;;
980 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981 | --libexe=* | --libex=* | --libe=*)
982 libexecdir=$ac_optarg ;;
984 -localedir | --localedir | --localedi | --localed | --locale)
986 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987 localedir=$ac_optarg ;;
989 -localstatedir | --localstatedir | --localstatedi | --localstated \
990 | --localstate | --localstat | --localsta | --localst | --locals)
991 ac_prev=localstatedir ;;
992 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
993 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
994 localstatedir=$ac_optarg ;;
996 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 -nfp | --nfp | --nf)
1002 # Obsolete; use --without-fp.
1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006 | --no-cr | --no-c | -n)
1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015 | --oldin | --oldi | --old | --ol | --o)
1016 ac_prev=oldincludedir ;;
1017 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1020 oldincludedir=$ac_optarg ;;
1022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1025 prefix=$ac_optarg ;;
1027 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028 | --program-pre | --program-pr | --program-p)
1029 ac_prev=program_prefix ;;
1030 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1032 program_prefix=$ac_optarg ;;
1034 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035 | --program-suf | --program-su | --program-s)
1036 ac_prev=program_suffix ;;
1037 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1039 program_suffix=$ac_optarg ;;
1041 -program-transform-name | --program-transform-name \
1042 | --program-transform-nam | --program-transform-na \
1043 | --program-transform-n | --program-transform- \
1044 | --program-transform | --program-transfor \
1045 | --program-transfo | --program-transf \
1046 | --program-trans | --program-tran \
1047 | --progr-tra | --program-tr | --program-t)
1048 ac_prev=program_transform_name ;;
1049 -program-transform-name=* | --program-transform-name=* \
1050 | --program-transform-nam=* | --program-transform-na=* \
1051 | --program-transform-n=* | --program-transform-=* \
1052 | --program-transform=* | --program-transfor=* \
1053 | --program-transfo=* | --program-transf=* \
1054 | --program-trans=* | --program-tran=* \
1055 | --progr-tra=* | --program-tr=* | --program-t=*)
1056 program_transform_name=$ac_optarg ;;
1058 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061 pdfdir=$ac_optarg ;;
1063 -psdir | --psdir | --psdi | --psd | --ps)
1065 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1072 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1074 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1076 sbindir=$ac_optarg ;;
1078 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1079 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1080 | --sharedst | --shareds | --shared | --share | --shar \
1082 ac_prev=sharedstatedir ;;
1083 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1084 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1085 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1087 sharedstatedir=$ac_optarg ;;
1089 -site | --site | --sit)
1091 -site=* | --site=* | --sit=*)
1094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1097 srcdir=$ac_optarg ;;
1099 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1100 | --syscon | --sysco | --sysc | --sys | --sy)
1101 ac_prev=sysconfdir ;;
1102 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1103 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1104 sysconfdir=$ac_optarg ;;
1106 -target | --target | --targe | --targ | --tar | --ta | --t)
1107 ac_prev=target_alias ;;
1108 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1109 target_alias=$ac_optarg ;;
1111 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 -version | --version | --versio | --versi | --vers | -V)
1115 ac_init_version=: ;;
1118 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1131 eval with_$ac_useropt=\$ac_optarg ;;
1133 -without-* | --without-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1147 eval with_$ac_useropt=no ;;
1150 # Obsolete; use --with-x.
1153 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154 | --x-incl | --x-inc | --x-in | --x-i)
1155 ac_prev=x_includes ;;
1156 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158 x_includes=$ac_optarg ;;
1160 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162 ac_prev=x_libraries ;;
1163 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165 x_libraries=$ac_optarg ;;
1167 -*) as_fn_error "unrecognized option: \`$ac_option'
1168 Try \`$0 --help' for more information."
1172 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1173 # Reject names that are not valid shell variable names.
1174 case $ac_envvar in #(
1175 '' | [0-9]* | *[!_$as_cr_alnum]* )
1176 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1178 eval $ac_envvar=\$ac_optarg
1179 export $ac_envvar ;;
1182 # FIXME: should be removed in autoconf 3.0.
1183 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1186 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192 if test -n "$ac_prev"; then
1193 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1194 as_fn_error "missing argument to $ac_option"
1197 if test -n "$ac_unrecognized_opts"; then
1198 case $enable_option_checking in
1200 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1201 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205 # Check all directory arguments for consistency.
1206 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
1211 eval ac_val=\$$ac_var
1212 # Remove trailing slashes.
1215 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216 eval $ac_var=\$ac_val;;
1218 # Be sure to have absolute directory names.
1220 [\\/$]* | ?:[\\/]* ) continue;;
1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1226 # There might be people who depend on the old broken behavior: `$host'
1227 # used to hold the argument of --host etc.
1228 # FIXME: To remove some day.
1231 target=$target_alias
1233 # FIXME: To remove some day.
1234 if test "x$host_alias" != x; then
1235 if test "x$build_alias" = x; then
1236 cross_compiling=maybe
1237 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1238 If a cross compiler is detected then cross compile mode will be used." >&2
1239 elif test "x$build_alias" != "x$host_alias"; then
1245 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247 test "$silent" = yes && exec 6>/dev/null
1250 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251 ac_ls_di=`ls -di .` &&
1252 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253 as_fn_error "working directory cannot be determined"
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255 as_fn_error "pwd does not report name of working directory"
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260 ac_srcdir_defaulted=yes
1261 # Try the directory containing this script, then the parent directory.
1262 ac_confdir=`$as_dirname -- "$as_myself" ||
1263 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$as_myself" : 'X\(//\)[^/]' \| \
1265 X"$as_myself" : 'X\(//\)$' \| \
1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267 $as_echo X"$as_myself" |
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1290 ac_srcdir_defaulted=no
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 # Report the --help message.
1320 if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1324 \`configure' configures gas 2.25.51 to adapt to many kinds of systems.
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE. See below for descriptions of some of the useful variables.
1331 Defaults for the options are specified in brackets.
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print \`checking...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344 Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
1346 [$ac_default_prefix]
1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1350 By default, \`make install' will install all the files in
1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353 for instance \`--prefix=\$HOME'.
1355 For better control, use the options below.
1357 Fine tuning of the installation directories:
1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
1372 --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
1373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
1382 --program-prefix=PREFIX prepend PREFIX to installed program names
1383 --program-suffix=SUFFIX append SUFFIX to installed program names
1384 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 --target=TARGET configure for building compilers for TARGET [HOST]
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of gas 2.25.51:";;
1400 --disable-option-checking ignore unrecognized --enable/--with options
1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1403 --disable-dependency-tracking speeds up one-time build
1404 --enable-dependency-tracking do not reject slow dependency extractors
1405 --enable-shared[=PKGS] build shared libraries [default=yes]
1406 --enable-static[=PKGS] build static libraries [default=yes]
1407 --enable-fast-install[=PKGS]
1408 optimize for fast installation [default=yes]
1409 --disable-libtool-lock avoid locking (might break parallel builds)
1410 --enable-plugins Enable support for plugins
1411 --disable-largefile omit support for large files
1412 --enable-targets alternative target configurations besides the primary
1413 --enable-checking enable run-time checks
1414 --enable-werror treat compile warnings as errors
1415 --enable-build-warnings enable build-time compiler warnings
1416 --disable-nls do not use Native Language Support
1417 --enable-maintainer-mode enable make rules and dependencies not useful
1418 (and sometimes confusing) to the casual installer
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-pic try to use only PIC/non-PIC objects [default=use
1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1426 --with-system-zlib use installed libz
1428 Some influential environment variables:
1429 CC C compiler command
1430 CFLAGS C compiler flags
1431 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1432 nonstandard directory <lib dir>
1433 LIBS libraries to pass to the linker, e.g. -l<library>
1434 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1435 you have headers in a nonstandard directory <include dir>
1437 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1438 the first program found out of: `bison -y', `byacc', `yacc'.
1439 YFLAGS The list of arguments that will be passed by default to $YACC.
1440 This script will default YFLAGS to the empty string to avoid a
1441 default value of `-d' given by some make applications.
1443 Use these variables to override the choices made by `configure' or to help
1444 it to find libraries and programs with nonstandard names/locations.
1446 Report bugs to the package provider.
1451 if test "$ac_init_help" = "recursive"; then
1452 # If there are subdirs, report their specific --help.
1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1454 test -d "$ac_dir" ||
1455 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1463 # A ".." for each directory in $ac_dir_suffix.
1464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1465 case $ac_top_builddir_sub in
1466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470 ac_abs_top_builddir=$ac_pwd
1471 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472 # for backward compatibility:
1473 ac_top_builddir=$ac_top_build_prefix
1476 .) # We are building in place.
1478 ac_top_srcdir=$ac_top_builddir_sub
1479 ac_abs_top_srcdir=$ac_pwd ;;
1480 [\\/]* | ?:[\\/]* ) # Absolute name.
1481 ac_srcdir=$srcdir$ac_dir_suffix;
1482 ac_top_srcdir=$srcdir
1483 ac_abs_top_srcdir=$srcdir ;;
1485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486 ac_top_srcdir=$ac_top_build_prefix$srcdir
1487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491 cd "$ac_dir" || { ac_status=$?; continue; }
1492 # Check for guested configure.
1493 if test -f "$ac_srcdir/configure.gnu"; then
1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496 elif test -f "$ac_srcdir/configure"; then
1498 $SHELL "$ac_srcdir/configure" --help=recursive
1500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502 cd "$ac_pwd" || { ac_status=$?; break; }
1506 test -n "$ac_init_help" && exit $ac_status
1507 if $ac_init_version; then
1509 gas configure 2.25.51
1510 generated by GNU Autoconf 2.64
1512 Copyright (C) 2009 Free Software Foundation, Inc.
1513 This configure script is free software; the Free Software Foundation
1514 gives unlimited permission to copy, distribute and modify it.
1519 ## ------------------------ ##
1520 ## Autoconf initialization. ##
1521 ## ------------------------ ##
1523 # ac_fn_c_try_compile LINENO
1524 # --------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_c_try_compile ()
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1556 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1559 } # ac_fn_c_try_compile
1561 # ac_fn_c_try_link LINENO
1562 # -----------------------
1563 # Try to link conftest.$ac_ext, and return whether this succeeded.
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext conftest$ac_exeext
1568 if { { ac_try="$ac_link"
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_link") 2>conftest.err
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest$ac_exeext && {
1587 test "$cross_compiling" = yes ||
1588 $as_test_x conftest$ac_exeext
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1597 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1598 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1599 # interfere with the next link command; also delete a directory that is
1600 # left behind by Apple's compiler. We do this before executing the actions.
1601 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1605 } # ac_fn_c_try_link
1607 # ac_fn_c_try_cpp LINENO
1608 # ----------------------
1609 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 if { { ac_try="$ac_cpp conftest.$ac_ext"
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } >/dev/null && {
1629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1634 $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1644 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1645 # -------------------------------------------------------
1646 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1647 # the include files in INCLUDES and setting the cache variable VAR
1649 ac_fn_c_check_header_mongrel ()
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654 $as_echo_n "checking for $2... " >&6; }
1655 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1656 $as_echo_n "(cached) " >&6
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660 $as_echo "$ac_res" >&6; }
1662 # Is the header compilable?
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1664 $as_echo_n "checking $2 usability... " >&6; }
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1670 if ac_fn_c_try_compile "$LINENO"; then :
1671 ac_header_compiler=yes
1673 ac_header_compiler=no
1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1677 $as_echo "$ac_header_compiler" >&6; }
1679 # Is the header present?
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1681 $as_echo_n "checking $2 presence... " >&6; }
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h. */
1686 if ac_fn_c_try_cpp "$LINENO"; then :
1687 ac_header_preproc=yes
1689 ac_header_preproc=no
1691 rm -f conftest.err conftest.$ac_ext
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1693 $as_echo "$ac_header_preproc" >&6; }
1695 # So? What about this header?
1696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1699 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1701 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1705 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1707 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1709 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1711 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1713 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 $as_echo_n "checking for $2... " >&6; }
1718 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1719 $as_echo_n "(cached) " >&6
1721 eval "$3=\$ac_header_compiler"
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725 $as_echo "$ac_res" >&6; }
1727 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729 } # ac_fn_c_check_header_mongrel
1731 # ac_fn_c_try_run LINENO
1732 # ----------------------
1733 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1734 # that executables *can* be run.
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 if { { ac_try="$ac_link"
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>&5
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1749 { { case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_try") 2>&5
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; }; }; then :
1761 $as_echo "$as_me: program exited with status $ac_status" >&5
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1765 ac_retval=$ac_status
1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1774 # -------------------------------------------------------
1775 # Tests whether HEADER exists and can be compiled using the include files in
1776 # INCLUDES, setting the cache variable VAR accordingly.
1777 ac_fn_c_check_header_compile ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1783 $as_echo_n "(cached) " >&6
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1790 if ac_fn_c_try_compile "$LINENO"; then :
1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $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_compile
1804 # ac_fn_c_check_func LINENO FUNC VAR
1805 # ----------------------------------
1806 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1807 ac_fn_c_check_func ()
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1813 $as_echo_n "(cached) " >&6
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1817 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1819 #define $2 innocuous_$2
1821 /* System header to define __stub macros and hopefully few prototypes,
1822 which can conflict with char $2 (); below.
1823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1824 <limits.h> exists even on freestanding compilers. */
1827 # include <limits.h>
1829 # include <assert.h>
1834 /* Override any GCC internal prototype to avoid an error.
1835 Use char because int might match the return type of a GCC
1836 builtin and then its argument prototype would still apply. */
1841 /* The GNU C library defines this for functions which it implements
1842 to always fail with ENOSYS. Some functions are actually named
1843 something starting with __ and the normal name is an alias. */
1844 #if defined __stub_$2 || defined __stub___$2
1856 if ac_fn_c_try_link "$LINENO"; then :
1861 rm -f core conftest.err conftest.$ac_objext \
1862 conftest$ac_exeext conftest.$ac_ext
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869 } # ac_fn_c_check_func
1871 # ac_fn_c_check_decl LINENO SYMBOL VAR
1872 # ------------------------------------
1873 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1874 ac_fn_c_check_decl ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 as_decl_name=`echo $2|sed 's/ *(.*//'`
1878 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1880 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1881 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1882 $as_echo_n "(cached) " >&6
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1890 #ifndef $as_decl_name
1892 (void) $as_decl_use;
1894 (void) $as_decl_name;
1902 if ac_fn_c_try_compile "$LINENO"; then :
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914 } # ac_fn_c_check_decl
1915 cat >config.log <<_ACEOF
1916 This file contains any messages produced by compilers while
1917 running configure, to aid debugging if configure makes a mistake.
1919 It was created by gas $as_me 2.25.51, which was
1920 generated by GNU Autoconf 2.64. Invocation command line was
1932 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1933 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1934 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1935 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1936 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1938 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1939 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1941 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1942 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1943 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1944 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1945 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1946 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1947 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 test -z "$as_dir" && as_dir=.
1956 $as_echo "PATH: $as_dir"
1972 # Keep a trace of the command line.
1973 # Strip out --no-create and --no-recursion so they do not pile up.
1974 # Strip out --silent because we don't want to record it for future runs.
1975 # Also quote any args containing shell meta-characters.
1976 # Make two passes to allow for proper duplicate-argument suppression.
1980 ac_must_keep_next=false
1986 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1988 | -silent | --silent | --silen | --sile | --sil)
1991 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1994 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1996 as_fn_append ac_configure_args1 " '$ac_arg'"
1997 if test $ac_must_keep_next = true; then
1998 ac_must_keep_next=false # Got value, back to normal.
2001 *=* | --config-cache | -C | -disable-* | --disable-* \
2002 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2003 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2004 | -with-* | --with-* | -without-* | --without-* | --x)
2005 case "$ac_configure_args0 " in
2006 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2009 -* ) ac_must_keep_next=true ;;
2012 as_fn_append ac_configure_args " '$ac_arg'"
2017 { ac_configure_args0=; unset ac_configure_args0;}
2018 { ac_configure_args1=; unset ac_configure_args1;}
2020 # When interrupted or exit'd, cleanup temporary files, and complete
2021 # config.log. We remove comments because anyway the quotes in there
2022 # would cause problems or look ugly.
2023 # WARNING: Use '\'' to represent an apostrophe within the trap.
2024 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2025 trap 'exit_status=$?
2026 # Save into config.log some information that might help in debugging.
2031 ## ---------------- ##
2032 ## Cache variables. ##
2033 ## ---------------- ##
2036 # The following way of writing the cache mishandles newlines in values,
2038 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2039 eval ac_val=\$$ac_var
2043 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2044 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2047 _ | IFS | as_nl) ;; #(
2048 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2049 *) { eval $ac_var=; unset $ac_var;} ;;
2054 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2055 *${as_nl}ac_space=\ *)
2057 "s/'\''/'\''\\\\'\'''\''/g;
2058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2061 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2069 ## ----------------- ##
2070 ## Output variables. ##
2071 ## ----------------- ##
2074 for ac_var in $ac_subst_vars
2076 eval ac_val=\$$ac_var
2078 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2080 $as_echo "$ac_var='\''$ac_val'\''"
2084 if test -n "$ac_subst_files"; then
2086 ## ------------------- ##
2087 ## File substitutions. ##
2088 ## ------------------- ##
2091 for ac_var in $ac_subst_files
2093 eval ac_val=\$$ac_var
2095 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2097 $as_echo "$ac_var='\''$ac_val'\''"
2102 if test -s confdefs.h; then
2112 test "$ac_signal" != 0 &&
2113 $as_echo "$as_me: caught signal $ac_signal"
2114 $as_echo "$as_me: exit $exit_status"
2116 rm -f core *.core core.conftest.* &&
2117 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2120 for ac_signal in 1 2 13 15; do
2121 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2125 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2126 rm -f -r conftest* confdefs.h
2128 $as_echo "/* confdefs.h */" > confdefs.h
2130 # Predefined preprocessor variables.
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_NAME "$PACKAGE_NAME"
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_STRING "$PACKAGE_STRING"
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_URL "$PACKAGE_URL"
2157 # Let the site file select an alternate cache file if it wants to.
2158 # Prefer an explicitly selected file to automatically selected ones.
2161 if test -n "$CONFIG_SITE"; then
2162 ac_site_file1=$CONFIG_SITE
2163 elif test "x$prefix" != xNONE; then
2164 ac_site_file1=$prefix/share/config.site
2165 ac_site_file2=$prefix/etc/config.site
2167 ac_site_file1=$ac_default_prefix/share/config.site
2168 ac_site_file2=$ac_default_prefix/etc/config.site
2170 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2172 test "x$ac_site_file" = xNONE && continue
2173 if test -r "$ac_site_file"; then
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2175 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2176 sed 's/^/| /' "$ac_site_file" >&5
2181 if test -r "$cache_file"; then
2182 # Some versions of bash will fail to source /dev/null (special
2183 # files actually), so we avoid doing that.
2184 if test -f "$cache_file"; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2186 $as_echo "$as_me: loading cache $cache_file" >&6;}
2188 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2189 *) . "./$cache_file";;
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2194 $as_echo "$as_me: creating cache $cache_file" >&6;}
2198 # Check that the precious variables saved in the cache have kept the same
2200 ac_cache_corrupted=false
2201 for ac_var in $ac_precious_vars; do
2202 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2203 eval ac_new_set=\$ac_env_${ac_var}_set
2204 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2205 eval ac_new_val=\$ac_env_${ac_var}_value
2206 case $ac_old_set,$ac_new_set in
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2209 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2210 ac_cache_corrupted=: ;;
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2213 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2214 ac_cache_corrupted=: ;;
2217 if test "x$ac_old_val" != "x$ac_new_val"; then
2218 # differences in whitespace do not lead to failure.
2219 ac_old_val_w=`echo x $ac_old_val`
2220 ac_new_val_w=`echo x $ac_new_val`
2221 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2223 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2224 ac_cache_corrupted=:
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2227 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2228 eval $ac_var=\$ac_old_val
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2231 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2233 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2236 # Pass precious variables to config.status.
2237 if test "$ac_new_set" = set; then
2239 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2240 *) ac_arg=$ac_var=$ac_new_val ;;
2242 case " $ac_configure_args " in
2243 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2244 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2248 if $ac_cache_corrupted; then
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2252 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2253 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2255 ## -------------------- ##
2256 ## Main body of script. ##
2257 ## -------------------- ##
2260 ac_cpp='$CPP $CPPFLAGS'
2261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2272 for ac_dir in .. "$srcdir"/..; do
2273 for ac_t in install-sh install.sh shtool; do
2274 if test -f "$ac_dir/$ac_t"; then
2276 ac_install_sh="$ac_aux_dir/$ac_t -c"
2281 if test -z "$ac_aux_dir"; then
2282 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2285 # These three variables are undocumented and unsupported,
2286 # and are intended to be withdrawn in a future Autoconf release.
2287 # They can cause serious problems if a builder's source tree is in a directory
2288 # whose full name contains unusual characters.
2289 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2290 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2291 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2294 # Make sure we can run config.sub.
2295 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2296 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2299 $as_echo_n "checking build system type... " >&6; }
2300 if test "${ac_cv_build+set}" = set; then :
2301 $as_echo_n "(cached) " >&6
2303 ac_build_alias=$build_alias
2304 test "x$ac_build_alias" = x &&
2305 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2306 test "x$ac_build_alias" = x &&
2307 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2308 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2309 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2313 $as_echo "$ac_cv_build" >&6; }
2314 case $ac_cv_build in
2316 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2319 ac_save_IFS=$IFS; IFS='-'
2325 # Remember, the first character of IFS is used to create $*,
2326 # except with old shells:
2329 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2333 $as_echo_n "checking host system type... " >&6; }
2334 if test "${ac_cv_host+set}" = set; then :
2335 $as_echo_n "(cached) " >&6
2337 if test "x$host_alias" = x; then
2338 ac_cv_host=$ac_cv_build
2340 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2341 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2346 $as_echo "$ac_cv_host" >&6; }
2349 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2352 ac_save_IFS=$IFS; IFS='-'
2358 # Remember, the first character of IFS is used to create $*,
2359 # except with old shells:
2362 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2366 $as_echo_n "checking target system type... " >&6; }
2367 if test "${ac_cv_target+set}" = set; then :
2368 $as_echo_n "(cached) " >&6
2370 if test "x$target_alias" = x; then
2371 ac_cv_target=$ac_cv_host
2373 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2374 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2379 $as_echo "$ac_cv_target" >&6; }
2380 case $ac_cv_target in
2382 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2384 target=$ac_cv_target
2385 ac_save_IFS=$IFS; IFS='-'
2391 # Remember, the first character of IFS is used to create $*,
2392 # except with old shells:
2395 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2398 # The aliases save the names the user supplied, while $host etc.
2399 # will get canonicalized.
2400 test -n "$target_alias" &&
2401 test "$program_prefix$program_suffix$program_transform_name" = \
2403 program_prefix=${target_alias}-
2405 ac_cpp='$CPP $CPPFLAGS'
2406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2409 if test -n "$ac_tool_prefix"; then
2410 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2411 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2413 $as_echo_n "checking for $ac_word... " >&6; }
2414 if test "${ac_cv_prog_CC+set}" = set; then :
2415 $as_echo_n "(cached) " >&6
2417 if test -n "$CC"; then
2418 ac_cv_prog_CC="$CC" # Let the user override the test.
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2427 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2438 if test -n "$CC"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2440 $as_echo "$CC" >&6; }
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2443 $as_echo "no" >&6; }
2448 if test -z "$ac_cv_prog_CC"; then
2450 # Extract the first word of "gcc", so it can be a program name with args.
2451 set dummy gcc; ac_word=$2
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2453 $as_echo_n "checking for $ac_word... " >&6; }
2454 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2455 $as_echo_n "(cached) " >&6
2457 if test -n "$ac_ct_CC"; then
2458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_ac_ct_CC="gcc"
2468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2478 if test -n "$ac_ct_CC"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2480 $as_echo "$ac_ct_CC" >&6; }
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2483 $as_echo "no" >&6; }
2486 if test "x$ac_ct_CC" = x; then
2489 case $cross_compiling:$ac_tool_warned in
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2493 ac_tool_warned=yes ;;
2501 if test -z "$CC"; then
2502 if test -n "$ac_tool_prefix"; then
2503 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2504 set dummy ${ac_tool_prefix}cc; ac_word=$2
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if test "${ac_cv_prog_CC+set}" = set; then :
2508 $as_echo_n "(cached) " >&6
2510 if test -n "$CC"; then
2511 ac_cv_prog_CC="$CC" # Let the user override the test.
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_CC="${ac_tool_prefix}cc"
2521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 if test -n "$CC"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2533 $as_echo "$CC" >&6; }
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2536 $as_echo "no" >&6; }
2542 if test -z "$CC"; then
2543 # Extract the first word of "cc", so it can be a program name with args.
2544 set dummy cc; ac_word=$2
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2546 $as_echo_n "checking for $ac_word... " >&6; }
2547 if test "${ac_cv_prog_CC+set}" = set; then :
2548 $as_echo_n "(cached) " >&6
2550 if test -n "$CC"; then
2551 ac_cv_prog_CC="$CC" # Let the user override the test.
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2561 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2562 ac_prog_rejected=yes
2566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 if test $ac_prog_rejected = yes; then
2574 # We found a bogon in the path, so make sure we never use it.
2575 set dummy $ac_cv_prog_CC
2577 if test $# != 0; then
2578 # We chose a different compiler from the bogus one.
2579 # However, it has the same basename, so the bogon will be chosen
2580 # first if we set CC to just the basename; use the full file name.
2582 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2588 if test -n "$CC"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2590 $as_echo "$CC" >&6; }
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593 $as_echo "no" >&6; }
2598 if test -z "$CC"; then
2599 if test -n "$ac_tool_prefix"; then
2600 for ac_prog in cl.exe
2602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if test "${ac_cv_prog_CC+set}" = set; then :
2607 $as_echo_n "(cached) " >&6
2609 if test -n "$CC"; then
2610 ac_cv_prog_CC="$CC" # Let the user override the test.
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2619 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 if test -n "$CC"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2632 $as_echo "$CC" >&6; }
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2639 test -n "$CC" && break
2642 if test -z "$CC"; then
2644 for ac_prog in cl.exe
2646 # Extract the first word of "$ac_prog", so it can be a program name with args.
2647 set dummy $ac_prog; ac_word=$2
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649 $as_echo_n "checking for $ac_word... " >&6; }
2650 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2651 $as_echo_n "(cached) " >&6
2653 if test -n "$ac_ct_CC"; then
2654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663 ac_cv_prog_ac_ct_CC="$ac_prog"
2664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2674 if test -n "$ac_ct_CC"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2676 $as_echo "$ac_ct_CC" >&6; }
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2683 test -n "$ac_ct_CC" && break
2686 if test "x$ac_ct_CC" = x; then
2689 case $cross_compiling:$ac_tool_warned in
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2693 ac_tool_warned=yes ;;
2702 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2704 as_fn_error "no acceptable C compiler found in \$PATH
2705 See \`config.log' for more details." "$LINENO" 5; }
2707 # Provide some information about the compiler.
2708 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2711 for ac_option in --version -v -V -qversion; do
2712 { { ac_try="$ac_compiler $ac_option >&5"
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2718 $as_echo "$ac_try_echo"; } >&5
2719 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2721 if test -s conftest.err; then
2723 ... rest of stderr output deleted ...
2724 10q' conftest.err >conftest.er1
2725 cat conftest.er1 >&5
2726 rm -f conftest.er1 conftest.err
2728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2729 test $ac_status = 0; }
2732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2733 /* end confdefs.h. */
2743 ac_clean_files_save=$ac_clean_files
2744 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2745 # Try to create an executable without -o first, disregard a.out.
2746 # It will help us diagnose broken compilers, and finding out an intuition
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2749 $as_echo_n "checking for C compiler default output file name... " >&6; }
2750 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2752 # The possible output files:
2753 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2756 for ac_file in $ac_files
2759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2760 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2765 if { { ac_try="$ac_link_default"
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2771 $as_echo "$ac_try_echo"; } >&5
2772 (eval "$ac_link_default") 2>&5
2774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2775 test $ac_status = 0; }; then :
2776 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2777 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2778 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2779 # so that the user can short-circuit this test for compilers unknown to
2781 for ac_file in $ac_files ''
2783 test -f "$ac_file" || continue
2785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2788 # We found the default executable, but exeext='' is most
2792 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2794 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2796 # We set ac_cv_exeext here because the later test for it is not
2797 # safe: cross compilers may not add the suffix if given an `-o'
2798 # argument, so we may need to know it at that point already.
2799 # Even if this section looks crufty: it has the advantage of
2806 test "$ac_cv_exeext" = no && ac_cv_exeext=
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2812 $as_echo "$ac_file" >&6; }
2813 if test -z "$ac_file"; then :
2814 $as_echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2819 { as_fn_set_status 77
2820 as_fn_error "C compiler cannot create executables
2821 See \`config.log' for more details." "$LINENO" 5; }; }
2823 ac_exeext=$ac_cv_exeext
2825 # Check that the compiler produces executables we can run. If not, either
2826 # the compiler is broken, or we cross compile.
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2828 $as_echo_n "checking whether the C compiler works... " >&6; }
2829 # If not cross compiling, check that we can run a simple program.
2830 if test "$cross_compiling" != yes; then
2831 if { ac_try='./$ac_file'
2832 { { case "(($ac_try" in
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2837 $as_echo "$ac_try_echo"; } >&5
2838 (eval "$ac_try") 2>&5
2840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2841 test $ac_status = 0; }; }; then
2844 if test "$cross_compiling" = maybe; then
2847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2849 as_fn_error "cannot run C compiled programs.
2850 If you meant to cross compile, use \`--host'.
2851 See \`config.log' for more details." "$LINENO" 5; }
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2856 $as_echo "yes" >&6; }
2858 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2859 ac_clean_files=$ac_clean_files_save
2860 # Check that the compiler produces executables we can run. If not, either
2861 # the compiler is broken, or we cross compile.
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2863 $as_echo_n "checking whether we are cross compiling... " >&6; }
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2865 $as_echo "$cross_compiling" >&6; }
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2868 $as_echo_n "checking for suffix of executables... " >&6; }
2869 if { { ac_try="$ac_link"
2871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872 *) ac_try_echo=$ac_try;;
2874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2875 $as_echo "$ac_try_echo"; } >&5
2876 (eval "$ac_link") 2>&5
2878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2879 test $ac_status = 0; }; then :
2880 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2881 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2882 # work properly (i.e., refer to `conftest.exe'), while it won't with
2884 for ac_file in conftest.exe conftest conftest.*; do
2885 test -f "$ac_file" || continue
2887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2888 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2896 as_fn_error "cannot compute suffix of executables: cannot compile and link
2897 See \`config.log' for more details." "$LINENO" 5; }
2899 rm -f conftest$ac_cv_exeext
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2901 $as_echo "$ac_cv_exeext" >&6; }
2903 rm -f conftest.$ac_ext
2904 EXEEXT=$ac_cv_exeext
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2907 $as_echo_n "checking for suffix of object files... " >&6; }
2908 if test "${ac_cv_objext+set}" = set; then :
2909 $as_echo_n "(cached) " >&6
2911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2912 /* end confdefs.h. */
2922 rm -f conftest.o conftest.obj
2923 if { { ac_try="$ac_compile"
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2929 $as_echo "$ac_try_echo"; } >&5
2930 (eval "$ac_compile") 2>&5
2932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2933 test $ac_status = 0; }; then :
2934 for ac_file in conftest.o conftest.obj conftest.*; do
2935 test -f "$ac_file" || continue;
2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2938 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2943 $as_echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2948 as_fn_error "cannot compute suffix of object files: cannot compile
2949 See \`config.log' for more details." "$LINENO" 5; }
2951 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2954 $as_echo "$ac_cv_objext" >&6; }
2955 OBJEXT=$ac_cv_objext
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2958 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2959 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2960 $as_echo_n "(cached) " >&6
2962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2963 /* end confdefs.h. */
2976 if ac_fn_c_try_compile "$LINENO"; then :
2981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2982 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2986 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2987 if test $ac_compiler_gnu = yes; then
2992 ac_test_CFLAGS=${CFLAGS+set}
2993 ac_save_CFLAGS=$CFLAGS
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2995 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2996 if test "${ac_cv_prog_cc_g+set}" = set; then :
2997 $as_echo_n "(cached) " >&6
2999 ac_save_c_werror_flag=$ac_c_werror_flag
3000 ac_c_werror_flag=yes
3003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3004 /* end confdefs.h. */
3014 if ac_fn_c_try_compile "$LINENO"; then :
3018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3019 /* end confdefs.h. */
3029 if ac_fn_c_try_compile "$LINENO"; then :
3032 ac_c_werror_flag=$ac_save_c_werror_flag
3034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3035 /* end confdefs.h. */
3045 if ac_fn_c_try_compile "$LINENO"; then :
3048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3053 ac_c_werror_flag=$ac_save_c_werror_flag
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3056 $as_echo "$ac_cv_prog_cc_g" >&6; }
3057 if test "$ac_test_CFLAGS" = set; then
3058 CFLAGS=$ac_save_CFLAGS
3059 elif test $ac_cv_prog_cc_g = yes; then
3060 if test "$GCC" = yes; then
3066 if test "$GCC" = yes; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3073 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3074 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3075 $as_echo_n "(cached) " >&6
3077 ac_cv_prog_cc_c89=no
3079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080 /* end confdefs.h. */
3083 #include <sys/types.h>
3084 #include <sys/stat.h>
3085 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3086 struct buf { int x; };
3087 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3088 static char *e (p, i)
3094 static char *f (char * (*g) (char **, int), char **p, ...)
3099 s = g (p, va_arg (v,int));
3104 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3105 function prototypes and stuff, but not '\xHH' hex character constants.
3106 These don't provoke an error unfortunately, instead are silently treated
3107 as 'x'. The following induces an error, until -std is added to get
3108 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3109 array size at least. It's necessary to write '\x00'==0 to get something
3110 that's true only with -std. */
3111 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3113 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3114 inside strings and character constants. */
3116 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3118 int test (int i, double x);
3119 struct s1 {int (*f) (int a);};
3120 struct s2 {int (*f) (double a);};
3121 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3127 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3132 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3133 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3135 CC="$ac_save_CC $ac_arg"
3136 if ac_fn_c_try_compile "$LINENO"; then :
3137 ac_cv_prog_cc_c89=$ac_arg
3139 rm -f core conftest.err conftest.$ac_objext
3140 test "x$ac_cv_prog_cc_c89" != "xno" && break
3142 rm -f conftest.$ac_ext
3147 case "x$ac_cv_prog_cc_c89" in
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3150 $as_echo "none needed" >&6; } ;;
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3153 $as_echo "unsupported" >&6; } ;;
3155 CC="$CC $ac_cv_prog_cc_c89"
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3157 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3159 if test "x$ac_cv_prog_cc_c89" != xno; then :
3164 ac_cpp='$CPP $CPPFLAGS'
3165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3171 $as_echo_n "checking for library containing strerror... " >&6; }
3172 if test "${ac_cv_search_strerror+set}" = set; then :
3173 $as_echo_n "(cached) " >&6
3175 ac_func_search_save_LIBS=$LIBS
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3179 /* Override any GCC internal prototype to avoid an error.
3180 Use char because int might match the return type of a GCC
3181 builtin and then its argument prototype would still apply. */
3194 for ac_lib in '' cposix; do
3195 if test -z "$ac_lib"; then
3196 ac_res="none required"
3199 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3201 if ac_fn_c_try_link "$LINENO"; then :
3202 ac_cv_search_strerror=$ac_res
3204 rm -f core conftest.err conftest.$ac_objext \
3206 if test "${ac_cv_search_strerror+set}" = set; then :
3210 if test "${ac_cv_search_strerror+set}" = set; then :
3213 ac_cv_search_strerror=no
3216 LIBS=$ac_func_search_save_LIBS
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3219 $as_echo "$ac_cv_search_strerror" >&6; }
3220 ac_res=$ac_cv_search_strerror
3221 if test "$ac_res" != no; then :
3222 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3227 am__api_version='1.11'
3229 # Find a good install program. We prefer a C program (faster),
3230 # so one script is as good as another. But avoid the broken or
3231 # incompatible versions:
3232 # SysV /etc/install, /usr/sbin/install
3233 # SunOS /usr/etc/install
3234 # IRIX /sbin/install
3236 # AmigaOS /C/install, which installs bootblocks on floppy discs
3237 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3238 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3239 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3240 # OS/2's system install, which has a completely different semantic
3241 # ./install, which can be erroneously created by make from ./install.sh.
3242 # Reject install programs that cannot install multiple files.
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3244 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3245 if test -z "$INSTALL"; then
3246 if test "${ac_cv_path_install+set}" = set; then :
3247 $as_echo_n "(cached) " >&6
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 test -z "$as_dir" && as_dir=.
3254 # Account for people who put trailing slashes in PATH elements.
3255 case $as_dir/ in #((
3256 ./ | .// | /[cC]/* | \
3257 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3258 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3261 # OSF1 and SCO ODT 3.0 have their own names for install.
3262 # Don't use installbsd from OSF since it installs stuff as root
3264 for ac_prog in ginstall scoinst install; do
3265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3267 if test $ac_prog = install &&
3268 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3269 # AIX install. It has an incompatible calling convention.
3271 elif test $ac_prog = install &&
3272 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3273 # program-specific install script used by HP pwplus--don't use.
3276 rm -rf conftest.one conftest.two conftest.dir
3277 echo one > conftest.one
3278 echo two > conftest.two
3280 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3281 test -s conftest.one && test -s conftest.two &&
3282 test -s conftest.dir/conftest.one &&
3283 test -s conftest.dir/conftest.two
3285 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3298 rm -rf conftest.one conftest.two conftest.dir
3301 if test "${ac_cv_path_install+set}" = set; then
3302 INSTALL=$ac_cv_path_install
3304 # As a last resort, use the slow shell script. Don't cache a
3305 # value for INSTALL within a source directory, because that will
3306 # break other packages using the cache if that directory is
3307 # removed, or if the value is a relative name.
3308 INSTALL=$ac_install_sh
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3312 $as_echo "$INSTALL" >&6; }
3314 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3315 # It thinks the first close brace ends the variable substitution.
3316 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3318 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3320 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3323 $as_echo_n "checking whether build environment is sane... " >&6; }
3326 echo timestamp > conftest.file
3327 # Reject unsafe characters in $srcdir or the absolute working directory
3328 # name. Accept space and tab only in the latter.
3332 *[\\\"\#\$\&\'\`$am_lf]*)
3333 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3336 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3337 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3340 # Do `set' in a subshell so we don't clobber the current shell's
3341 # arguments. Must try -L first in case configure is actually a
3342 # symlink; some systems play weird games with the mod time of symlinks
3343 # (eg FreeBSD returns the mod time of the symlink's containing
3346 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3347 if test "$*" = "X"; then
3349 set X `ls -t "$srcdir/configure" conftest.file`
3352 if test "$*" != "X $srcdir/configure conftest.file" \
3353 && test "$*" != "X conftest.file $srcdir/configure"; then
3355 # If neither matched, then we have a broken ls. This can happen
3356 # if, for instance, CONFIG_SHELL is bash and it inherits a
3357 # broken ls alias from the environment. This has actually
3358 # happened. Such a system could not be considered "sane".
3359 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3360 alias in your environment" "$LINENO" 5
3363 test "$2" = conftest.file
3369 as_fn_error "newly created file is older than distributed files!
3370 Check your system clock" "$LINENO" 5
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3373 $as_echo "yes" >&6; }
3374 test "$program_prefix" != NONE &&
3375 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3376 # Use a double $ so make ignores it.
3377 test "$program_suffix" != NONE &&
3378 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3379 # Double any \ or $.
3380 # By default was `s,x,x', remove it if useless.
3381 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3382 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3384 # expand $ac_aux_dir to an absolute path
3385 am_aux_dir=`cd $ac_aux_dir && pwd`
3387 if test x"${MISSING+set}" != xset; then
3390 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3392 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3395 # Use eval to expand $SHELL
3396 if eval "$MISSING --run true"; then
3397 am_missing_run="$MISSING --run "
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3401 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3404 if test x"${install_sh}" != xset; then
3407 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3409 install_sh="\${SHELL} $am_aux_dir/install-sh"
3413 # Installed binaries are usually stripped using `strip' when the user
3414 # run `make install-strip'. However `strip' might not be the right
3415 # tool to use in cross-compilation environments, therefore Automake
3416 # will honor the `STRIP' environment variable to overrule this program.
3417 if test "$cross_compiling" != no; then
3418 if test -n "$ac_tool_prefix"; then
3419 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3420 set dummy ${ac_tool_prefix}strip; ac_word=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if test "${ac_cv_prog_STRIP+set}" = set; then :
3424 $as_echo_n "(cached) " >&6
3426 if test -n "$STRIP"; then
3427 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3436 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 STRIP=$ac_cv_prog_STRIP
3447 if test -n "$STRIP"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3449 $as_echo "$STRIP" >&6; }
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3457 if test -z "$ac_cv_prog_STRIP"; then
3459 # Extract the first word of "strip", so it can be a program name with args.
3460 set dummy strip; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3464 $as_echo_n "(cached) " >&6
3466 if test -n "$ac_ct_STRIP"; then
3467 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3476 ac_cv_prog_ac_ct_STRIP="strip"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3487 if test -n "$ac_ct_STRIP"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3489 $as_echo "$ac_ct_STRIP" >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3495 if test "x$ac_ct_STRIP" = x; then
3498 case $cross_compiling:$ac_tool_warned in
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3502 ac_tool_warned=yes ;;
3507 STRIP="$ac_cv_prog_STRIP"
3511 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3514 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3515 if test -z "$MKDIR_P"; then
3516 if test "${ac_cv_path_mkdir+set}" = set; then :
3517 $as_echo_n "(cached) " >&6
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3523 test -z "$as_dir" && as_dir=.
3524 for ac_prog in mkdir gmkdir; do
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3527 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3528 'mkdir (GNU coreutils) '* | \
3529 'mkdir (coreutils) '* | \
3530 'mkdir (fileutils) '4.1*)
3531 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3541 if test "${ac_cv_path_mkdir+set}" = set; then
3542 MKDIR_P="$ac_cv_path_mkdir -p"
3544 # As a last resort, use the slow shell script. Don't cache a
3545 # value for MKDIR_P within a source directory, because that will
3546 # break other packages using the cache if that directory is
3547 # removed, or if the value is a relative name.
3548 test -d ./--version && rmdir ./--version
3549 MKDIR_P="$ac_install_sh -d"
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3553 $as_echo "$MKDIR_P" >&6; }
3557 [\\/$]* | ?:[\\/]*) ;;
3558 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3561 for ac_prog in gawk mawk nawk awk
3563 # Extract the first word of "$ac_prog", so it can be a program name with args.
3564 set dummy $ac_prog; ac_word=$2
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 $as_echo_n "checking for $ac_word... " >&6; }
3567 if test "${ac_cv_prog_AWK+set}" = set; then :
3568 $as_echo_n "(cached) " >&6
3570 if test -n "$AWK"; then
3571 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 test -z "$as_dir" && as_dir=.
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3580 ac_cv_prog_AWK="$ac_prog"
3581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3591 if test -n "$AWK"; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3593 $as_echo "$AWK" >&6; }
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3600 test -n "$AWK" && break
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3604 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3606 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3607 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3608 $as_echo_n "(cached) " >&6
3610 cat >conftest.make <<\_ACEOF
3613 @echo '@@@%%%=$(MAKE)=@@@%%%'
3615 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3616 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3618 eval ac_cv_prog_make_${ac_make}_set=yes;;
3620 eval ac_cv_prog_make_${ac_make}_set=no;;
3624 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3626 $as_echo "yes" >&6; }
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630 $as_echo "no" >&6; }
3631 SET_MAKE="MAKE=${MAKE-make}"
3634 rm -rf .tst 2>/dev/null
3635 mkdir .tst 2>/dev/null
3636 if test -d .tst; then
3641 rmdir .tst 2>/dev/null
3643 DEPDIR="${am__leading_dot}deps"
3645 ac_config_commands="$ac_config_commands depfiles"
3648 am_make=${MAKE-make}
3649 cat > confinc << 'END'
3651 @echo this is the am__doit target
3654 # If we don't find an include directive, just comment out the code.
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3656 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3660 # First try GNU make style include.
3661 echo "include confinc" > confmf
3662 # Ignore all kinds of additional output from `make'.
3663 case `$am_make -s -f confmf 2> /dev/null` in #(
3664 *the\ am__doit\ target*)
3670 # Now try BSD make style include.
3671 if test "$am__include" = "#"; then
3672 echo '.include "confinc"' > confmf
3673 case `$am_make -s -f confmf 2> /dev/null` in #(
3674 *the\ am__doit\ target*)
3675 am__include=.include
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3684 $as_echo "$_am_result" >&6; }
3685 rm -f confinc confmf
3687 # Check whether --enable-dependency-tracking was given.
3688 if test "${enable_dependency_tracking+set}" = set; then :
3689 enableval=$enable_dependency_tracking;
3692 if test "x$enable_dependency_tracking" != xno; then
3693 am_depcomp="$ac_aux_dir/depcomp"
3696 if test "x$enable_dependency_tracking" != xno; then
3705 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3706 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3707 # is not polluted with repeated "-I."
3708 am__isrc=' -I$(srcdir)'
3709 # test to see if srcdir already configured
3710 if test -f $srcdir/config.status; then
3711 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3715 # test whether we have cygpath
3716 if test -z "$CYGPATH_W"; then
3717 if (cygpath --version) >/dev/null 2>/dev/null; then
3718 CYGPATH_W='cygpath -w'
3725 # Define the identity of the package.
3730 cat >>confdefs.h <<_ACEOF
3731 #define PACKAGE "$PACKAGE"
3735 cat >>confdefs.h <<_ACEOF
3736 #define VERSION "$VERSION"
3739 # Some tools Automake needs.
3741 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3744 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3747 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3750 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3753 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3755 # We need awk for the "check" target. The system "awk" is bad on
3757 # Always define AMTAR for backward compatibility.
3759 AMTAR=${AMTAR-"${am_missing_run}tar"}
3761 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3766 depcc="$CC" am_compiler_list=
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3769 $as_echo_n "checking dependency style of $depcc... " >&6; }
3770 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3771 $as_echo_n "(cached) " >&6
3773 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3774 # We make a subdir and do the tests there. Otherwise we can end up
3775 # making bogus files that we don't know about and never remove. For
3776 # instance it was reported that on HP-UX the gcc test will end up
3777 # making a dummy file named `D' -- because `-MD' means `put the output
3780 # Copy depcomp to subdir because otherwise we won't find it if we're
3781 # using a relative directory.
3782 cp "$am_depcomp" conftest.dir
3784 # We will build objects and dependencies in a subdirectory because
3785 # it helps to detect inapplicable dependency modes. For instance
3786 # both Tru64's cc and ICC support -MD to output dependencies as a
3787 # side effect of compilation, but ICC will put the dependencies in
3788 # the current directory while Tru64 will put them in the object
3792 am_cv_CC_dependencies_compiler_type=none
3793 if test "$am_compiler_list" = ""; then
3794 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3797 case " $depcc " in #(
3798 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3801 for depmode in $am_compiler_list; do
3802 # Setup a source with many dependencies, because some compilers
3803 # like to wrap large dependency lists on column 80 (with \), and
3804 # we should not choose a depcomp mode which is confused by this.
3806 # We need to recreate these files for each test, as the compiler may
3807 # overwrite some of them when testing with obscure command lines.
3808 # This happens at least with the AIX C compiler.
3810 for i in 1 2 3 4 5 6; do
3811 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3812 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3813 # Solaris 8's {/usr,}/bin/sh.
3814 touch sub/conftst$i.h
3816 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3818 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3819 # mode. It turns out that the SunPro C++ compiler does not properly
3820 # handle `-M -o', and we need to detect this. Also, some Intel
3821 # versions had trouble with output in subdirs
3822 am__obj=sub/conftest.${OBJEXT-o}
3823 am__minus_obj="-o $am__obj"
3826 # This depmode causes a compiler race in universal mode.
3827 test "$am__universal" = false || continue
3830 # after this tag, mechanisms are not by side-effect, so they'll
3831 # only be used when explicitly requested
3832 if test "x$enable_dependency_tracking" = xyes; then
3838 msvisualcpp | msvcmsys)
3839 # This compiler won't grok `-c -o', but also, the minuso test has
3840 # not run yet. These depmodes are late enough in the game, and
3841 # so weak that their functioning should not be impacted.
3842 am__obj=conftest.${OBJEXT-o}
3847 if depmode=$depmode \
3848 source=sub/conftest.c object=$am__obj \
3849 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3850 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3851 >/dev/null 2>conftest.err &&
3852 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3853 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3854 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3855 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3856 # icc doesn't choke on unknown options, it will just issue warnings
3857 # or remarks (even with -Werror). So we grep stderr for any message
3858 # that says an option was ignored or not supported.
3859 # When given -MP, icc 7.0 and 7.1 complain thusly:
3860 # icc: Command line warning: ignoring option '-M'; no argument required
3861 # The diagnosis changed in icc 8.0:
3862 # icc: Command line remark: option '-MP' not supported
3863 if (grep 'ignoring option' conftest.err ||
3864 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3865 am_cv_CC_dependencies_compiler_type=$depmode
3874 am_cv_CC_dependencies_compiler_type=none
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3879 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3880 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3883 test "x$enable_dependency_tracking" != xno \
3884 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3886 am__fastdepCC_FALSE='#'
3888 am__fastdepCC_TRUE='#'
3889 am__fastdepCC_FALSE=
3896 ac_cpp='$CPP $CPPFLAGS'
3897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900 if test -n "$ac_tool_prefix"; then
3901 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3902 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904 $as_echo_n "checking for $ac_word... " >&6; }
3905 if test "${ac_cv_prog_CC+set}" = set; then :
3906 $as_echo_n "(cached) " >&6
3908 if test -n "$CC"; then
3909 ac_cv_prog_CC="$CC" # Let the user override the test.
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3918 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 if test -n "$CC"; then
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3931 $as_echo "$CC" >&6; }
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934 $as_echo "no" >&6; }
3939 if test -z "$ac_cv_prog_CC"; then
3941 # Extract the first word of "gcc", so it can be a program name with args.
3942 set dummy gcc; ac_word=$2
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3944 $as_echo_n "checking for $ac_word... " >&6; }
3945 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3946 $as_echo_n "(cached) " >&6
3948 if test -n "$ac_ct_CC"; then
3949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 test -z "$as_dir" && as_dir=.
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3958 ac_cv_prog_ac_ct_CC="gcc"
3959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3968 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3969 if test -n "$ac_ct_CC"; then
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3971 $as_echo "$ac_ct_CC" >&6; }
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3974 $as_echo "no" >&6; }
3977 if test "x$ac_ct_CC" = x; then
3980 case $cross_compiling:$ac_tool_warned in
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3984 ac_tool_warned=yes ;;
3992 if test -z "$CC"; then
3993 if test -n "$ac_tool_prefix"; then
3994 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3995 set dummy ${ac_tool_prefix}cc; ac_word=$2
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3997 $as_echo_n "checking for $ac_word... " >&6; }
3998 if test "${ac_cv_prog_CC+set}" = set; then :
3999 $as_echo_n "(cached) " >&6
4001 if test -n "$CC"; then
4002 ac_cv_prog_CC="$CC" # Let the user override the test.
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 test -z "$as_dir" && as_dir=.
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4011 ac_cv_prog_CC="${ac_tool_prefix}cc"
4012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 if test -n "$CC"; then
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4024 $as_echo "$CC" >&6; }
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027 $as_echo "no" >&6; }
4033 if test -z "$CC"; then
4034 # Extract the first word of "cc", so it can be a program name with args.
4035 set dummy cc; ac_word=$2
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4037 $as_echo_n "checking for $ac_word... " >&6; }
4038 if test "${ac_cv_prog_CC+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
4041 if test -n "$CC"; then
4042 ac_cv_prog_CC="$CC" # Let the user override the test.
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4052 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4053 ac_prog_rejected=yes
4057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4064 if test $ac_prog_rejected = yes; then
4065 # We found a bogon in the path, so make sure we never use it.
4066 set dummy $ac_cv_prog_CC
4068 if test $# != 0; then
4069 # We chose a different compiler from the bogus one.
4070 # However, it has the same basename, so the bogon will be chosen
4071 # first if we set CC to just the basename; use the full file name.
4073 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4079 if test -n "$CC"; then
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4081 $as_echo "$CC" >&6; }
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4084 $as_echo "no" >&6; }
4089 if test -z "$CC"; then
4090 if test -n "$ac_tool_prefix"; then
4091 for ac_prog in cl.exe
4093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 $as_echo_n "checking for $ac_word... " >&6; }
4097 if test "${ac_cv_prog_CC+set}" = set; then :
4098 $as_echo_n "(cached) " >&6
4100 if test -n "$CC"; then
4101 ac_cv_prog_CC="$CC" # Let the user override the test.
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 test -z "$as_dir" && as_dir=.
4108 for ac_exec_ext in '' $ac_executable_extensions; do
4109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4110 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 if test -n "$CC"; then
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4123 $as_echo "$CC" >&6; }
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 $as_echo "no" >&6; }
4130 test -n "$CC" && break
4133 if test -z "$CC"; then
4135 for ac_prog in cl.exe
4137 # Extract the first word of "$ac_prog", so it can be a program name with args.
4138 set dummy $ac_prog; ac_word=$2
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140 $as_echo_n "checking for $ac_word... " >&6; }
4141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4142 $as_echo_n "(cached) " >&6
4144 if test -n "$ac_ct_CC"; then
4145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 test -z "$as_dir" && as_dir=.
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154 ac_cv_prog_ac_ct_CC="$ac_prog"
4155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4165 if test -n "$ac_ct_CC"; then
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4167 $as_echo "$ac_ct_CC" >&6; }
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170 $as_echo "no" >&6; }
4174 test -n "$ac_ct_CC" && break
4177 if test "x$ac_ct_CC" = x; then
4180 case $cross_compiling:$ac_tool_warned in
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4184 ac_tool_warned=yes ;;
4193 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4195 as_fn_error "no acceptable C compiler found in \$PATH
4196 See \`config.log' for more details." "$LINENO" 5; }
4198 # Provide some information about the compiler.
4199 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4202 for ac_option in --version -v -V -qversion; do
4203 { { ac_try="$ac_compiler $ac_option >&5"
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4209 $as_echo "$ac_try_echo"; } >&5
4210 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4212 if test -s conftest.err; then
4214 ... rest of stderr output deleted ...
4215 10q' conftest.err >conftest.er1
4216 cat conftest.er1 >&5
4217 rm -f conftest.er1 conftest.err
4219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4220 test $ac_status = 0; }
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4224 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4225 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4226 $as_echo_n "(cached) " >&6
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4242 if ac_fn_c_try_compile "$LINENO"; then :
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4252 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4253 if test $ac_compiler_gnu = yes; then
4258 ac_test_CFLAGS=${CFLAGS+set}
4259 ac_save_CFLAGS=$CFLAGS
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4261 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4262 if test "${ac_cv_prog_cc_g+set}" = set; then :
4263 $as_echo_n "(cached) " >&6
4265 ac_save_c_werror_flag=$ac_c_werror_flag
4266 ac_c_werror_flag=yes
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4280 if ac_fn_c_try_compile "$LINENO"; then :
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4295 if ac_fn_c_try_compile "$LINENO"; then :
4298 ac_c_werror_flag=$ac_save_c_werror_flag
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4311 if ac_fn_c_try_compile "$LINENO"; then :
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 ac_c_werror_flag=$ac_save_c_werror_flag
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4322 $as_echo "$ac_cv_prog_cc_g" >&6; }
4323 if test "$ac_test_CFLAGS" = set; then
4324 CFLAGS=$ac_save_CFLAGS
4325 elif test $ac_cv_prog_cc_g = yes; then
4326 if test "$GCC" = yes; then
4332 if test "$GCC" = yes; then
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4339 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4340 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4341 $as_echo_n "(cached) " >&6
4343 ac_cv_prog_cc_c89=no
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4349 #include <sys/types.h>
4350 #include <sys/stat.h>
4351 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4352 struct buf { int x; };
4353 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4354 static char *e (p, i)
4360 static char *f (char * (*g) (char **, int), char **p, ...)
4365 s = g (p, va_arg (v,int));
4370 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4371 function prototypes and stuff, but not '\xHH' hex character constants.
4372 These don't provoke an error unfortunately, instead are silently treated
4373 as 'x'. The following induces an error, until -std is added to get
4374 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4375 array size at least. It's necessary to write '\x00'==0 to get something
4376 that's true only with -std. */
4377 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4379 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4380 inside strings and character constants. */
4382 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4384 int test (int i, double x);
4385 struct s1 {int (*f) (int a);};
4386 struct s2 {int (*f) (double a);};
4387 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4393 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4398 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4399 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4401 CC="$ac_save_CC $ac_arg"
4402 if ac_fn_c_try_compile "$LINENO"; then :
4403 ac_cv_prog_cc_c89=$ac_arg
4405 rm -f core conftest.err conftest.$ac_objext
4406 test "x$ac_cv_prog_cc_c89" != "xno" && break
4408 rm -f conftest.$ac_ext
4413 case "x$ac_cv_prog_cc_c89" in
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4416 $as_echo "none needed" >&6; } ;;
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4419 $as_echo "unsupported" >&6; } ;;
4421 CC="$CC $ac_cv_prog_cc_c89"
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4423 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4425 if test "x$ac_cv_prog_cc_c89" != xno; then :
4430 ac_cpp='$CPP $CPPFLAGS'
4431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4436 ac_cpp='$CPP $CPPFLAGS'
4437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4441 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4442 # On Suns, sometimes $CPP names a directory.
4443 if test -n "$CPP" && test -d "$CPP"; then
4446 if test -z "$CPP"; then
4447 if test "${ac_cv_prog_CPP+set}" = set; then :
4448 $as_echo_n "(cached) " >&6
4450 # Double quotes because CPP needs to be expanded
4451 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4454 for ac_c_preproc_warn_flag in '' yes
4456 # Use a header file that comes with gcc, so configuring glibc
4457 # with a fresh cross-compiler works.
4458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4459 # <limits.h> exists even on freestanding compilers.
4460 # On the NeXT, cc -E runs the code through the compiler's parser,
4461 # not just through cpp. "Syntax error" is here to catch this case.
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4465 # include <limits.h>
4467 # include <assert.h>
4471 if ac_fn_c_try_cpp "$LINENO"; then :
4474 # Broken: fails on valid input.
4477 rm -f conftest.err conftest.$ac_ext
4479 # OK, works on sane cases. Now check whether nonexistent headers
4480 # can be detected and how.
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483 #include <ac_nonexistent.h>
4485 if ac_fn_c_try_cpp "$LINENO"; then :
4486 # Broken: success on invalid input.
4489 # Passes both tests.
4493 rm -f conftest.err conftest.$ac_ext
4496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4497 rm -f conftest.err conftest.$ac_ext
4498 if $ac_preproc_ok; then :
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4511 $as_echo "$CPP" >&6; }
4513 for ac_c_preproc_warn_flag in '' yes
4515 # Use a header file that comes with gcc, so configuring glibc
4516 # with a fresh cross-compiler works.
4517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4518 # <limits.h> exists even on freestanding compilers.
4519 # On the NeXT, cc -E runs the code through the compiler's parser,
4520 # not just through cpp. "Syntax error" is here to catch this case.
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4524 # include <limits.h>
4526 # include <assert.h>
4530 if ac_fn_c_try_cpp "$LINENO"; then :
4533 # Broken: fails on valid input.
4536 rm -f conftest.err conftest.$ac_ext
4538 # OK, works on sane cases. Now check whether nonexistent headers
4539 # can be detected and how.
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4542 #include <ac_nonexistent.h>
4544 if ac_fn_c_try_cpp "$LINENO"; then :
4545 # Broken: success on invalid input.
4548 # Passes both tests.
4552 rm -f conftest.err conftest.$ac_ext
4555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4556 rm -f conftest.err conftest.$ac_ext
4557 if $ac_preproc_ok; then :
4560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4562 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4563 See \`config.log' for more details." "$LINENO" 5; }
4567 ac_cpp='$CPP $CPPFLAGS'
4568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4574 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4575 if test "${ac_cv_path_GREP+set}" = set; then :
4576 $as_echo_n "(cached) " >&6
4578 if test -z "$GREP"; then
4579 ac_path_GREP_found=false
4580 # Loop through the user's path and test for each of PROGNAME-LIST
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4585 test -z "$as_dir" && as_dir=.
4586 for ac_prog in grep ggrep; do
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4589 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4590 # Check for GNU ac_path_GREP and select it if it is found.
4591 # Check for GNU $ac_path_GREP
4592 case `"$ac_path_GREP" --version 2>&1` in
4594 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4597 $as_echo_n 0123456789 >"conftest.in"
4600 cat "conftest.in" "conftest.in" >"conftest.tmp"
4601 mv "conftest.tmp" "conftest.in"
4602 cp "conftest.in" "conftest.nl"
4603 $as_echo 'GREP' >> "conftest.nl"
4604 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4605 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4606 as_fn_arith $ac_count + 1 && ac_count=$as_val
4607 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4608 # Best one so far, save it but keep looking for a better one
4609 ac_cv_path_GREP="$ac_path_GREP"
4610 ac_path_GREP_max=$ac_count
4612 # 10*(2^10) chars as input seems more than enough
4613 test $ac_count -gt 10 && break
4615 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4618 $ac_path_GREP_found && break 3
4623 if test -z "$ac_cv_path_GREP"; then
4624 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4627 ac_cv_path_GREP=$GREP
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4632 $as_echo "$ac_cv_path_GREP" >&6; }
4633 GREP="$ac_cv_path_GREP"
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4637 $as_echo_n "checking for egrep... " >&6; }
4638 if test "${ac_cv_path_EGREP+set}" = set; then :
4639 $as_echo_n "(cached) " >&6
4641 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4642 then ac_cv_path_EGREP="$GREP -E"
4644 if test -z "$EGREP"; then
4645 ac_path_EGREP_found=false
4646 # Loop through the user's path and test for each of PROGNAME-LIST
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4651 test -z "$as_dir" && as_dir=.
4652 for ac_prog in egrep; do
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4655 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4656 # Check for GNU ac_path_EGREP and select it if it is found.
4657 # Check for GNU $ac_path_EGREP
4658 case `"$ac_path_EGREP" --version 2>&1` in
4660 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4663 $as_echo_n 0123456789 >"conftest.in"
4666 cat "conftest.in" "conftest.in" >"conftest.tmp"
4667 mv "conftest.tmp" "conftest.in"
4668 cp "conftest.in" "conftest.nl"
4669 $as_echo 'EGREP' >> "conftest.nl"
4670 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4672 as_fn_arith $ac_count + 1 && ac_count=$as_val
4673 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4674 # Best one so far, save it but keep looking for a better one
4675 ac_cv_path_EGREP="$ac_path_EGREP"
4676 ac_path_EGREP_max=$ac_count
4678 # 10*(2^10) chars as input seems more than enough
4679 test $ac_count -gt 10 && break
4681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4684 $ac_path_EGREP_found && break 3
4689 if test -z "$ac_cv_path_EGREP"; then
4690 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4693 ac_cv_path_EGREP=$EGREP
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4699 $as_echo "$ac_cv_path_EGREP" >&6; }
4700 EGREP="$ac_cv_path_EGREP"
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4704 $as_echo_n "checking for ANSI C header files... " >&6; }
4705 if test "${ac_cv_header_stdc+set}" = set; then :
4706 $as_echo_n "(cached) " >&6
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724 ac_cv_header_stdc=yes
4726 ac_cv_header_stdc=no
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 if test $ac_cv_header_stdc = yes; then
4731 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4738 $EGREP "memchr" >/dev/null 2>&1; then :
4741 ac_cv_header_stdc=no
4747 if test $ac_cv_header_stdc = yes; then
4748 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4755 $EGREP "free" >/dev/null 2>&1; then :
4758 ac_cv_header_stdc=no
4764 if test $ac_cv_header_stdc = yes; then
4765 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4766 if test "$cross_compiling" = yes; then :
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4773 #if ((' ' & 0x0FF) == 0x020)
4774 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4775 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4777 # define ISLOWER(c) \
4778 (('a' <= (c) && (c) <= 'i') \
4779 || ('j' <= (c) && (c) <= 'r') \
4780 || ('s' <= (c) && (c) <= 'z'))
4781 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4784 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4789 for (i = 0; i < 256; i++)
4790 if (XOR (islower (i), ISLOWER (i))
4791 || toupper (i) != TOUPPER (i))
4796 if ac_fn_c_try_run "$LINENO"; then :
4799 ac_cv_header_stdc=no
4801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4802 conftest.$ac_objext conftest.beam conftest.$ac_ext
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4808 $as_echo "$ac_cv_header_stdc" >&6; }
4809 if test $ac_cv_header_stdc = yes; then
4811 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4815 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4816 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4817 inttypes.h stdint.h unistd.h
4819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4820 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4822 eval as_val=\$$as_ac_Header
4823 if test "x$as_val" = x""yes; then :
4824 cat >>confdefs.h <<_ACEOF
4825 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4834 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4835 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4842 if test "$MINIX" = yes; then
4844 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4847 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4850 $as_echo "#define _MINIX 1" >>confdefs.h
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4856 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4857 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4863 # define __EXTENSIONS__ 1
4864 $ac_includes_default
4873 if ac_fn_c_try_compile "$LINENO"; then :
4874 ac_cv_safe_to_define___extensions__=yes
4876 ac_cv_safe_to_define___extensions__=no
4878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4881 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4882 test $ac_cv_safe_to_define___extensions__ = yes &&
4883 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4885 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4887 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4889 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4891 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4900 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4905 macro_version='2.2.7a'
4906 macro_revision='1.3134'
4920 ltmain="$ac_aux_dir/ltmain.sh"
4922 # Backslashify metacharacters that are still active within
4923 # double-quoted strings.
4924 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4926 # Same as above, but do not quote variable references.
4927 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4929 # Sed substitution to delay expansion of an escaped shell variable in a
4930 # double_quote_subst'ed string.
4931 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4933 # Sed substitution to delay expansion of an escaped single quote.
4934 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4936 # Sed substitution to avoid accidental globbing in evaled expressions
4937 no_glob_subst='s/\*/\\\*/g'
4939 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4940 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4941 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4944 $as_echo_n "checking how to print strings... " >&6; }
4945 # Test print first, because it will be a builtin if present.
4946 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4947 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4949 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4952 # Use this function as a fallback that always works.
4953 func_fallback_echo ()
4955 eval 'cat <<_LTECHO_EOF
4959 ECHO='func_fallback_echo'
4962 # func_echo_all arg...
4963 # Invoke $ECHO with all args, space-separated.
4970 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4971 $as_echo "printf" >&6; } ;;
4972 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4973 $as_echo "print -r" >&6; } ;;
4974 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4975 $as_echo "cat" >&6; } ;;
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4992 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4993 if test "${ac_cv_path_SED+set}" = set; then :
4994 $as_echo_n "(cached) " >&6
4996 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4997 for ac_i in 1 2 3 4 5 6 7; do
4998 ac_script="$ac_script$as_nl$ac_script"
5000 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5001 { ac_script=; unset ac_script;}
5002 if test -z "$SED"; then
5003 ac_path_SED_found=false
5004 # Loop through the user's path and test for each of PROGNAME-LIST
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 test -z "$as_dir" && as_dir=.
5010 for ac_prog in sed gsed; do
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5013 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5014 # Check for GNU ac_path_SED and select it if it is found.
5015 # Check for GNU $ac_path_SED
5016 case `"$ac_path_SED" --version 2>&1` in
5018 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5021 $as_echo_n 0123456789 >"conftest.in"
5024 cat "conftest.in" "conftest.in" >"conftest.tmp"
5025 mv "conftest.tmp" "conftest.in"
5026 cp "conftest.in" "conftest.nl"
5027 $as_echo '' >> "conftest.nl"
5028 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5030 as_fn_arith $ac_count + 1 && ac_count=$as_val
5031 if test $ac_count -gt ${ac_path_SED_max-0}; then
5032 # Best one so far, save it but keep looking for a better one
5033 ac_cv_path_SED="$ac_path_SED"
5034 ac_path_SED_max=$ac_count
5036 # 10*(2^10) chars as input seems more than enough
5037 test $ac_count -gt 10 && break
5039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5042 $ac_path_SED_found && break 3
5047 if test -z "$ac_cv_path_SED"; then
5048 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5056 $as_echo "$ac_cv_path_SED" >&6; }
5057 SED="$ac_cv_path_SED"
5060 test -z "$SED" && SED=sed
5061 Xsed="$SED -e 1s/^X//"
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5074 $as_echo_n "checking for fgrep... " >&6; }
5075 if test "${ac_cv_path_FGREP+set}" = set; then :
5076 $as_echo_n "(cached) " >&6
5078 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5079 then ac_cv_path_FGREP="$GREP -F"
5081 if test -z "$FGREP"; then
5082 ac_path_FGREP_found=false
5083 # Loop through the user's path and test for each of PROGNAME-LIST
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5088 test -z "$as_dir" && as_dir=.
5089 for ac_prog in fgrep; do
5090 for ac_exec_ext in '' $ac_executable_extensions; do
5091 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5092 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5093 # Check for GNU ac_path_FGREP and select it if it is found.
5094 # Check for GNU $ac_path_FGREP
5095 case `"$ac_path_FGREP" --version 2>&1` in
5097 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5100 $as_echo_n 0123456789 >"conftest.in"
5103 cat "conftest.in" "conftest.in" >"conftest.tmp"
5104 mv "conftest.tmp" "conftest.in"
5105 cp "conftest.in" "conftest.nl"
5106 $as_echo 'FGREP' >> "conftest.nl"
5107 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5108 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5109 as_fn_arith $ac_count + 1 && ac_count=$as_val
5110 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5111 # Best one so far, save it but keep looking for a better one
5112 ac_cv_path_FGREP="$ac_path_FGREP"
5113 ac_path_FGREP_max=$ac_count
5115 # 10*(2^10) chars as input seems more than enough
5116 test $ac_count -gt 10 && break
5118 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5121 $ac_path_FGREP_found && break 3
5126 if test -z "$ac_cv_path_FGREP"; then
5127 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5130 ac_cv_path_FGREP=$FGREP
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5136 $as_echo "$ac_cv_path_FGREP" >&6; }
5137 FGREP="$ac_cv_path_FGREP"
5140 test -z "$GREP" && GREP=grep
5160 # Check whether --with-gnu-ld was given.
5161 if test "${with_gnu_ld+set}" = set; then :
5162 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5168 if test "$GCC" = yes; then
5169 # Check if gcc -print-prog-name=ld gives a path.
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5171 $as_echo_n "checking for ld used by $CC... " >&6; }
5174 # gcc leaves a trailing carriage return which upsets mingw
5175 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5177 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5180 # Accept absolute paths.
5182 re_direlt='/[^/][^/]*/\.\./'
5183 # Canonicalize the pathname of ld
5184 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5185 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5186 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5188 test -z "$LD" && LD="$ac_prog"
5191 # If it fails, then pretend we aren't using GCC.
5195 # If it is relative, then search for the first ld in PATH.
5199 elif test "$with_gnu_ld" = yes; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5201 $as_echo_n "checking for GNU ld... " >&6; }
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5204 $as_echo_n "checking for non-GNU ld... " >&6; }
5206 if test "${lt_cv_path_LD+set}" = set; then :
5207 $as_echo_n "(cached) " >&6
5209 if test -z "$LD"; then
5210 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5211 for ac_dir in $PATH; do
5213 test -z "$ac_dir" && ac_dir=.
5214 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5215 lt_cv_path_LD="$ac_dir/$ac_prog"
5216 # Check to see if the program is GNU ld. I'd rather use --version,
5217 # but apparently some variants of GNU ld only accept -v.
5218 # Break only if it was the GNU/non-GNU ld that we prefer.
5219 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5220 *GNU* | *'with BFD'*)
5221 test "$with_gnu_ld" != no && break
5224 test "$with_gnu_ld" != yes && break
5231 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5236 if test -n "$LD"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5238 $as_echo "$LD" >&6; }
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5243 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5245 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5246 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5247 $as_echo_n "(cached) " >&6
5249 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5250 case `$LD -v 2>&1 </dev/null` in
5251 *GNU* | *'with BFD'*)
5252 lt_cv_prog_gnu_ld=yes
5255 lt_cv_prog_gnu_ld=no
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5260 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5261 with_gnu_ld=$lt_cv_prog_gnu_ld
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5272 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5273 if test "${lt_cv_path_NM+set}" = set; then :
5274 $as_echo_n "(cached) " >&6
5276 if test -n "$NM"; then
5277 # Let the user override the test.
5280 lt_nm_to_check="${ac_tool_prefix}nm"
5281 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5282 lt_nm_to_check="$lt_nm_to_check nm"
5284 for lt_tmp_nm in $lt_nm_to_check; do
5285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5286 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5288 test -z "$ac_dir" && ac_dir=.
5289 tmp_nm="$ac_dir/$lt_tmp_nm"
5290 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5291 # Check to see if the nm accepts a BSD-compat flag.
5292 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5293 # nm: unknown option "B" ignored
5294 # Tru64's nm complains that /dev/null is an invalid object file
5295 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5296 */dev/null* | *'Invalid file or object type'*)
5297 lt_cv_path_NM="$tmp_nm -B"
5301 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5303 lt_cv_path_NM="$tmp_nm -p"
5307 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5308 continue # so that we can try to find one that supports BSD flags
5317 : ${lt_cv_path_NM=no}
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5321 $as_echo "$lt_cv_path_NM" >&6; }
5322 if test "$lt_cv_path_NM" != "no"; then
5325 # Didn't find any BSD compatible name lister, look for dumpbin.
5326 if test -n "$DUMPBIN"; then :
5327 # Let the user override the test.
5329 if test -n "$ac_tool_prefix"; then
5330 for ac_prog in dumpbin "link -dump"
5332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5337 $as_echo_n "(cached) " >&6
5339 if test -n "$DUMPBIN"; then
5340 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5349 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 DUMPBIN=$ac_cv_prog_DUMPBIN
5360 if test -n "$DUMPBIN"; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5362 $as_echo "$DUMPBIN" >&6; }
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365 $as_echo "no" >&6; }
5369 test -n "$DUMPBIN" && break
5372 if test -z "$DUMPBIN"; then
5373 ac_ct_DUMPBIN=$DUMPBIN
5374 for ac_prog in dumpbin "link -dump"
5376 # Extract the first word of "$ac_prog", so it can be a program name with args.
5377 set dummy $ac_prog; ac_word=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5381 $as_echo_n "(cached) " >&6
5383 if test -n "$ac_ct_DUMPBIN"; then
5384 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5404 if test -n "$ac_ct_DUMPBIN"; then
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5406 $as_echo "$ac_ct_DUMPBIN" >&6; }
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5413 test -n "$ac_ct_DUMPBIN" && break
5416 if test "x$ac_ct_DUMPBIN" = x; then
5419 case $cross_compiling:$ac_tool_warned in
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5423 ac_tool_warned=yes ;;
5425 DUMPBIN=$ac_ct_DUMPBIN
5429 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5431 DUMPBIN="$DUMPBIN -symbols"
5439 if test "$DUMPBIN" != ":"; then
5443 test -z "$NM" && NM=nm
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5451 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5452 if test "${lt_cv_nm_interface+set}" = set; then :
5453 $as_echo_n "(cached) " >&6
5455 lt_cv_nm_interface="BSD nm"
5456 echo "int some_variable = 0;" > conftest.$ac_ext
5457 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5458 (eval "$ac_compile" 2>conftest.err)
5459 cat conftest.err >&5
5460 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5461 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5462 cat conftest.err >&5
5463 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5464 cat conftest.out >&5
5465 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5466 lt_cv_nm_interface="MS dumpbin"
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5471 $as_echo "$lt_cv_nm_interface" >&6; }
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5474 $as_echo_n "checking whether ln -s works... " >&6; }
5476 if test "$LN_S" = "ln -s"; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5478 $as_echo "yes" >&6; }
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5481 $as_echo "no, using $LN_S" >&6; }
5484 # find the maximum length of command line arguments
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5486 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5487 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5488 $as_echo_n "(cached) " >&6
5495 # On DJGPP, this test can blow up pretty badly due to problems in libc
5496 # (any single argument exceeding 2000 bytes causes a buffer overrun
5497 # during glob expansion). Even if it were fixed, the result of this
5498 # check would be larger than it should be.
5499 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5503 # Under GNU Hurd, this test is not required because there is
5504 # no limit to the length of command line arguments.
5505 # Libtool will interpret -1 as no limit whatsoever
5506 lt_cv_sys_max_cmd_len=-1;
5509 cygwin* | mingw* | cegcc*)
5510 # On Win9x/ME, this test blows up -- it succeeds, but takes
5511 # about 5 minutes as the teststring grows exponentially.
5512 # Worse, since 9x/ME are not pre-emptively multitasking,
5513 # you end up with a "frozen" computer, even though with patience
5514 # the test eventually succeeds (with a max line length of 256k).
5515 # Instead, let's just punt: use the minimum linelength reported by
5516 # all of the supported platforms: 8192 (on NT/2K/XP).
5517 lt_cv_sys_max_cmd_len=8192;
5521 # On MiNT this can take a long time and run out of memory.
5522 lt_cv_sys_max_cmd_len=8192;
5526 # On AmigaOS with pdksh, this test takes hours, literally.
5527 # So we just punt and use a minimum line length of 8192.
5528 lt_cv_sys_max_cmd_len=8192;
5531 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5532 # This has been around since 386BSD, at least. Likely further.
5533 if test -x /sbin/sysctl; then
5534 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5535 elif test -x /usr/sbin/sysctl; then
5536 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5538 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5540 # And add a safety zone
5541 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5542 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5546 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5547 lt_cv_sys_max_cmd_len=196608
5551 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5552 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5553 # nice to cause kernel panics so lets avoid the loop below.
5554 # First set a reasonable default.
5555 lt_cv_sys_max_cmd_len=16384
5557 if test -x /sbin/sysconfig; then
5558 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5559 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5564 lt_cv_sys_max_cmd_len=102400
5566 sysv5* | sco5v6* | sysv4.2uw2*)
5567 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5568 if test -n "$kargmax"; then
5569 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5571 lt_cv_sys_max_cmd_len=32768
5575 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5576 if test -n "$lt_cv_sys_max_cmd_len"; then
5577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5580 # Make teststring a little bigger before we do anything with it.
5581 # a 1K string should be a reasonable start.
5582 for i in 1 2 3 4 5 6 7 8 ; do
5583 teststring=$teststring$teststring
5585 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5586 # If test is not a shell built-in, we'll probably end up computing a
5587 # maximum length that is only half of the actual maximum length, but
5589 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5590 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5591 test $i != 17 # 1/2 MB should be enough
5594 teststring=$teststring$teststring
5596 # Only check the string length outside the loop.
5597 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5599 # Add a significant safety factor because C++ compilers can tack on
5600 # massive amounts of additional arguments before passing them to the
5601 # linker. It appears as though 1/2 is a usable value.
5602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5609 if test -n $lt_cv_sys_max_cmd_len ; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5611 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5614 $as_echo "none" >&6; }
5616 max_cmd_len=$lt_cv_sys_max_cmd_len
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5628 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5629 # Try some XSI features
5632 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5634 && eval 'test $(( 1 + 1 )) -eq 2 \
5635 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5638 $as_echo "$xsi_shell" >&6; }
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5642 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5644 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5646 && lt_shell_append=yes
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5648 $as_echo "$lt_shell_append" >&6; }
5651 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5661 # test EBCDIC or ASCII
5662 case `echo X|tr X '\101'` in
5663 A) # ASCII based system
5664 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5665 lt_SP2NL='tr \040 \012'
5666 lt_NL2SP='tr \015\012 \040\040'
5668 *) # EBCDIC based system
5669 lt_SP2NL='tr \100 \n'
5670 lt_NL2SP='tr \r\n \100\100'
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5683 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5684 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5685 $as_echo_n "(cached) " >&6
5687 lt_cv_ld_reload_flag='-r'
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5690 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5691 reload_flag=$lt_cv_ld_reload_flag
5692 case $reload_flag in
5694 *) reload_flag=" $reload_flag" ;;
5696 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5699 if test "$GCC" = yes; then
5700 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5702 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5715 if test -n "$ac_tool_prefix"; then
5716 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5717 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5721 $as_echo_n "(cached) " >&6
5723 if test -n "$OBJDUMP"; then
5724 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5733 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 OBJDUMP=$ac_cv_prog_OBJDUMP
5744 if test -n "$OBJDUMP"; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5746 $as_echo "$OBJDUMP" >&6; }
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5754 if test -z "$ac_cv_prog_OBJDUMP"; then
5755 ac_ct_OBJDUMP=$OBJDUMP
5756 # Extract the first word of "objdump", so it can be a program name with args.
5757 set dummy objdump; ac_word=$2
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5761 $as_echo_n "(cached) " >&6
5763 if test -n "$ac_ct_OBJDUMP"; then
5764 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5773 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5784 if test -n "$ac_ct_OBJDUMP"; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5786 $as_echo "$ac_ct_OBJDUMP" >&6; }
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5792 if test "x$ac_ct_OBJDUMP" = x; then
5795 case $cross_compiling:$ac_tool_warned in
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5799 ac_tool_warned=yes ;;
5801 OBJDUMP=$ac_ct_OBJDUMP
5804 OBJDUMP="$ac_cv_prog_OBJDUMP"
5807 test -z "$OBJDUMP" && OBJDUMP=objdump
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5818 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5819 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5822 lt_cv_file_magic_cmd='$MAGIC_CMD'
5823 lt_cv_file_magic_test_file=
5824 lt_cv_deplibs_check_method='unknown'
5825 # Need to set the preceding variable on all platforms that support
5826 # interlibrary dependencies.
5827 # 'none' -- dependencies not supported.
5828 # `unknown' -- same as none, but documents that we really don't know.
5829 # 'pass_all' -- all dependencies passed with no checks.
5830 # 'test_compile' -- check by making test program.
5831 # 'file_magic [[regex]]' -- check by looking for files in library path
5832 # which responds to the $file_magic_cmd with a given extended regex.
5833 # If you have `file' or equivalent on your system and you're not sure
5834 # whether `pass_all' will *always* work, you probably want this one.
5838 lt_cv_deplibs_check_method=pass_all
5842 lt_cv_deplibs_check_method=pass_all
5846 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5847 lt_cv_file_magic_cmd='/usr/bin/file -L'
5848 lt_cv_file_magic_test_file=/shlib/libc.so
5852 # func_win32_libid is a shell function defined in ltmain.sh
5853 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5854 lt_cv_file_magic_cmd='func_win32_libid'
5858 # Base MSYS/MinGW do not provide the 'file' command needed by
5859 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5860 # unless we find 'file', for example because we are cross-compiling.
5861 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5862 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5863 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5864 lt_cv_file_magic_cmd='func_win32_libid'
5866 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5867 lt_cv_file_magic_cmd='$OBJDUMP -f'
5872 # use the weaker test based on 'objdump'. See mingw*.
5873 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5874 lt_cv_file_magic_cmd='$OBJDUMP -f'
5877 darwin* | rhapsody*)
5878 lt_cv_deplibs_check_method=pass_all
5881 freebsd* | dragonfly*)
5882 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5885 # Not sure whether the presence of OpenBSD here was a mistake.
5886 # Let's accept both of them until this is cleared up.
5887 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5888 lt_cv_file_magic_cmd=/usr/bin/file
5889 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5893 lt_cv_deplibs_check_method=pass_all
5898 lt_cv_deplibs_check_method=pass_all
5902 lt_cv_deplibs_check_method=pass_all
5905 hpux10.20* | hpux11*)
5906 lt_cv_file_magic_cmd=/usr/bin/file
5909 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5910 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5913 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]'
5914 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5917 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5918 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5924 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5925 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5928 irix5* | irix6* | nonstopux*)
5930 *-32|*"-32 ") libmagic=32-bit;;
5931 *-n32|*"-n32 ") libmagic=N32;;
5932 *-64|*"-64 ") libmagic=64-bit;;
5933 *) libmagic=never-match;;
5935 lt_cv_deplibs_check_method=pass_all
5938 # This must be Linux ELF.
5939 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5940 lt_cv_deplibs_check_method=pass_all
5944 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5945 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5952 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5953 lt_cv_file_magic_cmd=/usr/bin/file
5954 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5958 lt_cv_deplibs_check_method=pass_all
5962 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5963 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5965 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5969 osf3* | osf4* | osf5*)
5970 lt_cv_deplibs_check_method=pass_all
5974 lt_cv_deplibs_check_method=pass_all
5978 lt_cv_deplibs_check_method=pass_all
5981 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5982 lt_cv_deplibs_check_method=pass_all
5986 case $host_vendor in
5988 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]'
5989 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5992 lt_cv_deplibs_check_method=pass_all
5995 lt_cv_file_magic_cmd='/bin/file'
5996 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5999 lt_cv_file_magic_cmd='/bin/file'
6000 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6001 lt_cv_file_magic_test_file=/lib/libc.so
6004 lt_cv_deplibs_check_method=pass_all
6007 lt_cv_deplibs_check_method=pass_all
6013 lt_cv_deplibs_check_method=pass_all
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6019 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6020 file_magic_cmd=$lt_cv_file_magic_cmd
6021 deplibs_check_method=$lt_cv_deplibs_check_method
6022 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6035 if test -n "$ac_tool_prefix"; then
6036 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6037 set dummy ${ac_tool_prefix}ar; ac_word=$2
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6039 $as_echo_n "checking for $ac_word... " >&6; }
6040 if test "${ac_cv_prog_AR+set}" = set; then :
6041 $as_echo_n "(cached) " >&6
6043 if test -n "$AR"; then
6044 ac_cv_prog_AR="$AR" # Let the user override the test.
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6053 ac_cv_prog_AR="${ac_tool_prefix}ar"
6054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 if test -n "$AR"; then
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6066 $as_echo "$AR" >&6; }
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6069 $as_echo "no" >&6; }
6074 if test -z "$ac_cv_prog_AR"; then
6076 # Extract the first word of "ar", so it can be a program name with args.
6077 set dummy ar; ac_word=$2
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079 $as_echo_n "checking for $ac_word... " >&6; }
6080 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6081 $as_echo_n "(cached) " >&6
6083 if test -n "$ac_ct_AR"; then
6084 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 test -z "$as_dir" && as_dir=.
6091 for ac_exec_ext in '' $ac_executable_extensions; do
6092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6093 ac_cv_prog_ac_ct_AR="ar"
6094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6103 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6104 if test -n "$ac_ct_AR"; then
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6106 $as_echo "$ac_ct_AR" >&6; }
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 $as_echo "no" >&6; }
6112 if test "x$ac_ct_AR" = x; then
6115 case $cross_compiling:$ac_tool_warned in
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6119 ac_tool_warned=yes ;;
6127 test -z "$AR" && AR=ar
6128 test -z "$AR_FLAGS" && AR_FLAGS=cru
6140 if test -n "$ac_tool_prefix"; then
6141 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6142 set dummy ${ac_tool_prefix}strip; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if test "${ac_cv_prog_STRIP+set}" = set; then :
6146 $as_echo_n "(cached) " >&6
6148 if test -n "$STRIP"; then
6149 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 STRIP=$ac_cv_prog_STRIP
6169 if test -n "$STRIP"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6171 $as_echo "$STRIP" >&6; }
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6179 if test -z "$ac_cv_prog_STRIP"; then
6181 # Extract the first word of "strip", so it can be a program name with args.
6182 set dummy strip; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6186 $as_echo_n "(cached) " >&6
6188 if test -n "$ac_ct_STRIP"; then
6189 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_prog_ac_ct_STRIP="strip"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6209 if test -n "$ac_ct_STRIP"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6211 $as_echo "$ac_ct_STRIP" >&6; }
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6217 if test "x$ac_ct_STRIP" = x; then
6220 case $cross_compiling:$ac_tool_warned in
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6224 ac_tool_warned=yes ;;
6229 STRIP="$ac_cv_prog_STRIP"
6232 test -z "$STRIP" && STRIP=:
6239 if test -n "$ac_tool_prefix"; then
6240 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6241 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243 $as_echo_n "checking for $ac_word... " >&6; }
6244 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6245 $as_echo_n "(cached) " >&6
6247 if test -n "$RANLIB"; then
6248 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 test -z "$as_dir" && as_dir=.
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6257 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 RANLIB=$ac_cv_prog_RANLIB
6268 if test -n "$RANLIB"; then
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6270 $as_echo "$RANLIB" >&6; }
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273 $as_echo "no" >&6; }
6278 if test -z "$ac_cv_prog_RANLIB"; then
6279 ac_ct_RANLIB=$RANLIB
6280 # Extract the first word of "ranlib", so it can be a program name with args.
6281 set dummy ranlib; ac_word=$2
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283 $as_echo_n "checking for $ac_word... " >&6; }
6284 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6285 $as_echo_n "(cached) " >&6
6287 if test -n "$ac_ct_RANLIB"; then
6288 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297 ac_cv_prog_ac_ct_RANLIB="ranlib"
6298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6308 if test -n "$ac_ct_RANLIB"; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6310 $as_echo "$ac_ct_RANLIB" >&6; }
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313 $as_echo "no" >&6; }
6316 if test "x$ac_ct_RANLIB" = x; then
6319 case $cross_compiling:$ac_tool_warned in
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6323 ac_tool_warned=yes ;;
6325 RANLIB=$ac_ct_RANLIB
6328 RANLIB="$ac_cv_prog_RANLIB"
6331 test -z "$RANLIB" && RANLIB=:
6338 # Determine commands to create old-style static archives.
6339 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6340 old_postinstall_cmds='chmod 644 $oldlib'
6341 old_postuninstall_cmds=
6343 if test -n "$RANLIB"; then
6346 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6349 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6352 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6357 lock_old_archive_extraction=yes ;;
6359 lock_old_archive_extraction=no ;;
6400 # If no C compiler was specified, use CC.
6403 # If no C compiler flags were specified, use CFLAGS.
6404 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6406 # Allow CC to be a program name with arguments.
6410 # Check for command to grab the raw symbol name followed by C symbol from nm.
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6412 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6413 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6414 $as_echo_n "(cached) " >&6
6417 # These are sane defaults that work on at least a few old systems.
6418 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6420 # Character class describing NM global symbol codes.
6421 symcode='[BCDEGRST]'
6423 # Regexp to match symbols that can be accessed directly from C.
6424 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6426 # Define system-specific variables.
6431 cygwin* | mingw* | pw32* | cegcc*)
6432 symcode='[ABCDGISTW]'
6435 if test "$host_cpu" = ia64; then
6436 symcode='[ABCDEGRST]'
6440 symcode='[BCDEGRST]'
6443 symcode='[BCDEGQRST]'
6454 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6462 # If we're using GNU nm, then use its standard symbol codes.
6463 case `$NM -V 2>&1` in
6464 *GNU* | *'with BFD'*)
6465 symcode='[ABCDGIRSTW]' ;;
6468 # Transform an extracted symbol line into a proper C declaration.
6469 # Some systems (esp. on ia64) link data and code symbols differently,
6470 # so use this general approach.
6471 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6473 # Transform an extracted symbol line into symbol name and symbol address
6474 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6475 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'"
6477 # Handle CRLF in mingw tool chain
6481 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6485 # Try without a prefix underscore, then with it.
6486 for ac_symprfx in "" "_"; do
6488 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6489 symxfrm="\\1 $ac_symprfx\\2 \\2"
6491 # Write the raw and C identifiers.
6492 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6493 # Fake it for dumpbin and say T for any non-static function
6494 # and D for any global variable.
6495 # Also find C++ and __fastcall symbols from MSVC++,
6496 # which start with @ or ?.
6497 lt_cv_sys_global_symbol_pipe="$AWK '"\
6498 " {last_section=section; section=\$ 3};"\
6499 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6500 " \$ 0!~/External *\|/{next};"\
6501 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6502 " {if(hide[section]) next};"\
6503 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6504 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6505 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6506 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6507 " ' prfx=^$ac_symprfx"
6509 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6512 # Check to see that the pipe works correctly.
6516 cat > conftest.$ac_ext <<_LT_EOF
6521 void nm_test_func(void);
6522 void nm_test_func(void){}
6526 int main(){nm_test_var='a';nm_test_func();return(0);}
6529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6530 (eval $ac_compile) 2>&5
6532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6533 test $ac_status = 0; }; then
6534 # Now try to grab the symbols.
6536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6537 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6540 test $ac_status = 0; } && test -s "$nlist"; then
6541 # Try sorting and uniquifying the output.
6542 if sort "$nlist" | uniq > "$nlist"T; then
6543 mv -f "$nlist"T "$nlist"
6548 # Make sure that we snagged all the symbols we need.
6549 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6550 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6551 cat <<_LT_EOF > conftest.$ac_ext
6557 # Now generate the symbol file.
6558 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6560 cat <<_LT_EOF >> conftest.$ac_ext
6562 /* The mapping between symbol names and symbols. */
6567 lt__PROGRAM__LTX_preloaded_symbols[] =
6569 { "@PROGRAM@", (void *) 0 },
6571 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6572 cat <<\_LT_EOF >> conftest.$ac_ext
6576 /* This works around a problem in FreeBSD linker */
6577 #ifdef FREEBSD_WORKAROUND
6578 static const void *lt_preloaded_setup() {
6579 return lt__PROGRAM__LTX_preloaded_symbols;
6587 # Now try linking the two files.
6588 mv conftest.$ac_objext conftstm.$ac_objext
6589 lt_save_LIBS="$LIBS"
6590 lt_save_CFLAGS="$CFLAGS"
6591 LIBS="conftstm.$ac_objext"
6592 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6594 (eval $ac_link) 2>&5
6596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6600 LIBS="$lt_save_LIBS"
6601 CFLAGS="$lt_save_CFLAGS"
6603 echo "cannot find nm_test_func in $nlist" >&5
6606 echo "cannot find nm_test_var in $nlist" >&5
6609 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6612 echo "$progname: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6615 rm -rf conftest* conftst*
6617 # Do not use the global_symbol_pipe unless it works.
6618 if test "$pipe_works" = yes; then
6621 lt_cv_sys_global_symbol_pipe=
6627 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6628 lt_cv_sys_global_symbol_to_cdecl=
6630 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6632 $as_echo "failed" >&6; }
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6635 $as_echo "ok" >&6; }
6659 # Check whether --enable-libtool-lock was given.
6660 if test "${enable_libtool_lock+set}" = set; then :
6661 enableval=$enable_libtool_lock;
6664 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6666 # Some flags need to be propagated to the compiler or linker for good
6670 # Find out which ABI we are using.
6671 echo 'int i;' > conftest.$ac_ext
6672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6673 (eval $ac_compile) 2>&5
6675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6676 test $ac_status = 0; }; then
6677 case `/usr/bin/file conftest.$ac_objext` in
6689 # Find out which ABI we are using.
6690 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6692 (eval $ac_compile) 2>&5
6694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6695 test $ac_status = 0; }; then
6696 if test "$lt_cv_prog_gnu_ld" = yes; then
6697 case `/usr/bin/file conftest.$ac_objext` in
6699 LD="${LD-ld} -melf32bsmip"
6702 LD="${LD-ld} -melf32bmipn32"
6705 LD="${LD-ld} -melf64bmip"
6709 case `/usr/bin/file conftest.$ac_objext` in
6725 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6726 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6727 # Find out which ABI we are using.
6728 echo 'int i;' > conftest.$ac_ext
6729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6730 (eval $ac_compile) 2>&5
6732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6733 test $ac_status = 0; }; then
6734 case `/usr/bin/file conftest.o` in
6737 x86_64-*kfreebsd*-gnu)
6738 LD="${LD-ld} -m elf_i386_fbsd"
6741 case `/usr/bin/file conftest.o` in
6743 LD="${LD-ld} -m elf32_x86_64"
6746 LD="${LD-ld} -m elf_i386"
6750 powerpc64le-*linux*)
6751 LD="${LD-ld} -m elf32lppclinux"
6754 LD="${LD-ld} -m elf32ppclinux"
6757 LD="${LD-ld} -m elf_s390"
6760 LD="${LD-ld} -m elf32_sparc"
6766 x86_64-*kfreebsd*-gnu)
6767 LD="${LD-ld} -m elf_x86_64_fbsd"
6770 LD="${LD-ld} -m elf_x86_64"
6773 LD="${LD-ld} -m elf64lppc"
6776 LD="${LD-ld} -m elf64ppc"
6778 s390*-*linux*|s390*-*tpf*)
6779 LD="${LD-ld} -m elf64_s390"
6782 LD="${LD-ld} -m elf64_sparc"
6792 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6793 SAVE_CFLAGS="$CFLAGS"
6794 CFLAGS="$CFLAGS -belf"
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6796 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6797 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6798 $as_echo_n "(cached) " >&6
6801 ac_cpp='$CPP $CPPFLAGS'
6802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6817 if ac_fn_c_try_link "$LINENO"; then :
6818 lt_cv_cc_needs_belf=yes
6820 lt_cv_cc_needs_belf=no
6822 rm -f core conftest.err conftest.$ac_objext \
6823 conftest$ac_exeext conftest.$ac_ext
6825 ac_cpp='$CPP $CPPFLAGS'
6826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6832 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6833 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6834 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6835 CFLAGS="$SAVE_CFLAGS"
6839 # Find out which ABI we are using.
6840 echo 'int i;' > conftest.$ac_ext
6841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6842 (eval $ac_compile) 2>&5
6844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6845 test $ac_status = 0; }; then
6846 case `/usr/bin/file conftest.o` in
6848 case $lt_cv_prog_gnu_ld in
6849 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6851 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6863 need_locks="$enable_libtool_lock"
6867 rhapsody* | darwin*)
6868 if test -n "$ac_tool_prefix"; then
6869 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6870 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 $as_echo_n "checking for $ac_word... " >&6; }
6873 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6874 $as_echo_n "(cached) " >&6
6876 if test -n "$DSYMUTIL"; then
6877 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6886 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6897 if test -n "$DSYMUTIL"; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6899 $as_echo "$DSYMUTIL" >&6; }
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902 $as_echo "no" >&6; }
6907 if test -z "$ac_cv_prog_DSYMUTIL"; then
6908 ac_ct_DSYMUTIL=$DSYMUTIL
6909 # Extract the first word of "dsymutil", so it can be a program name with args.
6910 set dummy dsymutil; ac_word=$2
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912 $as_echo_n "checking for $ac_word... " >&6; }
6913 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6914 $as_echo_n "(cached) " >&6
6916 if test -n "$ac_ct_DSYMUTIL"; then
6917 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6926 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6937 if test -n "$ac_ct_DSYMUTIL"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6939 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6945 if test "x$ac_ct_DSYMUTIL" = x; then
6948 case $cross_compiling:$ac_tool_warned in
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6952 ac_tool_warned=yes ;;
6954 DSYMUTIL=$ac_ct_DSYMUTIL
6957 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6960 if test -n "$ac_tool_prefix"; then
6961 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6962 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964 $as_echo_n "checking for $ac_word... " >&6; }
6965 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6966 $as_echo_n "(cached) " >&6
6968 if test -n "$NMEDIT"; then
6969 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6978 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6988 NMEDIT=$ac_cv_prog_NMEDIT
6989 if test -n "$NMEDIT"; then
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6991 $as_echo "$NMEDIT" >&6; }
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 $as_echo "no" >&6; }
6999 if test -z "$ac_cv_prog_NMEDIT"; then
7000 ac_ct_NMEDIT=$NMEDIT
7001 # Extract the first word of "nmedit", so it can be a program name with args.
7002 set dummy nmedit; ac_word=$2
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004 $as_echo_n "checking for $ac_word... " >&6; }
7005 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7006 $as_echo_n "(cached) " >&6
7008 if test -n "$ac_ct_NMEDIT"; then
7009 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7018 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7028 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7029 if test -n "$ac_ct_NMEDIT"; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7031 $as_echo "$ac_ct_NMEDIT" >&6; }
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 $as_echo "no" >&6; }
7037 if test "x$ac_ct_NMEDIT" = x; then
7040 case $cross_compiling:$ac_tool_warned in
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7044 ac_tool_warned=yes ;;
7046 NMEDIT=$ac_ct_NMEDIT
7049 NMEDIT="$ac_cv_prog_NMEDIT"
7052 if test -n "$ac_tool_prefix"; then
7053 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7054 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056 $as_echo_n "checking for $ac_word... " >&6; }
7057 if test "${ac_cv_prog_LIPO+set}" = set; then :
7058 $as_echo_n "(cached) " >&6
7060 if test -n "$LIPO"; then
7061 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7070 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 LIPO=$ac_cv_prog_LIPO
7081 if test -n "$LIPO"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7083 $as_echo "$LIPO" >&6; }
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086 $as_echo "no" >&6; }
7091 if test -z "$ac_cv_prog_LIPO"; then
7093 # Extract the first word of "lipo", so it can be a program name with args.
7094 set dummy lipo; ac_word=$2
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7096 $as_echo_n "checking for $ac_word... " >&6; }
7097 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7098 $as_echo_n "(cached) " >&6
7100 if test -n "$ac_ct_LIPO"; then
7101 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7110 ac_cv_prog_ac_ct_LIPO="lipo"
7111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7121 if test -n "$ac_ct_LIPO"; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7123 $as_echo "$ac_ct_LIPO" >&6; }
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 $as_echo "no" >&6; }
7129 if test "x$ac_ct_LIPO" = x; then
7132 case $cross_compiling:$ac_tool_warned in
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7136 ac_tool_warned=yes ;;
7141 LIPO="$ac_cv_prog_LIPO"
7144 if test -n "$ac_tool_prefix"; then
7145 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7146 set dummy ${ac_tool_prefix}otool; ac_word=$2
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7148 $as_echo_n "checking for $ac_word... " >&6; }
7149 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7150 $as_echo_n "(cached) " >&6
7152 if test -n "$OTOOL"; then
7153 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7162 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172 OTOOL=$ac_cv_prog_OTOOL
7173 if test -n "$OTOOL"; then
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7175 $as_echo "$OTOOL" >&6; }
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178 $as_echo "no" >&6; }
7183 if test -z "$ac_cv_prog_OTOOL"; then
7185 # Extract the first word of "otool", so it can be a program name with args.
7186 set dummy otool; ac_word=$2
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188 $as_echo_n "checking for $ac_word... " >&6; }
7189 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7190 $as_echo_n "(cached) " >&6
7192 if test -n "$ac_ct_OTOOL"; then
7193 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7202 ac_cv_prog_ac_ct_OTOOL="otool"
7203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7212 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7213 if test -n "$ac_ct_OTOOL"; then
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7215 $as_echo "$ac_ct_OTOOL" >&6; }
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218 $as_echo "no" >&6; }
7221 if test "x$ac_ct_OTOOL" = x; then
7224 case $cross_compiling:$ac_tool_warned in
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7228 ac_tool_warned=yes ;;
7233 OTOOL="$ac_cv_prog_OTOOL"
7236 if test -n "$ac_tool_prefix"; then
7237 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7238 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240 $as_echo_n "checking for $ac_word... " >&6; }
7241 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7242 $as_echo_n "(cached) " >&6
7244 if test -n "$OTOOL64"; then
7245 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7254 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 OTOOL64=$ac_cv_prog_OTOOL64
7265 if test -n "$OTOOL64"; then
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7267 $as_echo "$OTOOL64" >&6; }
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 $as_echo "no" >&6; }
7275 if test -z "$ac_cv_prog_OTOOL64"; then
7276 ac_ct_OTOOL64=$OTOOL64
7277 # Extract the first word of "otool64", so it can be a program name with args.
7278 set dummy otool64; ac_word=$2
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280 $as_echo_n "checking for $ac_word... " >&6; }
7281 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7282 $as_echo_n "(cached) " >&6
7284 if test -n "$ac_ct_OTOOL64"; then
7285 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 test -z "$as_dir" && as_dir=.
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7294 ac_cv_prog_ac_ct_OTOOL64="otool64"
7295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7305 if test -n "$ac_ct_OTOOL64"; then
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7307 $as_echo "$ac_ct_OTOOL64" >&6; }
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310 $as_echo "no" >&6; }
7313 if test "x$ac_ct_OTOOL64" = x; then
7316 case $cross_compiling:$ac_tool_warned in
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7320 ac_tool_warned=yes ;;
7322 OTOOL64=$ac_ct_OTOOL64
7325 OTOOL64="$ac_cv_prog_OTOOL64"
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7355 $as_echo_n "checking for -single_module linker flag... " >&6; }
7356 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7357 $as_echo_n "(cached) " >&6
7359 lt_cv_apple_cc_single_mod=no
7360 if test -z "${LT_MULTI_MODULE}"; then
7361 # By default we will add the -single_module flag. You can override
7362 # by either setting the environment variable LT_MULTI_MODULE
7363 # non-empty at configure time, or by adding -multi_module to the
7365 rm -rf libconftest.dylib*
7366 echo "int foo(void){return 1;}" > conftest.c
7367 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7368 -dynamiclib -Wl,-single_module conftest.c" >&5
7369 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7370 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7372 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7373 lt_cv_apple_cc_single_mod=yes
7375 cat conftest.err >&5
7377 rm -rf libconftest.dylib*
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7382 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7384 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7385 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7386 $as_echo_n "(cached) " >&6
7388 lt_cv_ld_exported_symbols_list=no
7389 save_LDFLAGS=$LDFLAGS
7390 echo "_main" > conftest.sym
7391 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7403 if ac_fn_c_try_link "$LINENO"; then :
7404 lt_cv_ld_exported_symbols_list=yes
7406 lt_cv_ld_exported_symbols_list=no
7408 rm -f core conftest.err conftest.$ac_objext \
7409 conftest$ac_exeext conftest.$ac_ext
7410 LDFLAGS="$save_LDFLAGS"
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7414 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7416 $as_echo_n "checking for -force_load linker flag... " >&6; }
7417 if test "${lt_cv_ld_force_load+set}" = set; then :
7418 $as_echo_n "(cached) " >&6
7420 lt_cv_ld_force_load=no
7421 cat > conftest.c << _LT_EOF
7422 int forced_loaded() { return 2;}
7424 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7425 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7426 echo "$AR cru libconftest.a conftest.o" >&5
7427 $AR cru libconftest.a conftest.o 2>&5
7428 cat > conftest.c << _LT_EOF
7429 int main() { return 0;}
7431 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7432 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7434 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7435 lt_cv_ld_force_load=yes
7437 cat conftest.err >&5
7439 rm -f conftest.err libconftest.a conftest conftest.c
7440 rm -rf conftest.dSYM
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7444 $as_echo "$lt_cv_ld_force_load" >&6; }
7446 rhapsody* | darwin1.[012])
7447 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7449 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7450 darwin*) # darwin 5.x on
7451 # if running on 10.5 or later, the deployment target defaults
7452 # to the OS version, if on x86, and 10.4, the deployment
7453 # target defaults to 10.4. Don't you love it?
7454 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7455 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7456 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7458 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7460 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7464 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7465 _lt_dar_single_mod='$single_module'
7467 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7468 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7470 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7472 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7473 _lt_dsymutil='~$DSYMUTIL $lib || :'
7480 for ac_header in dlfcn.h
7482 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7484 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7485 cat >>confdefs.h <<_ACEOF
7486 #define HAVE_DLFCN_H 1
7507 # Check whether --enable-shared was given.
7508 if test "${enable_shared+set}" = set; then :
7509 enableval=$enable_shared; p=${PACKAGE-default}
7511 yes) enable_shared=yes ;;
7512 no) enable_shared=no ;;
7515 # Look at the argument we got. We use all the common list separators.
7516 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7517 for pkg in $enableval; do
7519 if test "X$pkg" = "X$p"; then
7538 # Check whether --enable-static was given.
7539 if test "${enable_static+set}" = set; then :
7540 enableval=$enable_static; p=${PACKAGE-default}
7542 yes) enable_static=yes ;;
7543 no) enable_static=no ;;
7546 # Look at the argument we got. We use all the common list separators.
7547 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7548 for pkg in $enableval; do
7550 if test "X$pkg" = "X$p"; then
7570 # Check whether --with-pic was given.
7571 if test "${with_pic+set}" = set; then :
7572 withval=$with_pic; pic_mode="$withval"
7578 test -z "$pic_mode" && pic_mode=default
7586 # Check whether --enable-fast-install was given.
7587 if test "${enable_fast_install+set}" = set; then :
7588 enableval=$enable_fast_install; p=${PACKAGE-default}
7590 yes) enable_fast_install=yes ;;
7591 no) enable_fast_install=no ;;
7593 enable_fast_install=no
7594 # Look at the argument we got. We use all the common list separators.
7595 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7596 for pkg in $enableval; do
7598 if test "X$pkg" = "X$p"; then
7599 enable_fast_install=yes
7606 enable_fast_install=yes
7619 # This can be used to rebuild libtool when needed
7620 LIBTOOL_DEPS="$ltmain"
7622 # Always use our own libtool.
7623 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7650 test -z "$LN_S" && LN_S="ln -s"
7665 if test -n "${ZSH_VERSION+set}" ; then
7666 setopt NO_GLOB_SUBST
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7670 $as_echo_n "checking for objdir... " >&6; }
7671 if test "${lt_cv_objdir+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
7674 rm -f .libs 2>/dev/null
7675 mkdir .libs 2>/dev/null
7676 if test -d .libs; then
7679 # MS-DOS does not allow filenames that begin with a dot.
7682 rmdir .libs 2>/dev/null
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7685 $as_echo "$lt_cv_objdir" >&6; }
7686 objdir=$lt_cv_objdir
7692 cat >>confdefs.h <<_ACEOF
7693 #define LT_OBJDIR "$lt_cv_objdir/"
7701 # AIX sometimes has problems with the GCC collect2 program. For some
7702 # reason, if we set the COLLECT_NAMES environment variable, the problems
7703 # vanish in a puff of smoke.
7704 if test "X${COLLECT_NAMES+set}" != Xset; then
7706 export COLLECT_NAMES
7713 can_build_shared=yes
7715 # All known linkers require a `.a' archive for static linking (except MSVC,
7716 # which needs '.lib').
7719 with_gnu_ld="$lt_cv_prog_gnu_ld"
7722 old_CFLAGS="$CFLAGS"
7724 # Set sane defaults for various variables
7725 test -z "$CC" && CC=cc
7726 test -z "$LTCC" && LTCC=$CC
7727 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7728 test -z "$LD" && LD=ld
7729 test -z "$ac_objext" && ac_objext=o
7731 for cc_temp in $compiler""; do
7733 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7734 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7739 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7742 # Only perform the check for file, if the check method requires it
7743 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7744 case $deplibs_check_method in
7746 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7748 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7749 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7750 $as_echo_n "(cached) " >&6
7754 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7757 lt_save_MAGIC_CMD="$MAGIC_CMD"
7758 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7759 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7760 for ac_dir in $ac_dummy; do
7762 test -z "$ac_dir" && ac_dir=.
7763 if test -f $ac_dir/${ac_tool_prefix}file; then
7764 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7765 if test -n "$file_magic_test_file"; then
7766 case $deplibs_check_method in
7768 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7769 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7770 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7771 $EGREP "$file_magic_regex" > /dev/null; then
7776 *** Warning: the command libtool uses to detect shared libraries,
7777 *** $file_magic_cmd, produces output that libtool cannot recognize.
7778 *** The result is that libtool may fail to recognize shared libraries
7779 *** as such. This will affect the creation of libtool libraries that
7780 *** depend on shared libraries, but programs linked with such libtool
7781 *** libraries will work regardless of this problem. Nevertheless, you
7782 *** may want to report the problem to your system manager and/or to
7783 *** bug-libtool@gnu.org
7793 MAGIC_CMD="$lt_save_MAGIC_CMD"
7798 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7799 if test -n "$MAGIC_CMD"; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7801 $as_echo "$MAGIC_CMD" >&6; }
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 $as_echo "no" >&6; }
7811 if test -z "$lt_cv_path_MAGIC_CMD"; then
7812 if test -n "$ac_tool_prefix"; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7814 $as_echo_n "checking for file... " >&6; }
7815 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7816 $as_echo_n "(cached) " >&6
7820 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7823 lt_save_MAGIC_CMD="$MAGIC_CMD"
7824 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7825 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7826 for ac_dir in $ac_dummy; do
7828 test -z "$ac_dir" && ac_dir=.
7829 if test -f $ac_dir/file; then
7830 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7831 if test -n "$file_magic_test_file"; then
7832 case $deplibs_check_method in
7834 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7835 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7836 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7837 $EGREP "$file_magic_regex" > /dev/null; then
7842 *** Warning: the command libtool uses to detect shared libraries,
7843 *** $file_magic_cmd, produces output that libtool cannot recognize.
7844 *** The result is that libtool may fail to recognize shared libraries
7845 *** as such. This will affect the creation of libtool libraries that
7846 *** depend on shared libraries, but programs linked with such libtool
7847 *** libraries will work regardless of this problem. Nevertheless, you
7848 *** may want to report the problem to your system manager and/or to
7849 *** bug-libtool@gnu.org
7859 MAGIC_CMD="$lt_save_MAGIC_CMD"
7864 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7865 if test -n "$MAGIC_CMD"; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7867 $as_echo "$MAGIC_CMD" >&6; }
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7883 # Use C for the default configuration in the libtool script
7887 ac_cpp='$CPP $CPPFLAGS'
7888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7893 # Source file extension for C test sources.
7896 # Object file extension for compiled C test sources.
7900 # Code to be used in simple compile tests
7901 lt_simple_compile_test_code="int some_variable = 0;"
7903 # Code to be used in simple link tests
7904 lt_simple_link_test_code='int main(){return(0);}'
7912 # If no C compiler was specified, use CC.
7915 # If no C compiler flags were specified, use CFLAGS.
7916 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7918 # Allow CC to be a program name with arguments.
7921 # Save the default compiler, since it gets overwritten when the other
7922 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7923 compiler_DEFAULT=$CC
7925 # save warnings/boilerplate of simple test code
7926 ac_outfile=conftest.$ac_objext
7927 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7928 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7929 _lt_compiler_boilerplate=`cat conftest.err`
7932 ac_outfile=conftest.$ac_objext
7933 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7934 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7935 _lt_linker_boilerplate=`cat conftest.err`
7940 ## There is no encapsulation within the following macros, do not change
7941 ## the running order or otherwise move them around unless you know exactly
7942 ## what you are doing...
7943 if test -n "$compiler"; then
7945 lt_prog_compiler_no_builtin_flag=
7947 if test "$GCC" = yes; then
7948 case $cc_basename in
7950 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7952 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7956 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7957 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7958 $as_echo_n "(cached) " >&6
7960 lt_cv_prog_compiler_rtti_exceptions=no
7961 ac_outfile=conftest.$ac_objext
7962 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7963 lt_compiler_flag="-fno-rtti -fno-exceptions"
7964 # Insert the option either (1) after the last *FLAGS variable, or
7965 # (2) before a word containing "conftest.", or (3) at the end.
7966 # Note that $ac_compile itself does not contain backslashes and begins
7967 # with a dollar sign (not a hyphen), so the echo should work correctly.
7968 # The option is referenced via a variable to avoid confusing sed.
7969 lt_compile=`echo "$ac_compile" | $SED \
7970 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7972 -e 's:$: $lt_compiler_flag:'`
7973 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7974 (eval "$lt_compile" 2>conftest.err)
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 if (exit $ac_status) && test -s "$ac_outfile"; then
7979 # The compiler can only warn and ignore the option if not recognized
7980 # So say no if there are warnings other than the usual output.
7981 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7982 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7983 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7984 lt_cv_prog_compiler_rtti_exceptions=yes
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7991 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7993 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7994 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8006 lt_prog_compiler_wl=
8007 lt_prog_compiler_pic=
8008 lt_prog_compiler_static=
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8011 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8013 if test "$GCC" = yes; then
8014 lt_prog_compiler_wl='-Wl,'
8015 lt_prog_compiler_static='-static'
8019 # All AIX code is PIC.
8020 if test "$host_cpu" = ia64; then
8021 # AIX 5 now supports IA64 processor
8022 lt_prog_compiler_static='-Bstatic'
8024 lt_prog_compiler_pic='-fPIC'
8030 # see comment about AmigaOS4 .so support
8031 lt_prog_compiler_pic='-fPIC'
8034 # FIXME: we need at least 68020 code to build shared libraries, but
8035 # adding the `-m68020' flag to GCC prevents building anything better,
8037 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8042 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8043 # PIC is the default for these OSes.
8046 mingw* | cygwin* | pw32* | os2* | cegcc*)
8047 # This hack is so that the source file can tell whether it is being
8048 # built for inclusion in a dll (and should export symbols for example).
8049 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8050 # (--disable-auto-import) libraries
8051 lt_prog_compiler_pic='-DDLL_EXPORT'
8054 darwin* | rhapsody*)
8055 # PIC is the default on this platform
8056 # Common symbols not allowed in MH_DYLIB files
8057 lt_prog_compiler_pic='-fno-common'
8061 # PIC is the default for Haiku.
8062 # The "-static" flag exists, but is broken.
8063 lt_prog_compiler_static=
8067 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8068 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8069 # sets the default TLS model and affects inlining.
8075 lt_prog_compiler_pic='-fPIC'
8081 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8082 # Instead, we relocate shared libraries at runtime.
8086 # Just because we use GCC doesn't mean we suddenly get shared libraries
8087 # on systems that don't support them.
8088 lt_prog_compiler_can_build_shared=no
8093 # QNX uses GNU C++, but need to define -shared option too, otherwise
8095 lt_prog_compiler_pic='-fPIC -shared'
8099 if test -d /usr/nec; then
8100 lt_prog_compiler_pic=-Kconform_pic
8105 lt_prog_compiler_pic='-fPIC'
8109 case $cc_basename in
8110 nvcc*) # Cuda Compiler Driver 2.2
8111 lt_prog_compiler_wl='-Xlinker '
8112 lt_prog_compiler_pic='-Xcompiler -fPIC'
8116 # PORTME Check for flag to pass linker flags through the system compiler.
8119 lt_prog_compiler_wl='-Wl,'
8120 if test "$host_cpu" = ia64; then
8121 # AIX 5 now supports IA64 processor
8122 lt_prog_compiler_static='-Bstatic'
8124 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8128 mingw* | cygwin* | pw32* | os2* | cegcc*)
8129 # This hack is so that the source file can tell whether it is being
8130 # built for inclusion in a dll (and should export symbols for example).
8131 lt_prog_compiler_pic='-DDLL_EXPORT'
8134 hpux9* | hpux10* | hpux11*)
8135 lt_prog_compiler_wl='-Wl,'
8136 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8143 lt_prog_compiler_pic='+Z'
8146 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8147 lt_prog_compiler_static='${wl}-a ${wl}archive'
8150 irix5* | irix6* | nonstopux*)
8151 lt_prog_compiler_wl='-Wl,'
8152 # PIC (with -KPIC) is the default.
8153 lt_prog_compiler_static='-non_shared'
8156 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8157 case $cc_basename in
8158 # old Intel for x86_64 which still supported -KPIC.
8160 lt_prog_compiler_wl='-Wl,'
8161 lt_prog_compiler_pic='-KPIC'
8162 lt_prog_compiler_static='-static'
8164 # icc used to be incompatible with GCC.
8165 # ICC 10 doesn't accept -KPIC any more.
8167 lt_prog_compiler_wl='-Wl,'
8168 lt_prog_compiler_pic='-fPIC'
8169 lt_prog_compiler_static='-static'
8171 # Lahey Fortran 8.1.
8173 lt_prog_compiler_wl='-Wl,'
8174 lt_prog_compiler_pic='--shared'
8175 lt_prog_compiler_static='--static'
8177 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8178 # Portland Group compilers (*not* the Pentium gcc compiler,
8179 # which looks to be a dead project)
8180 lt_prog_compiler_wl='-Wl,'
8181 lt_prog_compiler_pic='-fpic'
8182 lt_prog_compiler_static='-Bstatic'
8185 lt_prog_compiler_wl='-Wl,'
8186 # All Alpha code is PIC.
8187 lt_prog_compiler_static='-non_shared'
8189 xl* | bgxl* | bgf* | mpixl*)
8190 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8191 lt_prog_compiler_wl='-Wl,'
8192 lt_prog_compiler_pic='-qpic'
8193 lt_prog_compiler_static='-qstaticlink'
8196 case `$CC -V 2>&1 | sed 5q` in
8197 *Sun\ F* | *Sun*Fortran*)
8198 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8199 lt_prog_compiler_pic='-KPIC'
8200 lt_prog_compiler_static='-Bstatic'
8201 lt_prog_compiler_wl=''
8205 lt_prog_compiler_pic='-KPIC'
8206 lt_prog_compiler_static='-Bstatic'
8207 lt_prog_compiler_wl='-Wl,'
8215 lt_prog_compiler_pic='-KPIC'
8216 lt_prog_compiler_static='-Bstatic'
8220 # QNX uses GNU C++, but need to define -shared option too, otherwise
8222 lt_prog_compiler_pic='-fPIC -shared'
8225 osf3* | osf4* | osf5*)
8226 lt_prog_compiler_wl='-Wl,'
8227 # All OSF/1 code is PIC.
8228 lt_prog_compiler_static='-non_shared'
8232 lt_prog_compiler_static='-non_shared'
8236 lt_prog_compiler_pic='-KPIC'
8237 lt_prog_compiler_static='-Bstatic'
8238 case $cc_basename in
8240 lt_prog_compiler_wl='-Qoption ld ';;
8242 lt_prog_compiler_wl='-Wl,';;
8247 lt_prog_compiler_wl='-Qoption ld '
8248 lt_prog_compiler_pic='-PIC'
8249 lt_prog_compiler_static='-Bstatic'
8252 sysv4 | sysv4.2uw2* | sysv4.3*)
8253 lt_prog_compiler_wl='-Wl,'
8254 lt_prog_compiler_pic='-KPIC'
8255 lt_prog_compiler_static='-Bstatic'
8259 if test -d /usr/nec ;then
8260 lt_prog_compiler_pic='-Kconform_pic'
8261 lt_prog_compiler_static='-Bstatic'
8265 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8266 lt_prog_compiler_wl='-Wl,'
8267 lt_prog_compiler_pic='-KPIC'
8268 lt_prog_compiler_static='-Bstatic'
8272 lt_prog_compiler_wl='-Wl,'
8273 lt_prog_compiler_can_build_shared=no
8277 lt_prog_compiler_pic='-pic'
8278 lt_prog_compiler_static='-Bstatic'
8282 lt_prog_compiler_can_build_shared=no
8288 # For platforms which do not support PIC, -DPIC is meaningless:
8290 lt_prog_compiler_pic=
8293 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8297 $as_echo "$lt_prog_compiler_pic" >&6; }
8305 # Check to make sure the PIC flag actually works.
8307 if test -n "$lt_prog_compiler_pic"; then
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8309 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8310 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8311 $as_echo_n "(cached) " >&6
8313 lt_cv_prog_compiler_pic_works=no
8314 ac_outfile=conftest.$ac_objext
8315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8316 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8317 # Insert the option either (1) after the last *FLAGS variable, or
8318 # (2) before a word containing "conftest.", or (3) at the end.
8319 # Note that $ac_compile itself does not contain backslashes and begins
8320 # with a dollar sign (not a hyphen), so the echo should work correctly.
8321 # The option is referenced via a variable to avoid confusing sed.
8322 lt_compile=`echo "$ac_compile" | $SED \
8323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8325 -e 's:$: $lt_compiler_flag:'`
8326 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8327 (eval "$lt_compile" 2>conftest.err)
8329 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 if (exit $ac_status) && test -s "$ac_outfile"; then
8332 # The compiler can only warn and ignore the option if not recognized
8333 # So say no if there are warnings other than the usual output.
8334 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8335 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8336 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8337 lt_cv_prog_compiler_pic_works=yes
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8344 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8346 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8347 case $lt_prog_compiler_pic in
8349 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8352 lt_prog_compiler_pic=
8353 lt_prog_compiler_can_build_shared=no
8364 # Check to make sure the static flag actually works.
8366 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8368 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8369 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8370 $as_echo_n "(cached) " >&6
8372 lt_cv_prog_compiler_static_works=no
8373 save_LDFLAGS="$LDFLAGS"
8374 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8375 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8376 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8377 # The linker can only warn and ignore the option if not recognized
8378 # So say no if there are warnings
8379 if test -s conftest.err; then
8380 # Append any errors to the config.log.
8381 cat conftest.err 1>&5
8382 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8384 if diff conftest.exp conftest.er2 >/dev/null; then
8385 lt_cv_prog_compiler_static_works=yes
8388 lt_cv_prog_compiler_static_works=yes
8392 LDFLAGS="$save_LDFLAGS"
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8396 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8398 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8401 lt_prog_compiler_static=
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8411 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8412 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8413 $as_echo_n "(cached) " >&6
8415 lt_cv_prog_compiler_c_o=no
8416 $RM -r conftest 2>/dev/null
8420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8422 lt_compiler_flag="-o out/conftest2.$ac_objext"
8423 # Insert the option either (1) after the last *FLAGS variable, or
8424 # (2) before a word containing "conftest.", or (3) at the end.
8425 # Note that $ac_compile itself does not contain backslashes and begins
8426 # with a dollar sign (not a hyphen), so the echo should work correctly.
8427 lt_compile=`echo "$ac_compile" | $SED \
8428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8430 -e 's:$: $lt_compiler_flag:'`
8431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8432 (eval "$lt_compile" 2>out/conftest.err)
8434 cat out/conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8438 # The compiler can only warn and ignore the option if not recognized
8439 # So say no if there are warnings
8440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8441 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8442 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8443 lt_cv_prog_compiler_c_o=yes
8448 # SGI C++ compiler will create directory out/ii_files/ for
8449 # template instantiation
8450 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8451 $RM out/* && rmdir out
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8458 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8466 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8467 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8468 $as_echo_n "(cached) " >&6
8470 lt_cv_prog_compiler_c_o=no
8471 $RM -r conftest 2>/dev/null
8475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8477 lt_compiler_flag="-o out/conftest2.$ac_objext"
8478 # Insert the option either (1) after the last *FLAGS variable, or
8479 # (2) before a word containing "conftest.", or (3) at the end.
8480 # Note that $ac_compile itself does not contain backslashes and begins
8481 # with a dollar sign (not a hyphen), so the echo should work correctly.
8482 lt_compile=`echo "$ac_compile" | $SED \
8483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8485 -e 's:$: $lt_compiler_flag:'`
8486 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8487 (eval "$lt_compile" 2>out/conftest.err)
8489 cat out/conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8493 # The compiler can only warn and ignore the option if not recognized
8494 # So say no if there are warnings
8495 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8496 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8497 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8498 lt_cv_prog_compiler_c_o=yes
8503 # SGI C++ compiler will create directory out/ii_files/ for
8504 # template instantiation
8505 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8506 $RM out/* && rmdir out
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8513 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8518 hard_links="nottested"
8519 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8520 # do not overwrite the value of need_locks provided by the user
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8522 $as_echo_n "checking if we can lock with hard links... " >&6; }
8525 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8527 ln conftest.a conftest.b 2>&5 || hard_links=no
8528 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8530 $as_echo "$hard_links" >&6; }
8531 if test "$hard_links" = no; then
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8533 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8546 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8549 allow_undefined_flag=
8550 always_export_symbols=no
8552 archive_expsym_cmds=
8553 compiler_needs_object=no
8554 enable_shared_with_static_runtimes=no
8555 export_dynamic_flag_spec=
8556 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8557 hardcode_automatic=no
8559 hardcode_direct_absolute=no
8560 hardcode_libdir_flag_spec=
8561 hardcode_libdir_flag_spec_ld=
8562 hardcode_libdir_separator=
8564 hardcode_shlibpath_var=unsupported
8566 link_all_deplibs=unknown
8569 old_archive_from_new_cmds=
8570 old_archive_from_expsyms_cmds=
8571 thread_safe_flag_spec=
8572 whole_archive_flag_spec=
8573 # include_expsyms should be a list of space-separated symbols to be *always*
8574 # included in the symbol list
8576 # exclude_expsyms can be an extended regexp of symbols to exclude
8577 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8578 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8579 # as well as any symbol that contains `d'.
8580 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8581 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8582 # platforms (ab)use it in PIC code, but their linkers get confused if
8583 # the symbol is explicitly referenced. Since portable code cannot
8584 # rely on this symbol name, it's probably fine to never include it in
8585 # preloaded symbol tables.
8586 # Exclude shared library initialization/finalization symbols.
8587 extract_expsyms_cmds=
8590 cygwin* | mingw* | pw32* | cegcc*)
8591 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8592 # When not using gcc, we currently assume that we are using
8593 # Microsoft Visual C++.
8594 if test "$GCC" != yes; then
8599 # we just hope/assume this is gcc and not c89 (= MSVC++)
8609 # On some targets, GNU ld is compatible enough with the native linker
8610 # that we're better off using the native interface for both.
8611 lt_use_gnu_ld_interface=no
8612 if test "$with_gnu_ld" = yes; then
8615 # The AIX port of GNU ld has always aspired to compatibility
8616 # with the native linker. However, as the warning in the GNU ld
8617 # block says, versions before 2.19.5* couldn't really create working
8618 # shared libraries, regardless of the interface used.
8619 case `$LD -v 2>&1` in
8620 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8621 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8622 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8624 lt_use_gnu_ld_interface=yes
8629 lt_use_gnu_ld_interface=yes
8634 if test "$lt_use_gnu_ld_interface" = yes; then
8635 # If archive_cmds runs LD, not CC, wlarc should be empty
8638 # Set some defaults for GNU ld with shared library support. These
8639 # are reset later if shared libraries are not supported. Putting them
8640 # here allows them to be overridden if necessary.
8641 runpath_var=LD_RUN_PATH
8642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8643 export_dynamic_flag_spec='${wl}--export-dynamic'
8644 # ancient GNU ld didn't support --whole-archive et. al.
8645 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8646 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8648 whole_archive_flag_spec=
8650 supports_anon_versioning=no
8651 case `$LD -v 2>&1` in
8652 *GNU\ gold*) supports_anon_versioning=yes ;;
8653 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8654 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8655 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8656 *\ 2.11.*) ;; # other 2.11 versions
8657 *) supports_anon_versioning=yes ;;
8660 # See if GNU ld supports shared libraries.
8663 # On AIX/PPC, the GNU linker is very broken
8664 if test "$host_cpu" != ia64; then
8668 *** Warning: the GNU linker, at least up to release 2.19, is reported
8669 *** to be unable to reliably create shared libraries on AIX.
8670 *** Therefore, libtool is disabling shared libraries support. If you
8671 *** really care for shared libraries, you may want to install binutils
8672 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8673 *** You will then need to restart the configuration process.
8682 # see comment about AmigaOS4 .so support
8683 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8684 archive_expsym_cmds=''
8687 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)'
8688 hardcode_libdir_flag_spec='-L$libdir'
8689 hardcode_minus_L=yes
8695 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8696 allow_undefined_flag=unsupported
8697 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8698 # support --undefined. This deserves some investigation. FIXME
8699 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8705 cygwin* | mingw* | pw32* | cegcc*)
8706 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8707 # as there is no search path for DLLs.
8708 hardcode_libdir_flag_spec='-L$libdir'
8709 export_dynamic_flag_spec='${wl}--export-all-symbols'
8710 allow_undefined_flag=unsupported
8711 always_export_symbols=no
8712 enable_shared_with_static_runtimes=yes
8713 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8715 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8717 # If the export-symbols file already is a .def file (1st line
8718 # is EXPORTS), use it as is; otherwise, prepend...
8719 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8720 cp $export_symbols $output_objdir/$soname.def;
8722 echo EXPORTS > $output_objdir/$soname.def;
8723 cat $export_symbols >> $output_objdir/$soname.def;
8725 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8733 link_all_deplibs=yes
8738 hardcode_shlibpath_var=no
8739 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8740 export_dynamic_flag_spec='${wl}-E'
8741 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8742 # Instead, shared libraries are loaded at an image base (0x10000000 by
8743 # default) and relocated if they conflict, which is a slow very memory
8744 # consuming and fragmenting process. To avoid this, we pick a random,
8745 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8746 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8747 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8748 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'
8751 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8753 if test "$host_os" = linux-dietlibc; then
8754 case $cc_basename in
8755 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8758 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8759 && test "$tmp_diet" = no
8761 tmp_addflag=' $pic_flag'
8762 tmp_sharedflag='-shared'
8763 case $cc_basename,$host_cpu in
8764 pgcc*) # Portland Group C compiler
8765 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'
8766 tmp_addflag=' $pic_flag'
8768 pgf77* | pgf90* | pgf95* | pgfortran*)
8769 # Portland Group f77 and f90 compilers
8770 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'
8771 tmp_addflag=' $pic_flag -Mnomain' ;;
8772 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8773 tmp_addflag=' -i_dynamic' ;;
8774 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8775 tmp_addflag=' -i_dynamic -nofor_main' ;;
8776 ifc* | ifort*) # Intel Fortran compiler
8777 tmp_addflag=' -nofor_main' ;;
8778 lf95*) # Lahey Fortran 8.1
8779 whole_archive_flag_spec=
8780 tmp_sharedflag='--shared' ;;
8781 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8782 tmp_sharedflag='-qmkshrobj'
8784 nvcc*) # Cuda Compiler Driver 2.2
8785 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'
8786 compiler_needs_object=yes
8789 case `$CC -V 2>&1 | sed 5q` in
8790 *Sun\ C*) # Sun C 5.9
8791 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'
8792 compiler_needs_object=yes
8793 tmp_sharedflag='-G' ;;
8794 *Sun\ F*) # Sun Fortran 8.3
8795 tmp_sharedflag='-G' ;;
8797 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8799 if test "x$supports_anon_versioning" = xyes; then
8800 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8801 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8802 echo "local: *; };" >> $output_objdir/$libname.ver~
8803 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8806 case $cc_basename in
8807 xlf* | bgf* | bgxlf* | mpixlf*)
8808 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8809 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8810 hardcode_libdir_flag_spec=
8811 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8812 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8813 if test "x$supports_anon_versioning" = xyes; then
8814 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8815 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8816 echo "local: *; };" >> $output_objdir/$libname.ver~
8817 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8827 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8828 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8831 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8832 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8837 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8841 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8842 *** create shared libraries on Solaris systems. Therefore, libtool
8843 *** is disabling shared libraries support. We urge you to upgrade GNU
8844 *** binutils to release 2.9.1 or newer. Another option is to modify
8845 *** your PATH or compiler configuration so that the native linker is
8846 *** used, and then restart.
8849 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8851 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8857 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8858 case `$LD -v 2>&1` in
8859 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8863 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8864 *** reliably create shared libraries on SCO systems. Therefore, libtool
8865 *** is disabling shared libraries support. We urge you to upgrade GNU
8866 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8867 *** your PATH or compiler configuration so that the native linker is
8868 *** used, and then restart.
8873 # For security reasons, it is highly recommended that you always
8874 # use absolute paths for naming shared libraries, and exclude the
8875 # DT_RUNPATH tag from executables and libraries. But doing so
8876 # requires that you compile everything twice, which is a pain.
8877 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8878 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8879 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8880 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8889 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8892 hardcode_shlibpath_var=no
8896 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8898 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8905 if test "$ld_shlibs" = no; then
8907 hardcode_libdir_flag_spec=
8908 export_dynamic_flag_spec=
8909 whole_archive_flag_spec=
8912 # PORTME fill in a description of your system's linker (not GNU ld)
8915 allow_undefined_flag=unsupported
8916 always_export_symbols=yes
8917 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'
8918 # Note: this linker hardcodes the directories in LIBPATH if there
8919 # are no directories specified by -L.
8920 hardcode_minus_L=yes
8921 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8922 # Neither direct hardcoding nor static linking is supported with a
8924 hardcode_direct=unsupported
8929 if test "$host_cpu" = ia64; then
8930 # On IA64, the linker does run time linking by default, so we don't
8931 # have to do anything special.
8932 aix_use_runtimelinking=no
8933 exp_sym_flag='-Bexport'
8936 # If we're using GNU nm, then we don't want the "-C" option.
8937 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8938 # Also, AIX nm treats weak defined symbols like other global
8939 # defined symbols, whereas GNU nm marks them as "W".
8940 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8941 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'
8943 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'
8945 aix_use_runtimelinking=no
8947 # Test if we are trying to use run time linking or normal
8948 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8949 # need to do runtime linking.
8950 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8951 for ld_flag in $LDFLAGS; do
8952 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8953 aix_use_runtimelinking=yes
8960 exp_sym_flag='-bexport'
8961 no_entry_flag='-bnoentry'
8964 # When large executables or shared objects are built, AIX ld can
8965 # have problems creating the table of contents. If linking a library
8966 # or program results in "error TOC overflow" add -mminimal-toc to
8967 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8968 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8972 hardcode_direct_absolute=yes
8973 hardcode_libdir_separator=':'
8974 link_all_deplibs=yes
8975 file_list_spec='${wl}-f,'
8977 if test "$GCC" = yes; then
8978 case $host_os in aix4.[012]|aix4.[012].*)
8979 # We only want to do this on AIX 4.2 and lower, the check
8980 # below for broken collect2 doesn't work under 4.3+
8981 collect2name=`${CC} -print-prog-name=collect2`
8982 if test -f "$collect2name" &&
8983 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8985 # We have reworked collect2
8988 # We have old collect2
8989 hardcode_direct=unsupported
8990 # It fails to find uninstalled libraries when the uninstalled
8991 # path is not listed in the libpath. Setting hardcode_minus_L
8992 # to unsupported forces relinking
8993 hardcode_minus_L=yes
8994 hardcode_libdir_flag_spec='-L$libdir'
8995 hardcode_libdir_separator=
8999 shared_flag='-shared'
9000 if test "$aix_use_runtimelinking" = yes; then
9001 shared_flag="$shared_flag "'${wl}-G'
9005 if test "$host_cpu" = ia64; then
9006 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9007 # chokes on -Wl,-G. The following line is correct:
9010 if test "$aix_use_runtimelinking" = yes; then
9011 shared_flag='${wl}-G'
9013 shared_flag='${wl}-bM:SRE'
9018 export_dynamic_flag_spec='${wl}-bexpall'
9019 # It seems that -bexpall does not export symbols beginning with
9020 # underscore (_), so it is better to generate a list of symbols to export.
9021 always_export_symbols=yes
9022 if test "$aix_use_runtimelinking" = yes; then
9023 # Warning - without using the other runtime loading flags (-brtl),
9024 # -berok will link without error, but may produce a broken library.
9025 allow_undefined_flag='-berok'
9026 # Determine the default libpath from the value encoded in an
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9039 if ac_fn_c_try_link "$LINENO"; then :
9041 lt_aix_libpath_sed='
9042 /Import File Strings/,/^$/ {
9048 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9049 # Check for a 64-bit object if we didn't find anything.
9050 if test -z "$aix_libpath"; then
9051 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9054 rm -f core conftest.err conftest.$ac_objext \
9055 conftest$ac_exeext conftest.$ac_ext
9056 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9058 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9059 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"
9061 if test "$host_cpu" = ia64; then
9062 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9063 allow_undefined_flag="-z nodefs"
9064 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"
9066 # Determine the default libpath from the value encoded in an
9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069 /* end confdefs.h. */
9079 if ac_fn_c_try_link "$LINENO"; then :
9081 lt_aix_libpath_sed='
9082 /Import File Strings/,/^$/ {
9088 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9089 # Check for a 64-bit object if we didn't find anything.
9090 if test -z "$aix_libpath"; then
9091 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9094 rm -f core conftest.err conftest.$ac_objext \
9095 conftest$ac_exeext conftest.$ac_ext
9096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9098 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9099 # Warning - without using the other run time loading flags,
9100 # -berok will link without error, but may produce a broken library.
9101 no_undefined_flag=' ${wl}-bernotok'
9102 allow_undefined_flag=' ${wl}-berok'
9103 if test "$with_gnu_ld" = yes; then
9104 # We only use this code for GNU lds that support --whole-archive.
9105 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9107 # Exported symbols can be pulled into shared objects from archives
9108 whole_archive_flag_spec='$convenience'
9110 archive_cmds_need_lc=yes
9111 # This is similar to how AIX traditionally builds its shared libraries.
9112 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'
9120 # see comment about AmigaOS4 .so support
9121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9122 archive_expsym_cmds=''
9125 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)'
9126 hardcode_libdir_flag_spec='-L$libdir'
9127 hardcode_minus_L=yes
9133 export_dynamic_flag_spec=-rdynamic
9136 cygwin* | mingw* | pw32* | cegcc*)
9137 # When not using gcc, we currently assume that we are using
9138 # Microsoft Visual C++.
9139 # hardcode_libdir_flag_spec is actually meaningless, as there is
9140 # no search path for DLLs.
9141 hardcode_libdir_flag_spec=' '
9142 allow_undefined_flag=unsupported
9143 # Tell ltmain to make .lib files, not .a files.
9145 # Tell ltmain to make .dll files, not .so files.
9147 # FIXME: Setting linknames here is a bad hack.
9148 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9149 # The linker will automatically build a .lib file if we build a DLL.
9150 old_archive_from_new_cmds='true'
9151 # FIXME: Should let the user specify the lib program.
9152 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9153 fix_srcfile_path='`cygpath -w "$srcfile"`'
9154 enable_shared_with_static_runtimes=yes
9157 darwin* | rhapsody*)
9160 archive_cmds_need_lc=no
9162 hardcode_automatic=yes
9163 hardcode_shlibpath_var=unsupported
9164 if test "$lt_cv_ld_force_load" = "yes"; then
9165 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\"`'
9167 whole_archive_flag_spec=''
9169 link_all_deplibs=yes
9170 allow_undefined_flag="$_lt_dar_allow_undefined"
9171 case $cc_basename in
9172 ifort*) _lt_dar_can_shared=yes ;;
9173 *) _lt_dar_can_shared=$GCC ;;
9175 if test "$_lt_dar_can_shared" = "yes"; then
9176 output_verbose_link_cmd=func_echo_all
9177 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9178 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9179 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}"
9180 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}"
9189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9190 hardcode_libdir_flag_spec='-L$libdir'
9191 hardcode_shlibpath_var=no
9194 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9195 # support. Future versions do this automatically, but an explicit c++rt0.o
9196 # does not break anything, and helps significantly (at the cost of a little
9199 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9200 hardcode_libdir_flag_spec='-R$libdir'
9202 hardcode_shlibpath_var=no
9205 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9209 hardcode_minus_L=yes
9210 hardcode_shlibpath_var=no
9213 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9214 freebsd* | dragonfly*)
9215 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9216 hardcode_libdir_flag_spec='-R$libdir'
9218 hardcode_shlibpath_var=no
9222 if test "$GCC" = yes; then
9223 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'
9225 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'
9227 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9228 hardcode_libdir_separator=:
9231 # hardcode_minus_L: Not really in the search PATH,
9232 # but as the default location of the library.
9233 hardcode_minus_L=yes
9234 export_dynamic_flag_spec='${wl}-E'
9238 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9239 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9241 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9243 if test "$with_gnu_ld" = no; then
9244 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9245 hardcode_libdir_flag_spec_ld='+b $libdir'
9246 hardcode_libdir_separator=:
9248 hardcode_direct_absolute=yes
9249 export_dynamic_flag_spec='${wl}-E'
9250 # hardcode_minus_L: Not really in the search PATH,
9251 # but as the default location of the library.
9252 hardcode_minus_L=yes
9257 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9260 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9263 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9266 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9272 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9275 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9279 # Older versions of the 11.00 compiler do not understand -b yet
9280 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9282 $as_echo_n "checking if $CC understands -b... " >&6; }
9283 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9284 $as_echo_n "(cached) " >&6
9286 lt_cv_prog_compiler__b=no
9287 save_LDFLAGS="$LDFLAGS"
9288 LDFLAGS="$LDFLAGS -b"
9289 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9290 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9291 # The linker can only warn and ignore the option if not recognized
9292 # So say no if there are warnings
9293 if test -s conftest.err; then
9294 # Append any errors to the config.log.
9295 cat conftest.err 1>&5
9296 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9297 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9298 if diff conftest.exp conftest.er2 >/dev/null; then
9299 lt_cv_prog_compiler__b=yes
9302 lt_cv_prog_compiler__b=yes
9306 LDFLAGS="$save_LDFLAGS"
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9310 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9312 if test x"$lt_cv_prog_compiler__b" = xyes; then
9313 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9315 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9321 if test "$with_gnu_ld" = no; then
9322 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9323 hardcode_libdir_separator=:
9328 hardcode_shlibpath_var=no
9332 hardcode_direct_absolute=yes
9333 export_dynamic_flag_spec='${wl}-E'
9335 # hardcode_minus_L: Not really in the search PATH,
9336 # but as the default location of the library.
9337 hardcode_minus_L=yes
9343 irix5* | irix6* | nonstopux*)
9344 if test "$GCC" = yes; then
9345 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'
9346 # Try to use the -exported_symbol ld option, if it does not
9347 # work, assume that -exports_file does not work either and
9348 # implicitly export all symbols.
9349 save_LDFLAGS="$LDFLAGS"
9350 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9355 if ac_fn_c_try_link "$LINENO"; then :
9356 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'
9359 rm -f core conftest.err conftest.$ac_objext \
9360 conftest$ac_exeext conftest.$ac_ext
9361 LDFLAGS="$save_LDFLAGS"
9363 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'
9364 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'
9366 archive_cmds_need_lc='no'
9367 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9368 hardcode_libdir_separator=:
9370 link_all_deplibs=yes
9374 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9377 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9379 hardcode_libdir_flag_spec='-R$libdir'
9381 hardcode_shlibpath_var=no
9385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9388 hardcode_libdir_separator=:
9389 hardcode_shlibpath_var=no
9396 if test -f /usr/libexec/ld.so; then
9398 hardcode_shlibpath_var=no
9399 hardcode_direct_absolute=yes
9400 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9401 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9402 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9403 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9404 export_dynamic_flag_spec='${wl}-E'
9407 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9409 hardcode_libdir_flag_spec='-R$libdir'
9412 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9413 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9423 hardcode_libdir_flag_spec='-L$libdir'
9424 hardcode_minus_L=yes
9425 allow_undefined_flag=unsupported
9426 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'
9427 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9431 if test "$GCC" = yes; then
9432 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9433 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'
9435 allow_undefined_flag=' -expect_unresolved \*'
9436 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'
9438 archive_cmds_need_lc='no'
9439 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9440 hardcode_libdir_separator=:
9443 osf4* | osf5*) # as osf3* with the addition of -msym flag
9444 if test "$GCC" = yes; then
9445 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9446 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'
9447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9449 allow_undefined_flag=' -expect_unresolved \*'
9450 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'
9451 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~
9452 $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'
9454 # Both c and cxx compiler support -rpath directly
9455 hardcode_libdir_flag_spec='-rpath $libdir'
9457 archive_cmds_need_lc='no'
9458 hardcode_libdir_separator=:
9462 no_undefined_flag=' -z defs'
9463 if test "$GCC" = yes; then
9465 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9466 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9467 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9469 case `$CC -V 2>&1` in
9472 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9473 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9474 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9478 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9479 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9480 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9484 hardcode_libdir_flag_spec='-R$libdir'
9485 hardcode_shlibpath_var=no
9487 solaris2.[0-5] | solaris2.[0-5].*) ;;
9489 # The compiler driver will combine and reorder linker options,
9490 # but understands `-z linker_flag'. GCC discards it without `$wl',
9491 # but is careful enough not to reorder.
9492 # Supported since Solaris 2.6 (maybe 2.5.1?)
9493 if test "$GCC" = yes; then
9494 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9496 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9500 link_all_deplibs=yes
9504 if test "x$host_vendor" = xsequent; then
9505 # Use $CC to link under sequent, because it throws in some extra .o
9506 # files that make .init and .fini sections work.
9507 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9509 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9511 hardcode_libdir_flag_spec='-L$libdir'
9513 hardcode_minus_L=yes
9514 hardcode_shlibpath_var=no
9518 case $host_vendor in
9520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9521 hardcode_direct=yes # is this really true???
9524 ## LD is ld it makes a PLAMLIB
9525 ## CC just makes a GrossModule.
9526 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9527 reload_cmds='$CC -r -o $output$reload_objs'
9531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9532 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9535 runpath_var='LD_RUN_PATH'
9536 hardcode_shlibpath_var=no
9540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9541 hardcode_shlibpath_var=no
9542 export_dynamic_flag_spec='-Bexport'
9546 if test -d /usr/nec; then
9547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9548 hardcode_shlibpath_var=no
9549 runpath_var=LD_RUN_PATH
9550 hardcode_runpath_var=yes
9555 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9556 no_undefined_flag='${wl}-z,text'
9557 archive_cmds_need_lc=no
9558 hardcode_shlibpath_var=no
9559 runpath_var='LD_RUN_PATH'
9561 if test "$GCC" = yes; then
9562 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9563 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9565 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9566 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9570 sysv5* | sco3.2v5* | sco5v6*)
9571 # Note: We can NOT use -z defs as we might desire, because we do not
9572 # link with -lc, and that would cause any symbols used from libc to
9573 # always be unresolved, which means just about no library would
9574 # ever link correctly. If we're not using GNU ld we use -z text
9575 # though, which does catch some bad symbols but isn't as heavy-handed
9577 no_undefined_flag='${wl}-z,text'
9578 allow_undefined_flag='${wl}-z,nodefs'
9579 archive_cmds_need_lc=no
9580 hardcode_shlibpath_var=no
9581 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9582 hardcode_libdir_separator=':'
9583 link_all_deplibs=yes
9584 export_dynamic_flag_spec='${wl}-Bexport'
9585 runpath_var='LD_RUN_PATH'
9587 if test "$GCC" = yes; then
9588 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9589 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9591 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9592 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9598 hardcode_libdir_flag_spec='-L$libdir'
9599 hardcode_shlibpath_var=no
9607 if test x$host_vendor = xsni; then
9609 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9610 export_dynamic_flag_spec='${wl}-Blargedynsym'
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9617 $as_echo "$ld_shlibs" >&6; }
9618 test "$ld_shlibs" = no && can_build_shared=no
9620 with_gnu_ld=$with_gnu_ld
9637 # Do we need to explicitly link libc?
9639 case "x$archive_cmds_need_lc" in
9641 # Assume -lc should be added
9642 archive_cmds_need_lc=yes
9644 if test "$enable_shared" = yes && test "$GCC" = yes; then
9645 case $archive_cmds in
9647 # FIXME: we may have to deal with multi-command sequences.
9650 # Test whether the compiler implicitly links with -lc since on some
9651 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9652 # to ld, don't add -lc before -lgcc.
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9654 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9655 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9656 $as_echo_n "(cached) " >&6
9659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9662 (eval $ac_compile) 2>&5
9664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9665 test $ac_status = 0; } 2>conftest.err; then
9668 libobjs=conftest.$ac_objext
9670 wl=$lt_prog_compiler_wl
9671 pic_flag=$lt_prog_compiler_pic
9677 lt_save_allow_undefined_flag=$allow_undefined_flag
9678 allow_undefined_flag=
9679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9680 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9683 test $ac_status = 0; }
9685 lt_cv_archive_cmds_need_lc=no
9687 lt_cv_archive_cmds_need_lc=yes
9689 allow_undefined_flag=$lt_save_allow_undefined_flag
9691 cat conftest.err 1>&5
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9697 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9698 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9862 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9864 if test "$GCC" = yes; then
9866 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9867 *) lt_awk_arg="/^libraries:/" ;;
9870 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9871 *) lt_sed_strip_eq="s,=/,/,g" ;;
9873 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9874 case $lt_search_path_spec in
9876 # if the path contains ";" then we assume it to be the separator
9877 # otherwise default to the standard path separator (i.e. ":") - it is
9878 # assumed that no part of a normal pathname contains ";" but that should
9879 # okay in the real world where ";" in dirpaths is itself problematic.
9880 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9883 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9886 # Ok, now we have the path, separated by spaces, we can step through it
9887 # and add multilib dir if necessary.
9888 lt_tmp_lt_search_path_spec=
9889 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9890 for lt_sys_path in $lt_search_path_spec; do
9891 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9892 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9894 test -d "$lt_sys_path" && \
9895 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9898 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9899 BEGIN {RS=" "; FS="/|\n";} {
9902 for (lt_i = NF; lt_i > 0; lt_i--) {
9903 if ($lt_i != "" && $lt_i != ".") {
9904 if ($lt_i == "..") {
9907 if (lt_count == 0) {
9908 lt_foo="/" $lt_i lt_foo;
9915 if (lt_foo != "") { lt_freq[lt_foo]++; }
9916 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9918 # AWK program above erroneously prepends '/' to C:/dos/paths
9921 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9922 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9924 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9926 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9929 libname_spec='lib$name'
9937 shlibpath_overrides_runpath=unknown
9939 dynamic_linker="$host_os ld.so"
9940 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9941 need_lib_prefix=unknown
9942 hardcode_into_libs=no
9944 # when you set need_version to no, make sure it does not cause -set_version
9945 # flags to be left without arguments
9946 need_version=unknown
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9952 shlibpath_var=LIBPATH
9954 # AIX 3 has no versioning support, so we append a major version to the name.
9955 soname_spec='${libname}${release}${shared_ext}$major'
9962 hardcode_into_libs=yes
9963 if test "$host_cpu" = ia64; then
9964 # AIX 5 supports IA64
9965 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9966 shlibpath_var=LD_LIBRARY_PATH
9968 # With GCC up to 2.95.x, collect2 would create an import file
9969 # for dependence libraries. The import file would start with
9970 # the line `#! .'. This would cause the generated library to
9971 # depend on `.', always an invalid library. This was fixed in
9972 # development snapshots of GCC prior to 3.0.
9974 aix4 | aix4.[01] | aix4.[01].*)
9975 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9977 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9984 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9985 # soname into executable. Probably we can add versioning support to
9986 # collect2, so additional links can be useful in future.
9987 if test "$aix_use_runtimelinking" = yes; then
9988 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9989 # instead of lib<name>.a to let people know that these are not
9990 # typical AIX shared libraries.
9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993 # We preserve .a as extension for shared libraries through AIX4.2
9994 # and later when we are not doing run time linking.
9995 library_names_spec='${libname}${release}.a $libname.a'
9996 soname_spec='${libname}${release}${shared_ext}$major'
9998 shlibpath_var=LIBPATH
10005 # Since July 2007 AmigaOS4 officially supports .so libraries.
10006 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10010 library_names_spec='$libname.ixlibrary $libname.a'
10011 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10012 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'
10018 library_names_spec='${libname}${shared_ext}'
10019 dynamic_linker="$host_os ld.so"
10020 shlibpath_var=LIBRARY_PATH
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10027 soname_spec='${libname}${release}${shared_ext}$major'
10028 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10029 shlibpath_var=LD_LIBRARY_PATH
10030 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10031 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10032 # the default ld.so.conf also contains /usr/contrib/lib and
10033 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10034 # libtool to hard-code these into programs
10037 cygwin* | mingw* | pw32* | cegcc*)
10038 version_type=windows
10043 case $GCC,$host_os in
10044 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10045 library_names_spec='$libname.dll.a'
10046 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10047 postinstall_cmds='base_file=`basename \${file}`~
10048 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10049 dldir=$destdir/`dirname \$dlpath`~
10050 test -d \$dldir || mkdir -p \$dldir~
10051 $install_prog $dir/$dlname \$dldir/$dlname~
10052 chmod a+x \$dldir/$dlname~
10053 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10054 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10056 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10057 dlpath=$dir/\$dldll~
10059 shlibpath_overrides_runpath=yes
10063 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10064 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10066 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10069 # MinGW DLLs use traditional 'lib' prefix
10070 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10073 # pw32 DLLs use 'pw' prefix rather than 'lib'
10074 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10080 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10083 dynamic_linker='Win32 ld.exe'
10084 # FIXME: first we should search . and the directory the executable is in
10088 darwin* | rhapsody*)
10089 dynamic_linker="$host_os dyld"
10090 version_type=darwin
10093 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10094 soname_spec='${libname}${release}${major}$shared_ext'
10095 shlibpath_overrides_runpath=yes
10096 shlibpath_var=DYLD_LIBRARY_PATH
10097 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10099 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10100 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10108 soname_spec='${libname}${release}${shared_ext}$major'
10109 shlibpath_var=LD_LIBRARY_PATH
10112 freebsd* | dragonfly*)
10113 # DragonFly does not have aout. When/if they implement a new
10114 # versioning mechanism, adjust this.
10115 if test -x /usr/bin/objformat; then
10116 objformat=`/usr/bin/objformat`
10119 freebsd[23].*) objformat=aout ;;
10120 *) objformat=elf ;;
10123 version_type=freebsd-$objformat
10124 case $version_type in
10126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10135 shlibpath_var=LD_LIBRARY_PATH
10138 shlibpath_overrides_runpath=yes
10140 freebsd3.[01]* | freebsdelf3.[01]*)
10141 shlibpath_overrides_runpath=yes
10142 hardcode_into_libs=yes
10144 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10145 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10146 shlibpath_overrides_runpath=no
10147 hardcode_into_libs=yes
10149 *) # from 4.6 on, and DragonFly
10150 shlibpath_overrides_runpath=yes
10151 hardcode_into_libs=yes
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10161 soname_spec='${libname}${release}${shared_ext}$major'
10162 shlibpath_var=LD_LIBRARY_PATH
10163 hardcode_into_libs=yes
10170 dynamic_linker="$host_os runtime_loader"
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 shlibpath_var=LIBRARY_PATH
10174 shlibpath_overrides_runpath=yes
10175 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10176 hardcode_into_libs=yes
10179 hpux9* | hpux10* | hpux11*)
10180 # Give a soname corresponding to the major version so that dld.sl refuses to
10181 # link against other versions.
10188 hardcode_into_libs=yes
10189 dynamic_linker="$host_os dld.so"
10190 shlibpath_var=LD_LIBRARY_PATH
10191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10193 soname_spec='${libname}${release}${shared_ext}$major'
10194 if test "X$HPUX_IA64_MODE" = X32; then
10195 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10197 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10199 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10203 hardcode_into_libs=yes
10204 dynamic_linker="$host_os dld.sl"
10205 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10206 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10208 soname_spec='${libname}${release}${shared_ext}$major'
10209 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10210 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10214 dynamic_linker="$host_os dld.sl"
10215 shlibpath_var=SHLIB_PATH
10216 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10218 soname_spec='${libname}${release}${shared_ext}$major'
10221 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10222 postinstall_cmds='chmod 555 $lib'
10223 # or fails outright, so override atomically:
10224 install_override_mode=555
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10232 soname_spec='${libname}${release}${shared_ext}$major'
10233 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10234 shlibpath_var=LD_LIBRARY_PATH
10235 shlibpath_overrides_runpath=no
10236 hardcode_into_libs=yes
10239 irix5* | irix6* | nonstopux*)
10241 nonstopux*) version_type=nonstopux ;;
10243 if test "$lt_cv_prog_gnu_ld" = yes; then
10251 soname_spec='${libname}${release}${shared_ext}$major'
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10254 irix5* | nonstopux*)
10255 libsuff= shlibsuff=
10258 case $LD in # libtool.m4 will add one of these switches to LD
10259 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10260 libsuff= shlibsuff= libmagic=32-bit;;
10261 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10262 libsuff=32 shlibsuff=N32 libmagic=N32;;
10263 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10264 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10265 *) libsuff= shlibsuff= libmagic=never-match;;
10269 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10270 shlibpath_overrides_runpath=no
10271 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10272 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10273 hardcode_into_libs=yes
10276 # No shared lib support for Linux oldld, aout, or coff.
10277 linux*oldld* | linux*aout* | linux*coff*)
10281 # This must be Linux ELF.
10282 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10287 soname_spec='${libname}${release}${shared_ext}$major'
10288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 shlibpath_overrides_runpath=no
10292 # Some binutils ld are patched to set DT_RUNPATH
10293 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10294 $as_echo_n "(cached) " >&6
10296 lt_cv_shlibpath_overrides_runpath=no
10297 save_LDFLAGS=$LDFLAGS
10298 save_libdir=$libdir
10299 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10300 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10302 /* end confdefs.h. */
10312 if ac_fn_c_try_link "$LINENO"; then :
10313 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10314 lt_cv_shlibpath_overrides_runpath=yes
10317 rm -f core conftest.err conftest.$ac_objext \
10318 conftest$ac_exeext conftest.$ac_ext
10319 LDFLAGS=$save_LDFLAGS
10320 libdir=$save_libdir
10324 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10326 # This implies no fast_install, which is unacceptable.
10327 # Some rework will be needed to allow for fast_install
10328 # before this can be enabled.
10329 hardcode_into_libs=yes
10331 # Append ld.so.conf contents to the search path
10332 if test -f /etc/ld.so.conf; then
10333 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' ' '`
10334 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10337 # We used to test for /lib/ld.so.1 and disable shared libraries on
10338 # powerpc, because MkLinux only supported shared libraries with the
10339 # GNU dynamic linker. Since this was broken with cross compilers,
10340 # most powerpc-linux boxes support dynamic linking these days and
10341 # people can always --disable-shared, the test was removed, and we
10342 # assume the GNU/Linux dynamic linker is in use.
10343 dynamic_linker='GNU/Linux ld.so'
10350 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10353 dynamic_linker='NetBSD (a.out) ld.so'
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10356 soname_spec='${libname}${release}${shared_ext}$major'
10357 dynamic_linker='NetBSD ld.elf_so'
10359 shlibpath_var=LD_LIBRARY_PATH
10360 shlibpath_overrides_runpath=yes
10361 hardcode_into_libs=yes
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367 shlibpath_var=LD_LIBRARY_PATH
10368 shlibpath_overrides_runpath=yes
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
10377 shlibpath_var=LD_LIBRARY_PATH
10378 shlibpath_overrides_runpath=no
10379 hardcode_into_libs=yes
10380 dynamic_linker='ldqnx.so'
10385 sys_lib_dlsearch_path_spec="/usr/lib"
10387 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10389 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10390 *) need_version=no ;;
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10397 openbsd2.[89] | openbsd2.[89].*)
10398 shlibpath_overrides_runpath=no
10401 shlibpath_overrides_runpath=yes
10405 shlibpath_overrides_runpath=yes
10410 libname_spec='$name'
10413 library_names_spec='$libname${shared_ext} $libname.a'
10414 dynamic_linker='OS/2 ld.exe'
10415 shlibpath_var=LIBPATH
10418 osf3* | osf4* | osf5*)
10422 soname_spec='${libname}${release}${shared_ext}$major'
10423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10424 shlibpath_var=LD_LIBRARY_PATH
10425 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10426 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438 soname_spec='${libname}${release}${shared_ext}$major'
10439 shlibpath_var=LD_LIBRARY_PATH
10440 shlibpath_overrides_runpath=yes
10441 hardcode_into_libs=yes
10442 # ldd complains unless libraries are executable
10443 postinstall_cmds='chmod +x $lib'
10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10449 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10450 shlibpath_var=LD_LIBRARY_PATH
10451 shlibpath_overrides_runpath=yes
10452 if test "$with_gnu_ld" = yes; then
10460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461 soname_spec='${libname}${release}${shared_ext}$major'
10462 shlibpath_var=LD_LIBRARY_PATH
10463 case $host_vendor in
10465 shlibpath_overrides_runpath=no
10467 runpath_var=LD_RUN_PATH
10475 shlibpath_overrides_runpath=no
10476 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10482 if test -d /usr/nec ;then
10484 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10485 soname_spec='$libname${shared_ext}.$major'
10486 shlibpath_var=LD_LIBRARY_PATH
10490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10491 version_type=freebsd-elf
10494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10495 soname_spec='${libname}${release}${shared_ext}$major'
10496 shlibpath_var=LD_LIBRARY_PATH
10497 shlibpath_overrides_runpath=yes
10498 hardcode_into_libs=yes
10499 if test "$with_gnu_ld" = yes; then
10500 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10502 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10505 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10509 sys_lib_dlsearch_path_spec='/usr/lib'
10513 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10518 shlibpath_var=LD_LIBRARY_PATH
10519 shlibpath_overrides_runpath=no
10520 hardcode_into_libs=yes
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526 soname_spec='${libname}${release}${shared_ext}$major'
10527 shlibpath_var=LD_LIBRARY_PATH
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10535 $as_echo "$dynamic_linker" >&6; }
10536 test "$dynamic_linker" = no && can_build_shared=no
10538 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10539 if test "$GCC" = yes; then
10540 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10543 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10544 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10546 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10547 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10642 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10644 if test -n "$hardcode_libdir_flag_spec" ||
10645 test -n "$runpath_var" ||
10646 test "X$hardcode_automatic" = "Xyes" ; then
10648 # We can hardcode non-existent directories.
10649 if test "$hardcode_direct" != no &&
10650 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10651 # have to relink, otherwise we might link with an installed library
10652 # when we should be linking with a yet-to-be-installed one
10653 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10654 test "$hardcode_minus_L" != no; then
10655 # Linking always hardcodes the temporary library directory.
10656 hardcode_action=relink
10658 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10659 hardcode_action=immediate
10662 # We cannot hardcode anything, or else we can only hardcode existing
10664 hardcode_action=unsupported
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10667 $as_echo "$hardcode_action" >&6; }
10669 if test "$hardcode_action" = relink ||
10670 test "$inherit_rpath" = yes; then
10671 # Fast installation is not supported
10672 enable_fast_install=no
10673 elif test "$shlibpath_overrides_runpath" = yes ||
10674 test "$enable_shared" = no; then
10675 # Fast installation is not necessary
10676 enable_fast_install=needless
10684 if test "x$enable_dlopen" != xyes; then
10685 enable_dlopen=unknown
10686 enable_dlopen_self=unknown
10687 enable_dlopen_self_static=unknown
10694 lt_cv_dlopen="load_add_on"
10696 lt_cv_dlopen_self=yes
10699 mingw* | pw32* | cegcc*)
10700 lt_cv_dlopen="LoadLibrary"
10705 lt_cv_dlopen="dlopen"
10710 # if libdl is installed we need to link against it
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10712 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10713 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10714 $as_echo_n "(cached) " >&6
10716 ac_check_lib_save_LIBS=$LIBS
10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h. */
10721 /* Override any GCC internal prototype to avoid an error.
10722 Use char because int might match the return type of a GCC
10723 builtin and then its argument prototype would still apply. */
10736 if ac_fn_c_try_link "$LINENO"; then :
10737 ac_cv_lib_dl_dlopen=yes
10739 ac_cv_lib_dl_dlopen=no
10741 rm -f core conftest.err conftest.$ac_objext \
10742 conftest$ac_exeext conftest.$ac_ext
10743 LIBS=$ac_check_lib_save_LIBS
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10746 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10747 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10748 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10751 lt_cv_dlopen="dyld"
10753 lt_cv_dlopen_self=yes
10760 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10761 if test "x$ac_cv_func_shl_load" = x""yes; then :
10762 lt_cv_dlopen="shl_load"
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10765 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10766 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10767 $as_echo_n "(cached) " >&6
10769 ac_check_lib_save_LIBS=$LIBS
10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10774 /* Override any GCC internal prototype to avoid an error.
10775 Use char because int might match the return type of a GCC
10776 builtin and then its argument prototype would still apply. */
10784 return shl_load ();
10789 if ac_fn_c_try_link "$LINENO"; then :
10790 ac_cv_lib_dld_shl_load=yes
10792 ac_cv_lib_dld_shl_load=no
10794 rm -f core conftest.err conftest.$ac_objext \
10795 conftest$ac_exeext conftest.$ac_ext
10796 LIBS=$ac_check_lib_save_LIBS
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10799 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10800 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10801 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10803 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10804 if test "x$ac_cv_func_dlopen" = x""yes; then :
10805 lt_cv_dlopen="dlopen"
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10808 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10809 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10810 $as_echo_n "(cached) " >&6
10812 ac_check_lib_save_LIBS=$LIBS
10814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h. */
10817 /* Override any GCC internal prototype to avoid an error.
10818 Use char because int might match the return type of a GCC
10819 builtin and then its argument prototype would still apply. */
10832 if ac_fn_c_try_link "$LINENO"; then :
10833 ac_cv_lib_dl_dlopen=yes
10835 ac_cv_lib_dl_dlopen=no
10837 rm -f core conftest.err conftest.$ac_objext \
10838 conftest$ac_exeext conftest.$ac_ext
10839 LIBS=$ac_check_lib_save_LIBS
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10842 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10843 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10844 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10847 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10848 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10849 $as_echo_n "(cached) " >&6
10851 ac_check_lib_save_LIBS=$LIBS
10852 LIBS="-lsvld $LIBS"
10853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854 /* end confdefs.h. */
10856 /* Override any GCC internal prototype to avoid an error.
10857 Use char because int might match the return type of a GCC
10858 builtin and then its argument prototype would still apply. */
10871 if ac_fn_c_try_link "$LINENO"; then :
10872 ac_cv_lib_svld_dlopen=yes
10874 ac_cv_lib_svld_dlopen=no
10876 rm -f core conftest.err conftest.$ac_objext \
10877 conftest$ac_exeext conftest.$ac_ext
10878 LIBS=$ac_check_lib_save_LIBS
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10881 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10882 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10883 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10886 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10887 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10888 $as_echo_n "(cached) " >&6
10890 ac_check_lib_save_LIBS=$LIBS
10892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h. */
10895 /* Override any GCC internal prototype to avoid an error.
10896 Use char because int might match the return type of a GCC
10897 builtin and then its argument prototype would still apply. */
10905 return dld_link ();
10910 if ac_fn_c_try_link "$LINENO"; then :
10911 ac_cv_lib_dld_dld_link=yes
10913 ac_cv_lib_dld_dld_link=no
10915 rm -f core conftest.err conftest.$ac_objext \
10916 conftest$ac_exeext conftest.$ac_ext
10917 LIBS=$ac_check_lib_save_LIBS
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10920 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10921 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10922 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10943 if test "x$lt_cv_dlopen" != xno; then
10949 case $lt_cv_dlopen in
10951 save_CPPFLAGS="$CPPFLAGS"
10952 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10954 save_LDFLAGS="$LDFLAGS"
10955 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10958 LIBS="$lt_cv_dlopen_libs $LIBS"
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10961 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10962 if test "${lt_cv_dlopen_self+set}" = set; then :
10963 $as_echo_n "(cached) " >&6
10965 if test "$cross_compiling" = yes; then :
10966 lt_cv_dlopen_self=cross
10968 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10969 lt_status=$lt_dlunknown
10970 cat > conftest.$ac_ext <<_LT_EOF
10971 #line 10971 "configure"
10972 #include "confdefs.h"
10981 # define LT_DLGLOBAL RTLD_GLOBAL
10984 # define LT_DLGLOBAL DL_GLOBAL
10986 # define LT_DLGLOBAL 0
10990 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10991 find out it does not work in some platform. */
10992 #ifndef LT_DLLAZY_OR_NOW
10994 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10997 # define LT_DLLAZY_OR_NOW DL_LAZY
11000 # define LT_DLLAZY_OR_NOW RTLD_NOW
11003 # define LT_DLLAZY_OR_NOW DL_NOW
11005 # define LT_DLLAZY_OR_NOW 0
11012 /* When -fvisbility=hidden is used, assume the code has been annotated
11013 correspondingly for the symbols needed. */
11014 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11015 void fnord () __attribute__((visibility("default")));
11018 void fnord () { int i=42; }
11021 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11022 int status = $lt_dlunknown;
11026 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11029 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11030 else puts (dlerror ());
11032 /* dlclose (self); */
11040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11041 (eval $ac_link) 2>&5
11043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11044 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11045 (./conftest; exit; ) >&5 2>/dev/null
11047 case x$lt_status in
11048 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11049 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11050 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11053 # compilation failed
11054 lt_cv_dlopen_self=no
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11062 $as_echo "$lt_cv_dlopen_self" >&6; }
11064 if test "x$lt_cv_dlopen_self" = xyes; then
11065 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11067 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11068 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11069 $as_echo_n "(cached) " >&6
11071 if test "$cross_compiling" = yes; then :
11072 lt_cv_dlopen_self_static=cross
11074 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11075 lt_status=$lt_dlunknown
11076 cat > conftest.$ac_ext <<_LT_EOF
11077 #line 11077 "configure"
11078 #include "confdefs.h"
11087 # define LT_DLGLOBAL RTLD_GLOBAL
11090 # define LT_DLGLOBAL DL_GLOBAL
11092 # define LT_DLGLOBAL 0
11096 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11097 find out it does not work in some platform. */
11098 #ifndef LT_DLLAZY_OR_NOW
11100 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11103 # define LT_DLLAZY_OR_NOW DL_LAZY
11106 # define LT_DLLAZY_OR_NOW RTLD_NOW
11109 # define LT_DLLAZY_OR_NOW DL_NOW
11111 # define LT_DLLAZY_OR_NOW 0
11118 /* When -fvisbility=hidden is used, assume the code has been annotated
11119 correspondingly for the symbols needed. */
11120 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11121 void fnord () __attribute__((visibility("default")));
11124 void fnord () { int i=42; }
11127 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11128 int status = $lt_dlunknown;
11132 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11135 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11136 else puts (dlerror ());
11138 /* dlclose (self); */
11146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11147 (eval $ac_link) 2>&5
11149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11150 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11151 (./conftest; exit; ) >&5 2>/dev/null
11153 case x$lt_status in
11154 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11155 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11156 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11159 # compilation failed
11160 lt_cv_dlopen_self_static=no
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11168 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11171 CPPFLAGS="$save_CPPFLAGS"
11172 LDFLAGS="$save_LDFLAGS"
11177 case $lt_cv_dlopen_self in
11178 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11179 *) enable_dlopen_self=unknown ;;
11182 case $lt_cv_dlopen_self_static in
11183 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11184 *) enable_dlopen_self_static=unknown ;;
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11207 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11208 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11209 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11210 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11212 $as_echo "yes" >&6; }
11214 # FIXME - insert some real tests, host_os isn't really good enough
11217 if test -n "$STRIP" ; then
11218 striplib="$STRIP -x"
11219 old_striplib="$STRIP -S"
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11221 $as_echo "yes" >&6; }
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224 $as_echo "no" >&6; }
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229 $as_echo "no" >&6; }
11245 # Report which library types will actually be built
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11247 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11249 $as_echo "$can_build_shared" >&6; }
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11252 $as_echo_n "checking whether to build shared libraries... " >&6; }
11253 test "$can_build_shared" = "no" && enable_shared=no
11255 # On AIX, shared libraries and static libraries use the same namespace, and
11256 # are all built from PIC.
11259 test "$enable_shared" = yes && enable_static=no
11260 if test -n "$RANLIB"; then
11261 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11262 postinstall_cmds='$RANLIB $lib'
11267 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11268 test "$enable_shared" = yes && enable_static=no
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11273 $as_echo "$enable_shared" >&6; }
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11276 $as_echo_n "checking whether to build static libraries... " >&6; }
11277 # Make sure either enable_shared or enable_static is yes.
11278 test "$enable_shared" = yes || enable_static=yes
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11280 $as_echo "$enable_static" >&6; }
11287 ac_cpp='$CPP $CPPFLAGS'
11288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11306 ac_config_commands="$ac_config_commands libtool"
11311 # Only expand once:
11315 # The tests for host and target for $enable_largefile require
11320 # As the $enable_largefile decision depends on --enable-plugins we must set it
11321 # even in directories otherwise not depending on the $plugins option.
11325 for ac_header in dlfcn.h
11327 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11329 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11330 cat >>confdefs.h <<_ACEOF
11331 #define HAVE_DLFCN_H 1
11338 for ac_header in windows.h
11340 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11342 if test "x$ac_cv_header_windows_h" = x""yes; then :
11343 cat >>confdefs.h <<_ACEOF
11344 #define HAVE_WINDOWS_H 1
11352 # Check whether --enable-plugins was given.
11353 if test "${enable_plugins+set}" = set; then :
11354 enableval=$enable_plugins; case "${enableval}" in
11357 if test "$maybe_plugins" != "yes" ; then
11358 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11362 plugins=$maybe_plugins
11366 if test "$plugins" = "yes"; then
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11368 $as_echo_n "checking for library containing dlopen... " >&6; }
11369 if test "${ac_cv_search_dlopen+set}" = set; then :
11370 $as_echo_n "(cached) " >&6
11372 ac_func_search_save_LIBS=$LIBS
11373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374 /* end confdefs.h. */
11376 /* Override any GCC internal prototype to avoid an error.
11377 Use char because int might match the return type of a GCC
11378 builtin and then its argument prototype would still apply. */
11391 for ac_lib in '' dl; do
11392 if test -z "$ac_lib"; then
11393 ac_res="none required"
11396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11398 if ac_fn_c_try_link "$LINENO"; then :
11399 ac_cv_search_dlopen=$ac_res
11401 rm -f core conftest.err conftest.$ac_objext \
11403 if test "${ac_cv_search_dlopen+set}" = set; then :
11407 if test "${ac_cv_search_dlopen+set}" = set; then :
11410 ac_cv_search_dlopen=no
11412 rm conftest.$ac_ext
11413 LIBS=$ac_func_search_save_LIBS
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11416 $as_echo "$ac_cv_search_dlopen" >&6; }
11417 ac_res=$ac_cv_search_dlopen
11418 if test "$ac_res" != no; then :
11419 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11427 sparc-*-solaris*|i[3-7]86-*-solaris*)
11428 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11429 # are mutually exclusive; and without procfs support, the bfd/ elf module
11430 # cannot provide certain routines such as elfcore_write_prpsinfo
11431 # or elfcore_write_prstatus. So unless the user explicitly requested
11432 # large-file support through the --enable-largefile switch, disable
11433 # large-file support in favor of procfs support.
11434 test "${target}" = "${host}" -a "x$plugins" = xno \
11435 && : ${enable_largefile="no"}
11439 # Check whether --enable-largefile was given.
11440 if test "${enable_largefile+set}" = set; then :
11441 enableval=$enable_largefile;
11444 if test "$enable_largefile" != no; then
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11447 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11448 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11449 $as_echo_n "(cached) " >&6
11451 ac_cv_sys_largefile_CC=no
11452 if test "$GCC" != yes; then
11455 # IRIX 6.2 and later do not support large files by default,
11456 # so use the C compiler's -n32 option if that helps.
11457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h. */
11459 #include <sys/types.h>
11460 /* Check that off_t can represent 2**63 - 1 correctly.
11461 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11462 since some C++ compilers masquerading as C compilers
11463 incorrectly reject 9223372036854775807. */
11464 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11466 && LARGE_OFF_T % 2147483647 == 1)
11476 if ac_fn_c_try_compile "$LINENO"; then :
11479 rm -f core conftest.err conftest.$ac_objext
11481 if ac_fn_c_try_compile "$LINENO"; then :
11482 ac_cv_sys_largefile_CC=' -n32'; break
11484 rm -f core conftest.err conftest.$ac_objext
11488 rm -f conftest.$ac_ext
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11492 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11493 if test "$ac_cv_sys_largefile_CC" != no; then
11494 CC=$CC$ac_cv_sys_largefile_CC
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11498 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11499 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11500 $as_echo_n "(cached) " >&6
11503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11504 /* end confdefs.h. */
11505 #include <sys/types.h>
11506 /* Check that off_t can represent 2**63 - 1 correctly.
11507 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11508 since some C++ compilers masquerading as C compilers
11509 incorrectly reject 9223372036854775807. */
11510 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11511 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11512 && LARGE_OFF_T % 2147483647 == 1)
11522 if ac_fn_c_try_compile "$LINENO"; then :
11523 ac_cv_sys_file_offset_bits=no; break
11525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527 /* end confdefs.h. */
11528 #define _FILE_OFFSET_BITS 64
11529 #include <sys/types.h>
11530 /* Check that off_t can represent 2**63 - 1 correctly.
11531 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11532 since some C++ compilers masquerading as C compilers
11533 incorrectly reject 9223372036854775807. */
11534 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11536 && LARGE_OFF_T % 2147483647 == 1)
11546 if ac_fn_c_try_compile "$LINENO"; then :
11547 ac_cv_sys_file_offset_bits=64; break
11549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11550 ac_cv_sys_file_offset_bits=unknown
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11555 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11556 case $ac_cv_sys_file_offset_bits in #(
11559 cat >>confdefs.h <<_ACEOF
11560 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11565 if test $ac_cv_sys_file_offset_bits = unknown; then
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11567 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11568 if test "${ac_cv_sys_large_files+set}" = set; then :
11569 $as_echo_n "(cached) " >&6
11572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h. */
11574 #include <sys/types.h>
11575 /* Check that off_t can represent 2**63 - 1 correctly.
11576 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11577 since some C++ compilers masquerading as C compilers
11578 incorrectly reject 9223372036854775807. */
11579 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11580 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11581 && LARGE_OFF_T % 2147483647 == 1)
11591 if ac_fn_c_try_compile "$LINENO"; then :
11592 ac_cv_sys_large_files=no; break
11594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11596 /* end confdefs.h. */
11597 #define _LARGE_FILES 1
11598 #include <sys/types.h>
11599 /* Check that off_t can represent 2**63 - 1 correctly.
11600 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11601 since some C++ compilers masquerading as C compilers
11602 incorrectly reject 9223372036854775807. */
11603 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11604 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11605 && LARGE_OFF_T % 2147483647 == 1)
11615 if ac_fn_c_try_compile "$LINENO"; then :
11616 ac_cv_sys_large_files=1; break
11618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11619 ac_cv_sys_large_files=unknown
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11624 $as_echo "$ac_cv_sys_large_files" >&6; }
11625 case $ac_cv_sys_large_files in #(
11628 cat >>confdefs.h <<_ACEOF
11629 #define _LARGE_FILES $ac_cv_sys_large_files
11639 # Check whether --enable-targets was given.
11640 if test "${enable_targets+set}" = set; then :
11641 enableval=$enable_targets; case "${enableval}" in
11642 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
11644 no) enable_targets= ;;
11645 *) enable_targets=$enableval ;;
11650 if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
11653 # Check whether --enable-checking was given.
11654 if test "${enable_checking+set}" = set; then :
11655 enableval=$enable_checking; case "${enableval}" in
11656 no|none) ac_checking= ;;
11657 *) ac_checking=yes ;;
11660 if test x$ac_checking != x ; then
11662 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11669 # Set the 'development' global.
11670 . $srcdir/../bfd/development.sh
11672 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11674 /* end confdefs.h. */
11677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11678 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11681 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11686 # Check whether --enable-werror was given.
11687 if test "${enable_werror+set}" = set; then :
11688 enableval=$enable_werror; case "${enableval}" in
11689 yes | y) ERROR_ON_WARNING="yes" ;;
11690 no | n) ERROR_ON_WARNING="no" ;;
11691 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11696 # Disable -Wformat by default when using gcc on mingw
11699 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11700 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11706 # Enable -Werror by default when using gcc. Turn it off for releases.
11707 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
11708 ERROR_ON_WARNING=yes
11712 if test "${ERROR_ON_WARNING}" = yes ; then
11713 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11714 NO_WERROR="-Wno-error"
11717 if test "${GCC}" = yes ; then
11718 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11721 # Check whether --enable-build-warnings was given.
11722 if test "${enable_build_warnings+set}" = set; then :
11723 enableval=$enable_build_warnings; case "${enableval}" in
11724 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11725 no) if test "${GCC}" = yes ; then
11728 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11729 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11730 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11731 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11732 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11737 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11738 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11745 # Generate a header file
11746 ac_config_headers="$ac_config_headers config.h:config.in"
11752 # If we are on a DOS filesystem, we must use gdb.ini rather than
11755 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11757 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
11762 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
11768 #We need this for the host. BOUT header is in host order.
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11770 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11771 if test "${ac_cv_c_bigendian+set}" = set; then :
11772 $as_echo_n "(cached) " >&6
11774 ac_cv_c_bigendian=unknown
11775 # See if we're dealing with a universal compiler.
11776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11777 /* end confdefs.h. */
11778 #ifndef __APPLE_CC__
11779 not a universal capable compiler
11784 if ac_fn_c_try_compile "$LINENO"; then :
11786 # Check for potential -arch flags. It is not universal unless
11787 # there are at least two -arch flags with different values.
11790 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11791 if test -n "$ac_prev"; then
11793 i?86 | x86_64 | ppc | ppc64)
11794 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11797 ac_cv_c_bigendian=universal
11803 elif test "x$ac_word" = "x-arch"; then
11808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11809 if test $ac_cv_c_bigendian = unknown; then
11810 # See if sys/param.h defines the BYTE_ORDER macro.
11811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11812 /* end confdefs.h. */
11813 #include <sys/types.h>
11814 #include <sys/param.h>
11819 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11820 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11822 bogus endian macros
11829 if ac_fn_c_try_compile "$LINENO"; then :
11830 # It does; now see whether it defined to BIG_ENDIAN or not.
11831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832 /* end confdefs.h. */
11833 #include <sys/types.h>
11834 #include <sys/param.h>
11839 #if BYTE_ORDER != BIG_ENDIAN
11847 if ac_fn_c_try_compile "$LINENO"; then :
11848 ac_cv_c_bigendian=yes
11850 ac_cv_c_bigendian=no
11852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11856 if test $ac_cv_c_bigendian = unknown; then
11857 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h. */
11860 #include <limits.h>
11865 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11866 bogus endian macros
11873 if ac_fn_c_try_compile "$LINENO"; then :
11874 # It does; now see whether it defined to _BIG_ENDIAN or not.
11875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876 /* end confdefs.h. */
11877 #include <limits.h>
11882 #ifndef _BIG_ENDIAN
11890 if ac_fn_c_try_compile "$LINENO"; then :
11891 ac_cv_c_bigendian=yes
11893 ac_cv_c_bigendian=no
11895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11899 if test $ac_cv_c_bigendian = unknown; then
11900 # Compile a test program.
11901 if test "$cross_compiling" = yes; then :
11902 # Try to guess by grepping values from an object file.
11903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11904 /* end confdefs.h. */
11905 short int ascii_mm[] =
11906 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11907 short int ascii_ii[] =
11908 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11909 int use_ascii (int i) {
11910 return ascii_mm[i] + ascii_ii[i];
11912 short int ebcdic_ii[] =
11913 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11914 short int ebcdic_mm[] =
11915 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11916 int use_ebcdic (int i) {
11917 return ebcdic_mm[i] + ebcdic_ii[i];
11924 return use_ascii (foo) == use_ebcdic (foo);
11929 if ac_fn_c_try_compile "$LINENO"; then :
11930 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11931 ac_cv_c_bigendian=yes
11933 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11934 if test "$ac_cv_c_bigendian" = unknown; then
11935 ac_cv_c_bigendian=no
11937 # finding both strings is unlikely to happen, but who knows?
11938 ac_cv_c_bigendian=unknown
11942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11945 /* end confdefs.h. */
11946 $ac_includes_default
11951 /* Are we little or big endian? From Harbison&Steele. */
11955 char c[sizeof (long int)];
11958 return u.c[sizeof (long int) - 1] == 1;
11964 if ac_fn_c_try_run "$LINENO"; then :
11965 ac_cv_c_bigendian=no
11967 ac_cv_c_bigendian=yes
11969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11970 conftest.$ac_objext conftest.beam conftest.$ac_ext
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11976 $as_echo "$ac_cv_c_bigendian" >&6; }
11977 case $ac_cv_c_bigendian in #(
11979 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11985 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11989 as_fn_error "unknown endianness
11990 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11996 # Makefile target for installing gas in $(tooldir)/bin.
11997 install_tooldir=install-exec-tooldir
12001 if test -n "$enable_targets" ; then
12002 for t in `echo $enable_targets | sed 's/,/ /g'`; do
12003 if test $t = "all"; then
12007 result=`$ac_config_sub $t 2>/dev/null`
12008 if test -n "$result" ; then
12009 canon_targets="$canon_targets $result"
12011 # # Permit "all", etc. We don't support it yet though.
12012 # canon_targets="$canon_targets $t"
12015 _gas_uniq_list="$canon_targets"
12016 _gas_uniq_newlist=""
12017 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12018 case $_gas_uniq_i in
12019 _gas_uniq_dummy) ;;
12020 *) case " $_gas_uniq_newlist " in
12021 *" $_gas_uniq_i "*) ;;
12022 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12026 canon_targets=$_gas_uniq_newlist
12032 for this_target in $target $canon_targets ; do
12034 targ=${this_target}
12035 . ${srcdir}/configure.tgt
12037 case ${target_cpu} in
12040 cat >>confdefs.h <<_ACEOF
12041 #define DEFAULT_CRIS_ARCH $arch
12047 if test ${this_target} = $target ; then
12048 target_cpu_type=${cpu_type}
12049 elif test ${target_cpu_type} != ${cpu_type} ; then
12053 generic_target=${cpu_type}-${target_vendor}-${target_os}
12054 case ${generic_target} in
12056 if test ${this_target} = $target; then
12058 $as_echo "#define SCO_ELF 1" >>confdefs.h
12063 i386-*-msdosdjgpp* \
12065 | i386-go32-rtems*)
12067 $as_echo "#define STRICTCOFF 1" >>confdefs.h
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
12073 $as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
12081 $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
12085 if test ${this_target} = $target; then
12087 $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
12090 if test x${endian} = xbig; then
12091 as_fn_error "Solaris must be configured little endian" "$LINENO" 5
12097 $as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
12102 if test ${this_target} = $target ; then
12104 if test x${endian} = xbig; then
12106 elif test x${endian} = xlittle; then
12109 if test x${endian_def} != x; then
12111 cat >>confdefs.h <<_ACEOF
12112 #define TARGET_BYTES_BIG_ENDIAN $endian_def
12118 # Other random stuff.
12120 case ${cpu_type} in
12122 # Set mips_cpu to the name of the default CPU.
12123 case ${target_cpu} in
12124 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12127 mipsisa32 | mipsisa32el)
12130 mipsisa32r2 | mipsisa32r2el)
12133 mipsisa32r3 | mipsisa32r3el)
12136 mipsisa32r5 | mipsisa32r5el)
12139 mipsisa32r6 | mipsisa32r6el)
12142 mipsisa64 | mipsisa64el)
12145 mipsisa64r2 | mipsisa64r2el)
12148 mipsisa64r3 | mipsisa64r3el)
12151 mipsisa64r5 | mipsisa64r5el)
12154 mipsisa64r6 | mipsisa64r6el)
12157 mipstx39 | mipstx39el)
12160 mips64vr | mips64vrel)
12163 mipsisa32r2* | mipsisa64r2*)
12164 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12166 mipsisa32r6* | mipsisa64r6*)
12167 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12169 mips64* | mipsisa64* | mipsisa32*)
12170 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12173 mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12176 as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
12179 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12180 # binaries. It's a GNU extension that some OSes don't understand.
12183 use_e_mips_abi_o32=0
12186 use_e_mips_abi_o32=1
12189 # Decide whether to generate 32-bit or 64-bit code by default.
12190 # Used to resolve -march=from-abi when an embedded ABI is selected.
12192 mips64*-*-* | mipsisa64*-*-*)
12193 mips_default_64bit=1
12196 mips_default_64bit=0
12199 # Decide which ABI to target by default.
12201 mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* | mips64*-kfreebsd*-gnu)
12202 mips_default_abi=N32_ABI
12204 mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
12205 mips_default_abi=O32_ABI
12208 mips_default_abi=N64_ABI
12211 mips_default_abi=NO_ABI
12215 cat >>confdefs.h <<_ACEOF
12216 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
12220 cat >>confdefs.h <<_ACEOF
12221 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
12225 cat >>confdefs.h <<_ACEOF
12226 #define MIPS_DEFAULT_64BIT $mips_default_64bit
12230 cat >>confdefs.h <<_ACEOF
12231 #define MIPS_DEFAULT_ABI $mips_default_abi
12237 # Do we need the opcodes library?
12238 case ${cpu_type} in
12245 case "${enable_shared}" in
12246 yes) shared_opcodes=true ;;
12247 *opcodes*) shared_opcodes=true ;;
12248 *) shared_opcodes=false ;;
12253 # Any other special object files needed ?
12254 case ${cpu_type} in
12257 echo ${extra_objects} | grep -s "bfin-parse.o"
12258 if test $? -ne 0 ; then
12259 extra_objects="$extra_objects bfin-parse.o"
12262 echo ${extra_objects} | grep -s "bfin-lex-wrapper.o"
12263 if test $? -ne 0 ; then
12264 extra_objects="$extra_objects bfin-lex-wrapper.o"
12268 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
12279 case ${extra_objects} in
12281 *) extra_objects="$extra_objects m68k-parse.o" ;;
12290 echo ${extra_objects} | grep -s "itbl-parse.o"
12291 if test $? -ne 0 ; then
12292 extra_objects="$extra_objects itbl-parse.o"
12295 echo ${extra_objects} | grep -s "itbl-lex-wrapper.o"
12296 if test $? -ne 0 ; then
12297 extra_objects="$extra_objects itbl-lex-wrapper.o"
12300 echo ${extra_objects} | grep -s "itbl-ops.o"
12301 if test $? -ne 0 ; then
12302 extra_objects="$extra_objects itbl-ops.o"
12311 # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
12312 # based on arch_name.
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12314 $as_echo_n "checking for default configuration of --with-arch... " >&6; }
12315 if test "x${with_arch}" != x; then
12316 case ${with_arch} in
12317 v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
12319 cat >>confdefs.h <<_ACEOF
12320 #define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12325 as_fn_error "This kind of arch name does *NOT* exist!" "$LINENO" 5
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12330 $as_echo "$with_arch" >&6; }
12332 # Decide features one by one.
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
12334 $as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
12335 if test "x${enable_dx_regs}" == xyes; then
12337 $as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12341 $as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12345 $as_echo "$enable_dx_regs" >&6; }
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
12348 $as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
12349 if test "x${enable_perf_ext}" == xno; then
12351 $as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12355 $as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12359 $as_echo "$enable_perf_ext" >&6; }
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
12362 $as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
12363 if test "x${enable_perf_ext2}" == xno; then
12365 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12369 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12373 $as_echo "$enable_perf_ext2" >&6; }
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
12376 $as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
12377 if test "x${enable_string_ext}" == xno; then
12379 $as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12383 $as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12387 $as_echo "$enable_string_ext" >&6; }
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
12390 $as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
12391 if test "x${enable_audio_ext}" == xno; then
12393 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12397 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12401 $as_echo "$enable_audio_ext" >&6; }
12404 i386 | s390 | sparc)
12405 if test $this_target = $target ; then
12407 cat >>confdefs.h <<_ACEOF
12408 #define DEFAULT_ARCH "${arch}"
12415 echo ${extra_objects} | grep -s "rl78-parse.o"
12416 if test $? -ne 0 ; then
12417 extra_objects="$extra_objects rl78-parse.o"
12422 echo ${extra_objects} | grep -s "rx-parse.o"
12423 if test $? -ne 0 ; then
12424 extra_objects="$extra_objects rx-parse.o"
12437 echo ${extra_objects} | grep -s "xtensa-relax.o"
12438 if test $? -ne 0 ; then
12439 extra_objects="$extra_objects xtensa-relax.o"
12447 if test $using_cgen = yes ; then
12448 case "x${extra_objects}" in
12450 *) extra_objects="$extra_objects cgen.o" ;;
12454 # See if we really can support this configuration with the emulation code.
12456 if test $this_target = $target ; then
12462 vms) extra_objects="$extra_objects te-vms.o" ;;
12465 # From target name and format, produce a list of supported emulations.
12467 case ${generic_target}-${fmt} in
12468 mips-*-*-*) case "$endian" in
12469 big) emulation="mipsbelf mipslelf mipself" ;;
12470 *) emulation="mipslelf mipsbelf mipself" ;;
12472 # i386-pc-pe-coff != i386-pc-coff.
12474 # Uncommenting the next line will turn on support for i386 AOUT
12475 # for the default linux configuration
12476 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12478 i386-*-aout) emulation="i386aout" ;;
12479 i386-*-coff) emulation="i386coff" ;;
12480 i386-*-elf) emulation="i386elf" ;;
12482 # Always all formats. The first stated emulation becomes the default.
12483 cris-*-*aout*) emulation="crisaout criself" ;;
12484 cris-*-*) emulation="criself crisaout" ;;
12487 emulations="$emulations $emulation"
12491 # Turn on all targets if possible
12492 if test ${all_targets} = "yes"; then
12493 case ${target_cpu_type} in
12495 case ${obj_format} in
12497 emulations="$emulations i386coff i386elf"
12500 emulations="$emulations i386aout i386elf"
12503 emulations="$emulations i386aout i386coff"
12508 case ${obj_format} in
12510 emulations="$emulations i386coff i386elf"
12513 emulations="$emulations i386aout i386elf"
12516 emulations="$emulations i386aout i386coff"
12523 # PE code has way too many macros tweaking behaviour
12525 pe*) emulations="" ;;
12528 # Assign floating point type. Most processors with FP support
12529 # IEEE FP. On those that don't support FP at all, usually IEEE
12531 case ${target_cpu} in
12532 vax | pdp11 ) atof=vax ;;
12536 case "${obj_format}" in
12537 "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
12540 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12542 if test $using_cgen = yes ; then
12543 case ${target_cpu} in
12545 cgen_cpu_prefix=or1k ;;
12546 *) cgen_cpu_prefix=${target_cpu} ;;
12550 $as_echo "#define USING_CGEN 1" >>confdefs.h
12555 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
12556 as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
12559 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
12560 as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
12563 # Some COFF configurations want these random other flags set.
12564 case ${obj_format} in
12566 case ${target_cpu_type} in
12568 $as_echo "#define I386COFF 1" >>confdefs.h
12571 $as_echo "#define M68KCOFF 1" >>confdefs.h
12574 $as_echo "#define M88KCOFF 1" >>confdefs.h
12577 $as_echo "#define I386COFF 1" >>confdefs.h
12583 # Getting this done right is going to be a bitch. Each configuration specified
12584 # with --enable-targets=... should be checked for environment, format, cpu
12587 # For each configuration, the necessary object file support code must be linked
12588 # in. This might be only one, it might be up to four. The necessary emulation
12589 # code needs to be provided, too.
12591 # And then there's "--enable-targets=all"....
12593 # For now, just always do it for MIPS ELF configurations. Sigh.
12595 formats="${obj_format}"
12598 _gas_uniq_list="$emulations"
12599 _gas_uniq_newlist=""
12600 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12601 case $_gas_uniq_i in
12602 _gas_uniq_dummy) ;;
12603 *) case " $_gas_uniq_newlist " in
12604 *" $_gas_uniq_i "*) ;;
12605 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12609 emulations=$_gas_uniq_newlist
12611 for em in . $emulations ; do
12614 mipsbelf | mipslelf | mipself)
12615 fmt=elf file=mipself ;;
12617 fmt=coff file=$em ;;
12619 fmt=aout file=$em ;;
12621 fmt=elf file=$em ;;
12623 formats="$formats $fmt"
12624 emfiles="$emfiles e-$file.o"
12625 EMULATIONS="$EMULATIONS &$em,"
12627 _gas_uniq_list="$formats"
12628 _gas_uniq_newlist=""
12629 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12630 case $_gas_uniq_i in
12631 _gas_uniq_dummy) ;;
12632 *) case " $_gas_uniq_newlist " in
12633 *" $_gas_uniq_i "*) ;;
12634 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12638 formats=$_gas_uniq_newlist
12640 _gas_uniq_list="$emfiles"
12641 _gas_uniq_newlist=""
12642 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12643 case $_gas_uniq_i in
12644 _gas_uniq_dummy) ;;
12645 *) case " $_gas_uniq_newlist " in
12646 *" $_gas_uniq_i "*) ;;
12647 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12651 emfiles=$_gas_uniq_newlist
12653 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12654 for fmt in $formats ; do
12657 $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
12660 $as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
12663 $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
12666 $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
12669 $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
12672 $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
12675 $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
12678 extra_objects="$extra_objects obj-$fmt.o"
12682 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12683 DEFAULT_EMULATION=`set . $emulations ; echo $2`
12684 # e-mipself has more than one emulation per file, e-i386* has just one at the
12685 # moment. If only one emulation is specified, then don't define
12686 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12687 case "${obj_format}${emfiles}" in
12688 multi* | *mipself*)
12689 extra_objects="$extra_objects $emfiles"
12691 $as_echo "#define USE_EMULATIONS 1" >>confdefs.h
12697 cat >>confdefs.h <<_ACEOF
12698 #define EMULATIONS $EMULATIONS
12702 cat >>confdefs.h <<_ACEOF
12703 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
12707 reject_dev_configs=yes
12709 case ${reject_dev_configs}-${dev} in
12711 as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
12721 # do we need the opcodes library?
12722 case "${need_opcodes}" in
12724 OPCODES_LIB=../opcodes/libopcodes.la
12731 cat >>confdefs.h <<_ACEOF
12732 #define TARGET_ALIAS "${target_alias}"
12736 cat >>confdefs.h <<_ACEOF
12737 #define TARGET_CANONICAL "${target}"
12741 cat >>confdefs.h <<_ACEOF
12742 #define TARGET_CPU "${target_cpu}"
12746 cat >>confdefs.h <<_ACEOF
12747 #define TARGET_VENDOR "${target_vendor}"
12751 cat >>confdefs.h <<_ACEOF
12752 #define TARGET_OS "${target_os}"
12756 for ac_prog in 'bison -y' byacc
12758 # Extract the first word of "$ac_prog", so it can be a program name with args.
12759 set dummy $ac_prog; ac_word=$2
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12761 $as_echo_n "checking for $ac_word... " >&6; }
12762 if test "${ac_cv_prog_YACC+set}" = set; then :
12763 $as_echo_n "(cached) " >&6
12765 if test -n "$YACC"; then
12766 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12769 for as_dir in $PATH
12772 test -z "$as_dir" && as_dir=.
12773 for ac_exec_ext in '' $ac_executable_extensions; do
12774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12775 ac_cv_prog_YACC="$ac_prog"
12776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12785 YACC=$ac_cv_prog_YACC
12786 if test -n "$YACC"; then
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12788 $as_echo "$YACC" >&6; }
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12791 $as_echo "no" >&6; }
12795 test -n "$YACC" && break
12797 test -n "$YACC" || YACC="yacc"
12799 for ac_prog in flex lex
12801 # Extract the first word of "$ac_prog", so it can be a program name with args.
12802 set dummy $ac_prog; ac_word=$2
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12804 $as_echo_n "checking for $ac_word... " >&6; }
12805 if test "${ac_cv_prog_LEX+set}" = set; then :
12806 $as_echo_n "(cached) " >&6
12808 if test -n "$LEX"; then
12809 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812 for as_dir in $PATH
12815 test -z "$as_dir" && as_dir=.
12816 for ac_exec_ext in '' $ac_executable_extensions; do
12817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12818 ac_cv_prog_LEX="$ac_prog"
12819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12828 LEX=$ac_cv_prog_LEX
12829 if test -n "$LEX"; then
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12831 $as_echo "$LEX" >&6; }
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12834 $as_echo "no" >&6; }
12838 test -n "$LEX" && break
12840 test -n "$LEX" || LEX=":"
12842 if test "x$LEX" != "x:"; then
12843 cat >conftest.l <<_ACEOF
12849 e { yyless (input () != 0); }
12850 f { unput (yytext[0]); }
12851 . { BEGIN INITIAL; }
12853 #ifdef YYTEXT_POINTER
12854 extern char *yytext;
12859 return ! yylex () + ! yywrap ();
12862 { { ac_try="$LEX conftest.l"
12863 case "(($ac_try" in
12864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12865 *) ac_try_echo=$ac_try;;
12867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12868 $as_echo "$ac_try_echo"; } >&5
12869 (eval "$LEX conftest.l") 2>&5
12871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12872 test $ac_status = 0; }
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12874 $as_echo_n "checking lex output file root... " >&6; }
12875 if test "${ac_cv_prog_lex_root+set}" = set; then :
12876 $as_echo_n "(cached) " >&6
12879 if test -f lex.yy.c; then
12880 ac_cv_prog_lex_root=lex.yy
12881 elif test -f lexyy.c; then
12882 ac_cv_prog_lex_root=lexyy
12884 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12888 $as_echo "$ac_cv_prog_lex_root" >&6; }
12889 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12891 if test -z "${LEXLIB+set}"; then
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12893 $as_echo_n "checking lex library... " >&6; }
12894 if test "${ac_cv_lib_lex+set}" = set; then :
12895 $as_echo_n "(cached) " >&6
12899 ac_cv_lib_lex='none needed'
12900 for ac_lib in '' -lfl -ll; do
12901 LIBS="$ac_lib $ac_save_LIBS"
12902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12903 /* end confdefs.h. */
12904 `cat $LEX_OUTPUT_ROOT.c`
12906 if ac_fn_c_try_link "$LINENO"; then :
12907 ac_cv_lib_lex=$ac_lib
12909 rm -f core conftest.err conftest.$ac_objext \
12910 conftest$ac_exeext conftest.$ac_ext
12911 test "$ac_cv_lib_lex" != 'none needed' && break
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12917 $as_echo "$ac_cv_lib_lex" >&6; }
12918 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12923 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12924 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12925 $as_echo_n "(cached) " >&6
12927 # POSIX says lex can declare yytext either as a pointer or an array; the
12928 # default is implementation-dependent. Figure out which it is, since
12929 # not all implementations provide the %pointer and %array declarations.
12930 ac_cv_prog_lex_yytext_pointer=no
12932 LIBS="$LEXLIB $ac_save_LIBS"
12933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12934 /* end confdefs.h. */
12935 #define YYTEXT_POINTER 1
12936 `cat $LEX_OUTPUT_ROOT.c`
12938 if ac_fn_c_try_link "$LINENO"; then :
12939 ac_cv_prog_lex_yytext_pointer=yes
12941 rm -f core conftest.err conftest.$ac_objext \
12942 conftest$ac_exeext conftest.$ac_ext
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12947 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12948 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12950 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12953 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12956 if test "$LEX" = :; then
12957 LEX=${am_missing_run}flex
12960 ALL_LINGUAS="fr tr es rw id ru fi ja"
12961 # If we haven't got the data from the intl directory,
12962 # assume NLS is disabled.
12971 if test -f ../intl/config.intl; then
12972 . ../intl/config.intl
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12975 $as_echo_n "checking whether NLS is requested... " >&6; }
12976 if test x"$USE_NLS" != xyes; then
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978 $as_echo "no" >&6; }
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12981 $as_echo "yes" >&6; }
12983 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12987 $as_echo_n "checking for catalogs to be installed... " >&6; }
12988 # Look for .po and .gmo files in the source directory.
12991 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12992 # If there aren't any .gmo files the shell will give us the
12993 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12995 case "$cat" in *\**)
12998 # The quadruple backslash is collapsed to a double backslash
12999 # by the backticks, then collapsed again by the double quotes,
13000 # leaving us with one backslash in the sed expression (right
13001 # before the dot that mustn't act as a wildcard).
13002 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13003 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13004 # The user is allowed to set LINGUAS to a list of languages to
13005 # install catalogs for. If it's empty that means "all of them."
13006 if test "x$LINGUAS" = x; then
13007 CATALOGS="$CATALOGS $cat"
13008 XLINGUAS="$XLINGUAS $lang"
13010 case "$LINGUAS" in *$lang*)
13011 CATALOGS="$CATALOGS $cat"
13012 XLINGUAS="$XLINGUAS $lang"
13017 LINGUAS="$XLINGUAS"
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13019 $as_echo "$LINGUAS" >&6; }
13033 if test -n "$ac_aux_dir"; then
13034 case "$ac_aux_dir" in
13035 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13036 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13039 if test -z "$MKINSTALLDIRS"; then
13040 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13046 $as_echo_n "checking whether NLS is requested... " >&6; }
13047 # Check whether --enable-nls was given.
13048 if test "${enable_nls+set}" = set; then :
13049 enableval=$enable_nls; USE_NLS=$enableval
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13055 $as_echo "$USE_NLS" >&6; }
13062 # Prepare PATH_SEPARATOR.
13063 # The user is always right.
13064 if test "${PATH_SEPARATOR+set}" != set; then
13065 echo "#! /bin/sh" >conf$$.sh
13066 echo "exit 0" >>conf$$.sh
13068 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13076 # Find out how to test for executable files. Don't use a zero-byte file,
13077 # as systems may use methods other than mode bits to determine executability.
13078 cat >conf$$.file <<_ASEOF
13082 chmod +x conf$$.file
13083 if test -x conf$$.file >/dev/null 2>&1; then
13084 ac_executable_p="test -x"
13086 ac_executable_p="test -f"
13090 # Extract the first word of "msgfmt", so it can be a program name with args.
13091 set dummy msgfmt; ac_word=$2
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13093 $as_echo_n "checking for $ac_word... " >&6; }
13094 if test "${ac_cv_path_MSGFMT+set}" = set; then :
13095 $as_echo_n "(cached) " >&6
13099 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13102 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13103 for ac_dir in $PATH; do
13105 test -z "$ac_dir" && ac_dir=.
13106 for ac_exec_ext in '' $ac_executable_extensions; do
13107 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13108 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13109 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13110 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13117 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13121 MSGFMT="$ac_cv_path_MSGFMT"
13122 if test "$MSGFMT" != ":"; then
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13124 $as_echo "$MSGFMT" >&6; }
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127 $as_echo "no" >&6; }
13130 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13131 set dummy gmsgfmt; ac_word=$2
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133 $as_echo_n "checking for $ac_word... " >&6; }
13134 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
13135 $as_echo_n "(cached) " >&6
13139 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13143 for as_dir in $PATH
13146 test -z "$as_dir" && as_dir=.
13147 for ac_exec_ext in '' $ac_executable_extensions; do
13148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13149 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13157 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13161 GMSGFMT=$ac_cv_path_GMSGFMT
13162 if test -n "$GMSGFMT"; then
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13164 $as_echo "$GMSGFMT" >&6; }
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13167 $as_echo "no" >&6; }
13173 # Prepare PATH_SEPARATOR.
13174 # The user is always right.
13175 if test "${PATH_SEPARATOR+set}" != set; then
13176 echo "#! /bin/sh" >conf$$.sh
13177 echo "exit 0" >>conf$$.sh
13179 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13187 # Find out how to test for executable files. Don't use a zero-byte file,
13188 # as systems may use methods other than mode bits to determine executability.
13189 cat >conf$$.file <<_ASEOF
13193 chmod +x conf$$.file
13194 if test -x conf$$.file >/dev/null 2>&1; then
13195 ac_executable_p="test -x"
13197 ac_executable_p="test -f"
13201 # Extract the first word of "xgettext", so it can be a program name with args.
13202 set dummy xgettext; ac_word=$2
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13204 $as_echo_n "checking for $ac_word... " >&6; }
13205 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
13206 $as_echo_n "(cached) " >&6
13208 case "$XGETTEXT" in
13210 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13213 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13214 for ac_dir in $PATH; do
13216 test -z "$ac_dir" && ac_dir=.
13217 for ac_exec_ext in '' $ac_executable_extensions; do
13218 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13219 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13220 (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
13221 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13228 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13232 XGETTEXT="$ac_cv_path_XGETTEXT"
13233 if test "$XGETTEXT" != ":"; then
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13235 $as_echo "$XGETTEXT" >&6; }
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238 $as_echo "no" >&6; }
13244 # Prepare PATH_SEPARATOR.
13245 # The user is always right.
13246 if test "${PATH_SEPARATOR+set}" != set; then
13247 echo "#! /bin/sh" >conf$$.sh
13248 echo "exit 0" >>conf$$.sh
13250 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13258 # Find out how to test for executable files. Don't use a zero-byte file,
13259 # as systems may use methods other than mode bits to determine executability.
13260 cat >conf$$.file <<_ASEOF
13264 chmod +x conf$$.file
13265 if test -x conf$$.file >/dev/null 2>&1; then
13266 ac_executable_p="test -x"
13268 ac_executable_p="test -f"
13272 # Extract the first word of "msgmerge", so it can be a program name with args.
13273 set dummy msgmerge; ac_word=$2
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13275 $as_echo_n "checking for $ac_word... " >&6; }
13276 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
13277 $as_echo_n "(cached) " >&6
13279 case "$MSGMERGE" in
13281 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13284 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13285 for ac_dir in $PATH; do
13287 test -z "$ac_dir" && ac_dir=.
13288 for ac_exec_ext in '' $ac_executable_extensions; do
13289 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13290 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13291 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13298 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13302 MSGMERGE="$ac_cv_path_MSGMERGE"
13303 if test "$MSGMERGE" != ":"; then
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13305 $as_echo "$MSGMERGE" >&6; }
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308 $as_echo "no" >&6; }
13312 if test "$GMSGFMT" != ":"; then
13313 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13314 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13317 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13319 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13324 if test "$XGETTEXT" != ":"; then
13325 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13326 (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
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13330 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13336 ac_config_commands="$ac_config_commands default-1"
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13342 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13343 # Check whether --enable-maintainer-mode was given.
13344 if test "${enable_maintainer_mode+set}" = set; then :
13345 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13347 USE_MAINTAINER_MODE=no
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13351 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13352 if test $USE_MAINTAINER_MODE = yes; then
13353 MAINTAINER_MODE_TRUE=
13354 MAINTAINER_MODE_FALSE='#'
13356 MAINTAINER_MODE_TRUE='#'
13357 MAINTAINER_MODE_FALSE=
13360 MAINT=$MAINTAINER_MODE_TRUE
13364 GENINSRC_NEVER_TRUE=
13365 GENINSRC_NEVER_FALSE='#'
13367 GENINSRC_NEVER_TRUE='#'
13368 GENINSRC_NEVER_FALSE=
13373 for ac_header in string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h locale.h time.h sys/stat.h
13375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13376 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13377 eval as_val=\$$as_ac_Header
13378 if test "x$as_val" = x""yes; then :
13379 cat >>confdefs.h <<_ACEOF
13380 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13388 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13389 if test "${gcc_cv_header_string+set}" = set; then :
13390 $as_echo_n "(cached) " >&6
13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393 /* end confdefs.h. */
13394 #include <string.h>
13395 #include <strings.h>
13404 if ac_fn_c_try_compile "$LINENO"; then :
13405 gcc_cv_header_string=yes
13407 gcc_cv_header_string=no
13409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13412 $as_echo "$gcc_cv_header_string" >&6; }
13413 if test $gcc_cv_header_string = yes; then
13415 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13420 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
13421 # people who are not cross-compiling but are compiling cross-assemblers.
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13423 $as_echo_n "checking whether compiling a cross-assembler... " >&6; }
13424 if test "${host}" = "${target}"; then
13429 $as_echo "#define CROSS_COMPILE 1" >>confdefs.h
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13433 $as_echo "$cross_gas" >&6; }
13435 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13436 # for constant arguments. Useless!
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13438 $as_echo_n "checking for working alloca.h... " >&6; }
13439 if test "${ac_cv_working_alloca_h+set}" = set; then :
13440 $as_echo_n "(cached) " >&6
13442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13443 /* end confdefs.h. */
13444 #include <alloca.h>
13448 char *p = (char *) alloca (2 * sizeof (int));
13454 if ac_fn_c_try_link "$LINENO"; then :
13455 ac_cv_working_alloca_h=yes
13457 ac_cv_working_alloca_h=no
13459 rm -f core conftest.err conftest.$ac_objext \
13460 conftest$ac_exeext conftest.$ac_ext
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13463 $as_echo "$ac_cv_working_alloca_h" >&6; }
13464 if test $ac_cv_working_alloca_h = yes; then
13466 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13471 $as_echo_n "checking for alloca... " >&6; }
13472 if test "${ac_cv_func_alloca_works+set}" = set; then :
13473 $as_echo_n "(cached) " >&6
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13478 # define alloca __builtin_alloca
13481 # include <malloc.h>
13482 # define alloca _alloca
13484 # ifdef HAVE_ALLOCA_H
13485 # include <alloca.h>
13490 # ifndef alloca /* predefined by HP cc +Olibcalls */
13501 char *p = (char *) alloca (1);
13507 if ac_fn_c_try_link "$LINENO"; then :
13508 ac_cv_func_alloca_works=yes
13510 ac_cv_func_alloca_works=no
13512 rm -f core conftest.err conftest.$ac_objext \
13513 conftest$ac_exeext conftest.$ac_ext
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13516 $as_echo "$ac_cv_func_alloca_works" >&6; }
13518 if test $ac_cv_func_alloca_works = yes; then
13520 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13523 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13524 # that cause trouble. Some versions do not even contain alloca or
13525 # contain a buggy version. If you still want to use their alloca,
13526 # use ar to extract alloca.o from them instead of compiling alloca.c.
13528 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13530 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13534 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13535 if test "${ac_cv_os_cray+set}" = set; then :
13536 $as_echo_n "(cached) " >&6
13538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h. */
13540 #if defined CRAY && ! defined CRAY2
13547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13548 $EGREP "webecray" >/dev/null 2>&1; then :
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13557 $as_echo "$ac_cv_os_cray" >&6; }
13558 if test $ac_cv_os_cray = yes; then
13559 for ac_func in _getb67 GETB67 getb67; do
13560 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13561 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13562 eval as_val=\$$as_ac_var
13563 if test "x$as_val" = x""yes; then :
13565 cat >>confdefs.h <<_ACEOF
13566 #define CRAY_STACKSEG_END $ac_func
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13576 $as_echo_n "checking stack direction for C alloca... " >&6; }
13577 if test "${ac_cv_c_stack_direction+set}" = set; then :
13578 $as_echo_n "(cached) " >&6
13580 if test "$cross_compiling" = yes; then :
13581 ac_cv_c_stack_direction=0
13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h. */
13585 $ac_includes_default
13587 find_stack_direction ()
13589 static char *addr = 0;
13594 return find_stack_direction ();
13597 return (&dummy > addr) ? 1 : -1;
13603 return find_stack_direction () < 0;
13606 if ac_fn_c_try_run "$LINENO"; then :
13607 ac_cv_c_stack_direction=1
13609 ac_cv_c_stack_direction=-1
13611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13612 conftest.$ac_objext conftest.beam conftest.$ac_ext
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13617 $as_echo "$ac_cv_c_stack_direction" >&6; }
13618 cat >>confdefs.h <<_ACEOF
13619 #define STACK_DIRECTION $ac_cv_c_stack_direction
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13626 $as_echo_n "checking for inline... " >&6; }
13627 if test "${ac_cv_c_inline+set}" = set; then :
13628 $as_echo_n "(cached) " >&6
13631 for ac_kw in inline __inline__ __inline; do
13632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h. */
13634 #ifndef __cplusplus
13636 static $ac_kw foo_t static_foo () {return 0; }
13637 $ac_kw foo_t foo () {return 0; }
13641 if ac_fn_c_try_compile "$LINENO"; then :
13642 ac_cv_c_inline=$ac_kw
13644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13645 test "$ac_cv_c_inline" != no && break
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13650 $as_echo "$ac_cv_c_inline" >&6; }
13652 case $ac_cv_c_inline in
13655 case $ac_cv_c_inline in
13657 *) ac_val=$ac_cv_c_inline;;
13659 cat >>confdefs.h <<_ACEOF
13660 #ifndef __cplusplus
13661 #define inline $ac_val
13668 # VMS doesn't have unlink.
13669 for ac_func in unlink remove
13671 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13672 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13673 eval as_val=\$$as_ac_var
13674 if test "x$as_val" = x""yes; then :
13675 cat >>confdefs.h <<_ACEOF
13676 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13682 for ac_func in sbrk setlocale
13684 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13685 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13686 eval as_val=\$$as_ac_var
13687 if test "x$as_val" = x""yes; then :
13688 cat >>confdefs.h <<_ACEOF
13689 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13698 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13699 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13700 $as_echo_n "(cached) " >&6
13702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13703 /* end confdefs.h. */
13704 #include <locale.h>
13713 if ac_fn_c_try_link "$LINENO"; then :
13714 am_cv_val_LC_MESSAGES=yes
13716 am_cv_val_LC_MESSAGES=no
13718 rm -f core conftest.err conftest.$ac_objext \
13719 conftest$ac_exeext conftest.$ac_ext
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13722 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13723 if test $am_cv_val_LC_MESSAGES = yes; then
13725 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13730 # do we need the math library?
13731 case "${need_libm}" in
13735 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13736 # These system don't have libm, or don't need it
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13740 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13741 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
13742 $as_echo_n "(cached) " >&6
13744 ac_check_lib_save_LIBS=$LIBS
13746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13747 /* end confdefs.h. */
13749 /* Override any GCC internal prototype to avoid an error.
13750 Use char because int might match the return type of a GCC
13751 builtin and then its argument prototype would still apply. */
13755 char _mwvalidcheckl ();
13759 return _mwvalidcheckl ();
13764 if ac_fn_c_try_link "$LINENO"; then :
13765 ac_cv_lib_mw__mwvalidcheckl=yes
13767 ac_cv_lib_mw__mwvalidcheckl=no
13769 rm -f core conftest.err conftest.$ac_objext \
13770 conftest$ac_exeext conftest.$ac_ext
13771 LIBS=$ac_check_lib_save_LIBS
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13774 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13775 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13780 $as_echo_n "checking for cos in -lm... " >&6; }
13781 if test "${ac_cv_lib_m_cos+set}" = set; then :
13782 $as_echo_n "(cached) " >&6
13784 ac_check_lib_save_LIBS=$LIBS
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13789 /* Override any GCC internal prototype to avoid an error.
13790 Use char because int might match the return type of a GCC
13791 builtin and then its argument prototype would still apply. */
13804 if ac_fn_c_try_link "$LINENO"; then :
13805 ac_cv_lib_m_cos=yes
13809 rm -f core conftest.err conftest.$ac_objext \
13810 conftest$ac_exeext conftest.$ac_ext
13811 LIBS=$ac_check_lib_save_LIBS
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13814 $as_echo "$ac_cv_lib_m_cos" >&6; }
13815 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13822 $as_echo_n "checking for cos in -lm... " >&6; }
13823 if test "${ac_cv_lib_m_cos+set}" = set; then :
13824 $as_echo_n "(cached) " >&6
13826 ac_check_lib_save_LIBS=$LIBS
13828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h. */
13831 /* Override any GCC internal prototype to avoid an error.
13832 Use char because int might match the return type of a GCC
13833 builtin and then its argument prototype would still apply. */
13846 if ac_fn_c_try_link "$LINENO"; then :
13847 ac_cv_lib_m_cos=yes
13851 rm -f core conftest.err conftest.$ac_objext \
13852 conftest$ac_exeext conftest.$ac_ext
13853 LIBS=$ac_check_lib_save_LIBS
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13856 $as_echo "$ac_cv_lib_m_cos" >&6; }
13857 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13869 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
13870 # enough, but on some of those systems, the assert macro relies on requoting
13871 # working properly!
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13873 $as_echo_n "checking for working assert macro... " >&6; }
13874 if test "${gas_cv_assert_ok+set}" = set; then :
13875 $as_echo_n "(cached) " >&6
13877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13878 /* end confdefs.h. */
13879 #include <assert.h>
13885 /* check for requoting problems */
13886 static int a, b, c, d;
13888 assert (!strcmp(s, "foo bar baz quux"));
13889 /* check for newline handling */
13897 if ac_fn_c_try_link "$LINENO"; then :
13898 gas_cv_assert_ok=yes
13900 gas_cv_assert_ok=no
13902 rm -f core conftest.err conftest.$ac_objext \
13903 conftest$ac_exeext conftest.$ac_ext
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
13906 $as_echo "$gas_cv_assert_ok" >&6; }
13907 test $gas_cv_assert_ok = yes ||
13908 $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
13912 # On some systems, the system header files may not declare malloc, realloc,
13913 # and free. There are places where gas needs these functions to have been
13914 # declared -- such as when taking their addresses.
13916 #ifdef HAVE_MEMORY_H
13917 #include <memory.h>
13919 #ifdef HAVE_STRING_H
13920 #include <string.h>
13922 #ifdef HAVE_STRINGS_H
13923 #include <strings.h>
13926 #ifdef HAVE_STDLIB_H
13927 #include <stdlib.h>
13929 #ifdef HAVE_UNISTD_H
13930 #include <unistd.h>
13934 # Does errno.h declare errno, or do we have to add a separate declaration
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
13938 $as_echo_n "checking whether declaration is required for errno... " >&6; }
13939 if test "${gas_cv_decl_needed_errno+set}" = set; then :
13940 $as_echo_n "(cached) " >&6
13942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943 /* end confdefs.h. */
13945 #ifdef HAVE_ERRNO_H
13961 if ac_fn_c_try_link "$LINENO"; then :
13962 gas_cv_decl_needed_errno=no
13964 gas_cv_decl_needed_errno=yes
13966 rm -f core conftest.err conftest.$ac_objext \
13967 conftest$ac_exeext conftest.$ac_ext
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
13970 $as_echo "$gas_cv_decl_needed_errno" >&6; }
13971 if test $gas_cv_decl_needed_errno = yes; then
13973 $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13979 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13980 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
13981 $as_echo_n "(cached) " >&6
13983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h. */
13985 #include <unistd.h>
13989 extern int getopt (int, char *const*, const char *);
13994 if ac_fn_c_try_compile "$LINENO"; then :
13995 gas_cv_decl_getopt_unistd_h=yes
13997 gas_cv_decl_getopt_unistd_h=no
13999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
14003 $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
14004 if test $gas_cv_decl_getopt_unistd_h = yes; then
14006 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
14012 $as_echo_n "checking whether declaration is required for environ... " >&6; }
14013 if test "${gas_cv_decl_needed_environ+set}" = set; then :
14014 $as_echo_n "(cached) " >&6
14016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14017 /* end confdefs.h. */
14031 if ac_fn_c_try_link "$LINENO"; then :
14032 gas_cv_decl_needed_environ=no
14034 gas_cv_decl_needed_environ=yes
14036 rm -f core conftest.err conftest.$ac_objext \
14037 conftest$ac_exeext conftest.$ac_ext
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
14040 $as_echo "$gas_cv_decl_needed_environ" >&6; }
14041 if test $gas_cv_decl_needed_environ = yes; then
14043 $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
14049 $as_echo_n "checking whether declaration is required for ffs... " >&6; }
14050 if test "${gas_cv_decl_needed_ffs+set}" = set; then :
14051 $as_echo_n "(cached) " >&6
14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h. */
14060 typedef int (*f)(int);
14068 if ac_fn_c_try_link "$LINENO"; then :
14069 gas_cv_decl_needed_ffs=no
14071 gas_cv_decl_needed_ffs=yes
14073 rm -f core conftest.err conftest.$ac_objext \
14074 conftest$ac_exeext conftest.$ac_ext
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
14077 $as_echo "$gas_cv_decl_needed_ffs" >&6; }
14078 if test $gas_cv_decl_needed_ffs = yes; then
14080 $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
14086 $as_echo_n "checking whether declaration is required for free... " >&6; }
14087 if test "${gas_cv_decl_needed_free+set}" = set; then :
14088 $as_echo_n "(cached) " >&6
14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h. */
14097 typedef void (*f)();
14105 if ac_fn_c_try_link "$LINENO"; then :
14106 gas_cv_decl_needed_free=no
14108 gas_cv_decl_needed_free=yes
14110 rm -f core conftest.err conftest.$ac_objext \
14111 conftest$ac_exeext conftest.$ac_ext
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
14114 $as_echo "$gas_cv_decl_needed_free" >&6; }
14115 if test $gas_cv_decl_needed_free = yes; then
14117 $as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
14123 $as_echo_n "checking whether declaration is required for malloc... " >&6; }
14124 if test "${gas_cv_decl_needed_malloc+set}" = set; then :
14125 $as_echo_n "(cached) " >&6
14127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14128 /* end confdefs.h. */
14134 typedef char *(*f)();
14142 if ac_fn_c_try_link "$LINENO"; then :
14143 gas_cv_decl_needed_malloc=no
14145 gas_cv_decl_needed_malloc=yes
14147 rm -f core conftest.err conftest.$ac_objext \
14148 conftest$ac_exeext conftest.$ac_ext
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
14151 $as_echo "$gas_cv_decl_needed_malloc" >&6; }
14152 if test $gas_cv_decl_needed_malloc = yes; then
14154 $as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
14160 $as_echo_n "checking whether declaration is required for sbrk... " >&6; }
14161 if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
14162 $as_echo_n "(cached) " >&6
14164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14165 /* end confdefs.h. */
14171 typedef char *(*f)();
14179 if ac_fn_c_try_link "$LINENO"; then :
14180 gas_cv_decl_needed_sbrk=no
14182 gas_cv_decl_needed_sbrk=yes
14184 rm -f core conftest.err conftest.$ac_objext \
14185 conftest$ac_exeext conftest.$ac_ext
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
14188 $as_echo "$gas_cv_decl_needed_sbrk" >&6; }
14189 if test $gas_cv_decl_needed_sbrk = yes; then
14191 $as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
14197 $as_echo_n "checking whether declaration is required for strstr... " >&6; }
14198 if test "${gas_cv_decl_needed_strstr+set}" = set; then :
14199 $as_echo_n "(cached) " >&6
14201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h. */
14208 typedef char *(*f)();
14216 if ac_fn_c_try_link "$LINENO"; then :
14217 gas_cv_decl_needed_strstr=no
14219 gas_cv_decl_needed_strstr=yes
14221 rm -f core conftest.err conftest.$ac_objext \
14222 conftest$ac_exeext conftest.$ac_ext
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
14225 $as_echo "$gas_cv_decl_needed_strstr" >&6; }
14226 if test $gas_cv_decl_needed_strstr = yes; then
14228 $as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
14233 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
14234 if test "x$ac_cv_have_decl_free" = x""yes; then :
14240 cat >>confdefs.h <<_ACEOF
14241 #define HAVE_DECL_FREE $ac_have_decl
14243 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14244 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14250 cat >>confdefs.h <<_ACEOF
14251 #define HAVE_DECL_GETENV $ac_have_decl
14253 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
14254 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
14260 cat >>confdefs.h <<_ACEOF
14261 #define HAVE_DECL_MALLOC $ac_have_decl
14263 ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
14264 if test "x$ac_cv_have_decl_mempcpy" = x""yes; then :
14270 cat >>confdefs.h <<_ACEOF
14271 #define HAVE_DECL_MEMPCPY $ac_have_decl
14273 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
14274 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
14280 cat >>confdefs.h <<_ACEOF
14281 #define HAVE_DECL_REALLOC $ac_have_decl
14283 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14284 if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
14290 cat >>confdefs.h <<_ACEOF
14291 #define HAVE_DECL_STPCPY $ac_have_decl
14293 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
14294 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
14300 cat >>confdefs.h <<_ACEOF
14301 #define HAVE_DECL_STRSTR $ac_have_decl
14303 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14304 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
14310 cat >>confdefs.h <<_ACEOF
14311 #define HAVE_DECL_VSNPRINTF $ac_have_decl
14317 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14319 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
14323 # Use the system's zlib library.
14324 zlibinc="-I\$(srcdir)/../zlib"
14326 # Check whether --with-system-zlib was given.
14327 if test "${with_system_zlib+set}" = set; then :
14328 withval=$with_system_zlib; zlibinc=
14334 # Support for VMS timestamps via cross compile
14336 if test "$ac_cv_header_time_h" = yes; then
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
14338 $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
14339 if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
14340 $as_echo_n "(cached) " >&6
14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14345 #define _BSD_SOURCE 1
14350 struct tm avar; void* aref = (void*) &avar.tm_gmtoff
14355 if ac_fn_c_try_compile "$LINENO"; then :
14356 gas_cv_have_time_type_member_tm_gmtoff=yes
14358 gas_cv_have_time_type_member_tm_gmtoff=no
14361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14364 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
14366 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
14370 $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
14374 if test "$ac_cv_header_sys_stat_h" = yes; then
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
14376 $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
14377 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
14378 $as_echo_n "(cached) " >&6
14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h. */
14383 #define _BSD_SOURCE 1
14384 #include <sys/stat.h>
14388 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
14393 if ac_fn_c_try_compile "$LINENO"; then :
14394 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
14396 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
14399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14402 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
14404 $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
14408 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
14411 $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
14412 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
14413 $as_echo_n "(cached) " >&6
14415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416 /* end confdefs.h. */
14418 #define _BSD_SOURCE 1
14419 #include <sys/stat.h>
14423 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
14428 if ac_fn_c_try_compile "$LINENO"; then :
14429 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
14431 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
14434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14437 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
14439 $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
14443 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
14455 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14457 ac_config_commands="$ac_config_commands default"
14460 cat >confcache <<\_ACEOF
14461 # This file is a shell script that caches the results of configure
14462 # tests run on this system so they can be shared between configure
14463 # scripts and configure runs, see configure's option --config-cache.
14464 # It is not useful on other systems. If it contains results you don't
14465 # want to keep, you may remove or edit it.
14467 # config.status only pays attention to the cache file if you give it
14468 # the --recheck option to rerun configure.
14470 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14471 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14472 # following values.
14476 # The following way of writing the cache mishandles newlines in values,
14477 # but we know of no workaround that is simple, portable, and efficient.
14478 # So, we kill variables containing newlines.
14479 # Ultrix sh set writes to stderr and can't be redirected directly,
14480 # and sets the high bit in the cache file unless we assign to the vars.
14482 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14483 eval ac_val=\$$ac_var
14487 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14488 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14491 _ | IFS | as_nl) ;; #(
14492 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14493 *) { eval $ac_var=; unset $ac_var;} ;;
14499 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14500 *${as_nl}ac_space=\ *)
14501 # `set' does not quote correctly, so add quotes: double-quote
14502 # substitution turns \\\\ into \\, and sed turns \\ into \.
14505 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14508 # `set' quotes correctly as required by POSIX, so do not add quotes.
14509 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14518 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14520 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14522 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14523 if test -w "$cache_file"; then
14524 test "x$cache_file" != "x/dev/null" &&
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14526 $as_echo "$as_me: updating cache $cache_file" >&6;}
14527 cat confcache >$cache_file
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14530 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14535 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14536 # Let make expand exec_prefix.
14537 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14539 DEFS=-DHAVE_CONFIG_H
14543 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14544 # 1. Remove the extension, and $U if already installed.
14545 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14546 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14547 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14548 # will be set to the directory where LIBOBJS objects are built.
14549 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14550 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14552 LIBOBJS=$ac_libobjs
14554 LTLIBOBJS=$ac_ltlibobjs
14557 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14558 as_fn_error "conditional \"AMDEP\" was never defined.
14559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14561 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14562 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14565 if test -n "$EXEEXT"; then
14567 am__EXEEXT_FALSE='#'
14569 am__EXEEXT_TRUE='#'
14574 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14575 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14578 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14579 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14583 : ${CONFIG_STATUS=./config.status}
14585 ac_clean_files_save=$ac_clean_files
14586 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14588 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14590 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14592 # Generated by $as_me.
14593 # Run this file to recreate the current configuration.
14594 # Compiler output produced by configure, useful for debugging
14595 # configure, is in config.log if it exists.
14598 ac_cs_recheck=false
14601 SHELL=\${CONFIG_SHELL-$SHELL}
14604 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14605 ## -------------------- ##
14606 ## M4sh Initialization. ##
14607 ## -------------------- ##
14609 # Be more Bourne compatible
14610 DUALCASE=1; export DUALCASE # for MKS sh
14611 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14614 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14615 # is contrary to our usage. Disable this feature.
14616 alias -g '${1+"$@"}'='"$@"'
14617 setopt NO_GLOB_SUBST
14619 case `(set -o) 2>/dev/null` in #(
14631 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14632 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14633 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14634 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14635 # Prefer a ksh shell builtin over an external printf program on Solaris,
14636 # but without wasting forks for bash or zsh.
14637 if test -z "$BASH_VERSION$ZSH_VERSION" \
14638 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14639 as_echo='print -r --'
14640 as_echo_n='print -rn --'
14641 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14642 as_echo='printf %s\n'
14643 as_echo_n='printf %s'
14645 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14646 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14647 as_echo_n='/usr/ucb/echo -n'
14649 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14650 as_echo_n_body='eval
14654 expr "X$arg" : "X\\(.*\\)$as_nl";
14655 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14657 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14659 export as_echo_n_body
14660 as_echo_n='sh -c $as_echo_n_body as_echo'
14662 export as_echo_body
14663 as_echo='sh -c $as_echo_body as_echo'
14666 # The user is always right.
14667 if test "${PATH_SEPARATOR+set}" != set; then
14669 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14670 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14677 # We need space, tab and new line, in precisely that order. Quoting is
14678 # there to prevent editors from complaining about space-tab.
14679 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14680 # splitting by setting IFS to empty value.)
14683 # Find who we are. Look in the path if we contain no directory separator.
14685 *[\\/]* ) as_myself=$0 ;;
14686 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14687 for as_dir in $PATH
14690 test -z "$as_dir" && as_dir=.
14691 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14697 # We did not find ourselves, most probably we were run as `sh COMMAND'
14698 # in which case we are not to be found in the path.
14699 if test "x$as_myself" = x; then
14702 if test ! -f "$as_myself"; then
14703 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14707 # Unset variables that we do not need and which cause bugs (e.g. in
14708 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14709 # suppresses any "Segmentation fault" message there. '((' could
14710 # trigger a bug in pdksh 5.2.14.
14711 for as_var in BASH_ENV ENV MAIL MAILPATH
14712 do eval test x\${$as_var+set} = xset \
14713 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14726 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14729 # as_fn_error ERROR [LINENO LOG_FD]
14730 # ---------------------------------
14731 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14732 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14733 # script with status $?, using 1 if that was 0.
14736 as_status=$?; test $as_status -eq 0 && as_status=1
14738 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14739 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14741 $as_echo "$as_me: error: $1" >&2
14742 as_fn_exit $as_status
14746 # as_fn_set_status STATUS
14747 # -----------------------
14748 # Set $? to STATUS, without forking.
14749 as_fn_set_status ()
14752 } # as_fn_set_status
14754 # as_fn_exit STATUS
14755 # -----------------
14756 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14760 as_fn_set_status $1
14766 # Portably unset VAR.
14769 { eval $1=; unset $1;}
14771 as_unset=as_fn_unset
14772 # as_fn_append VAR VALUE
14773 # ----------------------
14774 # Append the text in VALUE to the end of the definition contained in VAR. Take
14775 # advantage of any shell optimizations that allow amortized linear growth over
14776 # repeated appends, instead of the typical quadratic growth present in naive
14778 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14779 eval 'as_fn_append ()
14790 # as_fn_arith ARG...
14791 # ------------------
14792 # Perform arithmetic evaluation on the ARGs, and store the result in the
14793 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14794 # must be portable across $(()) and expr.
14795 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14796 eval 'as_fn_arith ()
14803 as_val=`expr "$@" || test $? -eq 1`
14808 if expr a : '\(a\)' >/dev/null 2>&1 &&
14809 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14815 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14816 as_basename=basename
14821 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14827 as_me=`$as_basename -- "$0" ||
14828 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14829 X"$0" : 'X\(//\)$' \| \
14830 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14832 sed '/^.*\/\([^/][^/]*\)\/*$/{
14846 # Avoid depending upon Character Ranges.
14847 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14848 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14849 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14850 as_cr_digits='0123456789'
14851 as_cr_alnum=$as_cr_Letters$as_cr_digits
14853 ECHO_C= ECHO_N= ECHO_T=
14854 case `echo -n x` in #(((((
14856 case `echo 'xy\c'` in
14857 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14859 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14866 rm -f conf$$ conf$$.exe conf$$.file
14867 if test -d conf$$.dir; then
14868 rm -f conf$$.dir/conf$$.file
14871 mkdir conf$$.dir 2>/dev/null
14873 if (echo >conf$$.file) 2>/dev/null; then
14874 if ln -s conf$$.file conf$$ 2>/dev/null; then
14876 # ... but there are two gotchas:
14877 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14878 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14879 # In both cases, we have to default to `cp -p'.
14880 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14882 elif ln conf$$.file conf$$ 2>/dev/null; then
14890 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14891 rmdir conf$$.dir 2>/dev/null
14896 # Create "$as_dir" as a directory, including parents if necessary.
14901 -*) as_dir=./$as_dir;;
14903 test -d "$as_dir" || eval $as_mkdir_p || {
14907 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14908 *) as_qdir=$as_dir;;
14910 as_dirs="'$as_qdir' $as_dirs"
14911 as_dir=`$as_dirname -- "$as_dir" ||
14912 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14913 X"$as_dir" : 'X\(//\)[^/]' \| \
14914 X"$as_dir" : 'X\(//\)$' \| \
14915 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14916 $as_echo X"$as_dir" |
14917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14921 /^X\(\/\/\)[^/].*/{
14934 test -d "$as_dir" && break
14936 test -z "$as_dirs" || eval "mkdir $as_dirs"
14937 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14941 if mkdir -p . 2>/dev/null; then
14942 as_mkdir_p='mkdir -p "$as_dir"'
14944 test -d ./-p && rmdir ./-p
14948 if test -x / >/dev/null 2>&1; then
14949 as_test_x='test -x'
14951 if ls -dL / >/dev/null 2>&1; then
14958 if test -d "$1"; then
14964 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14965 ???[sx]*):;;*)false;;esac;fi
14969 as_executable_p=$as_test_x
14971 # Sed expression to map a string onto a valid CPP name.
14972 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14974 # Sed expression to map a string onto a valid variable name.
14975 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14979 ## ----------------------------------- ##
14980 ## Main body of $CONFIG_STATUS script. ##
14981 ## ----------------------------------- ##
14983 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14986 # Save the log message, to keep $0 and so on meaningful, and to
14987 # report actual input values of CONFIG_FILES etc. instead of their
14988 # values after options handling.
14990 This file was extended by gas $as_me 2.25.51, which was
14991 generated by GNU Autoconf 2.64. Invocation command line was
14993 CONFIG_FILES = $CONFIG_FILES
14994 CONFIG_HEADERS = $CONFIG_HEADERS
14995 CONFIG_LINKS = $CONFIG_LINKS
14996 CONFIG_COMMANDS = $CONFIG_COMMANDS
14999 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15004 case $ac_config_files in *"
15005 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15008 case $ac_config_headers in *"
15009 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15014 # Files that config.status was made for.
15015 config_files="$ac_config_files"
15016 config_headers="$ac_config_headers"
15017 config_commands="$ac_config_commands"
15021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15023 \`$as_me' instantiates files and other configuration actions
15024 from templates according to the current configuration. Unless the files
15025 and actions are specified as TAGs, all are instantiated by default.
15027 Usage: $0 [OPTION]... [TAG]...
15029 -h, --help print this help, then exit
15030 -V, --version print version number and configuration settings, then exit
15031 -q, --quiet, --silent
15032 do not print progress messages
15033 -d, --debug don't remove temporary files
15034 --recheck update $as_me by reconfiguring in the same conditions
15035 --file=FILE[:TEMPLATE]
15036 instantiate the configuration file FILE
15037 --header=FILE[:TEMPLATE]
15038 instantiate the configuration header FILE
15040 Configuration files:
15043 Configuration headers:
15046 Configuration commands:
15049 Report bugs to the package provider."
15052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15054 gas config.status 2.25.51
15055 configured by $0, generated by GNU Autoconf 2.64,
15056 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15058 Copyright (C) 2009 Free Software Foundation, Inc.
15059 This config.status script is free software; the Free Software Foundation
15060 gives unlimited permission to copy, distribute and modify it."
15067 test -n "\$AWK" || AWK=awk
15070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15071 # The default lists apply if the user does not specify any file.
15077 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15078 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15089 # Handling of the options.
15090 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15092 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15093 $as_echo "$ac_cs_version"; exit ;;
15094 --debug | --debu | --deb | --de | --d | -d )
15096 --file | --fil | --fi | --f )
15099 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15101 as_fn_append CONFIG_FILES " '$ac_optarg'"
15102 ac_need_defaults=false;;
15103 --header | --heade | --head | --hea )
15106 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15108 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15109 ac_need_defaults=false;;
15111 # Conflict between --help and --header
15112 as_fn_error "ambiguous option: \`$1'
15113 Try \`$0 --help' for more information.";;
15114 --help | --hel | -h )
15115 $as_echo "$ac_cs_usage"; exit ;;
15116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15117 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15120 # This is an error.
15121 -*) as_fn_error "unrecognized option: \`$1'
15122 Try \`$0 --help' for more information." ;;
15124 *) as_fn_append ac_config_targets " $1"
15125 ac_need_defaults=false ;;
15131 ac_configure_extra_args=
15133 if $ac_cs_silent; then
15135 ac_configure_extra_args="$ac_configure_extra_args --silent"
15139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15140 if \$ac_cs_recheck; then
15141 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15143 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15144 CONFIG_SHELL='$SHELL'
15145 export CONFIG_SHELL
15150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15154 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15155 ## Running $as_me. ##
15161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15165 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15168 # The HP-UX ksh and POSIX shell print the target directory to stdout
15169 # if CDPATH is set.
15170 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15172 sed_quote_subst='$sed_quote_subst'
15173 double_quote_subst='$double_quote_subst'
15174 delay_variable_subst='$delay_variable_subst'
15175 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15176 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15177 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15178 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15179 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15180 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15181 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15182 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15183 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15184 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15185 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15186 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15187 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15188 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15189 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15190 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15191 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15192 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15193 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15194 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15195 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15196 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15197 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15198 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15199 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15200 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15201 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15202 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15203 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15204 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15205 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15206 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15207 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15208 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15209 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15210 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15211 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15212 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15213 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15214 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15215 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15216 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15217 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15218 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15219 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15220 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15221 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15222 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15223 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"`'
15224 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15225 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15226 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15227 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15228 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15229 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15230 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15231 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15232 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15233 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15234 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15235 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15236 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15237 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15238 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15239 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15240 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15241 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15242 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15243 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15244 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15245 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15246 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15247 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15248 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15249 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15250 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15251 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15252 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15253 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15254 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15255 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15256 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15257 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15258 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15259 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15260 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15261 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15262 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15263 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15264 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15265 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15266 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15267 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15268 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15269 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15270 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15271 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15272 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15273 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15274 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15275 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15276 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15277 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15278 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15279 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15280 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15281 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15282 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15283 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15284 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15285 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15286 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15287 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15288 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15289 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15290 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15291 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15292 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15293 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15294 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15297 LTCFLAGS='$LTCFLAGS'
15298 compiler='$compiler_DEFAULT'
15300 # A function that is used when there is no print builtin or printf.
15301 func_fallback_echo ()
15303 eval 'cat <<_LTECHO_EOF
15308 # Quote evaled strings.
15322 deplibs_check_method \
15331 lt_cv_sys_global_symbol_pipe \
15332 lt_cv_sys_global_symbol_to_cdecl \
15333 lt_cv_sys_global_symbol_to_c_name_address \
15334 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15335 lt_prog_compiler_no_builtin_flag \
15336 lt_prog_compiler_wl \
15337 lt_prog_compiler_pic \
15338 lt_prog_compiler_static \
15339 lt_cv_prog_compiler_c_o \
15347 export_dynamic_flag_spec \
15348 whole_archive_flag_spec \
15349 compiler_needs_object \
15351 allow_undefined_flag \
15352 no_undefined_flag \
15353 hardcode_libdir_flag_spec \
15354 hardcode_libdir_flag_spec_ld \
15355 hardcode_libdir_separator \
15360 variables_saved_for_relink \
15362 library_names_spec \
15364 install_override_mode \
15368 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15369 *[\\\\\\\`\\"\\\$]*)
15370 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15373 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15378 # Double-quote double-evaled strings.
15379 for var in reload_cmds \
15380 old_postinstall_cmds \
15381 old_postuninstall_cmds \
15383 extract_expsyms_cmds \
15384 old_archive_from_new_cmds \
15385 old_archive_from_expsyms_cmds \
15387 archive_expsym_cmds \
15389 module_expsym_cmds \
15390 export_symbols_cmds \
15393 postuninstall_cmds \
15395 sys_lib_search_path_spec \
15396 sys_lib_dlsearch_path_spec; do
15397 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15398 *[\\\\\\\`\\"\\\$]*)
15399 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15402 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15407 ac_aux_dir='$ac_aux_dir'
15408 xsi_shell='$xsi_shell'
15409 lt_shell_append='$lt_shell_append'
15411 # See if we are running on zsh, and set the options which allow our
15412 # commands through without removal of \ escapes INIT.
15413 if test -n "\${ZSH_VERSION+set}" ; then
15414 setopt NO_GLOB_SUBST
15420 TIMESTAMP='$TIMESTAMP'
15426 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15427 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15429 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15430 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15431 LINGUAS="${LINGUAS-%UNSET%}"
15433 target_cpu_type=${target_cpu_type}
15434 cgen_cpu_prefix=${cgen_cpu_prefix}
15435 obj_format=${obj_format}
15440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15442 # Handling of arguments.
15443 for ac_config_target in $ac_config_targets
15445 case $ac_config_target in
15446 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15447 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15448 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15449 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
15450 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15451 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15452 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15453 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15454 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15455 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15457 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15462 # If the user did not use the arguments to specify the items to instantiate,
15463 # then the envvar interface is used. Set only those that are not.
15464 # We use the long form for the default assignment because of an extremely
15465 # bizarre bug on SunOS 4.1.3.
15466 if $ac_need_defaults; then
15467 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15468 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15469 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15472 # Have a temporary directory for convenience. Make it in the build tree
15473 # simply because there is no reason against having it here, and in addition,
15474 # creating and moving files from /tmp can sometimes cause problems.
15475 # Hook for its removal unless debugging.
15476 # Note that there is a small window in which the directory will not be cleaned:
15477 # after its creation but before its name has been assigned to `$tmp'.
15481 trap 'exit_status=$?
15482 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15484 trap 'as_fn_exit 1' 1 2 13 15
15486 # Create a (secure) tmp directory for tmp files.
15489 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15490 test -n "$tmp" && test -d "$tmp"
15493 tmp=./conf$$-$RANDOM
15494 (umask 077 && mkdir "$tmp")
15495 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15497 # Set up the scripts for CONFIG_FILES section.
15498 # No need to generate them if there are no CONFIG_FILES.
15499 # This happens for instance with `./config.status config.h'.
15500 if test -n "$CONFIG_FILES"; then
15503 ac_cr=`echo X | tr X '\015'`
15504 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15505 # But we know of no other shell where ac_cr would be empty at this
15506 # point, so we can use a bashism as a fallback.
15507 if test "x$ac_cr" = x; then
15508 eval ac_cr=\$\'\\r\'
15510 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15511 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15514 ac_cs_awk_cr=$ac_cr
15517 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15522 echo "cat >conf$$subs.awk <<_ACEOF" &&
15523 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15525 } >conf$$subs.sh ||
15526 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15527 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15529 for ac_last_try in false false false false false :; do
15530 . ./conf$$subs.sh ||
15531 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15533 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15534 if test $ac_delim_n = $ac_delim_num; then
15536 elif $ac_last_try; then
15537 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15539 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15542 rm -f conf$$subs.sh
15544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15545 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15549 s/^/S["/; s/!.*/"]=/
15559 s/\(.\{148\}\).*/\1/
15561 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15566 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15573 s/\(.\{148\}\).*/\1/
15575 s/["\\]/\\&/g; s/^/"/; s/$/"/
15579 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15584 ' <conf$$subs.awk | sed '
15589 ' >>$CONFIG_STATUS || ac_write_fail=1
15590 rm -f conf$$subs.awk
15591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15593 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15594 for (key in S) S_is_set[key] = 1
15600 nfields = split(line, field, "@")
15602 len = length(field[1])
15603 for (i = 2; i < nfields; i++) {
15605 keylen = length(key)
15606 if (S_is_set[key]) {
15608 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15609 len += length(value) + length(field[++i])
15620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15621 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15622 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15625 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15626 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15629 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15630 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15631 # trailing colons and then remove the whole line if VPATH becomes empty
15632 # (actually we leave an empty line to preserve line numbers).
15633 if test "x$srcdir" = x.; then
15634 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15635 s/:*\$(srcdir):*/:/
15636 s/:*\${srcdir}:*/:/
15638 s/^\([^=]*=[ ]*\):*/\1/
15644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15645 fi # test -n "$CONFIG_FILES"
15647 # Set up the scripts for CONFIG_HEADERS section.
15648 # No need to generate them if there are no CONFIG_HEADERS.
15649 # This happens for instance with `./config.status Makefile'.
15650 if test -n "$CONFIG_HEADERS"; then
15651 cat >"$tmp/defines.awk" <<\_ACAWK ||
15655 # Transform confdefs.h into an awk script `defines.awk', embedded as
15656 # here-document in config.status, that substitutes the proper values into
15657 # config.h.in to produce config.h.
15659 # Create a delimiter string that does not exist in confdefs.h, to ease
15660 # handling of long lines.
15662 for ac_last_try in false false :; do
15663 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15664 if test -z "$ac_t"; then
15666 elif $ac_last_try; then
15667 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15673 # For the awk script, D is an array of macro values keyed by name,
15674 # likewise P contains macro parameters if any. Preserve backslash
15675 # newline sequences.
15677 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15679 s/.\{148\}/&'"$ac_delim"'/g
15682 s/^[ ]*#[ ]*define[ ][ ]*/ /
15689 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15691 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15695 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15696 D["\1"]=" \3\\\\\\n"\\/p
15698 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15703 s/.\{148\}/&'"$ac_delim"'/g
15708 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15711 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15713 ' <confdefs.h | sed '
15714 s/'"$ac_delim"'/"\\\
15715 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15718 for (key in D) D_is_set[key] = 1
15721 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15723 split(line, arg, " ")
15724 if (arg[1] == "#") {
15728 defundef = substr(arg[1], 2)
15731 split(mac1, mac2, "(") #)
15733 prefix = substr(line, 1, index(line, defundef) - 1)
15734 if (D_is_set[macro]) {
15735 # Preserve the white space surrounding the "#".
15736 print prefix "define", macro P[macro] D[macro]
15739 # Replace #undef with comments. This is necessary, for example,
15740 # in the case of _POSIX_SOURCE, which is predefined and required
15741 # on some systems where configure will not decide to define it.
15742 if (defundef == "undef") {
15743 print "/*", prefix defundef, macro, "*/"
15751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15752 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15753 fi # test -n "$CONFIG_HEADERS"
15756 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15761 :[FHLC]) ac_mode=$ac_tag; continue;;
15763 case $ac_mode$ac_tag in
15765 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15766 :[FH]-) ac_tag=-:-;;
15767 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15784 -) ac_f="$tmp/stdin";;
15785 *) # Look for the file first in the build tree, then in the source tree
15786 # (if the path is not absolute). The absolute path cannot be DOS-style,
15787 # because $ac_f cannot contain `:'.
15791 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15793 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15795 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15796 as_fn_append ac_file_inputs " '$ac_f'"
15799 # Let's still pretend it is `configure' which instantiates (i.e., don't
15800 # use $as_me), people would be surprised to read:
15801 # /* config.h. Generated by config.status. */
15802 configure_input='Generated from '`
15803 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15805 if test x"$ac_file" != x-; then
15806 configure_input="$ac_file. $configure_input"
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15808 $as_echo "$as_me: creating $ac_file" >&6;}
15810 # Neutralize special characters interpreted by sed in replacement strings.
15811 case $configure_input in #(
15812 *\&* | *\|* | *\\* )
15813 ac_sed_conf_input=`$as_echo "$configure_input" |
15814 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15815 *) ac_sed_conf_input=$configure_input;;
15819 *:-:* | *:-) cat >"$tmp/stdin" \
15820 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15825 ac_dir=`$as_dirname -- "$ac_file" ||
15826 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15827 X"$ac_file" : 'X\(//\)[^/]' \| \
15828 X"$ac_file" : 'X\(//\)$' \| \
15829 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15830 $as_echo X"$ac_file" |
15831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15835 /^X\(\/\/\)[^/].*/{
15848 as_dir="$ac_dir"; as_fn_mkdir_p
15852 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15854 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15855 # A ".." for each directory in $ac_dir_suffix.
15856 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15857 case $ac_top_builddir_sub in
15858 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15859 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15862 ac_abs_top_builddir=$ac_pwd
15863 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15864 # for backward compatibility:
15865 ac_top_builddir=$ac_top_build_prefix
15868 .) # We are building in place.
15870 ac_top_srcdir=$ac_top_builddir_sub
15871 ac_abs_top_srcdir=$ac_pwd ;;
15872 [\\/]* | ?:[\\/]* ) # Absolute name.
15873 ac_srcdir=$srcdir$ac_dir_suffix;
15874 ac_top_srcdir=$srcdir
15875 ac_abs_top_srcdir=$srcdir ;;
15876 *) # Relative name.
15877 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15878 ac_top_srcdir=$ac_top_build_prefix$srcdir
15879 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15881 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15891 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15892 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15894 ac_MKDIR_P=$MKDIR_P
15896 [\\/$]* | ?:[\\/]* ) ;;
15897 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15902 # If the template does not know about datarootdir, expand it.
15903 # FIXME: This hack should be removed a few years after 2.60.
15904 ac_datarootdir_hack=; ac_datarootdir_seen=
15915 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15916 *datarootdir*) ac_datarootdir_seen=yes;;
15917 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15919 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15922 ac_datarootdir_hack='
15923 s&@datadir@&$datadir&g
15924 s&@docdir@&$docdir&g
15925 s&@infodir@&$infodir&g
15926 s&@localedir@&$localedir&g
15927 s&@mandir@&$mandir&g
15928 s&\\\${datarootdir}&$datarootdir&g' ;;
15932 # Neutralize VPATH when `$srcdir' = `.'.
15933 # Shell code in configure.ac might set extrasub.
15934 # FIXME: do we really want to maintain this feature?
15935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15936 ac_sed_extra="$ac_vpsub
15939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15941 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15942 s|@configure_input@|$ac_sed_conf_input|;t t
15943 s&@top_builddir@&$ac_top_builddir_sub&;t t
15944 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15945 s&@srcdir@&$ac_srcdir&;t t
15946 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15947 s&@top_srcdir@&$ac_top_srcdir&;t t
15948 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15949 s&@builddir@&$ac_builddir&;t t
15950 s&@abs_builddir@&$ac_abs_builddir&;t t
15951 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15952 s&@INSTALL@&$ac_INSTALL&;t t
15953 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15954 $ac_datarootdir_hack
15956 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15957 || as_fn_error "could not create $ac_file" "$LINENO" 5
15959 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15960 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15961 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15963 which seems to be undefined. Please make sure it is defined." >&5
15964 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15965 which seems to be undefined. Please make sure it is defined." >&2;}
15969 -) cat "$tmp/out" && rm -f "$tmp/out";;
15970 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15972 || as_fn_error "could not create $ac_file" "$LINENO" 5
15978 if test x"$ac_file" != x-; then
15980 $as_echo "/* $configure_input */" \
15981 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15982 } >"$tmp/config.h" \
15983 || as_fn_error "could not create $ac_file" "$LINENO" 5
15984 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15986 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15989 mv "$tmp/config.h" "$ac_file" \
15990 || as_fn_error "could not create $ac_file" "$LINENO" 5
15993 $as_echo "/* $configure_input */" \
15994 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15995 || as_fn_error "could not create -" "$LINENO" 5
15997 # Compute "$ac_file"'s index in $config_headers.
16000 for _am_header in $config_headers :; do
16001 case $_am_header in
16002 $_am_arg | $_am_arg:* )
16005 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16008 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16009 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16010 X"$_am_arg" : 'X\(//\)[^/]' \| \
16011 X"$_am_arg" : 'X\(//\)$' \| \
16012 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16013 $as_echo X"$_am_arg" |
16014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16018 /^X\(\/\/\)[^/].*/{
16030 s/.*/./; q'`/stamp-h$_am_stamp_count
16033 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16034 $as_echo "$as_me: executing $ac_file commands" >&6;}
16039 case $ac_file$ac_mode in
16040 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16041 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16042 # are listed without --file. Let's play safe and only enable the eval
16043 # if we detect the quoting.
16044 case $CONFIG_FILES in
16045 *\'*) eval set x "$CONFIG_FILES" ;;
16046 *) set x $CONFIG_FILES ;;
16051 # Strip MF so we end up with the name of the file.
16052 mf=`echo "$mf" | sed -e 's/:.*$//'`
16053 # Check whether this is an Automake generated Makefile or not.
16054 # We used to match only the files named `Makefile.in', but
16055 # some people rename them; so instead we look at the file content.
16056 # Grep'ing the first line is not enough: some people post-process
16057 # each Makefile.in and add a new line on top of each file to say so.
16058 # Grep'ing the whole file is not good either: AIX grep has a line
16059 # limit of 2048, but all sed's we know have understand at least 4000.
16060 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16061 dirpart=`$as_dirname -- "$mf" ||
16062 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16063 X"$mf" : 'X\(//\)[^/]' \| \
16064 X"$mf" : 'X\(//\)$' \| \
16065 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16071 /^X\(\/\/\)[^/].*/{
16087 # Extract the definition of DEPDIR, am__include, and am__quote
16088 # from the Makefile without running `make'.
16089 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16090 test -z "$DEPDIR" && continue
16091 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16092 test -z "am__include" && continue
16093 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16094 # When using ansi2knr, U may be empty or an underscore; expand it
16095 U=`sed -n 's/^U = //p' < "$mf"`
16096 # Find all dependency output files, they are included files with
16097 # $(DEPDIR) in their names. We invoke sed twice because it is the
16098 # simplest approach to changing $(DEPDIR) to its actual value in the
16100 for file in `sed -n "
16101 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16102 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16103 # Make sure the directory exists.
16104 test -f "$dirpart/$file" && continue
16105 fdir=`$as_dirname -- "$file" ||
16106 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16107 X"$file" : 'X\(//\)[^/]' \| \
16108 X"$file" : 'X\(//\)$' \| \
16109 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16110 $as_echo X"$file" |
16111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16115 /^X\(\/\/\)[^/].*/{
16128 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16129 # echo "creating $dirpart/$file"
16130 echo '# dummy' > "$dirpart/$file"
16137 # See if we are running on zsh, and set the options which allow our
16138 # commands through without removal of \ escapes.
16139 if test -n "${ZSH_VERSION+set}" ; then
16140 setopt NO_GLOB_SUBST
16143 cfgfile="${ofile}T"
16144 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16147 cat <<_LT_EOF >> "$cfgfile"
16150 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16151 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16152 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16153 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16155 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16156 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16157 # Written by Gordon Matzigkeit, 1996
16159 # This file is part of GNU Libtool.
16161 # GNU Libtool is free software; you can redistribute it and/or
16162 # modify it under the terms of the GNU General Public License as
16163 # published by the Free Software Foundation; either version 2 of
16164 # the License, or (at your option) any later version.
16166 # As a special exception to the GNU General Public License,
16167 # if you distribute this file as part of a program or library that
16168 # is built using GNU Libtool, you may include this file under the
16169 # same distribution terms that you use for the rest of that program.
16171 # GNU Libtool is distributed in the hope that it will be useful,
16172 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16173 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16174 # GNU General Public License for more details.
16176 # You should have received a copy of the GNU General Public License
16177 # along with GNU Libtool; see the file COPYING. If not, a copy
16178 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16179 # obtained by writing to the Free Software Foundation, Inc.,
16180 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16183 # The names of the tagged configurations supported by this script.
16186 # ### BEGIN LIBTOOL CONFIG
16188 # Which release of libtool.m4 was used?
16189 macro_version=$macro_version
16190 macro_revision=$macro_revision
16192 # Whether or not to build shared libraries.
16193 build_libtool_libs=$enable_shared
16195 # Whether or not to build static libraries.
16196 build_old_libs=$enable_static
16198 # What type of objects to build.
16201 # Whether or not to optimize for fast installation.
16202 fast_install=$enable_fast_install
16204 # Shell to use when invoking shell scripts.
16207 # An echo program that protects backslashes.
16211 host_alias=$host_alias
16215 # The build system.
16216 build_alias=$build_alias
16220 # A sed program that does not truncate output.
16223 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16224 Xsed="\$SED -e 1s/^X//"
16226 # A grep program that handles long lines.
16232 # A literal string matcher.
16235 # A BSD- or MS-compatible name lister.
16238 # Whether we need soft or hard links.
16241 # What is the maximum length of a command?
16242 max_cmd_len=$max_cmd_len
16244 # Object file suffix (normally "o").
16247 # Executable file suffix (normally "").
16250 # whether the shell understands "unset".
16253 # turn spaces into newlines.
16256 # turn newlines into spaces.
16259 # An object symbol dumper.
16260 OBJDUMP=$lt_OBJDUMP
16262 # Method to check whether dependent libraries are shared objects.
16263 deplibs_check_method=$lt_deplibs_check_method
16265 # Command to use when deplibs_check_method == "file_magic".
16266 file_magic_cmd=$lt_file_magic_cmd
16270 AR_FLAGS=$lt_AR_FLAGS
16272 # A symbol stripping program.
16275 # Commands used to install an old-style archive.
16277 old_postinstall_cmds=$lt_old_postinstall_cmds
16278 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16280 # Whether to use a lock for old archive extraction.
16281 lock_old_archive_extraction=$lock_old_archive_extraction
16286 # LTCC compiler flags.
16287 LTCFLAGS=$lt_CFLAGS
16289 # Take the output of nm and produce a listing of raw symbols and C names.
16290 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16292 # Transform the output of nm in a proper C declaration.
16293 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16295 # Transform the output of nm in a C name address pair.
16296 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16298 # Transform the output of nm in a C name address pair when lib prefix is needed.
16299 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16301 # The name of the directory that contains temporary libtool files.
16304 # Used to examine libraries when file_magic_cmd begins with "file".
16305 MAGIC_CMD=$MAGIC_CMD
16307 # Must we lock files when doing compilation?
16308 need_locks=$lt_need_locks
16310 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16311 DSYMUTIL=$lt_DSYMUTIL
16313 # Tool to change global to local symbols on Mac OS X.
16316 # Tool to manipulate fat objects and archives on Mac OS X.
16319 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16322 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16323 OTOOL64=$lt_OTOOL64
16325 # Old archive suffix (normally "a").
16328 # Shared library suffix (normally ".so").
16329 shrext_cmds=$lt_shrext_cmds
16331 # The commands to extract the exported symbol list from a shared archive.
16332 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16334 # Variables whose values should be saved in libtool wrapper scripts and
16335 # restored at link time.
16336 variables_saved_for_relink=$lt_variables_saved_for_relink
16338 # Do we need the "lib" prefix for modules?
16339 need_lib_prefix=$need_lib_prefix
16341 # Do we need a version for libraries?
16342 need_version=$need_version
16344 # Library versioning type.
16345 version_type=$version_type
16347 # Shared library runtime path variable.
16348 runpath_var=$runpath_var
16350 # Shared library path variable.
16351 shlibpath_var=$shlibpath_var
16353 # Is shlibpath searched before the hard-coded library search path?
16354 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16356 # Format of library name prefix.
16357 libname_spec=$lt_libname_spec
16359 # List of archive names. First name is the real one, the rest are links.
16360 # The last name is the one that the linker finds with -lNAME
16361 library_names_spec=$lt_library_names_spec
16363 # The coded name of the library, if different from the real name.
16364 soname_spec=$lt_soname_spec
16366 # Permission mode override for installation of shared libraries.
16367 install_override_mode=$lt_install_override_mode
16369 # Command to use after installation of a shared archive.
16370 postinstall_cmds=$lt_postinstall_cmds
16372 # Command to use after uninstallation of a shared archive.
16373 postuninstall_cmds=$lt_postuninstall_cmds
16375 # Commands used to finish a libtool library installation in a directory.
16376 finish_cmds=$lt_finish_cmds
16378 # As "finish_cmds", except a single script fragment to be evaled but
16380 finish_eval=$lt_finish_eval
16382 # Whether we should hardcode library paths into libraries.
16383 hardcode_into_libs=$hardcode_into_libs
16385 # Compile-time system search path for libraries.
16386 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16388 # Run-time system search path for libraries.
16389 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16391 # Whether dlopen is supported.
16392 dlopen_support=$enable_dlopen
16394 # Whether dlopen of programs is supported.
16395 dlopen_self=$enable_dlopen_self
16397 # Whether dlopen of statically linked programs is supported.
16398 dlopen_self_static=$enable_dlopen_self_static
16400 # Commands to strip libraries.
16401 old_striplib=$lt_old_striplib
16402 striplib=$lt_striplib
16405 # The linker used to build libraries.
16408 # How to create reloadable object files.
16409 reload_flag=$lt_reload_flag
16410 reload_cmds=$lt_reload_cmds
16412 # Commands used to build an old-style archive.
16413 old_archive_cmds=$lt_old_archive_cmds
16415 # A language specific compiler.
16418 # Is the compiler the GNU compiler?
16421 # Compiler flag to turn off builtin functions.
16422 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16424 # How to pass a linker flag through the compiler.
16425 wl=$lt_lt_prog_compiler_wl
16427 # Additional compiler flags for building library objects.
16428 pic_flag=$lt_lt_prog_compiler_pic
16430 # Compiler flag to prevent dynamic linking.
16431 link_static_flag=$lt_lt_prog_compiler_static
16433 # Does compiler simultaneously support -c and -o options?
16434 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16436 # Whether or not to add -lc for building shared libraries.
16437 build_libtool_need_lc=$archive_cmds_need_lc
16439 # Whether or not to disallow shared libs when runtime libs are static.
16440 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16442 # Compiler flag to allow reflexive dlopens.
16443 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16445 # Compiler flag to generate shared objects directly from archives.
16446 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16448 # Whether the compiler copes with passing no objects directly.
16449 compiler_needs_object=$lt_compiler_needs_object
16451 # Create an old-style archive from a shared archive.
16452 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16454 # Create a temporary old-style archive to link instead of a shared archive.
16455 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16457 # Commands used to build a shared archive.
16458 archive_cmds=$lt_archive_cmds
16459 archive_expsym_cmds=$lt_archive_expsym_cmds
16461 # Commands used to build a loadable module if different from building
16462 # a shared archive.
16463 module_cmds=$lt_module_cmds
16464 module_expsym_cmds=$lt_module_expsym_cmds
16466 # Whether we are building with GNU ld or not.
16467 with_gnu_ld=$lt_with_gnu_ld
16469 # Flag that allows shared libraries with undefined symbols to be built.
16470 allow_undefined_flag=$lt_allow_undefined_flag
16472 # Flag that enforces no undefined symbols.
16473 no_undefined_flag=$lt_no_undefined_flag
16475 # Flag to hardcode \$libdir into a binary during linking.
16476 # This must work even if \$libdir does not exist
16477 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16479 # If ld is used when linking, flag to hardcode \$libdir into a binary
16480 # during linking. This must work even if \$libdir does not exist.
16481 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16483 # Whether we need a single "-rpath" flag with a separated argument.
16484 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16486 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16487 # DIR into the resulting binary.
16488 hardcode_direct=$hardcode_direct
16490 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16491 # DIR into the resulting binary and the resulting library dependency is
16492 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16493 # library is relocated.
16494 hardcode_direct_absolute=$hardcode_direct_absolute
16496 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16497 # into the resulting binary.
16498 hardcode_minus_L=$hardcode_minus_L
16500 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16501 # into the resulting binary.
16502 hardcode_shlibpath_var=$hardcode_shlibpath_var
16504 # Set to "yes" if building a shared library automatically hardcodes DIR
16505 # into the library and all subsequent libraries and executables linked
16507 hardcode_automatic=$hardcode_automatic
16509 # Set to yes if linker adds runtime paths of dependent libraries
16510 # to runtime path list.
16511 inherit_rpath=$inherit_rpath
16513 # Whether libtool must link a program against all its dependency libraries.
16514 link_all_deplibs=$link_all_deplibs
16516 # Fix the shell variable \$srcfile for the compiler.
16517 fix_srcfile_path=$lt_fix_srcfile_path
16519 # Set to "yes" if exported symbols are required.
16520 always_export_symbols=$always_export_symbols
16522 # The commands to list exported symbols.
16523 export_symbols_cmds=$lt_export_symbols_cmds
16525 # Symbols that should not be listed in the preloaded symbols.
16526 exclude_expsyms=$lt_exclude_expsyms
16528 # Symbols that must always be exported.
16529 include_expsyms=$lt_include_expsyms
16531 # Commands necessary for linking programs (against libraries) with templates.
16532 prelink_cmds=$lt_prelink_cmds
16534 # Specify filename containing input files.
16535 file_list_spec=$lt_file_list_spec
16537 # How to hardcode a shared library path into an executable.
16538 hardcode_action=$hardcode_action
16540 # ### END LIBTOOL CONFIG
16546 cat <<\_LT_EOF >> "$cfgfile"
16547 # AIX sometimes has problems with the GCC collect2 program. For some
16548 # reason, if we set the COLLECT_NAMES environment variable, the problems
16549 # vanish in a puff of smoke.
16550 if test "X${COLLECT_NAMES+set}" != Xset; then
16552 export COLLECT_NAMES
16559 ltmain="$ac_aux_dir/ltmain.sh"
16562 # We use sed instead of cat because bash on DJGPP gets confused if
16563 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16564 # text mode, it properly converts lines to CR/LF. This bash problem
16565 # is reportedly fixed, but why not run on old versions too?
16566 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16567 || (rm -f "$cfgfile"; exit 1)
16571 cat << \_LT_EOF >> "$cfgfile"
16573 # func_dirname file append nondir_replacement
16574 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16575 # otherwise set result to NONDIR_REPLACEMENT.
16579 */*) func_dirname_result="${1%/*}${2}" ;;
16580 * ) func_dirname_result="${3}" ;;
16584 # func_basename file
16587 func_basename_result="${1##*/}"
16590 # func_dirname_and_basename file append nondir_replacement
16591 # perform func_basename and func_dirname in a single function
16593 # dirname: Compute the dirname of FILE. If nonempty,
16594 # add APPEND to the result, otherwise set result
16595 # to NONDIR_REPLACEMENT.
16596 # value returned in "$func_dirname_result"
16597 # basename: Compute filename of FILE.
16598 # value retuned in "$func_basename_result"
16599 # Implementation must be kept synchronized with func_dirname
16600 # and func_basename. For efficiency, we do not delegate to
16601 # those functions but instead duplicate the functionality here.
16602 func_dirname_and_basename ()
16605 */*) func_dirname_result="${1%/*}${2}" ;;
16606 * ) func_dirname_result="${3}" ;;
16608 func_basename_result="${1##*/}"
16611 # func_stripname prefix suffix name
16612 # strip PREFIX and SUFFIX off of NAME.
16613 # PREFIX and SUFFIX must not contain globbing or regex special
16614 # characters, hashes, percent signs, but SUFFIX may contain a leading
16615 # dot (in which case that matches only a dot).
16618 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16619 # positional parameters, so assign one to ordinary parameter first.
16620 func_stripname_result=${3}
16621 func_stripname_result=${func_stripname_result#"${1}"}
16622 func_stripname_result=${func_stripname_result%"${2}"}
16628 func_opt_split_opt=${1%%=*}
16629 func_opt_split_arg=${1#*=}
16636 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16637 *) func_lo2o_result=${1} ;;
16641 # func_xform libobj-or-source
16644 func_xform_result=${1%.*}.lo
16647 # func_arith arithmetic-term...
16650 func_arith_result=$(( $* ))
16654 # STRING may not start with a hyphen.
16657 func_len_result=${#1}
16662 *) # Bourne compatible functions.
16663 cat << \_LT_EOF >> "$cfgfile"
16665 # func_dirname file append nondir_replacement
16666 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16667 # otherwise set result to NONDIR_REPLACEMENT.
16670 # Extract subdirectory from the argument.
16671 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16672 if test "X$func_dirname_result" = "X${1}"; then
16673 func_dirname_result="${3}"
16675 func_dirname_result="$func_dirname_result${2}"
16679 # func_basename file
16682 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16686 # func_stripname prefix suffix name
16687 # strip PREFIX and SUFFIX off of NAME.
16688 # PREFIX and SUFFIX must not contain globbing or regex special
16689 # characters, hashes, percent signs, but SUFFIX may contain a leading
16690 # dot (in which case that matches only a dot).
16691 # func_strip_suffix prefix name
16695 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16696 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16701 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16702 my_sed_long_arg='1s/^-[^=]*=//'
16707 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16708 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16714 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16717 # func_xform libobj-or-source
16720 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16723 # func_arith arithmetic-term...
16726 func_arith_result=`expr "$@"`
16730 # STRING may not start with a hyphen.
16733 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16739 case $lt_shell_append in
16741 cat << \_LT_EOF >> "$cfgfile"
16743 # func_append var value
16744 # Append VALUE to the end of shell variable VAR.
16752 cat << \_LT_EOF >> "$cfgfile"
16754 # func_append var value
16755 # Append VALUE to the end of shell variable VAR.
16766 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16767 || (rm -f "$cfgfile"; exit 1)
16769 mv -f "$cfgfile" "$ofile" ||
16770 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16775 for ac_file in $CONFIG_FILES; do
16776 # Support "outfile[:infile[:infile...]]"
16778 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16780 # PO directories have a Makefile.in generated from Makefile.in.in.
16781 case "$ac_file" in */Makefile.in)
16782 # Adjust a relative srcdir.
16783 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16784 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16785 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16786 # In autoconf-2.13 it is called $ac_given_srcdir.
16787 # In autoconf-2.50 it is called $srcdir.
16788 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16789 case "$ac_given_srcdir" in
16790 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16791 /*) top_srcdir="$ac_given_srcdir" ;;
16792 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16794 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16795 rm -f "$ac_dir/POTFILES"
16796 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16797 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16798 POMAKEFILEDEPS="POTFILES.in"
16799 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16800 # on $ac_dir but don't depend on user-specified configuration
16802 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16803 # The LINGUAS file contains the set of available languages.
16804 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16805 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16807 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16808 # Hide the ALL_LINGUAS assigment from automake.
16809 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16810 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16812 # The set of available languages was given in configure.in.
16813 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16815 case "$ac_given_srcdir" in
16817 *) srcdirpre='$(srcdir)/' ;;
16823 for lang in $ALL_LINGUAS; do
16824 POFILES="$POFILES $srcdirpre$lang.po"
16825 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16826 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16827 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16829 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16830 # environment variable.
16832 if test -n "$ALL_LINGUAS"; then
16833 for presentlang in $ALL_LINGUAS; do
16835 if test "%UNSET%" != "$LINGUAS"; then
16836 desiredlanguages="$LINGUAS"
16838 desiredlanguages="$ALL_LINGUAS"
16840 for desiredlang in $desiredlanguages; do
16841 # Use the presentlang catalog if desiredlang is
16842 # a. equal to presentlang, or
16843 # b. a variant of presentlang (because in this case,
16844 # presentlang can be used as a fallback for messages
16845 # which are not translated in the desiredlang catalog).
16846 case "$desiredlang" in
16847 "$presentlang"*) useit=yes;;
16850 if test $useit = yes; then
16851 INST_LINGUAS="$INST_LINGUAS $presentlang"
16856 if test -n "$INST_LINGUAS"; then
16857 for lang in $INST_LINGUAS; do
16858 CATALOGS="$CATALOGS $lang.gmo"
16861 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16862 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"
16863 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16864 if test -f "$f"; then
16866 *.orig | *.bak | *~) ;;
16867 *) cat "$f" >> "$ac_dir/Makefile" ;;
16875 "default":C) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
16876 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16877 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16878 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16879 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16880 if test "x$cgen_cpu_prefix" != x ; then
16881 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
16890 ac_clean_files=$ac_clean_files_save
16892 test $ac_write_fail = 0 ||
16893 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16896 # configure is writing to config.log, and then calls config.status.
16897 # config.status does its own redirection, appending to config.log.
16898 # Unfortunately, on DOS this fails, as config.log is still kept open
16899 # by configure, so config.status won't be able to write to it; its
16900 # output is simply discarded. So we exec the FD to /dev/null,
16901 # effectively closing config.log, so it can be properly (re)opened and
16902 # appended to by config.status. When coming back to configure, we
16903 # need to make the FD available again.
16904 if test "$no_create" != yes; then
16906 ac_config_status_args=
16907 test "$silent" = yes &&
16908 ac_config_status_args="$ac_config_status_args --quiet"
16910 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16912 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16913 # would make configure fail if this is the last instruction.
16914 $ac_cs_success || as_fn_exit $?
16916 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16918 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}