2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for newlib 1.19.0.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196 test -z "$as_dir" && as_dir=.
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir=./$as_dir;;
293 test -d "$as_dir" || eval $as_mkdir_p || {
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362 as_val=`expr "$@" || test $? -eq 1`
367 # as_fn_error ERROR [LINENO LOG_FD]
368 # ---------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with status $?, using 1 if that was 0.
374 as_status=$?; test $as_status -eq 0 && as_status=1
376 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
379 $as_echo "$as_me: error: $1" >&2
380 as_fn_exit $as_status
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 elif ln conf$$.file conf$$ 2>/dev/null; then
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
503 test -d ./-p && rmdir ./-p
507 if test -x / >/dev/null 2>&1; then
510 if ls -dL / >/dev/null 2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536 SHELL=${CONFIG_SHELL-/bin/sh}
539 test -n "$DJDIR" || exec 7<&0 </dev/null
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
550 ac_default_prefix=/usr/local
552 ac_config_libobj_dir=.
559 # Identity of this package.
560 PACKAGE_NAME='newlib'
561 PACKAGE_TARNAME='newlib'
562 PACKAGE_VERSION='1.19.0'
563 PACKAGE_STRING='newlib 1.19.0'
567 ac_unique_file="libc"
568 # Factoring default headers for most tests.
569 ac_includes_default="\
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
581 # ifdef HAVE_STDLIB_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
604 enable_option_checking=no
605 ac_subst_vars='am__EXEEXT_FALSE
609 HAVE_LONG_DOUBLE_FALSE
610 HAVE_LONG_DOUBLE_TRUE
611 libc_cv_initfinit_array
621 LIBM_MACHINE_OBJECTLIST
680 MAINTAINER_MODE_FALSE
704 INSTALL_STRIP_PROGRAM
728 MAY_SUPPLY_SYSCALLS_FALSE
729 MAY_SUPPLY_SYSCALLS_TRUE
757 program_transform_name
770 enable_option_checking
771 enable_newlib_io_pos_args
772 enable_newlib_io_c99_formats
773 enable_newlib_register_fini
774 enable_newlib_io_long_long
775 enable_newlib_io_long_double
777 enable_newlib_iconv_encodings
778 enable_newlib_iconv_from_encodings
779 enable_newlib_iconv_to_encodings
780 enable_newlib_iconv_external_ccs
781 enable_newlib_atexit_dynamic_alloc
782 enable_newlib_reent_small
784 enable_target_optspace
785 enable_malloc_debugging
786 enable_newlib_multithread
788 enable_newlib_elix_level
789 enable_newlib_io_float
790 enable_newlib_supplied_syscalls
791 enable_dependency_tracking
792 enable_maintainer_mode
801 ac_precious_vars='build_alias
817 # Initialize some variables set by options.
819 ac_init_version=false
820 ac_unrecognized_opts=
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
831 program_transform_name=s,x,x,
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\$ac_option
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 # Accept the important Cygnus configure options, so we can diagnose typos.
883 case $ac_dashdash$ac_option in
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
905 cache_file=config.cache ;;
907 -datadir | --datadir | --datadi | --datad)
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
919 -disable-* | --disable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
933 eval enable_$ac_useropt=no ;;
935 -docdir | --docdir | --docdi | --doc | --do)
937 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
942 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 -enable-* | --enable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
959 eval enable_$ac_useropt=\$ac_optarg ;;
961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963 | --exec | --exe | --ex)
964 ac_prev=exec_prefix ;;
965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967 | --exec=* | --exe=* | --ex=*)
968 exec_prefix=$ac_optarg ;;
970 -gas | --gas | --ga | --g)
971 # Obsolete; use --with-gas.
974 -help | --help | --hel | --he | -h)
976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977 ac_init_help=recursive ;;
978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979 ac_init_help=short ;;
981 -host | --host | --hos | --ho)
982 ac_prev=host_alias ;;
983 -host=* | --host=* | --hos=* | --ho=*)
984 host_alias=$ac_optarg ;;
986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990 htmldir=$ac_optarg ;;
992 -includedir | --includedir | --includedi | --included | --include \
993 | --includ | --inclu | --incl | --inc)
994 ac_prev=includedir ;;
995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996 | --includ=* | --inclu=* | --incl=* | --inc=*)
997 includedir=$ac_optarg ;;
999 -infodir | --infodir | --infodi | --infod | --info | --inf)
1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002 infodir=$ac_optarg ;;
1004 -libdir | --libdir | --libdi | --libd)
1006 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007 libdir=$ac_optarg ;;
1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010 | --libexe | --libex | --libe)
1011 ac_prev=libexecdir ;;
1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013 | --libexe=* | --libex=* | --libe=*)
1014 libexecdir=$ac_optarg ;;
1016 -localedir | --localedir | --localedi | --localed | --locale)
1017 ac_prev=localedir ;;
1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019 localedir=$ac_optarg ;;
1021 -localstatedir | --localstatedir | --localstatedi | --localstated \
1022 | --localstate | --localstat | --localsta | --localst | --locals)
1023 ac_prev=localstatedir ;;
1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026 localstatedir=$ac_optarg ;;
1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031 mandir=$ac_optarg ;;
1033 -nfp | --nfp | --nf)
1034 # Obsolete; use --without-fp.
1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038 | --no-cr | --no-c | -n)
1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047 | --oldin | --oldi | --old | --ol | --o)
1048 ac_prev=oldincludedir ;;
1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052 oldincludedir=$ac_optarg ;;
1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057 prefix=$ac_optarg ;;
1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060 | --program-pre | --program-pr | --program-p)
1061 ac_prev=program_prefix ;;
1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064 program_prefix=$ac_optarg ;;
1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067 | --program-suf | --program-su | --program-s)
1068 ac_prev=program_suffix ;;
1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071 program_suffix=$ac_optarg ;;
1073 -program-transform-name | --program-transform-name \
1074 | --program-transform-nam | --program-transform-na \
1075 | --program-transform-n | --program-transform- \
1076 | --program-transform | --program-transfor \
1077 | --program-transfo | --program-transf \
1078 | --program-trans | --program-tran \
1079 | --progr-tra | --program-tr | --program-t)
1080 ac_prev=program_transform_name ;;
1081 -program-transform-name=* | --program-transform-name=* \
1082 | --program-transform-nam=* | --program-transform-na=* \
1083 | --program-transform-n=* | --program-transform-=* \
1084 | --program-transform=* | --program-transfor=* \
1085 | --program-transfo=* | --program-transf=* \
1086 | --program-trans=* | --program-tran=* \
1087 | --progr-tra=* | --program-tr=* | --program-t=*)
1088 program_transform_name=$ac_optarg ;;
1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093 pdfdir=$ac_optarg ;;
1095 -psdir | --psdir | --psdi | --psd | --ps)
1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108 sbindir=$ac_optarg ;;
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119 sharedstatedir=$ac_optarg ;;
1121 -site | --site | --sit)
1123 -site=* | --site=* | --sit=*)
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1163 eval with_$ac_useropt=\$ac_optarg ;;
1165 -without-* | --without-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1179 eval with_$ac_useropt=no ;;
1182 # Obsolete; use --with-x.
1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186 | --x-incl | --x-inc | --x-in | --x-i)
1187 ac_prev=x_includes ;;
1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190 x_includes=$ac_optarg ;;
1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194 ac_prev=x_libraries ;;
1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197 x_libraries=$ac_optarg ;;
1199 -*) as_fn_error "unrecognized option: \`$ac_option'
1200 Try \`$0 --help' for more information."
1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
1206 case $ac_envvar in #(
1207 '' | [0-9]* | *[!_$as_cr_alnum]* )
1208 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1210 eval $ac_envvar=\$ac_optarg
1211 export $ac_envvar ;;
1214 # FIXME: should be removed in autoconf 3.0.
1215 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1224 if test -n "$ac_prev"; then
1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226 as_fn_error "missing argument to $ac_option"
1229 if test -n "$ac_unrecognized_opts"; then
1230 case $enable_option_checking in
1232 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1233 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237 # Check all directory arguments for consistency.
1238 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir
1243 eval ac_val=\$$ac_var
1244 # Remove trailing slashes.
1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 eval $ac_var=\$ac_val;;
1250 # Be sure to have absolute directory names.
1252 [\\/$]* | ?:[\\/]* ) continue;;
1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1255 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1258 # There might be people who depend on the old broken behavior: `$host'
1259 # used to hold the argument of --host etc.
1260 # FIXME: To remove some day.
1263 target=$target_alias
1265 # FIXME: To remove some day.
1266 if test "x$host_alias" != x; then
1267 if test "x$build_alias" = x; then
1268 cross_compiling=maybe
1269 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1270 If a cross compiler is detected then cross compile mode will be used." >&2
1271 elif test "x$build_alias" != "x$host_alias"; then
1277 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279 test "$silent" = yes && exec 6>/dev/null
1282 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283 ac_ls_di=`ls -di .` &&
1284 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285 as_fn_error "working directory cannot be determined"
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287 as_fn_error "pwd does not report name of working directory"
1290 # Find the source files, if location was not specified.
1291 if test -z "$srcdir"; then
1292 ac_srcdir_defaulted=yes
1293 # Try the directory containing this script, then the parent directory.
1294 ac_confdir=`$as_dirname -- "$as_myself" ||
1295 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296 X"$as_myself" : 'X\(//\)[^/]' \| \
1297 X"$as_myself" : 'X\(//\)$' \| \
1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299 $as_echo X"$as_myself" |
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1322 ac_srcdir_defaulted=no
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1328 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1332 # When building in place, set srcdir=.
1333 if test "$ac_abs_confdir" = "$ac_pwd"; then
1336 # Remove unnecessary trailing slashes from srcdir.
1337 # Double slashes in file names in object file debugging info
1338 # mess up M-x gdb in Emacs.
1340 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342 for ac_var in $ac_precious_vars; do
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_${ac_var}_value=\$${ac_var}
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350 # Report the --help message.
1352 if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1356 \`configure' configures newlib 1.19.0 to adapt to many kinds of systems.
1358 Usage: $0 [OPTION]... [VAR=VALUE]...
1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361 VAR=VALUE. See below for descriptions of some of the useful variables.
1363 Defaults for the options are specified in brackets.
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1376 Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
1378 [$ac_default_prefix]
1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1382 By default, \`make install' will install all the files in
1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385 for instance \`--prefix=\$HOME'.
1387 For better control, use the options below.
1389 Fine tuning of the installation directories:
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/newlib]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
1414 --program-prefix=PREFIX prepend PREFIX to installed program names
1415 --program-suffix=SUFFIX append SUFFIX to installed program names
1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1419 --build=BUILD configure for building on BUILD [guessed]
1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1424 if test -n "$ac_init_help"; then
1425 case $ac_init_help in
1426 short | recursive ) echo "Configuration of newlib 1.19.0:";;
1431 --disable-option-checking ignore unrecognized --enable/--with options
1432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1434 --enable-newlib-io-pos-args enable printf-family positional arg support
1435 --enable-newlib-io-c99-formats enable C99 support in IO functions like printf/scanf
1436 --enable-newlib-register-fini enable finalization function registration using atexit
1437 --enable-newlib-io-long-long enable long long type support in IO functions like printf/scanf
1438 --enable-newlib-io-long-double enable long double type support in IO functions printf/scanf
1439 --enable-newlib-mb enable multibyte support
1440 --enable-newlib-iconv-encodings enable specific comma-separated list of bidirectional iconv encodings to be built-in
1441 --enable-newlib-iconv-from-encodings enable specific comma-separated list of \"from\" iconv encodings to be built-in
1442 --enable-newlib-iconv-to-encodings enable specific comma-separated list of \"to\" iconv encodings to be built-in
1443 --enable-newlib-iconv-external-ccs enable capabilities to load external CCS files for iconv
1444 --disable-newlib-atexit-alloc disable dynamic allocation of atexit entries
1445 --enable-newlib-reent-small enable small reentrant struct support
1446 --enable-multilib build many library versions (default)
1447 --enable-target-optspace optimize for space
1448 --enable-malloc-debugging indicate malloc debugging requested
1449 --enable-newlib-multithread enable support for multiple threads
1450 --enable-newlib-iconv enable iconv library support
1451 --enable-newlib-elix-level supply desired elix library level (1-4)
1452 --disable-newlib-io-float disable printf/scanf family float support
1453 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1454 --disable-dependency-tracking speeds up one-time build
1455 --enable-dependency-tracking do not reject slow dependency extractors
1456 --enable-maintainer-mode enable make rules and dependencies not useful
1457 (and sometimes confusing) to the casual installer
1458 --enable-shared[=PKGS] build shared libraries [default=yes]
1459 --enable-static[=PKGS] build static libraries [default=yes]
1460 --enable-fast-install[=PKGS]
1461 optimize for fast installation [default=yes]
1462 --disable-libtool-lock avoid locking (might break parallel builds)
1463 --enable-newlib-hw-fp Turn on hardware floating point math
1466 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1467 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1468 --with-pic try to use only PIC/non-PIC objects [default=use
1470 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1472 Some influential environment variables:
1473 CCAS assembler compiler command (defaults to CC)
1474 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1475 CC C compiler command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
1479 LIBS libraries to pass to the linker, e.g. -l<library>
1480 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1481 you have headers in a nonstandard directory <include dir>
1484 Use these variables to override the choices made by `configure' or to help
1485 it to find libraries and programs with nonstandard names/locations.
1487 Report bugs to the package provider.
1492 if test "$ac_init_help" = "recursive"; then
1493 # If there are subdirs, report their specific --help.
1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495 test -d "$ac_dir" ||
1496 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1504 # A ".." for each directory in $ac_dir_suffix.
1505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1506 case $ac_top_builddir_sub in
1507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1511 ac_abs_top_builddir=$ac_pwd
1512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513 # for backward compatibility:
1514 ac_top_builddir=$ac_top_build_prefix
1517 .) # We are building in place.
1519 ac_top_srcdir=$ac_top_builddir_sub
1520 ac_abs_top_srcdir=$ac_pwd ;;
1521 [\\/]* | ?:[\\/]* ) # Absolute name.
1522 ac_srcdir=$srcdir$ac_dir_suffix;
1523 ac_top_srcdir=$srcdir
1524 ac_abs_top_srcdir=$srcdir ;;
1526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527 ac_top_srcdir=$ac_top_build_prefix$srcdir
1528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532 cd "$ac_dir" || { ac_status=$?; continue; }
1533 # Check for guested configure.
1534 if test -f "$ac_srcdir/configure.gnu"; then
1536 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537 elif test -f "$ac_srcdir/configure"; then
1539 $SHELL "$ac_srcdir/configure" --help=recursive
1541 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543 cd "$ac_pwd" || { ac_status=$?; break; }
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1550 newlib configure 1.19.0
1551 generated by GNU Autoconf 2.65
1553 Copyright (C) 2009 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1560 ## ------------------------ ##
1561 ## Autoconf initialization. ##
1562 ## ------------------------ ##
1564 # ac_fn_c_try_compile LINENO
1565 # --------------------------
1566 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_compile ()
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext
1571 if { { ac_try="$ac_compile"
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_compile") 2>conftest.err
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest.$ac_objext; then :
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1597 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598 as_fn_set_status $ac_retval
1600 } # ac_fn_c_try_compile
1602 # ac_fn_c_try_link LINENO
1603 # -----------------------
1604 # Try to link conftest.$ac_ext, and return whether this succeeded.
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 rm -f conftest.$ac_objext conftest$ac_exeext
1609 if { { ac_try="$ac_link"
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616 (eval "$ac_link") 2>conftest.err
1618 if test -s conftest.err; then
1619 grep -v '^ *+' conftest.err >conftest.er1
1620 cat conftest.er1 >&5
1621 mv -f conftest.er1 conftest.err
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } && {
1625 test -z "$ac_c_werror_flag" ||
1626 test ! -s conftest.err
1627 } && test -s conftest$ac_exeext && {
1628 test "$cross_compiling" = yes ||
1629 $as_test_x conftest$ac_exeext
1633 $as_echo "$as_me: failed program was:" >&5
1634 sed 's/^/| /' conftest.$ac_ext >&5
1638 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1639 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1640 # interfere with the next link command; also delete a directory that is
1641 # left behind by Apple's compiler. We do this before executing the actions.
1642 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1644 as_fn_set_status $ac_retval
1646 } # ac_fn_c_try_link
1648 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1649 # -------------------------------------------------------
1650 # Tests whether HEADER exists and can be compiled using the include files in
1651 # INCLUDES, setting the cache variable VAR accordingly.
1652 ac_fn_c_check_header_compile ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 $as_echo_n "checking for $2... " >&6; }
1657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1658 $as_echo_n "(cached) " >&6
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1665 if ac_fn_c_try_compile "$LINENO"; then :
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 $as_echo "$ac_res" >&6; }
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677 } # ac_fn_c_check_header_compile
1679 # ac_fn_c_try_cpp LINENO
1680 # ----------------------
1681 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 if { { ac_try="$ac_cpp conftest.$ac_ext"
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } >/dev/null && {
1701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1711 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1712 as_fn_set_status $ac_retval
1716 # ac_fn_c_try_run LINENO
1717 # ----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1719 # that executables *can* be run.
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_link"
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_link") 2>&5
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1734 { { case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_try") 2>&5
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; }; }; then :
1746 $as_echo "$as_me: program exited with status $ac_status" >&5
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1750 ac_retval=$ac_status
1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754 as_fn_set_status $ac_retval
1758 # ac_fn_c_check_func LINENO FUNC VAR
1759 # ----------------------------------
1760 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1761 ac_fn_c_check_func ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1767 $as_echo_n "(cached) " >&6
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1771 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1773 #define $2 innocuous_$2
1775 /* System header to define __stub macros and hopefully few prototypes,
1776 which can conflict with char $2 (); below.
1777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1778 <limits.h> exists even on freestanding compilers. */
1781 # include <limits.h>
1783 # include <assert.h>
1788 /* Override any GCC internal prototype to avoid an error.
1789 Use char because int might match the return type of a GCC
1790 builtin and then its argument prototype would still apply. */
1795 /* The GNU C library defines this for functions which it implements
1796 to always fail with ENOSYS. Some functions are actually named
1797 something starting with __ and the normal name is an alias. */
1798 #if defined __stub_$2 || defined __stub___$2
1810 if ac_fn_c_try_link "$LINENO"; then :
1815 rm -f core conftest.err conftest.$ac_objext \
1816 conftest$ac_exeext conftest.$ac_ext
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1823 } # ac_fn_c_check_func
1824 cat >config.log <<_ACEOF
1825 This file contains any messages produced by compilers while
1826 running configure, to aid debugging if configure makes a mistake.
1828 It was created by newlib $as_me 1.19.0, which was
1829 generated by GNU Autoconf 2.65. Invocation command line was
1841 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1842 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1843 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1844 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1845 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1847 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1848 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1850 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1851 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1852 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1853 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1854 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1855 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1856 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 test -z "$as_dir" && as_dir=.
1865 $as_echo "PATH: $as_dir"
1881 # Keep a trace of the command line.
1882 # Strip out --no-create and --no-recursion so they do not pile up.
1883 # Strip out --silent because we don't want to record it for future runs.
1884 # Also quote any args containing shell meta-characters.
1885 # Make two passes to allow for proper duplicate-argument suppression.
1889 ac_must_keep_next=false
1895 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1896 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1897 | -silent | --silent | --silen | --sile | --sil)
1900 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1903 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1905 as_fn_append ac_configure_args1 " '$ac_arg'"
1906 if test $ac_must_keep_next = true; then
1907 ac_must_keep_next=false # Got value, back to normal.
1910 *=* | --config-cache | -C | -disable-* | --disable-* \
1911 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1912 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1913 | -with-* | --with-* | -without-* | --without-* | --x)
1914 case "$ac_configure_args0 " in
1915 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1918 -* ) ac_must_keep_next=true ;;
1921 as_fn_append ac_configure_args " '$ac_arg'"
1926 { ac_configure_args0=; unset ac_configure_args0;}
1927 { ac_configure_args1=; unset ac_configure_args1;}
1929 # When interrupted or exit'd, cleanup temporary files, and complete
1930 # config.log. We remove comments because anyway the quotes in there
1931 # would cause problems or look ugly.
1932 # WARNING: Use '\'' to represent an apostrophe within the trap.
1933 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1934 trap 'exit_status=$?
1935 # Save into config.log some information that might help in debugging.
1940 ## ---------------- ##
1941 ## Cache variables. ##
1942 ## ---------------- ##
1945 # The following way of writing the cache mishandles newlines in values,
1947 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1948 eval ac_val=\$$ac_var
1952 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1953 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1956 _ | IFS | as_nl) ;; #(
1957 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1958 *) { eval $ac_var=; unset $ac_var;} ;;
1963 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1964 *${as_nl}ac_space=\ *)
1966 "s/'\''/'\''\\\\'\'''\''/g;
1967 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1970 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1978 ## ----------------- ##
1979 ## Output variables. ##
1980 ## ----------------- ##
1983 for ac_var in $ac_subst_vars
1985 eval ac_val=\$$ac_var
1987 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1989 $as_echo "$ac_var='\''$ac_val'\''"
1993 if test -n "$ac_subst_files"; then
1995 ## ------------------- ##
1996 ## File substitutions. ##
1997 ## ------------------- ##
2000 for ac_var in $ac_subst_files
2002 eval ac_val=\$$ac_var
2004 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2006 $as_echo "$ac_var='\''$ac_val'\''"
2011 if test -s confdefs.h; then
2021 test "$ac_signal" != 0 &&
2022 $as_echo "$as_me: caught signal $ac_signal"
2023 $as_echo "$as_me: exit $exit_status"
2025 rm -f core *.core core.conftest.* &&
2026 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2029 for ac_signal in 1 2 13 15; do
2030 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2034 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2035 rm -f -r conftest* confdefs.h
2037 $as_echo "/* confdefs.h */" > confdefs.h
2039 # Predefined preprocessor variables.
2041 cat >>confdefs.h <<_ACEOF
2042 #define PACKAGE_NAME "$PACKAGE_NAME"
2045 cat >>confdefs.h <<_ACEOF
2046 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2049 cat >>confdefs.h <<_ACEOF
2050 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_STRING "$PACKAGE_STRING"
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2061 cat >>confdefs.h <<_ACEOF
2062 #define PACKAGE_URL "$PACKAGE_URL"
2066 # Let the site file select an alternate cache file if it wants to.
2067 # Prefer an explicitly selected file to automatically selected ones.
2070 if test -n "$CONFIG_SITE"; then
2071 ac_site_file1=$CONFIG_SITE
2072 elif test "x$prefix" != xNONE; then
2073 ac_site_file1=$prefix/share/config.site
2074 ac_site_file2=$prefix/etc/config.site
2076 ac_site_file1=$ac_default_prefix/share/config.site
2077 ac_site_file2=$ac_default_prefix/etc/config.site
2079 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2081 test "x$ac_site_file" = xNONE && continue
2082 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2084 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2085 sed 's/^/| /' "$ac_site_file" >&5
2090 if test -r "$cache_file"; then
2091 # Some versions of bash will fail to source /dev/null (special files
2092 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2093 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2095 $as_echo "$as_me: loading cache $cache_file" >&6;}
2097 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2098 *) . "./$cache_file";;
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2103 $as_echo "$as_me: creating cache $cache_file" >&6;}
2107 # Check that the precious variables saved in the cache have kept the same
2109 ac_cache_corrupted=false
2110 for ac_var in $ac_precious_vars; do
2111 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2112 eval ac_new_set=\$ac_env_${ac_var}_set
2113 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2114 eval ac_new_val=\$ac_env_${ac_var}_value
2115 case $ac_old_set,$ac_new_set in
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2118 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2119 ac_cache_corrupted=: ;;
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2122 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2123 ac_cache_corrupted=: ;;
2126 if test "x$ac_old_val" != "x$ac_new_val"; then
2127 # differences in whitespace do not lead to failure.
2128 ac_old_val_w=`echo x $ac_old_val`
2129 ac_new_val_w=`echo x $ac_new_val`
2130 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2132 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2133 ac_cache_corrupted=:
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2136 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2137 eval $ac_var=\$ac_old_val
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2140 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2142 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2145 # Pass precious variables to config.status.
2146 if test "$ac_new_set" = set; then
2148 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2149 *) ac_arg=$ac_var=$ac_new_val ;;
2151 case " $ac_configure_args " in
2152 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2153 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2157 if $ac_cache_corrupted; then
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2161 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2162 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2164 ## -------------------- ##
2165 ## Main body of script. ##
2166 ## -------------------- ##
2169 ac_cpp='$CPP $CPPFLAGS'
2170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2176 ac_config_headers="$ac_config_headers newlib.h:newlib.hin"
2180 for ac_dir in .. "$srcdir"/..; do
2181 for ac_t in install-sh install.sh shtool; do
2182 if test -f "$ac_dir/$ac_t"; then
2184 ac_install_sh="$ac_aux_dir/$ac_t -c"
2189 if test -z "$ac_aux_dir"; then
2190 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2193 # These three variables are undocumented and unsupported,
2194 # and are intended to be withdrawn in a future Autoconf release.
2195 # They can cause serious problems if a builder's source tree is in a directory
2196 # whose full name contains unusual characters.
2197 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2198 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2199 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2203 # Check whether --enable-newlib-io-pos-args was given.
2204 if test "${enable_newlib_io_pos_args+set}" = set; then :
2205 enableval=$enable_newlib_io_pos_args; case "${enableval}" in
2206 yes) newlib_io_pos_args=yes ;;
2207 no) newlib_io_pos_args=no ;;
2208 *) as_fn_error "bad value ${enableval} for newlib-io-pos-args option" "$LINENO" 5 ;;
2214 # Check whether --enable-newlib-io-c99-formats was given.
2215 if test "${enable_newlib_io_c99_formats+set}" = set; then :
2216 enableval=$enable_newlib_io_c99_formats; case "${enableval}" in
2217 yes) newlib_io_c99_formats=yes;;
2218 no) newlib_io_c99_formats=no ;;
2219 *) as_fn_error "bad value ${enableval} for newlib-io-c99-formats option" "$LINENO" 5 ;;
2222 newlib_io_c99_formats=
2225 # Check whether --enable-newlib-register-fini was given.
2226 if test "${enable_newlib_register_fini+set}" = set; then :
2227 enableval=$enable_newlib_register_fini; case "${enableval}" in
2228 yes) newlib_register_fini=yes;;
2229 no) newlib_register_fini=no ;;
2230 *) as_fn_error "bad value ${enableval} for newlib-register-fini option" "$LINENO" 5 ;;
2233 newlib_register_fini=
2236 # Check whether --enable-newlib-io-long-long was given.
2237 if test "${enable_newlib_io_long_long+set}" = set; then :
2238 enableval=$enable_newlib_io_long_long; case "${enableval}" in
2239 yes) newlib_io_long_long=yes;;
2240 no) newlib_io_long_long=no ;;
2241 *) as_fn_error "bad value ${enableval} for newlib-io-long-long option" "$LINENO" 5 ;;
2244 newlib_io_long_long=
2247 # Check whether --enable-newlib-io-long-double was given.
2248 if test "${enable_newlib_io_long_double+set}" = set; then :
2249 enableval=$enable_newlib_io_long_double; case "${enableval}" in
2250 yes) newlib_io_long_double=yes;;
2251 no) newlib_io_long_double=no ;;
2252 *) as_fn_error "bad value ${enableval} for newlib-io-long-double option" "$LINENO" 5 ;;
2255 newlib_io_long_double=
2258 # Check whether --enable-newlib-mb was given.
2259 if test "${enable_newlib_mb+set}" = set; then :
2260 enableval=$enable_newlib_mb; case "${enableval}" in
2261 yes) newlib_mb=yes;;
2263 *) as_fn_error "bad value ${enableval} for newlib-mb option" "$LINENO" 5 ;;
2269 # Check whether --enable-newlib-iconv-encodings was given.
2270 if test "${enable_newlib_iconv_encodings+set}" = set; then :
2271 enableval=$enable_newlib_iconv_encodings; if test x${enableval} = x; then
2272 as_fn_error "bad value ${enableval} for newlib-iconv-encodings option - use comma-separated encodings list" "$LINENO" 5
2274 iconv_encodings=${enableval}
2280 # Check whether --enable-newlib-iconv-from-encodings was given.
2281 if test "${enable_newlib_iconv_from_encodings+set}" = set; then :
2282 enableval=$enable_newlib_iconv_from_encodings; if test x${enableval} = x; then
2283 as_fn_error "bad value ${enableval} for newlib-iconv-from-encodings option - use comma-separated encodings list" "$LINENO" 5
2285 iconv_from_encodings=${enableval}
2288 iconv_from_encodings=
2291 # Check whether --enable-newlib-iconv-to-encodings was given.
2292 if test "${enable_newlib_iconv_to_encodings+set}" = set; then :
2293 enableval=$enable_newlib_iconv_to_encodings; if test x${enableval} = x; then
2294 as_fn_error "bad value ${enableval} for newlib-iconv-to-encodings option - use comma-separated encodings list" "$LINENO" 5
2296 iconv_to_encodings=${enableval}
2302 # Check whether --enable-newlib-iconv-external-ccs was given.
2303 if test "${enable_newlib_iconv_external_ccs+set}" = set; then :
2304 enableval=$enable_newlib_iconv_external_ccs; if test "${newlib_iconv_external_ccs+set}" != set; then
2305 case "${enableval}" in
2306 yes) newlib_iconv_external_ccs=yes ;;
2307 no) newlib_iconv_external_ccs=no ;;
2308 *) as_fn_error "bad value ${enableval} for newlib-iconv-external-ccs option" "$LINENO" 5 ;;
2312 newlib_iconv_external_ccs=${newlib_iconv_external_ccs}
2315 # Check whether --enable-newlib-atexit-dynamic-alloc was given.
2316 if test "${enable_newlib_atexit_dynamic_alloc+set}" = set; then :
2317 enableval=$enable_newlib_atexit_dynamic_alloc; if test "${newlib_atexit_dynamic_alloc+set}" != set; then
2318 case "${enableval}" in
2319 yes) newlib_atexit_dynamic_alloc=yes ;;
2320 no) newlib_atexit_dynamic_alloc=no ;;
2321 *) as_fn_error "bad value ${enableval} for newlib-atexit-dynamic-alloc option" "$LINENO" 5 ;;
2325 newlib_atexit_dynamic_alloc=${newlib_atexit_dynamic_alloc}
2328 # Check whether --enable-newlib-reent-small was given.
2329 if test "${enable_newlib_reent_small+set}" = set; then :
2330 enableval=$enable_newlib_reent_small; case "${enableval}" in
2331 yes) newlib_reent_small=yes;;
2332 no) newlib_reent_small=no ;;
2333 *) as_fn_error "bad value ${enableval} for newlib-reent-small option" "$LINENO" 5 ;;
2340 # Make sure we can run config.sub.
2341 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2342 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2345 $as_echo_n "checking build system type... " >&6; }
2346 if test "${ac_cv_build+set}" = set; then :
2347 $as_echo_n "(cached) " >&6
2349 ac_build_alias=$build_alias
2350 test "x$ac_build_alias" = x &&
2351 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2352 test "x$ac_build_alias" = x &&
2353 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2354 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2355 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2359 $as_echo "$ac_cv_build" >&6; }
2360 case $ac_cv_build in
2362 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2365 ac_save_IFS=$IFS; IFS='-'
2371 # Remember, the first character of IFS is used to create $*,
2372 # except with old shells:
2375 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2379 $as_echo_n "checking host system type... " >&6; }
2380 if test "${ac_cv_host+set}" = set; then :
2381 $as_echo_n "(cached) " >&6
2383 if test "x$host_alias" = x; then
2384 ac_cv_host=$ac_cv_build
2386 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2387 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2392 $as_echo "$ac_cv_host" >&6; }
2395 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2398 ac_save_IFS=$IFS; IFS='-'
2404 # Remember, the first character of IFS is used to create $*,
2405 # except with old shells:
2408 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2411 am__api_version='1.11'
2413 # Find a good install program. We prefer a C program (faster),
2414 # so one script is as good as another. But avoid the broken or
2415 # incompatible versions:
2416 # SysV /etc/install, /usr/sbin/install
2417 # SunOS /usr/etc/install
2418 # IRIX /sbin/install
2420 # AmigaOS /C/install, which installs bootblocks on floppy discs
2421 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2422 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2423 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2424 # OS/2's system install, which has a completely different semantic
2425 # ./install, which can be erroneously created by make from ./install.sh.
2426 # Reject install programs that cannot install multiple files.
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2428 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2429 if test -z "$INSTALL"; then
2430 if test "${ac_cv_path_install+set}" = set; then :
2431 $as_echo_n "(cached) " >&6
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 test -z "$as_dir" && as_dir=.
2438 # Account for people who put trailing slashes in PATH elements.
2439 case $as_dir/ in #((
2440 ./ | .// | /[cC]/* | \
2441 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2442 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2445 # OSF1 and SCO ODT 3.0 have their own names for install.
2446 # Don't use installbsd from OSF since it installs stuff as root
2448 for ac_prog in ginstall scoinst install; do
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2451 if test $ac_prog = install &&
2452 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2453 # AIX install. It has an incompatible calling convention.
2455 elif test $ac_prog = install &&
2456 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457 # program-specific install script used by HP pwplus--don't use.
2460 rm -rf conftest.one conftest.two conftest.dir
2461 echo one > conftest.one
2462 echo two > conftest.two
2464 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2465 test -s conftest.one && test -s conftest.two &&
2466 test -s conftest.dir/conftest.one &&
2467 test -s conftest.dir/conftest.two
2469 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2482 rm -rf conftest.one conftest.two conftest.dir
2485 if test "${ac_cv_path_install+set}" = set; then
2486 INSTALL=$ac_cv_path_install
2488 # As a last resort, use the slow shell script. Don't cache a
2489 # value for INSTALL within a source directory, because that will
2490 # break other packages using the cache if that directory is
2491 # removed, or if the value is a relative name.
2492 INSTALL=$ac_install_sh
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2496 $as_echo "$INSTALL" >&6; }
2498 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2499 # It thinks the first close brace ends the variable substitution.
2500 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2502 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2504 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2507 $as_echo_n "checking whether build environment is sane... " >&6; }
2510 echo timestamp > conftest.file
2511 # Reject unsafe characters in $srcdir or the absolute working directory
2512 # name. Accept space and tab only in the latter.
2516 *[\\\"\#\$\&\'\`$am_lf]*)
2517 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2520 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2521 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2524 # Do `set' in a subshell so we don't clobber the current shell's
2525 # arguments. Must try -L first in case configure is actually a
2526 # symlink; some systems play weird games with the mod time of symlinks
2527 # (eg FreeBSD returns the mod time of the symlink's containing
2530 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2531 if test "$*" = "X"; then
2533 set X `ls -t "$srcdir/configure" conftest.file`
2536 if test "$*" != "X $srcdir/configure conftest.file" \
2537 && test "$*" != "X conftest.file $srcdir/configure"; then
2539 # If neither matched, then we have a broken ls. This can happen
2540 # if, for instance, CONFIG_SHELL is bash and it inherits a
2541 # broken ls alias from the environment. This has actually
2542 # happened. Such a system could not be considered "sane".
2543 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2544 alias in your environment" "$LINENO" 5
2547 test "$2" = conftest.file
2553 as_fn_error "newly created file is older than distributed files!
2554 Check your system clock" "$LINENO" 5
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2557 $as_echo "yes" >&6; }
2558 test "$program_prefix" != NONE &&
2559 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2560 # Use a double $ so make ignores it.
2561 test "$program_suffix" != NONE &&
2562 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2563 # Double any \ or $.
2564 # By default was `s,x,x', remove it if useless.
2565 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2566 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2568 # expand $ac_aux_dir to an absolute path
2569 am_aux_dir=`cd $ac_aux_dir && pwd`
2571 if test x"${MISSING+set}" != xset; then
2574 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2576 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2579 # Use eval to expand $SHELL
2580 if eval "$MISSING --run true"; then
2581 am_missing_run="$MISSING --run "
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2585 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2588 if test x"${install_sh}" != xset; then
2591 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2593 install_sh="\${SHELL} $am_aux_dir/install-sh"
2597 # Installed binaries are usually stripped using `strip' when the user
2598 # run `make install-strip'. However `strip' might not be the right
2599 # tool to use in cross-compilation environments, therefore Automake
2600 # will honor the `STRIP' environment variable to overrule this program.
2601 if test "$cross_compiling" != no; then
2602 if test -n "$ac_tool_prefix"; then
2603 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2604 set dummy ${ac_tool_prefix}strip; ac_word=$2
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606 $as_echo_n "checking for $ac_word... " >&6; }
2607 if test "${ac_cv_prog_STRIP+set}" = set; then :
2608 $as_echo_n "(cached) " >&6
2610 if test -n "$STRIP"; then
2611 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 STRIP=$ac_cv_prog_STRIP
2631 if test -n "$STRIP"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2633 $as_echo "$STRIP" >&6; }
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2641 if test -z "$ac_cv_prog_STRIP"; then
2643 # Extract the first word of "strip", so it can be a program name with args.
2644 set dummy strip; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2648 $as_echo_n "(cached) " >&6
2650 if test -n "$ac_ct_STRIP"; then
2651 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660 ac_cv_prog_ac_ct_STRIP="strip"
2661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2671 if test -n "$ac_ct_STRIP"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2673 $as_echo "$ac_ct_STRIP" >&6; }
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2679 if test "x$ac_ct_STRIP" = x; then
2682 case $cross_compiling:$ac_tool_warned in
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2686 ac_tool_warned=yes ;;
2691 STRIP="$ac_cv_prog_STRIP"
2695 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2698 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2699 if test -z "$MKDIR_P"; then
2700 if test "${ac_cv_path_mkdir+set}" = set; then :
2701 $as_echo_n "(cached) " >&6
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2707 test -z "$as_dir" && as_dir=.
2708 for ac_prog in mkdir gmkdir; do
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2711 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2712 'mkdir (GNU coreutils) '* | \
2713 'mkdir (coreutils) '* | \
2714 'mkdir (fileutils) '4.1*)
2715 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2725 test -d ./--version && rmdir ./--version
2726 if test "${ac_cv_path_mkdir+set}" = set; then
2727 MKDIR_P="$ac_cv_path_mkdir -p"
2729 # As a last resort, use the slow shell script. Don't cache a
2730 # value for MKDIR_P within a source directory, because that will
2731 # break other packages using the cache if that directory is
2732 # removed, or if the value is a relative name.
2733 MKDIR_P="$ac_install_sh -d"
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2737 $as_echo "$MKDIR_P" >&6; }
2741 [\\/$]* | ?:[\\/]*) ;;
2742 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2745 for ac_prog in gawk mawk nawk awk
2747 # Extract the first word of "$ac_prog", so it can be a program name with args.
2748 set dummy $ac_prog; ac_word=$2
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2750 $as_echo_n "checking for $ac_word... " >&6; }
2751 if test "${ac_cv_prog_AWK+set}" = set; then :
2752 $as_echo_n "(cached) " >&6
2754 if test -n "$AWK"; then
2755 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2764 ac_cv_prog_AWK="$ac_prog"
2765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 if test -n "$AWK"; then
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2777 $as_echo "$AWK" >&6; }
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780 $as_echo "no" >&6; }
2784 test -n "$AWK" && break
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2788 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2790 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2791 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2792 $as_echo_n "(cached) " >&6
2794 cat >conftest.make <<\_ACEOF
2797 @echo '@@@%%%=$(MAKE)=@@@%%%'
2799 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2800 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2802 eval ac_cv_prog_make_${ac_make}_set=yes;;
2804 eval ac_cv_prog_make_${ac_make}_set=no;;
2808 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2810 $as_echo "yes" >&6; }
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814 $as_echo "no" >&6; }
2815 SET_MAKE="MAKE=${MAKE-make}"
2818 rm -rf .tst 2>/dev/null
2819 mkdir .tst 2>/dev/null
2820 if test -d .tst; then
2825 rmdir .tst 2>/dev/null
2827 DEPDIR="${am__leading_dot}deps"
2829 ac_config_commands="$ac_config_commands depfiles"
2832 am_make=${MAKE-make}
2833 cat > confinc << 'END'
2835 @echo this is the am__doit target
2838 # If we don't find an include directive, just comment out the code.
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2840 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2844 # First try GNU make style include.
2845 echo "include confinc" > confmf
2846 # Ignore all kinds of additional output from `make'.
2847 case `$am_make -s -f confmf 2> /dev/null` in #(
2848 *the\ am__doit\ target*)
2854 # Now try BSD make style include.
2855 if test "$am__include" = "#"; then
2856 echo '.include "confinc"' > confmf
2857 case `$am_make -s -f confmf 2> /dev/null` in #(
2858 *the\ am__doit\ target*)
2859 am__include=.include
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2868 $as_echo "$_am_result" >&6; }
2869 rm -f confinc confmf
2871 # Check whether --enable-dependency-tracking was given.
2872 if test "${enable_dependency_tracking+set}" = set; then :
2873 enableval=$enable_dependency_tracking;
2876 if test "x$enable_dependency_tracking" != xno; then
2877 am_depcomp="$ac_aux_dir/depcomp"
2880 if test "x$enable_dependency_tracking" != xno; then
2890 # Check whether --enable-multilib was given.
2891 if test "${enable_multilib+set}" = set; then :
2892 enableval=$enable_multilib; case "${enableval}" in
2893 yes) multilib=yes ;;
2895 *) as_fn_error "bad value ${enableval} for multilib option" "$LINENO" 5 ;;
2901 # Check whether --enable-target-optspace was given.
2902 if test "${enable_target_optspace+set}" = set; then :
2903 enableval=$enable_target_optspace; case "${enableval}" in
2904 yes) target_optspace=yes ;;
2905 no) target_optspace=no ;;
2906 *) as_fn_error "bad value ${enableval} for target-optspace option" "$LINENO" 5 ;;
2912 # Check whether --enable-malloc-debugging was given.
2913 if test "${enable_malloc_debugging+set}" = set; then :
2914 enableval=$enable_malloc_debugging; case "${enableval}" in
2915 yes) malloc_debugging=yes ;;
2916 no) malloc_debugging=no ;;
2917 *) as_fn_error "bad value ${enableval} for malloc-debugging option" "$LINENO" 5 ;;
2923 # Check whether --enable-newlib-multithread was given.
2924 if test "${enable_newlib_multithread+set}" = set; then :
2925 enableval=$enable_newlib_multithread; case "${enableval}" in
2926 yes) newlib_multithread=yes ;;
2927 no) newlib_multithread=no ;;
2928 *) as_fn_error "bad value ${enableval} for newlib-multithread option" "$LINENO" 5 ;;
2931 newlib_multithread=yes
2934 # Check whether --enable-newlib-iconv was given.
2935 if test "${enable_newlib_iconv+set}" = set; then :
2936 enableval=$enable_newlib_iconv; if test "${newlib_iconv+set}" != set; then
2937 case "${enableval}" in
2938 yes) newlib_iconv=yes ;;
2939 no) newlib_iconv=no ;;
2940 *) as_fn_error "bad value ${enableval} for newlib-iconv option" "$LINENO" 5 ;;
2944 newlib_iconv=${newlib_iconv}
2947 # Check whether --enable-newlib-elix-level was given.
2948 if test "${enable_newlib_elix_level+set}" = set; then :
2949 enableval=$enable_newlib_elix_level; case "${enableval}" in
2950 0) newlib_elix_level=0 ;;
2951 1) newlib_elix_level=1 ;;
2952 2) newlib_elix_level=2 ;;
2953 3) newlib_elix_level=3 ;;
2954 4) newlib_elix_level=4 ;;
2955 *) as_fn_error "bad value ${enableval} for newlib-elix-level option" "$LINENO" 5 ;;
2961 # Check whether --enable-newlib-io-float was given.
2962 if test "${enable_newlib_io_float+set}" = set; then :
2963 enableval=$enable_newlib_io_float; case "${enableval}" in
2964 yes) newlib_io_float=yes ;;
2965 no) newlib_io_float=no ;;
2966 *) as_fn_error "bad value ${enableval} for newlib-io-float option" "$LINENO" 5 ;;
2972 # Check whether --enable-newlib-supplied-syscalls was given.
2973 if test "${enable_newlib_supplied_syscalls+set}" = set; then :
2974 enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in
2975 yes) newlib_may_supply_syscalls=yes ;;
2976 no) newlib_may_supply_syscalls=no ;;
2977 *) as_fn_error "bad value ${enableval} for newlib-supplied-syscalls option" "$LINENO" 5 ;;
2980 newlib_may_supply_syscalls=yes
2983 if test x${newlib_may_supply_syscalls} = xyes; then
2984 MAY_SUPPLY_SYSCALLS_TRUE=
2985 MAY_SUPPLY_SYSCALLS_FALSE='#'
2987 MAY_SUPPLY_SYSCALLS_TRUE='#'
2988 MAY_SUPPLY_SYSCALLS_FALSE=
2993 test -z "${with_target_subdir}" && with_target_subdir=.
2995 if test "${srcdir}" = "."; then
2996 if test "${with_target_subdir}" != "."; then
2997 newlib_basedir="${srcdir}/${with_multisrctop}../."
2999 newlib_basedir="${srcdir}/${with_multisrctop}."
3002 newlib_basedir="${srcdir}/."
3008 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3009 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3010 # is not polluted with repeated "-I."
3011 am__isrc=' -I$(srcdir)'
3012 # test to see if srcdir already configured
3013 if test -f $srcdir/config.status; then
3014 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3018 # test whether we have cygpath
3019 if test -z "$CYGPATH_W"; then
3020 if (cygpath --version) >/dev/null 2>/dev/null; then
3021 CYGPATH_W='cygpath -w'
3028 # Define the identity of the package.
3033 # Some tools Automake needs.
3035 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3038 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3041 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3044 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3047 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3049 # We need awk for the "check" target. The system "awk" is bad on
3051 # Always define AMTAR for backward compatibility.
3053 AMTAR=${AMTAR-"${am_missing_run}tar"}
3055 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3062 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
3063 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
3064 # are probably using a cross compiler, which will not be able to fully
3065 # link an executable. This should really be fixed in autoconf
3074 # Extract the first word of "gcc", so it can be a program name with args.
3075 set dummy gcc; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if test "${ac_cv_prog_CC+set}" = set; then :
3079 $as_echo_n "(cached) " >&6
3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 if test -n "$CC"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 $as_echo "$CC" >&6; }
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3112 depcc="$CC" am_compiler_list=
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3115 $as_echo_n "checking dependency style of $depcc... " >&6; }
3116 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3117 $as_echo_n "(cached) " >&6
3119 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3120 # We make a subdir and do the tests there. Otherwise we can end up
3121 # making bogus files that we don't know about and never remove. For
3122 # instance it was reported that on HP-UX the gcc test will end up
3123 # making a dummy file named `D' -- because `-MD' means `put the output
3126 # Copy depcomp to subdir because otherwise we won't find it if we're
3127 # using a relative directory.
3128 cp "$am_depcomp" conftest.dir
3130 # We will build objects and dependencies in a subdirectory because
3131 # it helps to detect inapplicable dependency modes. For instance
3132 # both Tru64's cc and ICC support -MD to output dependencies as a
3133 # side effect of compilation, but ICC will put the dependencies in
3134 # the current directory while Tru64 will put them in the object
3138 am_cv_CC_dependencies_compiler_type=none
3139 if test "$am_compiler_list" = ""; then
3140 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3143 case " $depcc " in #(
3144 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3147 for depmode in $am_compiler_list; do
3148 # Setup a source with many dependencies, because some compilers
3149 # like to wrap large dependency lists on column 80 (with \), and
3150 # we should not choose a depcomp mode which is confused by this.
3152 # We need to recreate these files for each test, as the compiler may
3153 # overwrite some of them when testing with obscure command lines.
3154 # This happens at least with the AIX C compiler.
3156 for i in 1 2 3 4 5 6; do
3157 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3158 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3159 # Solaris 8's {/usr,}/bin/sh.
3160 touch sub/conftst$i.h
3162 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3164 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3165 # mode. It turns out that the SunPro C++ compiler does not properly
3166 # handle `-M -o', and we need to detect this. Also, some Intel
3167 # versions had trouble with output in subdirs
3168 am__obj=sub/conftest.${OBJEXT-o}
3169 am__minus_obj="-o $am__obj"
3172 # This depmode causes a compiler race in universal mode.
3173 test "$am__universal" = false || continue
3176 # after this tag, mechanisms are not by side-effect, so they'll
3177 # only be used when explicitly requested
3178 if test "x$enable_dependency_tracking" = xyes; then
3184 msvisualcpp | msvcmsys)
3185 # This compiler won't grok `-c -o', but also, the minuso test has
3186 # not run yet. These depmodes are late enough in the game, and
3187 # so weak that their functioning should not be impacted.
3188 am__obj=conftest.${OBJEXT-o}
3193 if depmode=$depmode \
3194 source=sub/conftest.c object=$am__obj \
3195 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3196 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3197 >/dev/null 2>conftest.err &&
3198 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3199 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3200 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3201 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3202 # icc doesn't choke on unknown options, it will just issue warnings
3203 # or remarks (even with -Werror). So we grep stderr for any message
3204 # that says an option was ignored or not supported.
3205 # When given -MP, icc 7.0 and 7.1 complain thusly:
3206 # icc: Command line warning: ignoring option '-M'; no argument required
3207 # The diagnosis changed in icc 8.0:
3208 # icc: Command line remark: option '-MP' not supported
3209 if (grep 'ignoring option' conftest.err ||
3210 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3211 am_cv_CC_dependencies_compiler_type=$depmode
3220 am_cv_CC_dependencies_compiler_type=none
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3225 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3226 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3229 test "x$enable_dependency_tracking" != xno \
3230 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3232 am__fastdepCC_FALSE='#'
3234 am__fastdepCC_TRUE='#'
3235 am__fastdepCC_FALSE=
3239 if test -z "$CC"; then
3240 # Extract the first word of "cc", so it can be a program name with args.
3241 set dummy cc; ac_word=$2
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if test "${ac_cv_prog_CC+set}" = set; then :
3245 $as_echo_n "(cached) " >&6
3247 if test -n "$CC"; then
3248 ac_cv_prog_CC="$CC" # Let the user override the test.
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3259 ac_prog_rejected=yes
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 if test $ac_prog_rejected = yes; then
3271 # We found a bogon in the path, so make sure we never use it.
3272 set dummy $ac_cv_prog_CC
3274 if test $# != 0; then
3275 # We chose a different compiler from the bogus one.
3276 # However, it has the same basename, so the bogon will be chosen
3277 # first if we set CC to just the basename; use the full file name.
3279 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3285 if test -n "$CC"; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3287 $as_echo "$CC" >&6; }
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3294 test -z "$CC" && as_fn_error "no acceptable cc found in \$PATH" "$LINENO" 5
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU C" >&5
3298 $as_echo_n "checking whether we are using GNU C... " >&6; }
3299 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3300 $as_echo_n "(cached) " >&6
3302 cat > conftest.c <<EOF
3307 if { ac_try='${CC-cc} -E conftest.c'
3308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
3313 ac_cv_c_compiler_gnu=yes
3315 ac_cv_c_compiler_gnu=no
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3319 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3321 if test $ac_cv_c_compiler_gnu = yes; then
3323 ac_test_CFLAGS="${CFLAGS+set}"
3324 ac_save_CFLAGS="$CFLAGS"
3325 ac_test_CFLAGS=${CFLAGS+set}
3326 ac_save_CFLAGS=$CFLAGS
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3328 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3329 if test "${ac_cv_prog_cc_g+set}" = set; then :
3330 $as_echo_n "(cached) " >&6
3332 ac_save_c_werror_flag=$ac_c_werror_flag
3333 ac_c_werror_flag=yes
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3347 if ac_fn_c_try_compile "$LINENO"; then :
3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h. */
3362 if ac_fn_c_try_compile "$LINENO"; then :
3365 ac_c_werror_flag=$ac_save_c_werror_flag
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3378 if ac_fn_c_try_compile "$LINENO"; then :
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 ac_c_werror_flag=$ac_save_c_werror_flag
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3389 $as_echo "$ac_cv_prog_cc_g" >&6; }
3390 if test "$ac_test_CFLAGS" = set; then
3391 CFLAGS=$ac_save_CFLAGS
3392 elif test $ac_cv_prog_cc_g = yes; then
3393 if test "$GCC" = yes; then
3399 if test "$GCC" = yes; then
3405 if test "$ac_test_CFLAGS" = set; then
3406 CFLAGS="$ac_save_CFLAGS"
3407 elif test $ac_cv_prog_cc_g = yes; then
3414 test "${CFLAGS+set}" = set || CFLAGS="-g"
3418 if test -n "$ac_tool_prefix"; then
3419 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3420 set dummy ${ac_tool_prefix}as; 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_AS+set}" = set; then :
3424 $as_echo_n "(cached) " >&6
3426 if test -n "$AS"; then
3427 ac_cv_prog_AS="$AS" # 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_AS="${ac_tool_prefix}as"
3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 if test -n "$AS"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3449 $as_echo "$AS" >&6; }
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3457 if test -z "$ac_cv_prog_AS"; then
3459 # Extract the first word of "as", so it can be a program name with args.
3460 set dummy as; 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_AS+set}" = set; then :
3464 $as_echo_n "(cached) " >&6
3466 if test -n "$ac_ct_AS"; then
3467 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # 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_AS="as"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3487 if test -n "$ac_ct_AS"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3489 $as_echo "$ac_ct_AS" >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3495 if test "x$ac_ct_AS" = 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 ;;
3510 if test -n "$ac_tool_prefix"; then
3511 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3512 set dummy ${ac_tool_prefix}ar; ac_word=$2
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514 $as_echo_n "checking for $ac_word... " >&6; }
3515 if test "${ac_cv_prog_AR+set}" = set; then :
3516 $as_echo_n "(cached) " >&6
3518 if test -n "$AR"; then
3519 ac_cv_prog_AR="$AR" # Let the user override the test.
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3528 ac_cv_prog_AR="${ac_tool_prefix}ar"
3529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 if test -n "$AR"; then
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3541 $as_echo "$AR" >&6; }
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544 $as_echo "no" >&6; }
3549 if test -z "$ac_cv_prog_AR"; then
3551 # Extract the first word of "ar", so it can be a program name with args.
3552 set dummy ar; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3556 $as_echo_n "(cached) " >&6
3558 if test -n "$ac_ct_AR"; then
3559 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568 ac_cv_prog_ac_ct_AR="ar"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3579 if test -n "$ac_ct_AR"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3581 $as_echo "$ac_ct_AR" >&6; }
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3587 if test "x$ac_ct_AR" = x; then
3590 case $cross_compiling:$ac_tool_warned in
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3594 ac_tool_warned=yes ;;
3602 if test -n "$ac_tool_prefix"; then
3603 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3604 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606 $as_echo_n "checking for $ac_word... " >&6; }
3607 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3608 $as_echo_n "(cached) " >&6
3610 if test -n "$RANLIB"; then
3611 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 test -z "$as_dir" && as_dir=.
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3620 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 RANLIB=$ac_cv_prog_RANLIB
3631 if test -n "$RANLIB"; then
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3633 $as_echo "$RANLIB" >&6; }
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3641 if test -z "$ac_cv_prog_RANLIB"; then
3642 ac_ct_RANLIB=$RANLIB
3643 # Extract the first word of "ranlib", so it can be a program name with args.
3644 set dummy ranlib; ac_word=$2
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646 $as_echo_n "checking for $ac_word... " >&6; }
3647 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3648 $as_echo_n "(cached) " >&6
3650 if test -n "$ac_ct_RANLIB"; then
3651 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 test -z "$as_dir" && as_dir=.
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3660 ac_cv_prog_ac_ct_RANLIB="ranlib"
3661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3671 if test -n "$ac_ct_RANLIB"; then
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3673 $as_echo "$ac_ct_RANLIB" >&6; }
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676 $as_echo "no" >&6; }
3679 if test "x$ac_ct_RANLIB" = x; then
3682 case $cross_compiling:$ac_tool_warned in
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3686 ac_tool_warned=yes ;;
3688 RANLIB=$ac_ct_RANLIB
3691 RANLIB="$ac_cv_prog_RANLIB"
3694 if test -n "$ac_tool_prefix"; then
3695 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3696 set dummy ${ac_tool_prefix}readelf; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if test "${ac_cv_prog_READELF+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3702 if test -n "$READELF"; then
3703 ac_cv_prog_READELF="$READELF" # Let the user override the test.
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 READELF=$ac_cv_prog_READELF
3723 if test -n "$READELF"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
3725 $as_echo "$READELF" >&6; }
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3733 if test -z "$ac_cv_prog_READELF"; then
3734 ac_ct_READELF=$READELF
3735 # Extract the first word of "readelf", so it can be a program name with args.
3736 set dummy readelf; ac_word=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then :
3740 $as_echo_n "(cached) " >&6
3742 if test -n "$ac_ct_READELF"; then
3743 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3752 ac_cv_prog_ac_ct_READELF="readelf"
3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3763 if test -n "$ac_ct_READELF"; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
3765 $as_echo "$ac_ct_READELF" >&6; }
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3771 if test "x$ac_ct_READELF" = x; then
3774 case $cross_compiling:$ac_tool_warned in
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned=yes ;;
3780 READELF=$ac_ct_READELF
3783 READELF="$ac_cv_prog_READELF"
3789 # Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13. */
3790 ac_given_INSTALL=$INSTALL
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3794 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3795 # Check whether --enable-maintainer-mode was given.
3796 if test "${enable_maintainer_mode+set}" = set; then :
3797 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3799 USE_MAINTAINER_MODE=no
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3803 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3804 if test $USE_MAINTAINER_MODE = yes; then
3805 MAINTAINER_MODE_TRUE=
3806 MAINTAINER_MODE_FALSE='#'
3808 MAINTAINER_MODE_TRUE='#'
3809 MAINTAINER_MODE_FALSE=
3812 MAINT=$MAINTAINER_MODE_TRUE
3815 # By default we simply use the C compiler to build assembly code.
3817 test "${CCAS+set}" = set || CCAS=$CC
3818 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3823 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
3824 # at least currently, we never actually build a program, so we never
3825 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
3826 # fails, because we are probably configuring with a cross compiler
3827 # which can't create executables. So we include AC_EXEEXT to keep
3828 # automake happy, but we don't execute it, since we don't care about
3835 . ${newlib_basedir}/configure.host
3837 newlib_cflags="${newlib_cflags} -fno-builtin"
3839 NEWLIB_CFLAGS=${newlib_cflags}
3842 NO_INCLUDE_LIST=${noinclude}
3848 if test x${newlib_elix_level} = x0; then
3850 ELIX_LEVEL_0_FALSE='#'
3852 ELIX_LEVEL_0_TRUE='#'
3856 if test x${newlib_elix_level} = x1; then
3858 ELIX_LEVEL_1_FALSE='#'
3860 ELIX_LEVEL_1_TRUE='#'
3864 if test x${newlib_elix_level} = x2; then
3866 ELIX_LEVEL_2_FALSE='#'
3868 ELIX_LEVEL_2_TRUE='#'
3872 if test x${newlib_elix_level} = x3; then
3874 ELIX_LEVEL_3_FALSE='#'
3876 ELIX_LEVEL_3_TRUE='#'
3880 if test x${newlib_elix_level} = x4; then
3882 ELIX_LEVEL_4_FALSE='#'
3884 ELIX_LEVEL_4_TRUE='#'
3889 if test x${use_libtool} = xyes; then
3891 USE_LIBTOOL_FALSE='#'
3893 USE_LIBTOOL_TRUE='#'
3898 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
3899 # use oext, which is set in configure.host based on the target platform.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3913 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3914 if test "${ac_cv_path_SED+set}" = set; then :
3915 $as_echo_n "(cached) " >&6
3917 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3918 for ac_i in 1 2 3 4 5 6 7; do
3919 ac_script="$ac_script$as_nl$ac_script"
3921 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3922 { ac_script=; unset ac_script;}
3923 if test -z "$SED"; then
3924 ac_path_SED_found=false
3925 # Loop through the user's path and test for each of PROGNAME-LIST
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 test -z "$as_dir" && as_dir=.
3931 for ac_prog in sed gsed; do
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3934 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3935 # Check for GNU ac_path_SED and select it if it is found.
3936 # Check for GNU $ac_path_SED
3937 case `"$ac_path_SED" --version 2>&1` in
3939 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3942 $as_echo_n 0123456789 >"conftest.in"
3945 cat "conftest.in" "conftest.in" >"conftest.tmp"
3946 mv "conftest.tmp" "conftest.in"
3947 cp "conftest.in" "conftest.nl"
3948 $as_echo '' >> "conftest.nl"
3949 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3950 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3951 as_fn_arith $ac_count + 1 && ac_count=$as_val
3952 if test $ac_count -gt ${ac_path_SED_max-0}; then
3953 # Best one so far, save it but keep looking for a better one
3954 ac_cv_path_SED="$ac_path_SED"
3955 ac_path_SED_max=$ac_count
3957 # 10*(2^10) chars as input seems more than enough
3958 test $ac_count -gt 10 && break
3960 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3963 $ac_path_SED_found && break 3
3968 if test -z "$ac_cv_path_SED"; then
3969 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3977 $as_echo "$ac_cv_path_SED" >&6; }
3978 SED="$ac_cv_path_SED"
3981 test -z "$SED" && SED=sed
3982 Xsed="$SED -e 1s/^X//"
3994 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3995 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3996 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3999 $as_echo_n "checking how to print strings... " >&6; }
4000 # Test print first, because it will be a builtin if present.
4001 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4002 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4004 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4007 # Use this function as a fallback that always works.
4008 func_fallback_echo ()
4010 eval 'cat <<_LTECHO_EOF
4014 ECHO='func_fallback_echo'
4017 # func_echo_all arg...
4018 # Invoke $ECHO with all args, space-separated.
4025 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4026 $as_echo "printf" >&6; } ;;
4027 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4028 $as_echo "print -r" >&6; } ;;
4029 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4030 $as_echo "cat" >&6; } ;;
4046 for ac_prog in gawk mawk nawk awk
4048 # Extract the first word of "$ac_prog", so it can be a program name with args.
4049 set dummy $ac_prog; ac_word=$2
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051 $as_echo_n "checking for $ac_word... " >&6; }
4052 if test "${ac_cv_prog_AWK+set}" = set; then :
4053 $as_echo_n "(cached) " >&6
4055 if test -n "$AWK"; then
4056 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 test -z "$as_dir" && as_dir=.
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4065 ac_cv_prog_AWK="$ac_prog"
4066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4076 if test -n "$AWK"; then
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4078 $as_echo "$AWK" >&6; }
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081 $as_echo "no" >&6; }
4085 test -n "$AWK" && break
4088 if test "${use_libtool}" = "yes"; then
4089 enable_win32_dll=yes
4092 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4093 if test -n "$ac_tool_prefix"; then
4094 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4095 set dummy ${ac_tool_prefix}as; ac_word=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if test "${ac_cv_prog_AS+set}" = set; then :
4099 $as_echo_n "(cached) " >&6
4101 if test -n "$AS"; then
4102 ac_cv_prog_AS="$AS" # Let the user override the test.
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4111 ac_cv_prog_AS="${ac_tool_prefix}as"
4112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4122 if test -n "$AS"; then
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4124 $as_echo "$AS" >&6; }
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 $as_echo "no" >&6; }
4132 if test -z "$ac_cv_prog_AS"; then
4134 # Extract the first word of "as", so it can be a program name with args.
4135 set dummy as; ac_word=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4139 $as_echo_n "(cached) " >&6
4141 if test -n "$ac_ct_AS"; then
4142 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 test -z "$as_dir" && as_dir=.
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4151 ac_cv_prog_ac_ct_AS="as"
4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4161 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4162 if test -n "$ac_ct_AS"; then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4164 $as_echo "$ac_ct_AS" >&6; }
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4170 if test "x$ac_ct_AS" = x; then
4173 case $cross_compiling:$ac_tool_warned in
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4177 ac_tool_warned=yes ;;
4185 if test -n "$ac_tool_prefix"; then
4186 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4187 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 $as_echo_n "checking for $ac_word... " >&6; }
4190 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
4191 $as_echo_n "(cached) " >&6
4193 if test -n "$DLLTOOL"; then
4194 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4203 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 DLLTOOL=$ac_cv_prog_DLLTOOL
4214 if test -n "$DLLTOOL"; then
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4216 $as_echo "$DLLTOOL" >&6; }
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 $as_echo "no" >&6; }
4224 if test -z "$ac_cv_prog_DLLTOOL"; then
4225 ac_ct_DLLTOOL=$DLLTOOL
4226 # Extract the first word of "dlltool", so it can be a program name with args.
4227 set dummy dlltool; ac_word=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
4231 $as_echo_n "(cached) " >&6
4233 if test -n "$ac_ct_DLLTOOL"; then
4234 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4243 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4254 if test -n "$ac_ct_DLLTOOL"; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4256 $as_echo "$ac_ct_DLLTOOL" >&6; }
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4262 if test "x$ac_ct_DLLTOOL" = x; then
4265 case $cross_compiling:$ac_tool_warned in
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4269 ac_tool_warned=yes ;;
4271 DLLTOOL=$ac_ct_DLLTOOL
4274 DLLTOOL="$ac_cv_prog_DLLTOOL"
4277 if test -n "$ac_tool_prefix"; then
4278 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4279 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4281 $as_echo_n "checking for $ac_word... " >&6; }
4282 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4283 $as_echo_n "(cached) " >&6
4285 if test -n "$OBJDUMP"; then
4286 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4295 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 OBJDUMP=$ac_cv_prog_OBJDUMP
4306 if test -n "$OBJDUMP"; then
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4308 $as_echo "$OBJDUMP" >&6; }
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 $as_echo "no" >&6; }
4316 if test -z "$ac_cv_prog_OBJDUMP"; then
4317 ac_ct_OBJDUMP=$OBJDUMP
4318 # Extract the first word of "objdump", so it can be a program name with args.
4319 set dummy objdump; ac_word=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4325 if test -n "$ac_ct_OBJDUMP"; then
4326 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4346 if test -n "$ac_ct_OBJDUMP"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4348 $as_echo "$ac_ct_OBJDUMP" >&6; }
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4354 if test "x$ac_ct_OBJDUMP" = x; then
4357 case $cross_compiling:$ac_tool_warned in
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4361 ac_tool_warned=yes ;;
4363 OBJDUMP=$ac_ct_OBJDUMP
4366 OBJDUMP="$ac_cv_prog_OBJDUMP"
4372 test -z "$AS" && AS=as
4378 test -z "$DLLTOOL" && DLLTOOL=dlltool
4384 test -z "$OBJDUMP" && OBJDUMP=objdump
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4395 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4400 macro_version='2.2.7a'
4401 macro_revision='1.3134'
4415 ltmain="$ac_aux_dir/ltmain.sh"
4417 # Backslashify metacharacters that are still active within
4418 # double-quoted strings.
4419 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4421 # Same as above, but do not quote variable references.
4422 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4424 # Sed substitution to delay expansion of an escaped shell variable in a
4425 # double_quote_subst'ed string.
4426 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4428 # Sed substitution to delay expansion of an escaped single quote.
4429 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4431 # Sed substitution to avoid accidental globbing in evaled expressions
4432 no_glob_subst='s/\*/\\\*/g'
4435 ac_cpp='$CPP $CPPFLAGS'
4436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4439 if test -n "$ac_tool_prefix"; then
4440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4443 $as_echo_n "checking for $ac_word... " >&6; }
4444 if test "${ac_cv_prog_CC+set}" = set; then :
4445 $as_echo_n "(cached) " >&6
4447 if test -n "$CC"; then
4448 ac_cv_prog_CC="$CC" # Let the user override the test.
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 test -z "$as_dir" && as_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4457 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 if test -n "$CC"; then
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4470 $as_echo "$CC" >&6; }
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473 $as_echo "no" >&6; }
4478 if test -z "$ac_cv_prog_CC"; then
4480 # Extract the first word of "gcc", so it can be a program name with args.
4481 set dummy gcc; ac_word=$2
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 $as_echo_n "checking for $ac_word... " >&6; }
4484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4485 $as_echo_n "(cached) " >&6
4487 if test -n "$ac_ct_CC"; then
4488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4497 ac_cv_prog_ac_ct_CC="gcc"
4498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4508 if test -n "$ac_ct_CC"; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4510 $as_echo "$ac_ct_CC" >&6; }
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513 $as_echo "no" >&6; }
4516 if test "x$ac_ct_CC" = x; then
4519 case $cross_compiling:$ac_tool_warned in
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4523 ac_tool_warned=yes ;;
4531 if test -z "$CC"; then
4532 if test -n "$ac_tool_prefix"; then
4533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4534 set dummy ${ac_tool_prefix}cc; ac_word=$2
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if test "${ac_cv_prog_CC+set}" = set; then :
4538 $as_echo_n "(cached) " >&6
4540 if test -n "$CC"; then
4541 ac_cv_prog_CC="$CC" # Let the user override the test.
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 test -z "$as_dir" && as_dir=.
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4550 ac_cv_prog_CC="${ac_tool_prefix}cc"
4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 if test -n "$CC"; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4563 $as_echo "$CC" >&6; }
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4572 if test -z "$CC"; then
4573 # Extract the first word of "cc", so it can be a program name with args.
4574 set dummy cc; ac_word=$2
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if test "${ac_cv_prog_CC+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
4580 if test -n "$CC"; then
4581 ac_cv_prog_CC="$CC" # Let the user override the test.
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4592 ac_prog_rejected=yes
4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 if test $ac_prog_rejected = yes; then
4604 # We found a bogon in the path, so make sure we never use it.
4605 set dummy $ac_cv_prog_CC
4607 if test $# != 0; then
4608 # We chose a different compiler from the bogus one.
4609 # However, it has the same basename, so the bogon will be chosen
4610 # first if we set CC to just the basename; use the full file name.
4612 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4618 if test -n "$CC"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4620 $as_echo "$CC" >&6; }
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4628 if test -z "$CC"; then
4629 if test -n "$ac_tool_prefix"; then
4630 for ac_prog in cl.exe
4632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if test "${ac_cv_prog_CC+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
4639 if test -n "$CC"; then
4640 ac_cv_prog_CC="$CC" # Let the user override the test.
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 if test -n "$CC"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4662 $as_echo "$CC" >&6; }
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4669 test -n "$CC" && break
4672 if test -z "$CC"; then
4674 for ac_prog in cl.exe
4676 # Extract the first word of "$ac_prog", so it can be a program name with args.
4677 set dummy $ac_prog; ac_word=$2
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4681 $as_echo_n "(cached) " >&6
4683 if test -n "$ac_ct_CC"; then
4684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 ac_cv_prog_ac_ct_CC="$ac_prog"
4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4704 if test -n "$ac_ct_CC"; then
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4706 $as_echo "$ac_ct_CC" >&6; }
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709 $as_echo "no" >&6; }
4713 test -n "$ac_ct_CC" && break
4716 if test "x$ac_ct_CC" = x; then
4719 case $cross_compiling:$ac_tool_warned in
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4723 ac_tool_warned=yes ;;
4732 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4734 as_fn_error "no acceptable C compiler found in \$PATH
4735 See \`config.log' for more details." "$LINENO" 5; }
4737 # Provide some information about the compiler.
4738 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4741 for ac_option in --version -v -V -qversion; do
4742 { { ac_try="$ac_compiler $ac_option >&5"
4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745 *) ac_try_echo=$ac_try;;
4747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4748 $as_echo "$ac_try_echo"; } >&5
4749 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4751 if test -s conftest.err; then
4753 ... rest of stderr output deleted ...
4754 10q' conftest.err >conftest.er1
4755 cat conftest.er1 >&5
4757 rm -f conftest.er1 conftest.err
4758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4759 test $ac_status = 0; }
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4773 ac_clean_files_save=$ac_clean_files
4774 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4775 # Try to create an executable without -o first, disregard a.out.
4776 # It will help us diagnose broken compilers, and finding out an intuition
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4779 $as_echo_n "checking whether the C compiler works... " >&6; }
4780 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4782 # The possible output files:
4783 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4786 for ac_file in $ac_files
4789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4790 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4795 if { { ac_try="$ac_link_default"
4797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798 *) ac_try_echo=$ac_try;;
4800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4801 $as_echo "$ac_try_echo"; } >&5
4802 (eval "$ac_link_default") 2>&5
4804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4805 test $ac_status = 0; }; then :
4806 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4807 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4808 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4809 # so that the user can short-circuit this test for compilers unknown to
4811 for ac_file in $ac_files ''
4813 test -f "$ac_file" || continue
4815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4818 # We found the default executable, but exeext='' is most
4822 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4824 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4826 # We set ac_cv_exeext here because the later test for it is not
4827 # safe: cross compilers may not add the suffix if given an `-o'
4828 # argument, so we may need to know it at that point already.
4829 # Even if this section looks crufty: it has the advantage of
4836 test "$ac_cv_exeext" = no && ac_cv_exeext=
4841 if test -z "$ac_file"; then :
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4844 $as_echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4849 { as_fn_set_status 77
4850 as_fn_error "C compiler cannot create executables
4851 See \`config.log' for more details." "$LINENO" 5; }; }
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4854 $as_echo "yes" >&6; }
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4857 $as_echo_n "checking for C compiler default output file name... " >&6; }
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4859 $as_echo "$ac_file" >&6; }
4860 ac_exeext=$ac_cv_exeext
4862 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4863 ac_clean_files=$ac_clean_files_save
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4865 $as_echo_n "checking for suffix of executables... " >&6; }
4866 if { { ac_try="$ac_link"
4868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869 *) ac_try_echo=$ac_try;;
4871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4872 $as_echo "$ac_try_echo"; } >&5
4873 (eval "$ac_link") 2>&5
4875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4876 test $ac_status = 0; }; then :
4877 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4878 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4879 # work properly (i.e., refer to `conftest.exe'), while it won't with
4881 for ac_file in conftest.exe conftest conftest.*; do
4882 test -f "$ac_file" || continue
4884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4885 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4893 as_fn_error "cannot compute suffix of executables: cannot compile and link
4894 See \`config.log' for more details." "$LINENO" 5; }
4896 rm -f conftest conftest$ac_cv_exeext
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4898 $as_echo "$ac_cv_exeext" >&6; }
4900 rm -f conftest.$ac_ext
4901 EXEEXT=$ac_cv_exeext
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4909 FILE *f = fopen ("conftest.out", "w");
4910 return ferror (f) || fclose (f) != 0;
4916 ac_clean_files="$ac_clean_files conftest.out"
4917 # Check that the compiler produces executables we can run. If not, either
4918 # the compiler is broken, or we cross compile.
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4920 $as_echo_n "checking whether we are cross compiling... " >&6; }
4921 if test "$cross_compiling" != yes; then
4922 { { ac_try="$ac_link"
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4928 $as_echo "$ac_try_echo"; } >&5
4929 (eval "$ac_link") 2>&5
4931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4932 test $ac_status = 0; }
4933 if { ac_try='./conftest$ac_cv_exeext'
4934 { { case "(($ac_try" in
4935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936 *) ac_try_echo=$ac_try;;
4938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4939 $as_echo "$ac_try_echo"; } >&5
4940 (eval "$ac_try") 2>&5
4942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4943 test $ac_status = 0; }; }; then
4946 if test "$cross_compiling" = maybe; then
4949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4951 as_fn_error "cannot run C compiled programs.
4952 If you meant to cross compile, use \`--host'.
4953 See \`config.log' for more details." "$LINENO" 5; }
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4958 $as_echo "$cross_compiling" >&6; }
4960 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4961 ac_clean_files=$ac_clean_files_save
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4963 $as_echo_n "checking for suffix of object files... " >&6; }
4964 if test "${ac_cv_objext+set}" = set; then :
4965 $as_echo_n "(cached) " >&6
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4978 rm -f conftest.o conftest.obj
4979 if { { ac_try="$ac_compile"
4981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982 *) ac_try_echo=$ac_try;;
4984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4985 $as_echo "$ac_try_echo"; } >&5
4986 (eval "$ac_compile") 2>&5
4988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4989 test $ac_status = 0; }; then :
4990 for ac_file in conftest.o conftest.obj conftest.*; do
4991 test -f "$ac_file" || continue;
4993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4994 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4999 $as_echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5004 as_fn_error "cannot compute suffix of object files: cannot compile
5005 See \`config.log' for more details." "$LINENO" 5; }
5007 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5010 $as_echo "$ac_cv_objext" >&6; }
5011 OBJEXT=$ac_cv_objext
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5014 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5015 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5016 $as_echo_n "(cached) " >&6
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5032 if ac_fn_c_try_compile "$LINENO"; then :
5037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5038 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5042 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5043 if test $ac_compiler_gnu = yes; then
5048 ac_test_CFLAGS=${CFLAGS+set}
5049 ac_save_CFLAGS=$CFLAGS
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5051 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5052 if test "${ac_cv_prog_cc_g+set}" = set; then :
5053 $as_echo_n "(cached) " >&6
5055 ac_save_c_werror_flag=$ac_c_werror_flag
5056 ac_c_werror_flag=yes
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5070 if ac_fn_c_try_compile "$LINENO"; then :
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5085 if ac_fn_c_try_compile "$LINENO"; then :
5088 ac_c_werror_flag=$ac_save_c_werror_flag
5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091 /* end confdefs.h. */
5101 if ac_fn_c_try_compile "$LINENO"; then :
5104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5109 ac_c_werror_flag=$ac_save_c_werror_flag
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5112 $as_echo "$ac_cv_prog_cc_g" >&6; }
5113 if test "$ac_test_CFLAGS" = set; then
5114 CFLAGS=$ac_save_CFLAGS
5115 elif test $ac_cv_prog_cc_g = yes; then
5116 if test "$GCC" = yes; then
5122 if test "$GCC" = yes; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5129 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5130 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5131 $as_echo_n "(cached) " >&6
5133 ac_cv_prog_cc_c89=no
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5139 #include <sys/types.h>
5140 #include <sys/stat.h>
5141 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5142 struct buf { int x; };
5143 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5144 static char *e (p, i)
5150 static char *f (char * (*g) (char **, int), char **p, ...)
5155 s = g (p, va_arg (v,int));
5160 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5161 function prototypes and stuff, but not '\xHH' hex character constants.
5162 These don't provoke an error unfortunately, instead are silently treated
5163 as 'x'. The following induces an error, until -std is added to get
5164 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5165 array size at least. It's necessary to write '\x00'==0 to get something
5166 that's true only with -std. */
5167 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5169 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5170 inside strings and character constants. */
5172 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5174 int test (int i, double x);
5175 struct s1 {int (*f) (int a);};
5176 struct s2 {int (*f) (double a);};
5177 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5183 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5188 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5189 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5191 CC="$ac_save_CC $ac_arg"
5192 if ac_fn_c_try_compile "$LINENO"; then :
5193 ac_cv_prog_cc_c89=$ac_arg
5195 rm -f core conftest.err conftest.$ac_objext
5196 test "x$ac_cv_prog_cc_c89" != "xno" && break
5198 rm -f conftest.$ac_ext
5203 case "x$ac_cv_prog_cc_c89" in
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5206 $as_echo "none needed" >&6; } ;;
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5209 $as_echo "unsupported" >&6; } ;;
5211 CC="$CC $ac_cv_prog_cc_c89"
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5213 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5215 if test "x$ac_cv_prog_cc_c89" != xno; then :
5220 ac_cpp='$CPP $CPPFLAGS'
5221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5225 depcc="$CC" am_compiler_list=
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5228 $as_echo_n "checking dependency style of $depcc... " >&6; }
5229 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5230 $as_echo_n "(cached) " >&6
5232 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5233 # We make a subdir and do the tests there. Otherwise we can end up
5234 # making bogus files that we don't know about and never remove. For
5235 # instance it was reported that on HP-UX the gcc test will end up
5236 # making a dummy file named `D' -- because `-MD' means `put the output
5239 # Copy depcomp to subdir because otherwise we won't find it if we're
5240 # using a relative directory.
5241 cp "$am_depcomp" conftest.dir
5243 # We will build objects and dependencies in a subdirectory because
5244 # it helps to detect inapplicable dependency modes. For instance
5245 # both Tru64's cc and ICC support -MD to output dependencies as a
5246 # side effect of compilation, but ICC will put the dependencies in
5247 # the current directory while Tru64 will put them in the object
5251 am_cv_CC_dependencies_compiler_type=none
5252 if test "$am_compiler_list" = ""; then
5253 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5256 case " $depcc " in #(
5257 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5260 for depmode in $am_compiler_list; do
5261 # Setup a source with many dependencies, because some compilers
5262 # like to wrap large dependency lists on column 80 (with \), and
5263 # we should not choose a depcomp mode which is confused by this.
5265 # We need to recreate these files for each test, as the compiler may
5266 # overwrite some of them when testing with obscure command lines.
5267 # This happens at least with the AIX C compiler.
5269 for i in 1 2 3 4 5 6; do
5270 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5271 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5272 # Solaris 8's {/usr,}/bin/sh.
5273 touch sub/conftst$i.h
5275 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5277 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5278 # mode. It turns out that the SunPro C++ compiler does not properly
5279 # handle `-M -o', and we need to detect this. Also, some Intel
5280 # versions had trouble with output in subdirs
5281 am__obj=sub/conftest.${OBJEXT-o}
5282 am__minus_obj="-o $am__obj"
5285 # This depmode causes a compiler race in universal mode.
5286 test "$am__universal" = false || continue
5289 # after this tag, mechanisms are not by side-effect, so they'll
5290 # only be used when explicitly requested
5291 if test "x$enable_dependency_tracking" = xyes; then
5297 msvisualcpp | msvcmsys)
5298 # This compiler won't grok `-c -o', but also, the minuso test has
5299 # not run yet. These depmodes are late enough in the game, and
5300 # so weak that their functioning should not be impacted.
5301 am__obj=conftest.${OBJEXT-o}
5306 if depmode=$depmode \
5307 source=sub/conftest.c object=$am__obj \
5308 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5309 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5310 >/dev/null 2>conftest.err &&
5311 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5312 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5313 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5314 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5315 # icc doesn't choke on unknown options, it will just issue warnings
5316 # or remarks (even with -Werror). So we grep stderr for any message
5317 # that says an option was ignored or not supported.
5318 # When given -MP, icc 7.0 and 7.1 complain thusly:
5319 # icc: Command line warning: ignoring option '-M'; no argument required
5320 # The diagnosis changed in icc 8.0:
5321 # icc: Command line remark: option '-MP' not supported
5322 if (grep 'ignoring option' conftest.err ||
5323 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5324 am_cv_CC_dependencies_compiler_type=$depmode
5333 am_cv_CC_dependencies_compiler_type=none
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5338 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5339 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5342 test "x$enable_dependency_tracking" != xno \
5343 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5345 am__fastdepCC_FALSE='#'
5347 am__fastdepCC_TRUE='#'
5348 am__fastdepCC_FALSE=
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5353 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5354 if test "${ac_cv_path_GREP+set}" = set; then :
5355 $as_echo_n "(cached) " >&6
5357 if test -z "$GREP"; then
5358 ac_path_GREP_found=false
5359 # Loop through the user's path and test for each of PROGNAME-LIST
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5364 test -z "$as_dir" && as_dir=.
5365 for ac_prog in grep ggrep; do
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5368 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5369 # Check for GNU ac_path_GREP and select it if it is found.
5370 # Check for GNU $ac_path_GREP
5371 case `"$ac_path_GREP" --version 2>&1` in
5373 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5376 $as_echo_n 0123456789 >"conftest.in"
5379 cat "conftest.in" "conftest.in" >"conftest.tmp"
5380 mv "conftest.tmp" "conftest.in"
5381 cp "conftest.in" "conftest.nl"
5382 $as_echo 'GREP' >> "conftest.nl"
5383 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5384 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5385 as_fn_arith $ac_count + 1 && ac_count=$as_val
5386 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5387 # Best one so far, save it but keep looking for a better one
5388 ac_cv_path_GREP="$ac_path_GREP"
5389 ac_path_GREP_max=$ac_count
5391 # 10*(2^10) chars as input seems more than enough
5392 test $ac_count -gt 10 && break
5394 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5397 $ac_path_GREP_found && break 3
5402 if test -z "$ac_cv_path_GREP"; then
5403 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5406 ac_cv_path_GREP=$GREP
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5411 $as_echo "$ac_cv_path_GREP" >&6; }
5412 GREP="$ac_cv_path_GREP"
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5416 $as_echo_n "checking for egrep... " >&6; }
5417 if test "${ac_cv_path_EGREP+set}" = set; then :
5418 $as_echo_n "(cached) " >&6
5420 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5421 then ac_cv_path_EGREP="$GREP -E"
5423 if test -z "$EGREP"; then
5424 ac_path_EGREP_found=false
5425 # Loop through the user's path and test for each of PROGNAME-LIST
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5430 test -z "$as_dir" && as_dir=.
5431 for ac_prog in egrep; do
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5434 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5435 # Check for GNU ac_path_EGREP and select it if it is found.
5436 # Check for GNU $ac_path_EGREP
5437 case `"$ac_path_EGREP" --version 2>&1` in
5439 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5442 $as_echo_n 0123456789 >"conftest.in"
5445 cat "conftest.in" "conftest.in" >"conftest.tmp"
5446 mv "conftest.tmp" "conftest.in"
5447 cp "conftest.in" "conftest.nl"
5448 $as_echo 'EGREP' >> "conftest.nl"
5449 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5450 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5451 as_fn_arith $ac_count + 1 && ac_count=$as_val
5452 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5453 # Best one so far, save it but keep looking for a better one
5454 ac_cv_path_EGREP="$ac_path_EGREP"
5455 ac_path_EGREP_max=$ac_count
5457 # 10*(2^10) chars as input seems more than enough
5458 test $ac_count -gt 10 && break
5460 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5463 $ac_path_EGREP_found && break 3
5468 if test -z "$ac_cv_path_EGREP"; then
5469 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5472 ac_cv_path_EGREP=$EGREP
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5478 $as_echo "$ac_cv_path_EGREP" >&6; }
5479 EGREP="$ac_cv_path_EGREP"
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5483 $as_echo_n "checking for fgrep... " >&6; }
5484 if test "${ac_cv_path_FGREP+set}" = set; then :
5485 $as_echo_n "(cached) " >&6
5487 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5488 then ac_cv_path_FGREP="$GREP -F"
5490 if test -z "$FGREP"; then
5491 ac_path_FGREP_found=false
5492 # Loop through the user's path and test for each of PROGNAME-LIST
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5497 test -z "$as_dir" && as_dir=.
5498 for ac_prog in fgrep; do
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5501 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5502 # Check for GNU ac_path_FGREP and select it if it is found.
5503 # Check for GNU $ac_path_FGREP
5504 case `"$ac_path_FGREP" --version 2>&1` in
5506 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5509 $as_echo_n 0123456789 >"conftest.in"
5512 cat "conftest.in" "conftest.in" >"conftest.tmp"
5513 mv "conftest.tmp" "conftest.in"
5514 cp "conftest.in" "conftest.nl"
5515 $as_echo 'FGREP' >> "conftest.nl"
5516 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5517 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5518 as_fn_arith $ac_count + 1 && ac_count=$as_val
5519 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5520 # Best one so far, save it but keep looking for a better one
5521 ac_cv_path_FGREP="$ac_path_FGREP"
5522 ac_path_FGREP_max=$ac_count
5524 # 10*(2^10) chars as input seems more than enough
5525 test $ac_count -gt 10 && break
5527 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5530 $ac_path_FGREP_found && break 3
5535 if test -z "$ac_cv_path_FGREP"; then
5536 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5539 ac_cv_path_FGREP=$FGREP
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5545 $as_echo "$ac_cv_path_FGREP" >&6; }
5546 FGREP="$ac_cv_path_FGREP"
5549 test -z "$GREP" && GREP=grep
5569 # Check whether --with-gnu-ld was given.
5570 if test "${with_gnu_ld+set}" = set; then :
5571 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5577 if test "$GCC" = yes; then
5578 # Check if gcc -print-prog-name=ld gives a path.
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5580 $as_echo_n "checking for ld used by $CC... " >&6; }
5583 # gcc leaves a trailing carriage return which upsets mingw
5584 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5586 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5589 # Accept absolute paths.
5591 re_direlt='/[^/][^/]*/\.\./'
5592 # Canonicalize the pathname of ld
5593 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5594 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5595 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5597 test -z "$LD" && LD="$ac_prog"
5600 # If it fails, then pretend we aren't using GCC.
5604 # If it is relative, then search for the first ld in PATH.
5608 elif test "$with_gnu_ld" = yes; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5610 $as_echo_n "checking for GNU ld... " >&6; }
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5613 $as_echo_n "checking for non-GNU ld... " >&6; }
5615 if test "${lt_cv_path_LD+set}" = set; then :
5616 $as_echo_n "(cached) " >&6
5618 if test -z "$LD"; then
5619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5620 for ac_dir in $PATH; do
5622 test -z "$ac_dir" && ac_dir=.
5623 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5624 lt_cv_path_LD="$ac_dir/$ac_prog"
5625 # Check to see if the program is GNU ld. I'd rather use --version,
5626 # but apparently some variants of GNU ld only accept -v.
5627 # Break only if it was the GNU/non-GNU ld that we prefer.
5628 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5629 *GNU* | *'with BFD'*)
5630 test "$with_gnu_ld" != no && break
5633 test "$with_gnu_ld" != yes && break
5640 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5645 if test -n "$LD"; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5647 $as_echo "$LD" >&6; }
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5652 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5654 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5655 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5656 $as_echo_n "(cached) " >&6
5658 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5659 case `$LD -v 2>&1 </dev/null` in
5660 *GNU* | *'with BFD'*)
5661 lt_cv_prog_gnu_ld=yes
5664 lt_cv_prog_gnu_ld=no
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5669 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5670 with_gnu_ld=$lt_cv_prog_gnu_ld
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5681 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5682 if test "${lt_cv_path_NM+set}" = set; then :
5683 $as_echo_n "(cached) " >&6
5685 if test -n "$NM"; then
5686 # Let the user override the test.
5689 lt_nm_to_check="${ac_tool_prefix}nm"
5690 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5691 lt_nm_to_check="$lt_nm_to_check nm"
5693 for lt_tmp_nm in $lt_nm_to_check; do
5694 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5695 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5697 test -z "$ac_dir" && ac_dir=.
5698 tmp_nm="$ac_dir/$lt_tmp_nm"
5699 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5700 # Check to see if the nm accepts a BSD-compat flag.
5701 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5702 # nm: unknown option "B" ignored
5703 # Tru64's nm complains that /dev/null is an invalid object file
5704 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5705 */dev/null* | *'Invalid file or object type'*)
5706 lt_cv_path_NM="$tmp_nm -B"
5710 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5712 lt_cv_path_NM="$tmp_nm -p"
5716 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5717 continue # so that we can try to find one that supports BSD flags
5726 : ${lt_cv_path_NM=no}
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5730 $as_echo "$lt_cv_path_NM" >&6; }
5731 if test "$lt_cv_path_NM" != "no"; then
5734 # Didn't find any BSD compatible name lister, look for dumpbin.
5735 if test -n "$DUMPBIN"; then :
5736 # Let the user override the test.
5738 if test -n "$ac_tool_prefix"; then
5739 for ac_prog in dumpbin "link -dump"
5741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 $as_echo_n "checking for $ac_word... " >&6; }
5745 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5746 $as_echo_n "(cached) " >&6
5748 if test -n "$DUMPBIN"; then
5749 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5758 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768 DUMPBIN=$ac_cv_prog_DUMPBIN
5769 if test -n "$DUMPBIN"; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5771 $as_echo "$DUMPBIN" >&6; }
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5778 test -n "$DUMPBIN" && break
5781 if test -z "$DUMPBIN"; then
5782 ac_ct_DUMPBIN=$DUMPBIN
5783 for ac_prog in dumpbin "link -dump"
5785 # Extract the first word of "$ac_prog", so it can be a program name with args.
5786 set dummy $ac_prog; ac_word=$2
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788 $as_echo_n "checking for $ac_word... " >&6; }
5789 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5790 $as_echo_n "(cached) " >&6
5792 if test -n "$ac_ct_DUMPBIN"; then
5793 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799 test -z "$as_dir" && as_dir=.
5800 for ac_exec_ext in '' $ac_executable_extensions; do
5801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5802 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5813 if test -n "$ac_ct_DUMPBIN"; then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5815 $as_echo "$ac_ct_DUMPBIN" >&6; }
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5822 test -n "$ac_ct_DUMPBIN" && break
5825 if test "x$ac_ct_DUMPBIN" = x; then
5828 case $cross_compiling:$ac_tool_warned in
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5832 ac_tool_warned=yes ;;
5834 DUMPBIN=$ac_ct_DUMPBIN
5838 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5840 DUMPBIN="$DUMPBIN -symbols"
5848 if test "$DUMPBIN" != ":"; then
5852 test -z "$NM" && NM=nm
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5860 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5861 if test "${lt_cv_nm_interface+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5864 lt_cv_nm_interface="BSD nm"
5865 echo "int some_variable = 0;" > conftest.$ac_ext
5866 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5867 (eval "$ac_compile" 2>conftest.err)
5868 cat conftest.err >&5
5869 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5870 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5871 cat conftest.err >&5
5872 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5873 cat conftest.out >&5
5874 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5875 lt_cv_nm_interface="MS dumpbin"
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5880 $as_echo "$lt_cv_nm_interface" >&6; }
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5883 $as_echo_n "checking whether ln -s works... " >&6; }
5885 if test "$LN_S" = "ln -s"; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5887 $as_echo "yes" >&6; }
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5890 $as_echo "no, using $LN_S" >&6; }
5893 # find the maximum length of command line arguments
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5895 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5896 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5897 $as_echo_n "(cached) " >&6
5904 # On DJGPP, this test can blow up pretty badly due to problems in libc
5905 # (any single argument exceeding 2000 bytes causes a buffer overrun
5906 # during glob expansion). Even if it were fixed, the result of this
5907 # check would be larger than it should be.
5908 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5912 # Under GNU Hurd, this test is not required because there is
5913 # no limit to the length of command line arguments.
5914 # Libtool will interpret -1 as no limit whatsoever
5915 lt_cv_sys_max_cmd_len=-1;
5918 cygwin* | mingw* | cegcc*)
5919 # On Win9x/ME, this test blows up -- it succeeds, but takes
5920 # about 5 minutes as the teststring grows exponentially.
5921 # Worse, since 9x/ME are not pre-emptively multitasking,
5922 # you end up with a "frozen" computer, even though with patience
5923 # the test eventually succeeds (with a max line length of 256k).
5924 # Instead, let's just punt: use the minimum linelength reported by
5925 # all of the supported platforms: 8192 (on NT/2K/XP).
5926 lt_cv_sys_max_cmd_len=8192;
5930 # On MiNT this can take a long time and run out of memory.
5931 lt_cv_sys_max_cmd_len=8192;
5935 # On AmigaOS with pdksh, this test takes hours, literally.
5936 # So we just punt and use a minimum line length of 8192.
5937 lt_cv_sys_max_cmd_len=8192;
5940 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5941 # This has been around since 386BSD, at least. Likely further.
5942 if test -x /sbin/sysctl; then
5943 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5944 elif test -x /usr/sbin/sysctl; then
5945 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5947 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5949 # And add a safety zone
5950 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5951 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5955 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5956 lt_cv_sys_max_cmd_len=196608
5960 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5961 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5962 # nice to cause kernel panics so lets avoid the loop below.
5963 # First set a reasonable default.
5964 lt_cv_sys_max_cmd_len=16384
5966 if test -x /sbin/sysconfig; then
5967 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5968 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5973 lt_cv_sys_max_cmd_len=102400
5975 sysv5* | sco5v6* | sysv4.2uw2*)
5976 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5977 if test -n "$kargmax"; then
5978 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5980 lt_cv_sys_max_cmd_len=32768
5984 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5985 if test -n "$lt_cv_sys_max_cmd_len"; then
5986 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5987 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5989 # Make teststring a little bigger before we do anything with it.
5990 # a 1K string should be a reasonable start.
5991 for i in 1 2 3 4 5 6 7 8 ; do
5992 teststring=$teststring$teststring
5994 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5995 # If test is not a shell built-in, we'll probably end up computing a
5996 # maximum length that is only half of the actual maximum length, but
5998 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5999 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6000 test $i != 17 # 1/2 MB should be enough
6003 teststring=$teststring$teststring
6005 # Only check the string length outside the loop.
6006 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6008 # Add a significant safety factor because C++ compilers can tack on
6009 # massive amounts of additional arguments before passing them to the
6010 # linker. It appears as though 1/2 is a usable value.
6011 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6018 if test -n $lt_cv_sys_max_cmd_len ; then
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6020 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6023 $as_echo "none" >&6; }
6025 max_cmd_len=$lt_cv_sys_max_cmd_len
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6037 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6038 # Try some XSI features
6041 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6043 && eval 'test $(( 1 + 1 )) -eq 2 \
6044 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6047 $as_echo "$xsi_shell" >&6; }
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6051 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6053 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6055 && lt_shell_append=yes
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6057 $as_echo "$lt_shell_append" >&6; }
6060 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6070 # test EBCDIC or ASCII
6071 case `echo X|tr X '\101'` in
6072 A) # ASCII based system
6073 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6074 lt_SP2NL='tr \040 \012'
6075 lt_NL2SP='tr \015\012 \040\040'
6077 *) # EBCDIC based system
6078 lt_SP2NL='tr \100 \n'
6079 lt_NL2SP='tr \r\n \100\100'
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6092 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6093 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6094 $as_echo_n "(cached) " >&6
6096 lt_cv_ld_reload_flag='-r'
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6099 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6100 reload_flag=$lt_cv_ld_reload_flag
6101 case $reload_flag in
6103 *) reload_flag=" $reload_flag" ;;
6105 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6108 if test "$GCC" = yes; then
6109 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6111 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6124 if test -n "$ac_tool_prefix"; then
6125 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6126 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128 $as_echo_n "checking for $ac_word... " >&6; }
6129 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6130 $as_echo_n "(cached) " >&6
6132 if test -n "$OBJDUMP"; then
6133 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 test -z "$as_dir" && as_dir=.
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6142 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6152 OBJDUMP=$ac_cv_prog_OBJDUMP
6153 if test -n "$OBJDUMP"; then
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6155 $as_echo "$OBJDUMP" >&6; }
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158 $as_echo "no" >&6; }
6163 if test -z "$ac_cv_prog_OBJDUMP"; then
6164 ac_ct_OBJDUMP=$OBJDUMP
6165 # Extract the first word of "objdump", so it can be a program name with args.
6166 set dummy objdump; ac_word=$2
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168 $as_echo_n "checking for $ac_word... " >&6; }
6169 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6170 $as_echo_n "(cached) " >&6
6172 if test -n "$ac_ct_OBJDUMP"; then
6173 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 test -z "$as_dir" && as_dir=.
6180 for ac_exec_ext in '' $ac_executable_extensions; do
6181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6182 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6193 if test -n "$ac_ct_OBJDUMP"; then
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6195 $as_echo "$ac_ct_OBJDUMP" >&6; }
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 $as_echo "no" >&6; }
6201 if test "x$ac_ct_OBJDUMP" = x; then
6204 case $cross_compiling:$ac_tool_warned in
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6208 ac_tool_warned=yes ;;
6210 OBJDUMP=$ac_ct_OBJDUMP
6213 OBJDUMP="$ac_cv_prog_OBJDUMP"
6216 test -z "$OBJDUMP" && OBJDUMP=objdump
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6224 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6225 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6226 $as_echo_n "(cached) " >&6
6228 lt_cv_file_magic_cmd='$MAGIC_CMD'
6229 lt_cv_file_magic_test_file=
6230 lt_cv_deplibs_check_method='unknown'
6231 # Need to set the preceding variable on all platforms that support
6232 # interlibrary dependencies.
6233 # 'none' -- dependencies not supported.
6234 # `unknown' -- same as none, but documents that we really don't know.
6235 # 'pass_all' -- all dependencies passed with no checks.
6236 # 'test_compile' -- check by making test program.
6237 # 'file_magic [[regex]]' -- check by looking for files in library path
6238 # which responds to the $file_magic_cmd with a given extended regex.
6239 # If you have `file' or equivalent on your system and you're not sure
6240 # whether `pass_all' will *always* work, you probably want this one.
6244 lt_cv_deplibs_check_method=pass_all
6248 lt_cv_deplibs_check_method=pass_all
6252 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6253 lt_cv_file_magic_cmd='/usr/bin/file -L'
6254 lt_cv_file_magic_test_file=/shlib/libc.so
6258 # func_win32_libid is a shell function defined in ltmain.sh
6259 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6260 lt_cv_file_magic_cmd='func_win32_libid'
6264 # Base MSYS/MinGW do not provide the 'file' command needed by
6265 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6266 # unless we find 'file', for example because we are cross-compiling.
6267 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6268 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6269 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6270 lt_cv_file_magic_cmd='func_win32_libid'
6272 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6273 lt_cv_file_magic_cmd='$OBJDUMP -f'
6278 # use the weaker test based on 'objdump'. See mingw*.
6279 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6280 lt_cv_file_magic_cmd='$OBJDUMP -f'
6283 darwin* | rhapsody*)
6284 lt_cv_deplibs_check_method=pass_all
6287 freebsd* | dragonfly*)
6288 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6291 # Not sure whether the presence of OpenBSD here was a mistake.
6292 # Let's accept both of them until this is cleared up.
6293 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6294 lt_cv_file_magic_cmd=/usr/bin/file
6295 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6299 lt_cv_deplibs_check_method=pass_all
6304 lt_cv_deplibs_check_method=pass_all
6308 lt_cv_deplibs_check_method=pass_all
6311 hpux10.20* | hpux11*)
6312 lt_cv_file_magic_cmd=/usr/bin/file
6315 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6316 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6319 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]'
6320 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6323 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6324 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6330 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6331 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6334 irix5* | irix6* | nonstopux*)
6336 *-32|*"-32 ") libmagic=32-bit;;
6337 *-n32|*"-n32 ") libmagic=N32;;
6338 *-64|*"-64 ") libmagic=64-bit;;
6339 *) libmagic=never-match;;
6341 lt_cv_deplibs_check_method=pass_all
6344 # This must be Linux ELF.
6345 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6346 lt_cv_deplibs_check_method=pass_all
6350 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6351 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6358 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6359 lt_cv_file_magic_cmd=/usr/bin/file
6360 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6364 lt_cv_deplibs_check_method=pass_all
6368 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6375 osf3* | osf4* | osf5*)
6376 lt_cv_deplibs_check_method=pass_all
6380 lt_cv_deplibs_check_method=pass_all
6384 lt_cv_deplibs_check_method=pass_all
6387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6388 lt_cv_deplibs_check_method=pass_all
6392 case $host_vendor in
6394 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]'
6395 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6398 lt_cv_deplibs_check_method=pass_all
6401 lt_cv_file_magic_cmd='/bin/file'
6402 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6405 lt_cv_file_magic_cmd='/bin/file'
6406 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6407 lt_cv_file_magic_test_file=/lib/libc.so
6410 lt_cv_deplibs_check_method=pass_all
6413 lt_cv_deplibs_check_method=pass_all
6419 lt_cv_deplibs_check_method=pass_all
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6425 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6426 file_magic_cmd=$lt_cv_file_magic_cmd
6427 deplibs_check_method=$lt_cv_deplibs_check_method
6428 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6441 if test -n "$ac_tool_prefix"; then
6442 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6443 set dummy ${ac_tool_prefix}ar; ac_word=$2
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445 $as_echo_n "checking for $ac_word... " >&6; }
6446 if test "${ac_cv_prog_AR+set}" = set; then :
6447 $as_echo_n "(cached) " >&6
6449 if test -n "$AR"; then
6450 ac_cv_prog_AR="$AR" # Let the user override the test.
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459 ac_cv_prog_AR="${ac_tool_prefix}ar"
6460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 if test -n "$AR"; then
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6472 $as_echo "$AR" >&6; }
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 $as_echo "no" >&6; }
6480 if test -z "$ac_cv_prog_AR"; then
6482 # Extract the first word of "ar", so it can be a program name with args.
6483 set dummy ar; ac_word=$2
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6487 $as_echo_n "(cached) " >&6
6489 if test -n "$ac_ct_AR"; then
6490 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6499 ac_cv_prog_ac_ct_AR="ar"
6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6510 if test -n "$ac_ct_AR"; then
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6512 $as_echo "$ac_ct_AR" >&6; }
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 $as_echo "no" >&6; }
6518 if test "x$ac_ct_AR" = x; then
6521 case $cross_compiling:$ac_tool_warned in
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6525 ac_tool_warned=yes ;;
6533 test -z "$AR" && AR=ar
6534 test -z "$AR_FLAGS" && AR_FLAGS=cru
6546 if test -n "$ac_tool_prefix"; then
6547 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6548 set dummy ${ac_tool_prefix}strip; ac_word=$2
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6550 $as_echo_n "checking for $ac_word... " >&6; }
6551 if test "${ac_cv_prog_STRIP+set}" = set; then :
6552 $as_echo_n "(cached) " >&6
6554 if test -n "$STRIP"; then
6555 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 test -z "$as_dir" && as_dir=.
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6564 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 STRIP=$ac_cv_prog_STRIP
6575 if test -n "$STRIP"; then
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6577 $as_echo "$STRIP" >&6; }
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6580 $as_echo "no" >&6; }
6585 if test -z "$ac_cv_prog_STRIP"; then
6587 # Extract the first word of "strip", so it can be a program name with args.
6588 set dummy strip; ac_word=$2
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590 $as_echo_n "checking for $ac_word... " >&6; }
6591 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6592 $as_echo_n "(cached) " >&6
6594 if test -n "$ac_ct_STRIP"; then
6595 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6604 ac_cv_prog_ac_ct_STRIP="strip"
6605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6615 if test -n "$ac_ct_STRIP"; then
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6617 $as_echo "$ac_ct_STRIP" >&6; }
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 $as_echo "no" >&6; }
6623 if test "x$ac_ct_STRIP" = x; then
6626 case $cross_compiling:$ac_tool_warned in
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6630 ac_tool_warned=yes ;;
6635 STRIP="$ac_cv_prog_STRIP"
6638 test -z "$STRIP" && STRIP=:
6645 if test -n "$ac_tool_prefix"; then
6646 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6647 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6649 $as_echo_n "checking for $ac_word... " >&6; }
6650 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6651 $as_echo_n "(cached) " >&6
6653 if test -n "$RANLIB"; then
6654 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 test -z "$as_dir" && as_dir=.
6661 for ac_exec_ext in '' $ac_executable_extensions; do
6662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6663 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6673 RANLIB=$ac_cv_prog_RANLIB
6674 if test -n "$RANLIB"; then
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6676 $as_echo "$RANLIB" >&6; }
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6679 $as_echo "no" >&6; }
6684 if test -z "$ac_cv_prog_RANLIB"; then
6685 ac_ct_RANLIB=$RANLIB
6686 # Extract the first word of "ranlib", so it can be a program name with args.
6687 set dummy ranlib; ac_word=$2
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689 $as_echo_n "checking for $ac_word... " >&6; }
6690 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6691 $as_echo_n "(cached) " >&6
6693 if test -n "$ac_ct_RANLIB"; then
6694 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6703 ac_cv_prog_ac_ct_RANLIB="ranlib"
6704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6714 if test -n "$ac_ct_RANLIB"; then
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6716 $as_echo "$ac_ct_RANLIB" >&6; }
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 $as_echo "no" >&6; }
6722 if test "x$ac_ct_RANLIB" = x; then
6725 case $cross_compiling:$ac_tool_warned in
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6729 ac_tool_warned=yes ;;
6731 RANLIB=$ac_ct_RANLIB
6734 RANLIB="$ac_cv_prog_RANLIB"
6737 test -z "$RANLIB" && RANLIB=:
6744 # Determine commands to create old-style static archives.
6745 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6746 old_postinstall_cmds='chmod 644 $oldlib'
6747 old_postuninstall_cmds=
6749 if test -n "$RANLIB"; then
6752 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6755 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6758 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6763 lock_old_archive_extraction=yes ;;
6765 lock_old_archive_extraction=no ;;
6806 # If no C compiler was specified, use CC.
6809 # If no C compiler flags were specified, use CFLAGS.
6810 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6812 # Allow CC to be a program name with arguments.
6816 # Check for command to grab the raw symbol name followed by C symbol from nm.
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6818 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6819 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6820 $as_echo_n "(cached) " >&6
6823 # These are sane defaults that work on at least a few old systems.
6824 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6826 # Character class describing NM global symbol codes.
6827 symcode='[BCDEGRST]'
6829 # Regexp to match symbols that can be accessed directly from C.
6830 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6832 # Define system-specific variables.
6837 cygwin* | mingw* | pw32* | cegcc*)
6838 symcode='[ABCDGISTW]'
6841 if test "$host_cpu" = ia64; then
6842 symcode='[ABCDEGRST]'
6846 symcode='[BCDEGRST]'
6849 symcode='[BCDEGQRST]'
6860 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6868 # If we're using GNU nm, then use its standard symbol codes.
6869 case `$NM -V 2>&1` in
6870 *GNU* | *'with BFD'*)
6871 symcode='[ABCDGIRSTW]' ;;
6874 # Transform an extracted symbol line into a proper C declaration.
6875 # Some systems (esp. on ia64) link data and code symbols differently,
6876 # so use this general approach.
6877 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6879 # Transform an extracted symbol line into symbol name and symbol address
6880 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6881 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'"
6883 # Handle CRLF in mingw tool chain
6887 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6891 # Try without a prefix underscore, then with it.
6892 for ac_symprfx in "" "_"; do
6894 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6895 symxfrm="\\1 $ac_symprfx\\2 \\2"
6897 # Write the raw and C identifiers.
6898 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6899 # Fake it for dumpbin and say T for any non-static function
6900 # and D for any global variable.
6901 # Also find C++ and __fastcall symbols from MSVC++,
6902 # which start with @ or ?.
6903 lt_cv_sys_global_symbol_pipe="$AWK '"\
6904 " {last_section=section; section=\$ 3};"\
6905 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6906 " \$ 0!~/External *\|/{next};"\
6907 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6908 " {if(hide[section]) next};"\
6909 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6910 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6911 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6912 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6913 " ' prfx=^$ac_symprfx"
6915 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6918 # Check to see that the pipe works correctly.
6922 cat > conftest.$ac_ext <<_LT_EOF
6927 void nm_test_func(void);
6928 void nm_test_func(void){}
6932 int main(){nm_test_var='a';nm_test_func();return(0);}
6935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6936 (eval $ac_compile) 2>&5
6938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6939 test $ac_status = 0; }; then
6940 # Now try to grab the symbols.
6942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6943 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6946 test $ac_status = 0; } && test -s "$nlist"; then
6947 # Try sorting and uniquifying the output.
6948 if sort "$nlist" | uniq > "$nlist"T; then
6949 mv -f "$nlist"T "$nlist"
6954 # Make sure that we snagged all the symbols we need.
6955 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6956 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6957 cat <<_LT_EOF > conftest.$ac_ext
6963 # Now generate the symbol file.
6964 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6966 cat <<_LT_EOF >> conftest.$ac_ext
6968 /* The mapping between symbol names and symbols. */
6973 lt__PROGRAM__LTX_preloaded_symbols[] =
6975 { "@PROGRAM@", (void *) 0 },
6977 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6978 cat <<\_LT_EOF >> conftest.$ac_ext
6982 /* This works around a problem in FreeBSD linker */
6983 #ifdef FREEBSD_WORKAROUND
6984 static const void *lt_preloaded_setup() {
6985 return lt__PROGRAM__LTX_preloaded_symbols;
6993 # Now try linking the two files.
6994 mv conftest.$ac_objext conftstm.$ac_objext
6995 lt_save_LIBS="$LIBS"
6996 lt_save_CFLAGS="$CFLAGS"
6997 LIBS="conftstm.$ac_objext"
6998 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7000 (eval $ac_link) 2>&5
7002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7003 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7006 LIBS="$lt_save_LIBS"
7007 CFLAGS="$lt_save_CFLAGS"
7009 echo "cannot find nm_test_func in $nlist" >&5
7012 echo "cannot find nm_test_var in $nlist" >&5
7015 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7018 echo "$progname: failed program was:" >&5
7019 cat conftest.$ac_ext >&5
7021 rm -rf conftest* conftst*
7023 # Do not use the global_symbol_pipe unless it works.
7024 if test "$pipe_works" = yes; then
7027 lt_cv_sys_global_symbol_pipe=
7033 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7034 lt_cv_sys_global_symbol_to_cdecl=
7036 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7038 $as_echo "failed" >&6; }
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7041 $as_echo "ok" >&6; }
7066 # Check whether --enable-libtool-lock was given.
7067 if test "${enable_libtool_lock+set}" = set; then :
7068 enableval=$enable_libtool_lock;
7071 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7073 # Some flags need to be propagated to the compiler or linker for good
7077 # Find out which ABI we are using.
7078 echo 'int i;' > conftest.$ac_ext
7079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7080 (eval $ac_compile) 2>&5
7082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7083 test $ac_status = 0; }; then
7084 case `/usr/bin/file conftest.$ac_objext` in
7096 # Find out which ABI we are using.
7097 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7099 (eval $ac_compile) 2>&5
7101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7102 test $ac_status = 0; }; then
7103 if test "$lt_cv_prog_gnu_ld" = yes; then
7104 case `/usr/bin/file conftest.$ac_objext` in
7106 LD="${LD-ld} -melf32bsmip"
7109 LD="${LD-ld} -melf32bmipn32"
7112 LD="${LD-ld} -melf64bmip"
7116 case `/usr/bin/file conftest.$ac_objext` in
7132 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7133 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7134 # Find out which ABI we are using.
7135 echo 'int i;' > conftest.$ac_ext
7136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7137 (eval $ac_compile) 2>&5
7139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7140 test $ac_status = 0; }; then
7141 case `/usr/bin/file conftest.o` in
7144 x86_64-*kfreebsd*-gnu)
7145 LD="${LD-ld} -m elf_i386_fbsd"
7148 LD="${LD-ld} -m elf_i386"
7150 ppc64-*linux*|powerpc64-*linux*)
7151 LD="${LD-ld} -m elf32ppclinux"
7154 LD="${LD-ld} -m elf_s390"
7157 LD="${LD-ld} -m elf32_sparc"
7163 x86_64-*kfreebsd*-gnu)
7164 LD="${LD-ld} -m elf_x86_64_fbsd"
7167 LD="${LD-ld} -m elf_x86_64"
7169 ppc*-*linux*|powerpc*-*linux*)
7170 LD="${LD-ld} -m elf64ppc"
7172 s390*-*linux*|s390*-*tpf*)
7173 LD="${LD-ld} -m elf64_s390"
7176 LD="${LD-ld} -m elf64_sparc"
7186 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7187 SAVE_CFLAGS="$CFLAGS"
7188 CFLAGS="$CFLAGS -belf"
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7190 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7191 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7192 $as_echo_n "(cached) " >&6
7195 ac_cpp='$CPP $CPPFLAGS'
7196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7211 if ac_fn_c_try_link "$LINENO"; then :
7212 lt_cv_cc_needs_belf=yes
7214 lt_cv_cc_needs_belf=no
7216 rm -f core conftest.err conftest.$ac_objext \
7217 conftest$ac_exeext conftest.$ac_ext
7219 ac_cpp='$CPP $CPPFLAGS'
7220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7226 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7227 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7228 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7229 CFLAGS="$SAVE_CFLAGS"
7233 # Find out which ABI we are using.
7234 echo 'int i;' > conftest.$ac_ext
7235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7236 (eval $ac_compile) 2>&5
7238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7239 test $ac_status = 0; }; then
7240 case `/usr/bin/file conftest.o` in
7242 case $lt_cv_prog_gnu_ld in
7243 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7245 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7257 need_locks="$enable_libtool_lock"
7261 rhapsody* | darwin*)
7262 if test -n "$ac_tool_prefix"; then
7263 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7264 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7268 $as_echo_n "(cached) " >&6
7270 if test -n "$DSYMUTIL"; then
7271 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7280 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7291 if test -n "$DSYMUTIL"; then
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7293 $as_echo "$DSYMUTIL" >&6; }
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296 $as_echo "no" >&6; }
7301 if test -z "$ac_cv_prog_DSYMUTIL"; then
7302 ac_ct_DSYMUTIL=$DSYMUTIL
7303 # Extract the first word of "dsymutil", so it can be a program name with args.
7304 set dummy dsymutil; ac_word=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7308 $as_echo_n "(cached) " >&6
7310 if test -n "$ac_ct_DSYMUTIL"; then
7311 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7320 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7331 if test -n "$ac_ct_DSYMUTIL"; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7333 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7339 if test "x$ac_ct_DSYMUTIL" = x; then
7342 case $cross_compiling:$ac_tool_warned in
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7346 ac_tool_warned=yes ;;
7348 DSYMUTIL=$ac_ct_DSYMUTIL
7351 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7354 if test -n "$ac_tool_prefix"; then
7355 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7356 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7360 $as_echo_n "(cached) " >&6
7362 if test -n "$NMEDIT"; then
7363 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7372 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 NMEDIT=$ac_cv_prog_NMEDIT
7383 if test -n "$NMEDIT"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7385 $as_echo "$NMEDIT" >&6; }
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7393 if test -z "$ac_cv_prog_NMEDIT"; then
7394 ac_ct_NMEDIT=$NMEDIT
7395 # Extract the first word of "nmedit", so it can be a program name with args.
7396 set dummy nmedit; ac_word=$2
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398 $as_echo_n "checking for $ac_word... " >&6; }
7399 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7400 $as_echo_n "(cached) " >&6
7402 if test -n "$ac_ct_NMEDIT"; then
7403 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409 test -z "$as_dir" && as_dir=.
7410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7412 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7423 if test -n "$ac_ct_NMEDIT"; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7425 $as_echo "$ac_ct_NMEDIT" >&6; }
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428 $as_echo "no" >&6; }
7431 if test "x$ac_ct_NMEDIT" = x; then
7434 case $cross_compiling:$ac_tool_warned in
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7438 ac_tool_warned=yes ;;
7440 NMEDIT=$ac_ct_NMEDIT
7443 NMEDIT="$ac_cv_prog_NMEDIT"
7446 if test -n "$ac_tool_prefix"; then
7447 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7448 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if test "${ac_cv_prog_LIPO+set}" = set; then :
7452 $as_echo_n "(cached) " >&6
7454 if test -n "$LIPO"; then
7455 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7464 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 LIPO=$ac_cv_prog_LIPO
7475 if test -n "$LIPO"; then
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7477 $as_echo "$LIPO" >&6; }
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7485 if test -z "$ac_cv_prog_LIPO"; then
7487 # Extract the first word of "lipo", so it can be a program name with args.
7488 set dummy lipo; ac_word=$2
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490 $as_echo_n "checking for $ac_word... " >&6; }
7491 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7492 $as_echo_n "(cached) " >&6
7494 if test -n "$ac_ct_LIPO"; then
7495 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7504 ac_cv_prog_ac_ct_LIPO="lipo"
7505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7515 if test -n "$ac_ct_LIPO"; then
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7517 $as_echo "$ac_ct_LIPO" >&6; }
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7523 if test "x$ac_ct_LIPO" = x; then
7526 case $cross_compiling:$ac_tool_warned in
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7530 ac_tool_warned=yes ;;
7535 LIPO="$ac_cv_prog_LIPO"
7538 if test -n "$ac_tool_prefix"; then
7539 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7540 set dummy ${ac_tool_prefix}otool; ac_word=$2
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542 $as_echo_n "checking for $ac_word... " >&6; }
7543 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7544 $as_echo_n "(cached) " >&6
7546 if test -n "$OTOOL"; then
7547 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 test -z "$as_dir" && as_dir=.
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7556 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 OTOOL=$ac_cv_prog_OTOOL
7567 if test -n "$OTOOL"; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7569 $as_echo "$OTOOL" >&6; }
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7577 if test -z "$ac_cv_prog_OTOOL"; then
7579 # Extract the first word of "otool", so it can be a program name with args.
7580 set dummy otool; ac_word=$2
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582 $as_echo_n "checking for $ac_word... " >&6; }
7583 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7584 $as_echo_n "(cached) " >&6
7586 if test -n "$ac_ct_OTOOL"; then
7587 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
7595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7596 ac_cv_prog_ac_ct_OTOOL="otool"
7597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7607 if test -n "$ac_ct_OTOOL"; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7609 $as_echo "$ac_ct_OTOOL" >&6; }
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612 $as_echo "no" >&6; }
7615 if test "x$ac_ct_OTOOL" = x; then
7618 case $cross_compiling:$ac_tool_warned in
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7622 ac_tool_warned=yes ;;
7627 OTOOL="$ac_cv_prog_OTOOL"
7630 if test -n "$ac_tool_prefix"; then
7631 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7632 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7634 $as_echo_n "checking for $ac_word... " >&6; }
7635 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7636 $as_echo_n "(cached) " >&6
7638 if test -n "$OTOOL64"; then
7639 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 test -z "$as_dir" && as_dir=.
7646 for ac_exec_ext in '' $ac_executable_extensions; do
7647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7648 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 OTOOL64=$ac_cv_prog_OTOOL64
7659 if test -n "$OTOOL64"; then
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7661 $as_echo "$OTOOL64" >&6; }
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664 $as_echo "no" >&6; }
7669 if test -z "$ac_cv_prog_OTOOL64"; then
7670 ac_ct_OTOOL64=$OTOOL64
7671 # Extract the first word of "otool64", so it can be a program name with args.
7672 set dummy otool64; ac_word=$2
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674 $as_echo_n "checking for $ac_word... " >&6; }
7675 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7676 $as_echo_n "(cached) " >&6
7678 if test -n "$ac_ct_OTOOL64"; then
7679 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7688 ac_cv_prog_ac_ct_OTOOL64="otool64"
7689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7699 if test -n "$ac_ct_OTOOL64"; then
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7701 $as_echo "$ac_ct_OTOOL64" >&6; }
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704 $as_echo "no" >&6; }
7707 if test "x$ac_ct_OTOOL64" = x; then
7710 case $cross_compiling:$ac_tool_warned in
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7714 ac_tool_warned=yes ;;
7716 OTOOL64=$ac_ct_OTOOL64
7719 OTOOL64="$ac_cv_prog_OTOOL64"
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7749 $as_echo_n "checking for -single_module linker flag... " >&6; }
7750 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7751 $as_echo_n "(cached) " >&6
7753 lt_cv_apple_cc_single_mod=no
7754 if test -z "${LT_MULTI_MODULE}"; then
7755 # By default we will add the -single_module flag. You can override
7756 # by either setting the environment variable LT_MULTI_MODULE
7757 # non-empty at configure time, or by adding -multi_module to the
7759 rm -rf libconftest.dylib*
7760 echo "int foo(void){return 1;}" > conftest.c
7761 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7762 -dynamiclib -Wl,-single_module conftest.c" >&5
7763 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7764 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7766 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7767 lt_cv_apple_cc_single_mod=yes
7769 cat conftest.err >&5
7771 rm -rf libconftest.dylib*
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7776 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7778 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7779 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7780 $as_echo_n "(cached) " >&6
7782 lt_cv_ld_exported_symbols_list=no
7783 save_LDFLAGS=$LDFLAGS
7784 echo "_main" > conftest.sym
7785 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h. */
7797 if ac_fn_c_try_link "$LINENO"; then :
7798 lt_cv_ld_exported_symbols_list=yes
7800 lt_cv_ld_exported_symbols_list=no
7802 rm -f core conftest.err conftest.$ac_objext \
7803 conftest$ac_exeext conftest.$ac_ext
7804 LDFLAGS="$save_LDFLAGS"
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7808 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7810 $as_echo_n "checking for -force_load linker flag... " >&6; }
7811 if test "${lt_cv_ld_force_load+set}" = set; then :
7812 $as_echo_n "(cached) " >&6
7814 lt_cv_ld_force_load=no
7815 cat > conftest.c << _LT_EOF
7816 int forced_loaded() { return 2;}
7818 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7819 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7820 echo "$AR cru libconftest.a conftest.o" >&5
7821 $AR cru libconftest.a conftest.o 2>&5
7822 cat > conftest.c << _LT_EOF
7823 int main() { return 0;}
7825 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7826 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7828 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7829 lt_cv_ld_force_load=yes
7831 cat conftest.err >&5
7833 rm -f conftest.err libconftest.a conftest conftest.c
7834 rm -rf conftest.dSYM
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7838 $as_echo "$lt_cv_ld_force_load" >&6; }
7840 rhapsody* | darwin1.[012])
7841 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7843 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7844 darwin*) # darwin 5.x on
7845 # if running on 10.5 or later, the deployment target defaults
7846 # to the OS version, if on x86, and 10.4, the deployment
7847 # target defaults to 10.4. Don't you love it?
7848 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7849 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7850 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7852 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7854 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7858 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7859 _lt_dar_single_mod='$single_module'
7861 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7862 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7864 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7866 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7867 _lt_dsymutil='~$DSYMUTIL $lib || :'
7875 ac_cpp='$CPP $CPPFLAGS'
7876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7880 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7881 # On Suns, sometimes $CPP names a directory.
7882 if test -n "$CPP" && test -d "$CPP"; then
7885 if test -z "$CPP"; then
7886 if test "${ac_cv_prog_CPP+set}" = set; then :
7887 $as_echo_n "(cached) " >&6
7889 # Double quotes because CPP needs to be expanded
7890 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7893 for ac_c_preproc_warn_flag in '' yes
7895 # Use a header file that comes with gcc, so configuring glibc
7896 # with a fresh cross-compiler works.
7897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7898 # <limits.h> exists even on freestanding compilers.
7899 # On the NeXT, cc -E runs the code through the compiler's parser,
7900 # not just through cpp. "Syntax error" is here to catch this case.
7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h. */
7904 # include <limits.h>
7906 # include <assert.h>
7910 if ac_fn_c_try_cpp "$LINENO"; then :
7913 # Broken: fails on valid input.
7916 rm -f conftest.err conftest.$ac_ext
7918 # OK, works on sane cases. Now check whether nonexistent headers
7919 # can be detected and how.
7920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921 /* end confdefs.h. */
7922 #include <ac_nonexistent.h>
7924 if ac_fn_c_try_cpp "$LINENO"; then :
7925 # Broken: success on invalid input.
7928 # Passes both tests.
7932 rm -f conftest.err conftest.$ac_ext
7935 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7936 rm -f conftest.err conftest.$ac_ext
7937 if $ac_preproc_ok; then :
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7950 $as_echo "$CPP" >&6; }
7952 for ac_c_preproc_warn_flag in '' yes
7954 # Use a header file that comes with gcc, so configuring glibc
7955 # with a fresh cross-compiler works.
7956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7957 # <limits.h> exists even on freestanding compilers.
7958 # On the NeXT, cc -E runs the code through the compiler's parser,
7959 # not just through cpp. "Syntax error" is here to catch this case.
7960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7963 # include <limits.h>
7965 # include <assert.h>
7969 if ac_fn_c_try_cpp "$LINENO"; then :
7972 # Broken: fails on valid input.
7975 rm -f conftest.err conftest.$ac_ext
7977 # OK, works on sane cases. Now check whether nonexistent headers
7978 # can be detected and how.
7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h. */
7981 #include <ac_nonexistent.h>
7983 if ac_fn_c_try_cpp "$LINENO"; then :
7984 # Broken: success on invalid input.
7987 # Passes both tests.
7991 rm -f conftest.err conftest.$ac_ext
7994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7995 rm -f conftest.err conftest.$ac_ext
7996 if $ac_preproc_ok; then :
7999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8001 as_fn_error "C preprocessor \"$CPP\" fails sanity check
8002 See \`config.log' for more details." "$LINENO" 5; }
8006 ac_cpp='$CPP $CPPFLAGS'
8007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8013 $as_echo_n "checking for ANSI C header files... " >&6; }
8014 if test "${ac_cv_header_stdc+set}" = set; then :
8015 $as_echo_n "(cached) " >&6
8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h. */
8032 if ac_fn_c_try_compile "$LINENO"; then :
8033 ac_cv_header_stdc=yes
8035 ac_cv_header_stdc=no
8037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8039 if test $ac_cv_header_stdc = yes; then
8040 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h. */
8046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8047 $EGREP "memchr" >/dev/null 2>&1; then :
8050 ac_cv_header_stdc=no
8056 if test $ac_cv_header_stdc = yes; then
8057 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h. */
8063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8064 $EGREP "free" >/dev/null 2>&1; then :
8067 ac_cv_header_stdc=no
8073 if test $ac_cv_header_stdc = yes; then
8074 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8075 if test "$cross_compiling" = yes; then :
8078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079 /* end confdefs.h. */
8082 #if ((' ' & 0x0FF) == 0x020)
8083 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8084 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8086 # define ISLOWER(c) \
8087 (('a' <= (c) && (c) <= 'i') \
8088 || ('j' <= (c) && (c) <= 'r') \
8089 || ('s' <= (c) && (c) <= 'z'))
8090 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8093 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8098 for (i = 0; i < 256; i++)
8099 if (XOR (islower (i), ISLOWER (i))
8100 || toupper (i) != TOUPPER (i))
8105 if ac_fn_c_try_run "$LINENO"; then :
8108 ac_cv_header_stdc=no
8110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8111 conftest.$ac_objext conftest.beam conftest.$ac_ext
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8117 $as_echo "$ac_cv_header_stdc" >&6; }
8118 if test $ac_cv_header_stdc = yes; then
8120 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8124 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8125 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8126 inttypes.h stdint.h unistd.h
8128 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8129 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8131 eval as_val=\$$as_ac_Header
8132 if test "x$as_val" = x""yes; then :
8133 cat >>confdefs.h <<_ACEOF
8134 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8142 for ac_header in dlfcn.h
8144 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8146 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8147 cat >>confdefs.h <<_ACEOF
8148 #define HAVE_DLFCN_H 1
8167 # Check whether --enable-shared was given.
8168 if test "${enable_shared+set}" = set; then :
8169 enableval=$enable_shared; p=${PACKAGE-default}
8171 yes) enable_shared=yes ;;
8172 no) enable_shared=no ;;
8175 # Look at the argument we got. We use all the common list separators.
8176 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8177 for pkg in $enableval; do
8179 if test "X$pkg" = "X$p"; then
8198 # Check whether --enable-static was given.
8199 if test "${enable_static+set}" = set; then :
8200 enableval=$enable_static; p=${PACKAGE-default}
8202 yes) enable_static=yes ;;
8203 no) enable_static=no ;;
8206 # Look at the argument we got. We use all the common list separators.
8207 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8208 for pkg in $enableval; do
8210 if test "X$pkg" = "X$p"; then
8230 # Check whether --with-pic was given.
8231 if test "${with_pic+set}" = set; then :
8232 withval=$with_pic; pic_mode="$withval"
8238 test -z "$pic_mode" && pic_mode=default
8246 # Check whether --enable-fast-install was given.
8247 if test "${enable_fast_install+set}" = set; then :
8248 enableval=$enable_fast_install; p=${PACKAGE-default}
8250 yes) enable_fast_install=yes ;;
8251 no) enable_fast_install=no ;;
8253 enable_fast_install=no
8254 # Look at the argument we got. We use all the common list separators.
8255 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8256 for pkg in $enableval; do
8258 if test "X$pkg" = "X$p"; then
8259 enable_fast_install=yes
8266 enable_fast_install=yes
8279 # This can be used to rebuild libtool when needed
8280 LIBTOOL_DEPS="$ltmain"
8282 # Always use our own libtool.
8283 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8310 test -z "$LN_S" && LN_S="ln -s"
8325 if test -n "${ZSH_VERSION+set}" ; then
8326 setopt NO_GLOB_SUBST
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8330 $as_echo_n "checking for objdir... " >&6; }
8331 if test "${lt_cv_objdir+set}" = set; then :
8332 $as_echo_n "(cached) " >&6
8334 rm -f .libs 2>/dev/null
8335 mkdir .libs 2>/dev/null
8336 if test -d .libs; then
8339 # MS-DOS does not allow filenames that begin with a dot.
8342 rmdir .libs 2>/dev/null
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8345 $as_echo "$lt_cv_objdir" >&6; }
8346 objdir=$lt_cv_objdir
8352 cat >>confdefs.h <<_ACEOF
8353 #define LT_OBJDIR "$lt_cv_objdir/"
8361 # AIX sometimes has problems with the GCC collect2 program. For some
8362 # reason, if we set the COLLECT_NAMES environment variable, the problems
8363 # vanish in a puff of smoke.
8364 if test "X${COLLECT_NAMES+set}" != Xset; then
8366 export COLLECT_NAMES
8373 can_build_shared=yes
8375 # All known linkers require a `.a' archive for static linking (except MSVC,
8376 # which needs '.lib').
8379 with_gnu_ld="$lt_cv_prog_gnu_ld"
8382 old_CFLAGS="$CFLAGS"
8384 # Set sane defaults for various variables
8385 test -z "$CC" && CC=cc
8386 test -z "$LTCC" && LTCC=$CC
8387 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8388 test -z "$LD" && LD=ld
8389 test -z "$ac_objext" && ac_objext=o
8391 for cc_temp in $compiler""; do
8393 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8394 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8399 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8402 # Only perform the check for file, if the check method requires it
8403 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8404 case $deplibs_check_method in
8406 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8408 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8409 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8410 $as_echo_n "(cached) " >&6
8414 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8417 lt_save_MAGIC_CMD="$MAGIC_CMD"
8418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8419 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8420 for ac_dir in $ac_dummy; do
8422 test -z "$ac_dir" && ac_dir=.
8423 if test -f $ac_dir/${ac_tool_prefix}file; then
8424 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8425 if test -n "$file_magic_test_file"; then
8426 case $deplibs_check_method in
8428 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8429 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8430 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8431 $EGREP "$file_magic_regex" > /dev/null; then
8436 *** Warning: the command libtool uses to detect shared libraries,
8437 *** $file_magic_cmd, produces output that libtool cannot recognize.
8438 *** The result is that libtool may fail to recognize shared libraries
8439 *** as such. This will affect the creation of libtool libraries that
8440 *** depend on shared libraries, but programs linked with such libtool
8441 *** libraries will work regardless of this problem. Nevertheless, you
8442 *** may want to report the problem to your system manager and/or to
8443 *** bug-libtool@gnu.org
8453 MAGIC_CMD="$lt_save_MAGIC_CMD"
8458 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8459 if test -n "$MAGIC_CMD"; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8461 $as_echo "$MAGIC_CMD" >&6; }
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8471 if test -z "$lt_cv_path_MAGIC_CMD"; then
8472 if test -n "$ac_tool_prefix"; then
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8474 $as_echo_n "checking for file... " >&6; }
8475 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8476 $as_echo_n "(cached) " >&6
8480 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8483 lt_save_MAGIC_CMD="$MAGIC_CMD"
8484 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8485 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8486 for ac_dir in $ac_dummy; do
8488 test -z "$ac_dir" && ac_dir=.
8489 if test -f $ac_dir/file; then
8490 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8491 if test -n "$file_magic_test_file"; then
8492 case $deplibs_check_method in
8494 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8496 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8497 $EGREP "$file_magic_regex" > /dev/null; then
8502 *** Warning: the command libtool uses to detect shared libraries,
8503 *** $file_magic_cmd, produces output that libtool cannot recognize.
8504 *** The result is that libtool may fail to recognize shared libraries
8505 *** as such. This will affect the creation of libtool libraries that
8506 *** depend on shared libraries, but programs linked with such libtool
8507 *** libraries will work regardless of this problem. Nevertheless, you
8508 *** may want to report the problem to your system manager and/or to
8509 *** bug-libtool@gnu.org
8519 MAGIC_CMD="$lt_save_MAGIC_CMD"
8524 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8525 if test -n "$MAGIC_CMD"; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8527 $as_echo "$MAGIC_CMD" >&6; }
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530 $as_echo "no" >&6; }
8543 # Use C for the default configuration in the libtool script
8547 ac_cpp='$CPP $CPPFLAGS'
8548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8553 # Source file extension for C test sources.
8556 # Object file extension for compiled C test sources.
8560 # Code to be used in simple compile tests
8561 lt_simple_compile_test_code="int some_variable = 0;"
8563 # Code to be used in simple link tests
8564 lt_simple_link_test_code='int main(){return(0);}'
8572 # If no C compiler was specified, use CC.
8575 # If no C compiler flags were specified, use CFLAGS.
8576 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8578 # Allow CC to be a program name with arguments.
8581 # Save the default compiler, since it gets overwritten when the other
8582 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8583 compiler_DEFAULT=$CC
8585 # save warnings/boilerplate of simple test code
8586 ac_outfile=conftest.$ac_objext
8587 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8588 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8589 _lt_compiler_boilerplate=`cat conftest.err`
8592 ac_outfile=conftest.$ac_objext
8593 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8594 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8595 _lt_linker_boilerplate=`cat conftest.err`
8600 ## There is no encapsulation within the following macros, do not change
8601 ## the running order or otherwise move them around unless you know exactly
8602 ## what you are doing...
8603 if test -n "$compiler"; then
8605 lt_prog_compiler_no_builtin_flag=
8607 if test "$GCC" = yes; then
8608 case $cc_basename in
8610 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8612 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8616 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8617 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8618 $as_echo_n "(cached) " >&6
8620 lt_cv_prog_compiler_rtti_exceptions=no
8621 ac_outfile=conftest.$ac_objext
8622 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8623 lt_compiler_flag="-fno-rtti -fno-exceptions"
8624 # Insert the option either (1) after the last *FLAGS variable, or
8625 # (2) before a word containing "conftest.", or (3) at the end.
8626 # Note that $ac_compile itself does not contain backslashes and begins
8627 # with a dollar sign (not a hyphen), so the echo should work correctly.
8628 # The option is referenced via a variable to avoid confusing sed.
8629 lt_compile=`echo "$ac_compile" | $SED \
8630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8632 -e 's:$: $lt_compiler_flag:'`
8633 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8634 (eval "$lt_compile" 2>conftest.err)
8636 cat conftest.err >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 if (exit $ac_status) && test -s "$ac_outfile"; then
8639 # The compiler can only warn and ignore the option if not recognized
8640 # So say no if there are warnings other than the usual output.
8641 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8643 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8644 lt_cv_prog_compiler_rtti_exceptions=yes
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8651 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8653 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8654 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8666 lt_prog_compiler_wl=
8667 lt_prog_compiler_pic=
8668 lt_prog_compiler_static=
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8671 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8673 if test "$GCC" = yes; then
8674 lt_prog_compiler_wl='-Wl,'
8675 lt_prog_compiler_static='-static'
8679 # All AIX code is PIC.
8680 if test "$host_cpu" = ia64; then
8681 # AIX 5 now supports IA64 processor
8682 lt_prog_compiler_static='-Bstatic'
8689 # see comment about AmigaOS4 .so support
8690 lt_prog_compiler_pic='-fPIC'
8693 # FIXME: we need at least 68020 code to build shared libraries, but
8694 # adding the `-m68020' flag to GCC prevents building anything better,
8696 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8701 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8702 # PIC is the default for these OSes.
8705 mingw* | cygwin* | pw32* | os2* | cegcc*)
8706 # This hack is so that the source file can tell whether it is being
8707 # built for inclusion in a dll (and should export symbols for example).
8708 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8709 # (--disable-auto-import) libraries
8710 lt_prog_compiler_pic='-DDLL_EXPORT'
8713 darwin* | rhapsody*)
8714 # PIC is the default on this platform
8715 # Common symbols not allowed in MH_DYLIB files
8716 lt_prog_compiler_pic='-fno-common'
8720 # PIC is the default for Haiku.
8721 # The "-static" flag exists, but is broken.
8722 lt_prog_compiler_static=
8726 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8727 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8728 # sets the default TLS model and affects inlining.
8734 lt_prog_compiler_pic='-fPIC'
8740 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8741 # Instead, we relocate shared libraries at runtime.
8745 # Just because we use GCC doesn't mean we suddenly get shared libraries
8746 # on systems that don't support them.
8747 lt_prog_compiler_can_build_shared=no
8752 # QNX uses GNU C++, but need to define -shared option too, otherwise
8754 lt_prog_compiler_pic='-fPIC -shared'
8758 if test -d /usr/nec; then
8759 lt_prog_compiler_pic=-Kconform_pic
8764 lt_prog_compiler_pic='-fPIC'
8768 case $cc_basename in
8769 nvcc*) # Cuda Compiler Driver 2.2
8770 lt_prog_compiler_wl='-Xlinker '
8771 lt_prog_compiler_pic='-Xcompiler -fPIC'
8775 # PORTME Check for flag to pass linker flags through the system compiler.
8778 lt_prog_compiler_wl='-Wl,'
8779 if test "$host_cpu" = ia64; then
8780 # AIX 5 now supports IA64 processor
8781 lt_prog_compiler_static='-Bstatic'
8783 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8787 mingw* | cygwin* | pw32* | os2* | cegcc*)
8788 # This hack is so that the source file can tell whether it is being
8789 # built for inclusion in a dll (and should export symbols for example).
8790 lt_prog_compiler_pic='-DDLL_EXPORT'
8793 hpux9* | hpux10* | hpux11*)
8794 lt_prog_compiler_wl='-Wl,'
8795 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8802 lt_prog_compiler_pic='+Z'
8805 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8806 lt_prog_compiler_static='${wl}-a ${wl}archive'
8809 irix5* | irix6* | nonstopux*)
8810 lt_prog_compiler_wl='-Wl,'
8811 # PIC (with -KPIC) is the default.
8812 lt_prog_compiler_static='-non_shared'
8815 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8816 case $cc_basename in
8817 # old Intel for x86_64 which still supported -KPIC.
8819 lt_prog_compiler_wl='-Wl,'
8820 lt_prog_compiler_pic='-KPIC'
8821 lt_prog_compiler_static='-static'
8823 # icc used to be incompatible with GCC.
8824 # ICC 10 doesn't accept -KPIC any more.
8826 lt_prog_compiler_wl='-Wl,'
8827 lt_prog_compiler_pic='-fPIC'
8828 lt_prog_compiler_static='-static'
8830 # Lahey Fortran 8.1.
8832 lt_prog_compiler_wl='-Wl,'
8833 lt_prog_compiler_pic='--shared'
8834 lt_prog_compiler_static='--static'
8836 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8837 # Portland Group compilers (*not* the Pentium gcc compiler,
8838 # which looks to be a dead project)
8839 lt_prog_compiler_wl='-Wl,'
8840 lt_prog_compiler_pic='-fpic'
8841 lt_prog_compiler_static='-Bstatic'
8844 lt_prog_compiler_wl='-Wl,'
8845 # All Alpha code is PIC.
8846 lt_prog_compiler_static='-non_shared'
8848 xl* | bgxl* | bgf* | mpixl*)
8849 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8850 lt_prog_compiler_wl='-Wl,'
8851 lt_prog_compiler_pic='-qpic'
8852 lt_prog_compiler_static='-qstaticlink'
8855 case `$CC -V 2>&1 | sed 5q` in
8856 *Sun\ F* | *Sun*Fortran*)
8857 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8858 lt_prog_compiler_pic='-KPIC'
8859 lt_prog_compiler_static='-Bstatic'
8860 lt_prog_compiler_wl=''
8864 lt_prog_compiler_pic='-KPIC'
8865 lt_prog_compiler_static='-Bstatic'
8866 lt_prog_compiler_wl='-Wl,'
8874 lt_prog_compiler_pic='-KPIC'
8875 lt_prog_compiler_static='-Bstatic'
8879 # QNX uses GNU C++, but need to define -shared option too, otherwise
8881 lt_prog_compiler_pic='-fPIC -shared'
8884 osf3* | osf4* | osf5*)
8885 lt_prog_compiler_wl='-Wl,'
8886 # All OSF/1 code is PIC.
8887 lt_prog_compiler_static='-non_shared'
8891 lt_prog_compiler_static='-non_shared'
8895 lt_prog_compiler_pic='-KPIC'
8896 lt_prog_compiler_static='-Bstatic'
8897 case $cc_basename in
8899 lt_prog_compiler_wl='-Qoption ld ';;
8901 lt_prog_compiler_wl='-Wl,';;
8906 lt_prog_compiler_wl='-Qoption ld '
8907 lt_prog_compiler_pic='-PIC'
8908 lt_prog_compiler_static='-Bstatic'
8911 sysv4 | sysv4.2uw2* | sysv4.3*)
8912 lt_prog_compiler_wl='-Wl,'
8913 lt_prog_compiler_pic='-KPIC'
8914 lt_prog_compiler_static='-Bstatic'
8918 if test -d /usr/nec ;then
8919 lt_prog_compiler_pic='-Kconform_pic'
8920 lt_prog_compiler_static='-Bstatic'
8924 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8925 lt_prog_compiler_wl='-Wl,'
8926 lt_prog_compiler_pic='-KPIC'
8927 lt_prog_compiler_static='-Bstatic'
8931 lt_prog_compiler_wl='-Wl,'
8932 lt_prog_compiler_can_build_shared=no
8936 lt_prog_compiler_pic='-pic'
8937 lt_prog_compiler_static='-Bstatic'
8941 lt_prog_compiler_can_build_shared=no
8947 # For platforms which do not support PIC, -DPIC is meaningless:
8949 lt_prog_compiler_pic=
8952 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8956 $as_echo "$lt_prog_compiler_pic" >&6; }
8964 # Check to make sure the PIC flag actually works.
8966 if test -n "$lt_prog_compiler_pic"; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8968 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8969 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8970 $as_echo_n "(cached) " >&6
8972 lt_cv_prog_compiler_pic_works=no
8973 ac_outfile=conftest.$ac_objext
8974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8975 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8976 # Insert the option either (1) after the last *FLAGS variable, or
8977 # (2) before a word containing "conftest.", or (3) at the end.
8978 # Note that $ac_compile itself does not contain backslashes and begins
8979 # with a dollar sign (not a hyphen), so the echo should work correctly.
8980 # The option is referenced via a variable to avoid confusing sed.
8981 lt_compile=`echo "$ac_compile" | $SED \
8982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8984 -e 's:$: $lt_compiler_flag:'`
8985 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8986 (eval "$lt_compile" 2>conftest.err)
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 if (exit $ac_status) && test -s "$ac_outfile"; then
8991 # The compiler can only warn and ignore the option if not recognized
8992 # So say no if there are warnings other than the usual output.
8993 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8995 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8996 lt_cv_prog_compiler_pic_works=yes
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9003 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9005 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9006 case $lt_prog_compiler_pic in
9008 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9011 lt_prog_compiler_pic=
9012 lt_prog_compiler_can_build_shared=no
9023 # Check to make sure the static flag actually works.
9025 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9027 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9028 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9029 $as_echo_n "(cached) " >&6
9031 lt_cv_prog_compiler_static_works=no
9032 save_LDFLAGS="$LDFLAGS"
9033 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9034 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9035 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9036 # The linker can only warn and ignore the option if not recognized
9037 # So say no if there are warnings
9038 if test -s conftest.err; then
9039 # Append any errors to the config.log.
9040 cat conftest.err 1>&5
9041 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9042 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9043 if diff conftest.exp conftest.er2 >/dev/null; then
9044 lt_cv_prog_compiler_static_works=yes
9047 lt_cv_prog_compiler_static_works=yes
9051 LDFLAGS="$save_LDFLAGS"
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9055 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9057 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9060 lt_prog_compiler_static=
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9070 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9071 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9072 $as_echo_n "(cached) " >&6
9074 lt_cv_prog_compiler_c_o=no
9075 $RM -r conftest 2>/dev/null
9079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9081 lt_compiler_flag="-o out/conftest2.$ac_objext"
9082 # Insert the option either (1) after the last *FLAGS variable, or
9083 # (2) before a word containing "conftest.", or (3) at the end.
9084 # Note that $ac_compile itself does not contain backslashes and begins
9085 # with a dollar sign (not a hyphen), so the echo should work correctly.
9086 lt_compile=`echo "$ac_compile" | $SED \
9087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9089 -e 's:$: $lt_compiler_flag:'`
9090 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9091 (eval "$lt_compile" 2>out/conftest.err)
9093 cat out/conftest.err >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9097 # The compiler can only warn and ignore the option if not recognized
9098 # So say no if there are warnings
9099 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9100 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9101 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9102 lt_cv_prog_compiler_c_o=yes
9107 # SGI C++ compiler will create directory out/ii_files/ for
9108 # template instantiation
9109 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9110 $RM out/* && rmdir out
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9117 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9125 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9126 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9127 $as_echo_n "(cached) " >&6
9129 lt_cv_prog_compiler_c_o=no
9130 $RM -r conftest 2>/dev/null
9134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9136 lt_compiler_flag="-o out/conftest2.$ac_objext"
9137 # Insert the option either (1) after the last *FLAGS variable, or
9138 # (2) before a word containing "conftest.", or (3) at the end.
9139 # Note that $ac_compile itself does not contain backslashes and begins
9140 # with a dollar sign (not a hyphen), so the echo should work correctly.
9141 lt_compile=`echo "$ac_compile" | $SED \
9142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9144 -e 's:$: $lt_compiler_flag:'`
9145 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9146 (eval "$lt_compile" 2>out/conftest.err)
9148 cat out/conftest.err >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9152 # The compiler can only warn and ignore the option if not recognized
9153 # So say no if there are warnings
9154 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9155 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9156 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9157 lt_cv_prog_compiler_c_o=yes
9162 # SGI C++ compiler will create directory out/ii_files/ for
9163 # template instantiation
9164 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9165 $RM out/* && rmdir out
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9172 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9177 hard_links="nottested"
9178 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9179 # do not overwrite the value of need_locks provided by the user
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9181 $as_echo_n "checking if we can lock with hard links... " >&6; }
9184 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9186 ln conftest.a conftest.b 2>&5 || hard_links=no
9187 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9189 $as_echo "$hard_links" >&6; }
9190 if test "$hard_links" = no; then
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9192 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9205 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9208 allow_undefined_flag=
9209 always_export_symbols=no
9211 archive_expsym_cmds=
9212 compiler_needs_object=no
9213 enable_shared_with_static_runtimes=no
9214 export_dynamic_flag_spec=
9215 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9216 hardcode_automatic=no
9218 hardcode_direct_absolute=no
9219 hardcode_libdir_flag_spec=
9220 hardcode_libdir_flag_spec_ld=
9221 hardcode_libdir_separator=
9223 hardcode_shlibpath_var=unsupported
9225 link_all_deplibs=unknown
9228 old_archive_from_new_cmds=
9229 old_archive_from_expsyms_cmds=
9230 thread_safe_flag_spec=
9231 whole_archive_flag_spec=
9232 # include_expsyms should be a list of space-separated symbols to be *always*
9233 # included in the symbol list
9235 # exclude_expsyms can be an extended regexp of symbols to exclude
9236 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9237 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9238 # as well as any symbol that contains `d'.
9239 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9240 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9241 # platforms (ab)use it in PIC code, but their linkers get confused if
9242 # the symbol is explicitly referenced. Since portable code cannot
9243 # rely on this symbol name, it's probably fine to never include it in
9244 # preloaded symbol tables.
9245 # Exclude shared library initialization/finalization symbols.
9246 extract_expsyms_cmds=
9249 cygwin* | mingw* | pw32* | cegcc*)
9250 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9251 # When not using gcc, we currently assume that we are using
9252 # Microsoft Visual C++.
9253 if test "$GCC" != yes; then
9258 # we just hope/assume this is gcc and not c89 (= MSVC++)
9268 # On some targets, GNU ld is compatible enough with the native linker
9269 # that we're better off using the native interface for both.
9270 lt_use_gnu_ld_interface=no
9271 if test "$with_gnu_ld" = yes; then
9274 # The AIX port of GNU ld has always aspired to compatibility
9275 # with the native linker. However, as the warning in the GNU ld
9276 # block says, versions before 2.19.5* couldn't really create working
9277 # shared libraries, regardless of the interface used.
9278 case `$LD -v 2>&1` in
9279 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9280 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9281 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9283 lt_use_gnu_ld_interface=yes
9288 lt_use_gnu_ld_interface=yes
9293 if test "$lt_use_gnu_ld_interface" = yes; then
9294 # If archive_cmds runs LD, not CC, wlarc should be empty
9297 # Set some defaults for GNU ld with shared library support. These
9298 # are reset later if shared libraries are not supported. Putting them
9299 # here allows them to be overridden if necessary.
9300 runpath_var=LD_RUN_PATH
9301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9302 export_dynamic_flag_spec='${wl}--export-dynamic'
9303 # ancient GNU ld didn't support --whole-archive et. al.
9304 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9305 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9307 whole_archive_flag_spec=
9309 supports_anon_versioning=no
9310 case `$LD -v 2>&1` in
9311 *GNU\ gold*) supports_anon_versioning=yes ;;
9312 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9313 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9314 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9315 *\ 2.11.*) ;; # other 2.11 versions
9316 *) supports_anon_versioning=yes ;;
9319 # See if GNU ld supports shared libraries.
9322 # On AIX/PPC, the GNU linker is very broken
9323 if test "$host_cpu" != ia64; then
9327 *** Warning: the GNU linker, at least up to release 2.19, is reported
9328 *** to be unable to reliably create shared libraries on AIX.
9329 *** Therefore, libtool is disabling shared libraries support. If you
9330 *** really care for shared libraries, you may want to install binutils
9331 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9332 *** You will then need to restart the configuration process.
9341 # see comment about AmigaOS4 .so support
9342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9343 archive_expsym_cmds=''
9346 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)'
9347 hardcode_libdir_flag_spec='-L$libdir'
9348 hardcode_minus_L=yes
9354 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9355 allow_undefined_flag=unsupported
9356 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9357 # support --undefined. This deserves some investigation. FIXME
9358 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9364 cygwin* | mingw* | pw32* | cegcc*)
9365 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9366 # as there is no search path for DLLs.
9367 hardcode_libdir_flag_spec='-L$libdir'
9368 export_dynamic_flag_spec='${wl}--export-all-symbols'
9369 allow_undefined_flag=unsupported
9370 always_export_symbols=no
9371 enable_shared_with_static_runtimes=yes
9372 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9374 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9376 # If the export-symbols file already is a .def file (1st line
9377 # is EXPORTS), use it as is; otherwise, prepend...
9378 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9379 cp $export_symbols $output_objdir/$soname.def;
9381 echo EXPORTS > $output_objdir/$soname.def;
9382 cat $export_symbols >> $output_objdir/$soname.def;
9384 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9392 link_all_deplibs=yes
9397 hardcode_shlibpath_var=no
9398 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9399 export_dynamic_flag_spec='${wl}-E'
9400 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9401 # Instead, shared libraries are loaded at an image base (0x10000000 by
9402 # default) and relocated if they conflict, which is a slow very memory
9403 # consuming and fragmenting process. To avoid this, we pick a random,
9404 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9405 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9406 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9407 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'
9410 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9412 if test "$host_os" = linux-dietlibc; then
9413 case $cc_basename in
9414 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9417 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9418 && test "$tmp_diet" = no
9421 tmp_sharedflag='-shared'
9422 case $cc_basename,$host_cpu in
9423 pgcc*) # Portland Group C compiler
9424 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'
9425 tmp_addflag=' $pic_flag'
9427 pgf77* | pgf90* | pgf95* | pgfortran*)
9428 # Portland Group f77 and f90 compilers
9429 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'
9430 tmp_addflag=' $pic_flag -Mnomain' ;;
9431 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9432 tmp_addflag=' -i_dynamic' ;;
9433 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9434 tmp_addflag=' -i_dynamic -nofor_main' ;;
9435 ifc* | ifort*) # Intel Fortran compiler
9436 tmp_addflag=' -nofor_main' ;;
9437 lf95*) # Lahey Fortran 8.1
9438 whole_archive_flag_spec=
9439 tmp_sharedflag='--shared' ;;
9440 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9441 tmp_sharedflag='-qmkshrobj'
9443 nvcc*) # Cuda Compiler Driver 2.2
9444 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'
9445 compiler_needs_object=yes
9448 case `$CC -V 2>&1 | sed 5q` in
9449 *Sun\ C*) # Sun C 5.9
9450 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'
9451 compiler_needs_object=yes
9452 tmp_sharedflag='-G' ;;
9453 *Sun\ F*) # Sun Fortran 8.3
9454 tmp_sharedflag='-G' ;;
9456 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9458 if test "x$supports_anon_versioning" = xyes; then
9459 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9460 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9461 echo "local: *; };" >> $output_objdir/$libname.ver~
9462 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9465 case $cc_basename in
9466 xlf* | bgf* | bgxlf* | mpixlf*)
9467 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9468 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9469 hardcode_libdir_flag_spec=
9470 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9471 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9472 if test "x$supports_anon_versioning" = xyes; then
9473 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9474 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9475 echo "local: *; };" >> $output_objdir/$libname.ver~
9476 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9486 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9487 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9491 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9496 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9500 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9501 *** create shared libraries on Solaris systems. Therefore, libtool
9502 *** is disabling shared libraries support. We urge you to upgrade GNU
9503 *** binutils to release 2.9.1 or newer. Another option is to modify
9504 *** your PATH or compiler configuration so that the native linker is
9505 *** used, and then restart.
9508 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9510 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9517 case `$LD -v 2>&1` in
9518 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9522 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9523 *** reliably create shared libraries on SCO systems. Therefore, libtool
9524 *** is disabling shared libraries support. We urge you to upgrade GNU
9525 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9526 *** your PATH or compiler configuration so that the native linker is
9527 *** used, and then restart.
9532 # For security reasons, it is highly recommended that you always
9533 # use absolute paths for naming shared libraries, and exclude the
9534 # DT_RUNPATH tag from executables and libraries. But doing so
9535 # requires that you compile everything twice, which is a pain.
9536 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9539 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9548 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9551 hardcode_shlibpath_var=no
9555 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9557 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9564 if test "$ld_shlibs" = no; then
9566 hardcode_libdir_flag_spec=
9567 export_dynamic_flag_spec=
9568 whole_archive_flag_spec=
9571 # PORTME fill in a description of your system's linker (not GNU ld)
9574 allow_undefined_flag=unsupported
9575 always_export_symbols=yes
9576 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'
9577 # Note: this linker hardcodes the directories in LIBPATH if there
9578 # are no directories specified by -L.
9579 hardcode_minus_L=yes
9580 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9581 # Neither direct hardcoding nor static linking is supported with a
9583 hardcode_direct=unsupported
9588 if test "$host_cpu" = ia64; then
9589 # On IA64, the linker does run time linking by default, so we don't
9590 # have to do anything special.
9591 aix_use_runtimelinking=no
9592 exp_sym_flag='-Bexport'
9595 # If we're using GNU nm, then we don't want the "-C" option.
9596 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9597 # Also, AIX nm treats weak defined symbols like other global
9598 # defined symbols, whereas GNU nm marks them as "W".
9599 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9600 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'
9602 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'
9604 aix_use_runtimelinking=no
9606 # Test if we are trying to use run time linking or normal
9607 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9608 # need to do runtime linking.
9609 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9610 for ld_flag in $LDFLAGS; do
9611 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9612 aix_use_runtimelinking=yes
9619 exp_sym_flag='-bexport'
9620 no_entry_flag='-bnoentry'
9623 # When large executables or shared objects are built, AIX ld can
9624 # have problems creating the table of contents. If linking a library
9625 # or program results in "error TOC overflow" add -mminimal-toc to
9626 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9627 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9631 hardcode_direct_absolute=yes
9632 hardcode_libdir_separator=':'
9633 link_all_deplibs=yes
9634 file_list_spec='${wl}-f,'
9636 if test "$GCC" = yes; then
9637 case $host_os in aix4.[012]|aix4.[012].*)
9638 # We only want to do this on AIX 4.2 and lower, the check
9639 # below for broken collect2 doesn't work under 4.3+
9640 collect2name=`${CC} -print-prog-name=collect2`
9641 if test -f "$collect2name" &&
9642 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9644 # We have reworked collect2
9647 # We have old collect2
9648 hardcode_direct=unsupported
9649 # It fails to find uninstalled libraries when the uninstalled
9650 # path is not listed in the libpath. Setting hardcode_minus_L
9651 # to unsupported forces relinking
9652 hardcode_minus_L=yes
9653 hardcode_libdir_flag_spec='-L$libdir'
9654 hardcode_libdir_separator=
9658 shared_flag='-shared'
9659 if test "$aix_use_runtimelinking" = yes; then
9660 shared_flag="$shared_flag "'${wl}-G'
9664 if test "$host_cpu" = ia64; then
9665 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9666 # chokes on -Wl,-G. The following line is correct:
9669 if test "$aix_use_runtimelinking" = yes; then
9670 shared_flag='${wl}-G'
9672 shared_flag='${wl}-bM:SRE'
9677 export_dynamic_flag_spec='${wl}-bexpall'
9678 # It seems that -bexpall does not export symbols beginning with
9679 # underscore (_), so it is better to generate a list of symbols to export.
9680 always_export_symbols=yes
9681 if test "$aix_use_runtimelinking" = yes; then
9682 # Warning - without using the other runtime loading flags (-brtl),
9683 # -berok will link without error, but may produce a broken library.
9684 allow_undefined_flag='-berok'
9685 # Determine the default libpath from the value encoded in an
9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688 /* end confdefs.h. */
9698 if ac_fn_c_try_link "$LINENO"; then :
9700 lt_aix_libpath_sed='
9701 /Import File Strings/,/^$/ {
9707 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9708 # Check for a 64-bit object if we didn't find anything.
9709 if test -z "$aix_libpath"; then
9710 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9713 rm -f core conftest.err conftest.$ac_objext \
9714 conftest$ac_exeext conftest.$ac_ext
9715 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9717 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9718 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"
9720 if test "$host_cpu" = ia64; then
9721 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9722 allow_undefined_flag="-z nodefs"
9723 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"
9725 # Determine the default libpath from the value encoded in an
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9738 if ac_fn_c_try_link "$LINENO"; then :
9740 lt_aix_libpath_sed='
9741 /Import File Strings/,/^$/ {
9747 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9748 # Check for a 64-bit object if we didn't find anything.
9749 if test -z "$aix_libpath"; then
9750 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9753 rm -f core conftest.err conftest.$ac_objext \
9754 conftest$ac_exeext conftest.$ac_ext
9755 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9757 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9758 # Warning - without using the other run time loading flags,
9759 # -berok will link without error, but may produce a broken library.
9760 no_undefined_flag=' ${wl}-bernotok'
9761 allow_undefined_flag=' ${wl}-berok'
9762 if test "$with_gnu_ld" = yes; then
9763 # We only use this code for GNU lds that support --whole-archive.
9764 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9766 # Exported symbols can be pulled into shared objects from archives
9767 whole_archive_flag_spec='$convenience'
9769 archive_cmds_need_lc=yes
9770 # This is similar to how AIX traditionally builds its shared libraries.
9771 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'
9779 # see comment about AmigaOS4 .so support
9780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9781 archive_expsym_cmds=''
9784 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)'
9785 hardcode_libdir_flag_spec='-L$libdir'
9786 hardcode_minus_L=yes
9792 export_dynamic_flag_spec=-rdynamic
9795 cygwin* | mingw* | pw32* | cegcc*)
9796 # When not using gcc, we currently assume that we are using
9797 # Microsoft Visual C++.
9798 # hardcode_libdir_flag_spec is actually meaningless, as there is
9799 # no search path for DLLs.
9800 hardcode_libdir_flag_spec=' '
9801 allow_undefined_flag=unsupported
9802 # Tell ltmain to make .lib files, not .a files.
9804 # Tell ltmain to make .dll files, not .so files.
9806 # FIXME: Setting linknames here is a bad hack.
9807 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9808 # The linker will automatically build a .lib file if we build a DLL.
9809 old_archive_from_new_cmds='true'
9810 # FIXME: Should let the user specify the lib program.
9811 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9812 fix_srcfile_path='`cygpath -w "$srcfile"`'
9813 enable_shared_with_static_runtimes=yes
9816 darwin* | rhapsody*)
9819 archive_cmds_need_lc=no
9821 hardcode_automatic=yes
9822 hardcode_shlibpath_var=unsupported
9823 if test "$lt_cv_ld_force_load" = "yes"; then
9824 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\"`'
9826 whole_archive_flag_spec=''
9828 link_all_deplibs=yes
9829 allow_undefined_flag="$_lt_dar_allow_undefined"
9830 case $cc_basename in
9831 ifort*) _lt_dar_can_shared=yes ;;
9832 *) _lt_dar_can_shared=$GCC ;;
9834 if test "$_lt_dar_can_shared" = "yes"; then
9835 output_verbose_link_cmd=func_echo_all
9836 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9837 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9838 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}"
9839 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}"
9848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9849 hardcode_libdir_flag_spec='-L$libdir'
9850 hardcode_shlibpath_var=no
9857 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9858 # support. Future versions do this automatically, but an explicit c++rt0.o
9859 # does not break anything, and helps significantly (at the cost of a little
9862 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9863 hardcode_libdir_flag_spec='-R$libdir'
9865 hardcode_shlibpath_var=no
9868 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9872 hardcode_minus_L=yes
9873 hardcode_shlibpath_var=no
9876 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9877 freebsd* | dragonfly*)
9878 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9879 hardcode_libdir_flag_spec='-R$libdir'
9881 hardcode_shlibpath_var=no
9885 if test "$GCC" = yes; then
9886 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'
9888 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'
9890 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9891 hardcode_libdir_separator=:
9894 # hardcode_minus_L: Not really in the search PATH,
9895 # but as the default location of the library.
9896 hardcode_minus_L=yes
9897 export_dynamic_flag_spec='${wl}-E'
9901 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9902 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9904 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9906 if test "$with_gnu_ld" = no; then
9907 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9908 hardcode_libdir_flag_spec_ld='+b $libdir'
9909 hardcode_libdir_separator=:
9911 hardcode_direct_absolute=yes
9912 export_dynamic_flag_spec='${wl}-E'
9913 # hardcode_minus_L: Not really in the search PATH,
9914 # but as the default location of the library.
9915 hardcode_minus_L=yes
9920 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9923 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9926 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9929 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9935 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9938 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9942 # Older versions of the 11.00 compiler do not understand -b yet
9943 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9945 $as_echo_n "checking if $CC understands -b... " >&6; }
9946 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9947 $as_echo_n "(cached) " >&6
9949 lt_cv_prog_compiler__b=no
9950 save_LDFLAGS="$LDFLAGS"
9951 LDFLAGS="$LDFLAGS -b"
9952 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9953 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9954 # The linker can only warn and ignore the option if not recognized
9955 # So say no if there are warnings
9956 if test -s conftest.err; then
9957 # Append any errors to the config.log.
9958 cat conftest.err 1>&5
9959 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9960 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9961 if diff conftest.exp conftest.er2 >/dev/null; then
9962 lt_cv_prog_compiler__b=yes
9965 lt_cv_prog_compiler__b=yes
9969 LDFLAGS="$save_LDFLAGS"
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9973 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9975 if test x"$lt_cv_prog_compiler__b" = xyes; then
9976 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9978 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9984 if test "$with_gnu_ld" = no; then
9985 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9986 hardcode_libdir_separator=:
9991 hardcode_shlibpath_var=no
9995 hardcode_direct_absolute=yes
9996 export_dynamic_flag_spec='${wl}-E'
9998 # hardcode_minus_L: Not really in the search PATH,
9999 # but as the default location of the library.
10000 hardcode_minus_L=yes
10006 irix5* | irix6* | nonstopux*)
10007 if test "$GCC" = yes; then
10008 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'
10009 # Try to use the -exported_symbol ld option, if it does not
10010 # work, assume that -exports_file does not work either and
10011 # implicitly export all symbols.
10012 save_LDFLAGS="$LDFLAGS"
10013 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10015 /* end confdefs.h. */
10018 if ac_fn_c_try_link "$LINENO"; then :
10019 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'
10022 rm -f core conftest.err conftest.$ac_objext \
10023 conftest$ac_exeext conftest.$ac_ext
10024 LDFLAGS="$save_LDFLAGS"
10026 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'
10027 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'
10029 archive_cmds_need_lc='no'
10030 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10031 hardcode_libdir_separator=:
10033 link_all_deplibs=yes
10037 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10040 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10042 hardcode_libdir_flag_spec='-R$libdir'
10043 hardcode_direct=yes
10044 hardcode_shlibpath_var=no
10048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10049 hardcode_direct=yes
10050 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10051 hardcode_libdir_separator=:
10052 hardcode_shlibpath_var=no
10059 if test -f /usr/libexec/ld.so; then
10060 hardcode_direct=yes
10061 hardcode_shlibpath_var=no
10062 hardcode_direct_absolute=yes
10063 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10064 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10065 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10066 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10067 export_dynamic_flag_spec='${wl}-E'
10070 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10071 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10072 hardcode_libdir_flag_spec='-R$libdir'
10075 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10076 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10086 hardcode_libdir_flag_spec='-L$libdir'
10087 hardcode_minus_L=yes
10088 allow_undefined_flag=unsupported
10089 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'
10090 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10094 if test "$GCC" = yes; then
10095 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10096 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'
10098 allow_undefined_flag=' -expect_unresolved \*'
10099 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'
10101 archive_cmds_need_lc='no'
10102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10103 hardcode_libdir_separator=:
10106 osf4* | osf5*) # as osf3* with the addition of -msym flag
10107 if test "$GCC" = yes; then
10108 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10109 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'
10110 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10112 allow_undefined_flag=' -expect_unresolved \*'
10113 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'
10114 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~
10115 $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'
10117 # Both c and cxx compiler support -rpath directly
10118 hardcode_libdir_flag_spec='-rpath $libdir'
10120 archive_cmds_need_lc='no'
10121 hardcode_libdir_separator=:
10125 no_undefined_flag=' -z defs'
10126 if test "$GCC" = yes; then
10128 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10129 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10130 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10132 case `$CC -V 2>&1` in
10135 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10136 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10137 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10141 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10142 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10143 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10147 hardcode_libdir_flag_spec='-R$libdir'
10148 hardcode_shlibpath_var=no
10150 solaris2.[0-5] | solaris2.[0-5].*) ;;
10152 # The compiler driver will combine and reorder linker options,
10153 # but understands `-z linker_flag'. GCC discards it without `$wl',
10154 # but is careful enough not to reorder.
10155 # Supported since Solaris 2.6 (maybe 2.5.1?)
10156 if test "$GCC" = yes; then
10157 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10159 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10163 link_all_deplibs=yes
10167 if test "x$host_vendor" = xsequent; then
10168 # Use $CC to link under sequent, because it throws in some extra .o
10169 # files that make .init and .fini sections work.
10170 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10172 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10174 hardcode_libdir_flag_spec='-L$libdir'
10175 hardcode_direct=yes
10176 hardcode_minus_L=yes
10177 hardcode_shlibpath_var=no
10181 case $host_vendor in
10183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10184 hardcode_direct=yes # is this really true???
10187 ## LD is ld it makes a PLAMLIB
10188 ## CC just makes a GrossModule.
10189 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10190 reload_cmds='$CC -r -o $output$reload_objs'
10194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10195 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10198 runpath_var='LD_RUN_PATH'
10199 hardcode_shlibpath_var=no
10203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10204 hardcode_shlibpath_var=no
10205 export_dynamic_flag_spec='-Bexport'
10209 if test -d /usr/nec; then
10210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10211 hardcode_shlibpath_var=no
10212 runpath_var=LD_RUN_PATH
10213 hardcode_runpath_var=yes
10218 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10219 no_undefined_flag='${wl}-z,text'
10220 archive_cmds_need_lc=no
10221 hardcode_shlibpath_var=no
10222 runpath_var='LD_RUN_PATH'
10224 if test "$GCC" = yes; then
10225 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10226 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10228 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10229 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10233 sysv5* | sco3.2v5* | sco5v6*)
10234 # Note: We can NOT use -z defs as we might desire, because we do not
10235 # link with -lc, and that would cause any symbols used from libc to
10236 # always be unresolved, which means just about no library would
10237 # ever link correctly. If we're not using GNU ld we use -z text
10238 # though, which does catch some bad symbols but isn't as heavy-handed
10240 no_undefined_flag='${wl}-z,text'
10241 allow_undefined_flag='${wl}-z,nodefs'
10242 archive_cmds_need_lc=no
10243 hardcode_shlibpath_var=no
10244 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10245 hardcode_libdir_separator=':'
10246 link_all_deplibs=yes
10247 export_dynamic_flag_spec='${wl}-Bexport'
10248 runpath_var='LD_RUN_PATH'
10250 if test "$GCC" = yes; then
10251 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10252 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10254 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10255 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10261 hardcode_libdir_flag_spec='-L$libdir'
10262 hardcode_shlibpath_var=no
10270 if test x$host_vendor = xsni; then
10272 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10273 export_dynamic_flag_spec='${wl}-Blargedynsym'
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10280 $as_echo "$ld_shlibs" >&6; }
10281 test "$ld_shlibs" = no && can_build_shared=no
10283 with_gnu_ld=$with_gnu_ld
10300 # Do we need to explicitly link libc?
10302 case "x$archive_cmds_need_lc" in
10304 # Assume -lc should be added
10305 archive_cmds_need_lc=yes
10307 if test "$enable_shared" = yes && test "$GCC" = yes; then
10308 case $archive_cmds in
10310 # FIXME: we may have to deal with multi-command sequences.
10313 # Test whether the compiler implicitly links with -lc since on some
10314 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10315 # to ld, don't add -lc before -lgcc.
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10317 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10318 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10319 $as_echo_n "(cached) " >&6
10322 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10325 (eval $ac_compile) 2>&5
10327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10328 test $ac_status = 0; } 2>conftest.err; then
10331 libobjs=conftest.$ac_objext
10333 wl=$lt_prog_compiler_wl
10334 pic_flag=$lt_prog_compiler_pic
10340 lt_save_allow_undefined_flag=$allow_undefined_flag
10341 allow_undefined_flag=
10342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10343 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10346 test $ac_status = 0; }
10348 lt_cv_archive_cmds_need_lc=no
10350 lt_cv_archive_cmds_need_lc=yes
10352 allow_undefined_flag=$lt_save_allow_undefined_flag
10354 cat conftest.err 1>&5
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10360 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10361 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10525 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10527 if test "$GCC" = yes; then
10529 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10530 *) lt_awk_arg="/^libraries:/" ;;
10533 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10534 *) lt_sed_strip_eq="s,=/,/,g" ;;
10536 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10537 case $lt_search_path_spec in
10539 # if the path contains ";" then we assume it to be the separator
10540 # otherwise default to the standard path separator (i.e. ":") - it is
10541 # assumed that no part of a normal pathname contains ";" but that should
10542 # okay in the real world where ";" in dirpaths is itself problematic.
10543 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10546 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10549 # Ok, now we have the path, separated by spaces, we can step through it
10550 # and add multilib dir if necessary.
10551 lt_tmp_lt_search_path_spec=
10552 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10553 for lt_sys_path in $lt_search_path_spec; do
10554 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10555 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10557 test -d "$lt_sys_path" && \
10558 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10561 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10562 BEGIN {RS=" "; FS="/|\n";} {
10565 for (lt_i = NF; lt_i > 0; lt_i--) {
10566 if ($lt_i != "" && $lt_i != ".") {
10567 if ($lt_i == "..") {
10570 if (lt_count == 0) {
10571 lt_foo="/" $lt_i lt_foo;
10578 if (lt_foo != "") { lt_freq[lt_foo]++; }
10579 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10581 # AWK program above erroneously prepends '/' to C:/dos/paths
10584 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10585 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10587 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10589 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10591 library_names_spec=
10592 libname_spec='lib$name'
10596 postuninstall_cmds=
10600 shlibpath_overrides_runpath=unknown
10602 dynamic_linker="$host_os ld.so"
10603 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10604 need_lib_prefix=unknown
10605 hardcode_into_libs=no
10607 # when you set need_version to no, make sure it does not cause -set_version
10608 # flags to be left without arguments
10609 need_version=unknown
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10615 shlibpath_var=LIBPATH
10617 # AIX 3 has no versioning support, so we append a major version to the name.
10618 soname_spec='${libname}${release}${shared_ext}$major'
10625 hardcode_into_libs=yes
10626 if test "$host_cpu" = ia64; then
10627 # AIX 5 supports IA64
10628 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10629 shlibpath_var=LD_LIBRARY_PATH
10631 # With GCC up to 2.95.x, collect2 would create an import file
10632 # for dependence libraries. The import file would start with
10633 # the line `#! .'. This would cause the generated library to
10634 # depend on `.', always an invalid library. This was fixed in
10635 # development snapshots of GCC prior to 3.0.
10637 aix4 | aix4.[01] | aix4.[01].*)
10638 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10640 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10643 can_build_shared=no
10647 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10648 # soname into executable. Probably we can add versioning support to
10649 # collect2, so additional links can be useful in future.
10650 if test "$aix_use_runtimelinking" = yes; then
10651 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10652 # instead of lib<name>.a to let people know that these are not
10653 # typical AIX shared libraries.
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10656 # We preserve .a as extension for shared libraries through AIX4.2
10657 # and later when we are not doing run time linking.
10658 library_names_spec='${libname}${release}.a $libname.a'
10659 soname_spec='${libname}${release}${shared_ext}$major'
10661 shlibpath_var=LIBPATH
10668 # Since July 2007 AmigaOS4 officially supports .so libraries.
10669 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10673 library_names_spec='$libname.ixlibrary $libname.a'
10674 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10675 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'
10681 library_names_spec='${libname}${shared_ext}'
10682 dynamic_linker="$host_os ld.so"
10683 shlibpath_var=LIBRARY_PATH
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10690 soname_spec='${libname}${release}${shared_ext}$major'
10691 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10692 shlibpath_var=LD_LIBRARY_PATH
10693 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10694 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10695 # the default ld.so.conf also contains /usr/contrib/lib and
10696 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10697 # libtool to hard-code these into programs
10700 cygwin* | mingw* | pw32* | cegcc*)
10701 version_type=windows
10706 case $GCC,$host_os in
10707 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10708 library_names_spec='$libname.dll.a'
10709 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10710 postinstall_cmds='base_file=`basename \${file}`~
10711 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10712 dldir=$destdir/`dirname \$dlpath`~
10713 test -d \$dldir || mkdir -p \$dldir~
10714 $install_prog $dir/$dlname \$dldir/$dlname~
10715 chmod a+x \$dldir/$dlname~
10716 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10717 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10719 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10720 dlpath=$dir/\$dldll~
10722 shlibpath_overrides_runpath=yes
10726 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10727 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10729 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10732 # MinGW DLLs use traditional 'lib' prefix
10733 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10736 # pw32 DLLs use 'pw' prefix rather than 'lib'
10737 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10743 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10746 dynamic_linker='Win32 ld.exe'
10747 # FIXME: first we should search . and the directory the executable is in
10751 darwin* | rhapsody*)
10752 dynamic_linker="$host_os dyld"
10753 version_type=darwin
10756 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10757 soname_spec='${libname}${release}${major}$shared_ext'
10758 shlibpath_overrides_runpath=yes
10759 shlibpath_var=DYLD_LIBRARY_PATH
10760 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10762 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10763 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10771 soname_spec='${libname}${release}${shared_ext}$major'
10772 shlibpath_var=LD_LIBRARY_PATH
10779 freebsd* | dragonfly*)
10780 # DragonFly does not have aout. When/if they implement a new
10781 # versioning mechanism, adjust this.
10782 if test -x /usr/bin/objformat; then
10783 objformat=`/usr/bin/objformat`
10786 freebsd[123]*) objformat=aout ;;
10787 *) objformat=elf ;;
10790 version_type=freebsd-$objformat
10791 case $version_type in
10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10802 shlibpath_var=LD_LIBRARY_PATH
10805 shlibpath_overrides_runpath=yes
10807 freebsd3.[01]* | freebsdelf3.[01]*)
10808 shlibpath_overrides_runpath=yes
10809 hardcode_into_libs=yes
10811 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10812 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10813 shlibpath_overrides_runpath=no
10814 hardcode_into_libs=yes
10816 *) # from 4.6 on, and DragonFly
10817 shlibpath_overrides_runpath=yes
10818 hardcode_into_libs=yes
10827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10828 soname_spec='${libname}${release}${shared_ext}$major'
10829 shlibpath_var=LD_LIBRARY_PATH
10830 hardcode_into_libs=yes
10837 dynamic_linker="$host_os runtime_loader"
10838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10839 soname_spec='${libname}${release}${shared_ext}$major'
10840 shlibpath_var=LIBRARY_PATH
10841 shlibpath_overrides_runpath=yes
10842 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10843 hardcode_into_libs=yes
10846 hpux9* | hpux10* | hpux11*)
10847 # Give a soname corresponding to the major version so that dld.sl refuses to
10848 # link against other versions.
10855 hardcode_into_libs=yes
10856 dynamic_linker="$host_os dld.so"
10857 shlibpath_var=LD_LIBRARY_PATH
10858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10860 soname_spec='${libname}${release}${shared_ext}$major'
10861 if test "X$HPUX_IA64_MODE" = X32; then
10862 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10864 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10870 hardcode_into_libs=yes
10871 dynamic_linker="$host_os dld.sl"
10872 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10875 soname_spec='${libname}${release}${shared_ext}$major'
10876 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10877 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10881 dynamic_linker="$host_os dld.sl"
10882 shlibpath_var=SHLIB_PATH
10883 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10885 soname_spec='${libname}${release}${shared_ext}$major'
10888 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10889 postinstall_cmds='chmod 555 $lib'
10890 # or fails outright, so override atomically:
10891 install_override_mode=555
10898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10899 soname_spec='${libname}${release}${shared_ext}$major'
10900 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10901 shlibpath_var=LD_LIBRARY_PATH
10902 shlibpath_overrides_runpath=no
10903 hardcode_into_libs=yes
10906 irix5* | irix6* | nonstopux*)
10908 nonstopux*) version_type=nonstopux ;;
10910 if test "$lt_cv_prog_gnu_ld" = yes; then
10918 soname_spec='${libname}${release}${shared_ext}$major'
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10921 irix5* | nonstopux*)
10922 libsuff= shlibsuff=
10925 case $LD in # libtool.m4 will add one of these switches to LD
10926 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10927 libsuff= shlibsuff= libmagic=32-bit;;
10928 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10929 libsuff=32 shlibsuff=N32 libmagic=N32;;
10930 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10931 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10932 *) libsuff= shlibsuff= libmagic=never-match;;
10936 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10937 shlibpath_overrides_runpath=no
10938 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10939 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10940 hardcode_into_libs=yes
10943 # No shared lib support for Linux oldld, aout, or coff.
10944 linux*oldld* | linux*aout* | linux*coff*)
10948 # This must be Linux ELF.
10949 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954 soname_spec='${libname}${release}${shared_ext}$major'
10955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10956 shlibpath_var=LD_LIBRARY_PATH
10957 shlibpath_overrides_runpath=no
10959 # Some binutils ld are patched to set DT_RUNPATH
10960 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10961 $as_echo_n "(cached) " >&6
10963 lt_cv_shlibpath_overrides_runpath=no
10964 save_LDFLAGS=$LDFLAGS
10965 save_libdir=$libdir
10966 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10967 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10969 /* end confdefs.h. */
10979 if ac_fn_c_try_link "$LINENO"; then :
10980 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10981 lt_cv_shlibpath_overrides_runpath=yes
10984 rm -f core conftest.err conftest.$ac_objext \
10985 conftest$ac_exeext conftest.$ac_ext
10986 LDFLAGS=$save_LDFLAGS
10987 libdir=$save_libdir
10991 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10993 # This implies no fast_install, which is unacceptable.
10994 # Some rework will be needed to allow for fast_install
10995 # before this can be enabled.
10996 hardcode_into_libs=yes
10998 # Append ld.so.conf contents to the search path
10999 if test -f /etc/ld.so.conf; then
11000 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' ' '`
11001 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11004 # We used to test for /lib/ld.so.1 and disable shared libraries on
11005 # powerpc, because MkLinux only supported shared libraries with the
11006 # GNU dynamic linker. Since this was broken with cross compilers,
11007 # most powerpc-linux boxes support dynamic linking these days and
11008 # people can always --disable-shared, the test was removed, and we
11009 # assume the GNU/Linux dynamic linker is in use.
11010 dynamic_linker='GNU/Linux ld.so'
11017 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11020 dynamic_linker='NetBSD (a.out) ld.so'
11022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11023 soname_spec='${libname}${release}${shared_ext}$major'
11024 dynamic_linker='NetBSD ld.elf_so'
11026 shlibpath_var=LD_LIBRARY_PATH
11027 shlibpath_overrides_runpath=yes
11028 hardcode_into_libs=yes
11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034 shlibpath_var=LD_LIBRARY_PATH
11035 shlibpath_overrides_runpath=yes
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043 soname_spec='${libname}${release}${shared_ext}$major'
11044 shlibpath_var=LD_LIBRARY_PATH
11045 shlibpath_overrides_runpath=no
11046 hardcode_into_libs=yes
11047 dynamic_linker='ldqnx.so'
11052 sys_lib_dlsearch_path_spec="/usr/lib"
11054 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11056 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11057 *) need_version=no ;;
11059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11061 shlibpath_var=LD_LIBRARY_PATH
11062 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11064 openbsd2.[89] | openbsd2.[89].*)
11065 shlibpath_overrides_runpath=no
11068 shlibpath_overrides_runpath=yes
11072 shlibpath_overrides_runpath=yes
11077 libname_spec='$name'
11080 library_names_spec='$libname${shared_ext} $libname.a'
11081 dynamic_linker='OS/2 ld.exe'
11082 shlibpath_var=LIBPATH
11085 osf3* | osf4* | osf5*)
11089 soname_spec='${libname}${release}${shared_ext}$major'
11090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091 shlibpath_var=LD_LIBRARY_PATH
11092 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11093 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105 soname_spec='${libname}${release}${shared_ext}$major'
11106 shlibpath_var=LD_LIBRARY_PATH
11107 shlibpath_overrides_runpath=yes
11108 hardcode_into_libs=yes
11109 # ldd complains unless libraries are executable
11110 postinstall_cmds='chmod +x $lib'
11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11116 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11117 shlibpath_var=LD_LIBRARY_PATH
11118 shlibpath_overrides_runpath=yes
11119 if test "$with_gnu_ld" = yes; then
11127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11128 soname_spec='${libname}${release}${shared_ext}$major'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 case $host_vendor in
11132 shlibpath_overrides_runpath=no
11134 runpath_var=LD_RUN_PATH
11142 shlibpath_overrides_runpath=no
11143 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11149 if test -d /usr/nec ;then
11151 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11152 soname_spec='$libname${shared_ext}.$major'
11153 shlibpath_var=LD_LIBRARY_PATH
11157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11158 version_type=freebsd-elf
11161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11162 soname_spec='${libname}${release}${shared_ext}$major'
11163 shlibpath_var=LD_LIBRARY_PATH
11164 shlibpath_overrides_runpath=yes
11165 hardcode_into_libs=yes
11166 if test "$with_gnu_ld" = yes; then
11167 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11169 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11172 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11176 sys_lib_dlsearch_path_spec='/usr/lib'
11180 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185 shlibpath_var=LD_LIBRARY_PATH
11186 shlibpath_overrides_runpath=no
11187 hardcode_into_libs=yes
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193 soname_spec='${libname}${release}${shared_ext}$major'
11194 shlibpath_var=LD_LIBRARY_PATH
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11202 $as_echo "$dynamic_linker" >&6; }
11203 test "$dynamic_linker" = no && can_build_shared=no
11205 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11206 if test "$GCC" = yes; then
11207 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11210 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11211 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11213 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11214 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11309 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11311 if test -n "$hardcode_libdir_flag_spec" ||
11312 test -n "$runpath_var" ||
11313 test "X$hardcode_automatic" = "Xyes" ; then
11315 # We can hardcode non-existent directories.
11316 if test "$hardcode_direct" != no &&
11317 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11318 # have to relink, otherwise we might link with an installed library
11319 # when we should be linking with a yet-to-be-installed one
11320 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11321 test "$hardcode_minus_L" != no; then
11322 # Linking always hardcodes the temporary library directory.
11323 hardcode_action=relink
11325 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11326 hardcode_action=immediate
11329 # We cannot hardcode anything, or else we can only hardcode existing
11331 hardcode_action=unsupported
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11334 $as_echo "$hardcode_action" >&6; }
11336 if test "$hardcode_action" = relink ||
11337 test "$inherit_rpath" = yes; then
11338 # Fast installation is not supported
11339 enable_fast_install=no
11340 elif test "$shlibpath_overrides_runpath" = yes ||
11341 test "$enable_shared" = no; then
11342 # Fast installation is not necessary
11343 enable_fast_install=needless
11351 if test "x$enable_dlopen" != xyes; then
11352 enable_dlopen=unknown
11353 enable_dlopen_self=unknown
11354 enable_dlopen_self_static=unknown
11361 lt_cv_dlopen="load_add_on"
11363 lt_cv_dlopen_self=yes
11366 mingw* | pw32* | cegcc*)
11367 lt_cv_dlopen="LoadLibrary"
11372 lt_cv_dlopen="dlopen"
11377 # if libdl is installed we need to link against it
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11379 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11380 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11381 $as_echo_n "(cached) " >&6
11383 ac_check_lib_save_LIBS=$LIBS
11385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */
11388 /* Override any GCC internal prototype to avoid an error.
11389 Use char because int might match the return type of a GCC
11390 builtin and then its argument prototype would still apply. */
11403 if ac_fn_c_try_link "$LINENO"; then :
11404 ac_cv_lib_dl_dlopen=yes
11406 ac_cv_lib_dl_dlopen=no
11408 rm -f core conftest.err conftest.$ac_objext \
11409 conftest$ac_exeext conftest.$ac_ext
11410 LIBS=$ac_check_lib_save_LIBS
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11413 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11414 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11415 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11418 lt_cv_dlopen="dyld"
11420 lt_cv_dlopen_self=yes
11427 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11428 if test "x$ac_cv_func_shl_load" = x""yes; then :
11429 lt_cv_dlopen="shl_load"
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11432 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11433 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11434 $as_echo_n "(cached) " >&6
11436 ac_check_lib_save_LIBS=$LIBS
11438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439 /* end confdefs.h. */
11441 /* Override any GCC internal prototype to avoid an error.
11442 Use char because int might match the return type of a GCC
11443 builtin and then its argument prototype would still apply. */
11451 return shl_load ();
11456 if ac_fn_c_try_link "$LINENO"; then :
11457 ac_cv_lib_dld_shl_load=yes
11459 ac_cv_lib_dld_shl_load=no
11461 rm -f core conftest.err conftest.$ac_objext \
11462 conftest$ac_exeext conftest.$ac_ext
11463 LIBS=$ac_check_lib_save_LIBS
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11466 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11467 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11468 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11470 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11471 if test "x$ac_cv_func_dlopen" = x""yes; then :
11472 lt_cv_dlopen="dlopen"
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11475 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11476 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11477 $as_echo_n "(cached) " >&6
11479 ac_check_lib_save_LIBS=$LIBS
11481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11482 /* end confdefs.h. */
11484 /* Override any GCC internal prototype to avoid an error.
11485 Use char because int might match the return type of a GCC
11486 builtin and then its argument prototype would still apply. */
11499 if ac_fn_c_try_link "$LINENO"; then :
11500 ac_cv_lib_dl_dlopen=yes
11502 ac_cv_lib_dl_dlopen=no
11504 rm -f core conftest.err conftest.$ac_objext \
11505 conftest$ac_exeext conftest.$ac_ext
11506 LIBS=$ac_check_lib_save_LIBS
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11509 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11510 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11511 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11514 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11515 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11516 $as_echo_n "(cached) " >&6
11518 ac_check_lib_save_LIBS=$LIBS
11519 LIBS="-lsvld $LIBS"
11520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521 /* end confdefs.h. */
11523 /* Override any GCC internal prototype to avoid an error.
11524 Use char because int might match the return type of a GCC
11525 builtin and then its argument prototype would still apply. */
11538 if ac_fn_c_try_link "$LINENO"; then :
11539 ac_cv_lib_svld_dlopen=yes
11541 ac_cv_lib_svld_dlopen=no
11543 rm -f core conftest.err conftest.$ac_objext \
11544 conftest$ac_exeext conftest.$ac_ext
11545 LIBS=$ac_check_lib_save_LIBS
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11548 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11549 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11550 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11553 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11554 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11555 $as_echo_n "(cached) " >&6
11557 ac_check_lib_save_LIBS=$LIBS
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11562 /* Override any GCC internal prototype to avoid an error.
11563 Use char because int might match the return type of a GCC
11564 builtin and then its argument prototype would still apply. */
11572 return dld_link ();
11577 if ac_fn_c_try_link "$LINENO"; then :
11578 ac_cv_lib_dld_dld_link=yes
11580 ac_cv_lib_dld_dld_link=no
11582 rm -f core conftest.err conftest.$ac_objext \
11583 conftest$ac_exeext conftest.$ac_ext
11584 LIBS=$ac_check_lib_save_LIBS
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11587 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11588 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11589 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11610 if test "x$lt_cv_dlopen" != xno; then
11616 case $lt_cv_dlopen in
11618 save_CPPFLAGS="$CPPFLAGS"
11619 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11621 save_LDFLAGS="$LDFLAGS"
11622 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11625 LIBS="$lt_cv_dlopen_libs $LIBS"
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11628 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11629 if test "${lt_cv_dlopen_self+set}" = set; then :
11630 $as_echo_n "(cached) " >&6
11632 if test "$cross_compiling" = yes; then :
11633 lt_cv_dlopen_self=cross
11635 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11636 lt_status=$lt_dlunknown
11637 cat > conftest.$ac_ext <<_LT_EOF
11638 #line 11638 "configure"
11639 #include "confdefs.h"
11648 # define LT_DLGLOBAL RTLD_GLOBAL
11651 # define LT_DLGLOBAL DL_GLOBAL
11653 # define LT_DLGLOBAL 0
11657 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11658 find out it does not work in some platform. */
11659 #ifndef LT_DLLAZY_OR_NOW
11661 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11664 # define LT_DLLAZY_OR_NOW DL_LAZY
11667 # define LT_DLLAZY_OR_NOW RTLD_NOW
11670 # define LT_DLLAZY_OR_NOW DL_NOW
11672 # define LT_DLLAZY_OR_NOW 0
11679 /* When -fvisbility=hidden is used, assume the code has been annotated
11680 correspondingly for the symbols needed. */
11681 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11682 void fnord () __attribute__((visibility("default")));
11685 void fnord () { int i=42; }
11688 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11689 int status = $lt_dlunknown;
11693 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11696 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11697 else puts (dlerror ());
11699 /* dlclose (self); */
11707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11708 (eval $ac_link) 2>&5
11710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11711 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11712 (./conftest; exit; ) >&5 2>/dev/null
11714 case x$lt_status in
11715 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11716 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11717 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11720 # compilation failed
11721 lt_cv_dlopen_self=no
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11729 $as_echo "$lt_cv_dlopen_self" >&6; }
11731 if test "x$lt_cv_dlopen_self" = xyes; then
11732 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11734 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11735 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11736 $as_echo_n "(cached) " >&6
11738 if test "$cross_compiling" = yes; then :
11739 lt_cv_dlopen_self_static=cross
11741 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11742 lt_status=$lt_dlunknown
11743 cat > conftest.$ac_ext <<_LT_EOF
11744 #line 11744 "configure"
11745 #include "confdefs.h"
11754 # define LT_DLGLOBAL RTLD_GLOBAL
11757 # define LT_DLGLOBAL DL_GLOBAL
11759 # define LT_DLGLOBAL 0
11763 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11764 find out it does not work in some platform. */
11765 #ifndef LT_DLLAZY_OR_NOW
11767 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11770 # define LT_DLLAZY_OR_NOW DL_LAZY
11773 # define LT_DLLAZY_OR_NOW RTLD_NOW
11776 # define LT_DLLAZY_OR_NOW DL_NOW
11778 # define LT_DLLAZY_OR_NOW 0
11785 /* When -fvisbility=hidden is used, assume the code has been annotated
11786 correspondingly for the symbols needed. */
11787 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11788 void fnord () __attribute__((visibility("default")));
11791 void fnord () { int i=42; }
11794 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11795 int status = $lt_dlunknown;
11799 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11802 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11803 else puts (dlerror ());
11805 /* dlclose (self); */
11813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11814 (eval $ac_link) 2>&5
11816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11817 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11818 (./conftest; exit; ) >&5 2>/dev/null
11820 case x$lt_status in
11821 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11822 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11823 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11826 # compilation failed
11827 lt_cv_dlopen_self_static=no
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11835 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11838 CPPFLAGS="$save_CPPFLAGS"
11839 LDFLAGS="$save_LDFLAGS"
11844 case $lt_cv_dlopen_self in
11845 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11846 *) enable_dlopen_self=unknown ;;
11849 case $lt_cv_dlopen_self_static in
11850 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11851 *) enable_dlopen_self_static=unknown ;;
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11874 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11875 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11876 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11877 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11879 $as_echo "yes" >&6; }
11881 # FIXME - insert some real tests, host_os isn't really good enough
11884 if test -n "$STRIP" ; then
11885 striplib="$STRIP -x"
11886 old_striplib="$STRIP -S"
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11888 $as_echo "yes" >&6; }
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896 $as_echo "no" >&6; }
11912 # Report which library types will actually be built
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11914 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11916 $as_echo "$can_build_shared" >&6; }
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11919 $as_echo_n "checking whether to build shared libraries... " >&6; }
11920 test "$can_build_shared" = "no" && enable_shared=no
11922 # On AIX, shared libraries and static libraries use the same namespace, and
11923 # are all built from PIC.
11926 test "$enable_shared" = yes && enable_static=no
11927 if test -n "$RANLIB"; then
11928 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11929 postinstall_cmds='$RANLIB $lib'
11934 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11935 test "$enable_shared" = yes && enable_static=no
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11940 $as_echo "$enable_shared" >&6; }
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11943 $as_echo_n "checking whether to build static libraries... " >&6; }
11944 # Make sure either enable_shared or enable_static is yes.
11945 test "$enable_shared" = yes || enable_static=yes
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11947 $as_echo "$enable_static" >&6; }
11954 ac_cpp='$CPP $CPPFLAGS'
11955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11973 ac_config_commands="$ac_config_commands libtool"
11978 # Only expand once:
11983 # Check whether --enable-newlib_hw_fp was given.
11984 if test "${enable_newlib_hw_fp+set}" = set; then :
11985 enableval=$enable_newlib_hw_fp; case "${enableval}" in
11986 yes) newlib_hw_fp=true ;;
11987 no) newlib_hw_fp=false ;;
11988 *) as_fn_error "bad value ${enableval} for --enable-newlib-hw-fp" "$LINENO" 5 ;;
11994 if test x$newlib_hw_fp = xtrue; then
11996 NEWLIB_HW_FP_FALSE='#'
11998 NEWLIB_HW_FP_TRUE='#'
11999 NEWLIB_HW_FP_FALSE=
12003 # These get added in the top-level configure.in, except in the case where
12004 # newlib is being built natively.
12005 LIBC_INCLUDE_GREP=`echo ${CC} | grep \/libc\/include`
12006 abs_newlib_basedir=`cd ${newlib_basedir} && pwd`
12007 if test -z "${LIBC_INCLUDE_GREP}"; then
12008 CC_FOR_NEWLIB="${CC} -I$PWD/targ-include -I${abs_newlib_basedir}/libc/include"
12010 CC_FOR_NEWLIB="${CC}"
12016 subdirs="$subdirs libc"
12018 subdirs="$subdirs libm"
12021 if test -z "${with_multisubdir}"; then
12022 subdirs="$subdirs doc"
12028 if test x$have_doc = xyes; then
12039 i[34567]86-pc-linux-*)
12040 subdirs="$subdirs iconvdata"
12042 EXTRA_DIRS=iconvdata
12049 if test "x${have_crt0}" = "xyes"; then
12058 if test -n "${crt1_dir}"; then
12059 CRT1_DIR=${crt1_dir}/
12064 if test -n "${libm_machine_dir}"; then
12065 LIBM_MACHINE_OBJECTLIST=libm/machine/${libm_machine_dir}/objectlist.awk.in
12069 if test -n "${machine_dir}"; then
12070 MACHINE_OBJECTLIST=libc/machine/${machine_dir}/objectlist.awk.in
12074 if test -n "${sys_dir}"; then
12075 SYS_OBJECTLIST=libc/sys/${sys_dir}/objectlist.awk.in
12079 if test "${have_sys_mach_dir}" = "yes"; then
12080 SYS_MACH_OBJECTLIST=libc/sys/${sys_dir}/machine/${machine_dir}/objectlist.awk.in
12084 if test -n "${posix_dir}"; then
12085 POSIX_OBJECTLIST=libc/${posix_dir}/objectlist.awk.in
12089 if test -n "${signal_dir}"; then
12090 SIGNAL_OBJECTLIST=libc/${signal_dir}/objectlist.awk.in
12094 if test -n "${syscall_dir}"; then
12095 SYSCALL_OBJECTLIST=libc/${syscall_dir}/objectlist.awk.in
12099 if test -n "${unix_dir}"; then
12100 UNIX_OBJECTLIST=libc/${unix_dir}/objectlist.awk.in
12104 if test -n "${stdio64_dir}"; then
12105 STDIO64_OBJECTLIST=libc/${stdio64_dir}/objectlist.awk.in
12109 # Put a plausible default for CC_FOR_BUILD in Makefile.
12110 if test -z "$CC_FOR_BUILD"; then
12115 if test "${newlib_elix_level}" -gt "0"; then
12116 cat >>confdefs.h <<_ACEOF
12117 #define _ELIX_LEVEL ${newlib_elix_level}
12122 if test "${newlib_io_c99_formats}" = "yes"; then
12123 cat >>confdefs.h <<_ACEOF
12124 #define _WANT_IO_C99_FORMATS 1
12129 if test "${newlib_register_fini}" = "yes"; then
12130 cat >>confdefs.h <<_ACEOF
12131 #define _WANT_REGISTER_FINI 1
12136 if test "${newlib_io_long_long}" = "yes"; then
12137 cat >>confdefs.h <<_ACEOF
12138 #define _WANT_IO_LONG_LONG 1
12143 if test "${newlib_io_long_double}" = "yes"; then
12144 cat >>confdefs.h <<_ACEOF
12145 #define _WANT_IO_LONG_DOUBLE 1
12150 if test "${newlib_io_pos_args}" = "yes"; then
12151 cat >>confdefs.h <<_ACEOF
12152 #define _WANT_IO_POS_ARGS 1
12157 if test "${newlib_reent_small}" = "yes"; then
12158 cat >>confdefs.h <<_ACEOF
12159 #define _WANT_REENT_SMALL 1
12164 if test "${newlib_mb}" = "yes"; then
12165 cat >>confdefs.h <<_ACEOF
12166 #define _MB_CAPABLE 1
12169 cat >>confdefs.h <<_ACEOF
12170 #define _MB_LEN_MAX 8
12174 cat >>confdefs.h <<_ACEOF
12175 #define _MB_LEN_MAX 1
12180 if test "${newlib_iconv_external_ccs}" = "yes"; then
12181 cat >>confdefs.h <<_ACEOF
12182 #define _ICONV_ENABLE_EXTERNAL_CCS 1
12187 cat >>confdefs.h <<_ACEOF
12188 #define _NEWLIB_VERSION "1.19.0"
12192 if test "${multilib}" = "yes"; then
12193 multilib_arg="--enable-multilib"
12198 if test "${newlib_iconv}" = "yes"; then
12199 cat >>confdefs.h <<_ACEOF
12200 #define _ICONV_ENABLED 1
12205 if test "x${newlib_iconv_external_ccs}" = "xyes"; then
12206 if test "x${newlib_iconv}" = "x"; then
12207 { as_fn_set_status use --enable-newlib-iconv to enable it.
12208 as_fn_error "--enable-newlib-iconv-external-ccs option can't be used if iconv library is disabled" "$LINENO" 5; }
12210 cat >>confdefs.h <<_ACEOF
12211 #define _ICONV_ENABLE_EXTERNAL_CCS 1
12216 if test "${newlib_atexit_dynamic_alloc}" = "yes"; then
12217 cat >>confdefs.h <<_ACEOF
12218 #define _ATEXIT_DYNAMIC_ALLOC 1
12224 if test "x${iconv_encodings}" != "x" \
12225 || test "x${iconv_to_encodings}" != "x" \
12226 || test "x${iconv_from_encodings}" != "x"; then
12227 if test "x${newlib_iconv}" = "x"; then
12228 as_fn_error "--enable-newlib-iconv-encodings, --enable-newlib-iconv-from-encodings and --enable-newlib-iconv-to-encodings option can't be used if iconv library is disabled, use --enable-newlib-iconv to enable it." "$LINENO" 5
12231 iconv_encodings=`echo "${iconv_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
12232 iconv_to_encodings=`echo "${iconv_to_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
12233 iconv_from_encodings=`echo "${iconv_from_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
12235 available_encodings=`cat "${srcdir}/libc/iconv/encoding.aliases" | sed -e '/^#.*/d'`
12238 iconv_encodings1="${iconv_encodings}"
12240 for encoding in ${iconv_encodings1}; do
12241 result=`echo "${available_encodings}" | grep -e "\(^\| \)${encoding}\( \|\$\)"`
12242 if test $? != "0"; then
12243 as_fn_error "${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" "$LINENO" 5
12245 encoding1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
12246 iconv_encodings="${iconv_encodings} ${encoding1}"
12248 for encoding in ${iconv_encodings}; do
12249 opt=_ICONV_TO_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12250 cat >>confdefs.h <<_ACEOF
12254 opt=_ICONV_FROM_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12255 cat >>confdefs.h <<_ACEOF
12261 iconv_encodings1="${iconv_to_encodings}"
12262 iconv_to_encodings=""
12263 for encoding in ${iconv_encodings1}; do
12264 result=`echo "${available_encodings}" | grep -e "\(^\| \)${encoding}\( \|\$\)"`
12265 if test $? != "0"; then
12266 as_fn_error "${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" "$LINENO" 5
12268 encoding1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
12269 iconv_to_encodings="${iconv_to_encodings} ${encoding1}"
12271 for encoding in ${iconv_to_encodings}; do
12272 opt=_ICONV_TO_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12273 cat >>confdefs.h <<_ACEOF
12279 iconv_encodings1="${iconv_from_encodings}"
12280 iconv_from_encodings=""
12281 for encoding in ${iconv_encodings1}; do
12282 result=`echo "${available_encodings}" | grep -e "\(^\| \)${encoding}\( \|\$\)"`
12283 if test $? != "0"; then
12284 as_fn_error "${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" "$LINENO" 5
12286 encoding1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
12287 iconv_from_encodings="${iconv_from_encodings} ${encoding1}"
12289 for encoding in ${iconv_from_encodings}; do
12290 opt=_ICONV_FROM_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12291 cat >>confdefs.h <<_ACEOF
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
12299 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
12300 if test "${libc_cv_initfinit_array+set}" = set; then :
12301 $as_echo_n "(cached) " >&6
12303 cat > conftest.c <<EOF
12304 int _start (void) { return 0; }
12305 int __start (void) { return 0; }
12306 int foo (void) { return 1; }
12307 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12309 if { ac_try='${CC} $CFLAGS $CPPFLAGS -c -o conftest conftest.c
12311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12312 (eval $ac_try) 2>&5
12314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12315 test $ac_status = 0; }; }
12317 if ${READELF} -S conftest | grep -e INIT_ARRAY > /dev/null; then
12318 libc_cv_initfinit_array=yes
12320 libc_cv_initfinit_array=no
12323 libc_cv_initfinit_array=no
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_initfinit_array" >&5
12328 $as_echo "$libc_cv_initfinit_array" >&6; }
12330 if test $libc_cv_initfinit_array = yes; then
12331 cat >>confdefs.h <<_ACEOF
12332 #define HAVE_INITFINI_ARRAY 1
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double type exists" >&5
12338 $as_echo_n "checking whether long double type exists... " >&6; }
12339 if test "${acnewlib_cv_type_long_double+set}" = set; then :
12340 $as_echo_n "(cached) " >&6
12342 cat > conftest.c <<EOF
12343 /* Check two ways: float.h defines and direct type declaration. */
12345 #if defined(LDBL_MANT_DIG)
12346 #define _HAVE_LONG_DOUBLE
12348 #error "LDBL != DBL"
12350 long double test() {
12351 long double ld = 0.0L;
12355 if { ac_try='${CC} $CFLAGS $CPPFLAGS -c -o conftest.o conftest.c
12357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12358 (eval $ac_try) 2>&5
12360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12361 test $ac_status = 0; }; }
12363 acnewlib_cv_type_long_double=yes;
12365 acnewlib_cv_type_long_double=no;
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acnewlib_cv_type_long_double" >&5
12370 $as_echo "$acnewlib_cv_type_long_double" >&6; }
12371 if test $acnewlib_cv_type_long_double = yes; then
12372 cat >>confdefs.h <<_ACEOF
12373 #define _HAVE_LONG_DOUBLE 1
12377 if test x"$acnewlib_cv_type_long_double" = x"yes"; then
12378 HAVE_LONG_DOUBLE_TRUE=
12379 HAVE_LONG_DOUBLE_FALSE='#'
12381 HAVE_LONG_DOUBLE_TRUE='#'
12382 HAVE_LONG_DOUBLE_FALSE=
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double equals double" >&5
12387 $as_echo_n "checking whether long double equals double... " >&6; }
12388 if test "${newlib_cv_ldbl_eq_dbl+set}" = set; then :
12389 $as_echo_n "(cached) " >&6
12391 cat > conftest.c <<EOF
12393 #if DBL_MANT_DIG == LDBL_MANT_DIG && LDBL_MIN_EXP == DBL_MIN_EXP && \
12394 LDBL_MAX_EXP == DBL_MAX_EXP
12395 #define _LDBL_EQ_DBL
12397 #error "LDBL != DBL"
12400 if { ac_try='${CC} $CFLAGS $CPPFLAGS -c -o conftest.o conftest.c
12402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12403 (eval $ac_try) 2>&5
12405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12406 test $ac_status = 0; }; }
12408 newlib_cv_ldbl_eq_dbl=yes;
12410 newlib_cv_ldbl_eq_dbl=no;
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $newlib_cv_ldbl_eq_dbl" >&5
12415 $as_echo "$newlib_cv_ldbl_eq_dbl" >&6; }
12416 if test $newlib_cv_ldbl_eq_dbl = yes; then
12417 cat >>confdefs.h <<_ACEOF
12418 #define _LDBL_EQ_DBL 1
12425 ac_config_files="$ac_config_files Makefile"
12427 cat >confcache <<\_ACEOF
12428 # This file is a shell script that caches the results of configure
12429 # tests run on this system so they can be shared between configure
12430 # scripts and configure runs, see configure's option --config-cache.
12431 # It is not useful on other systems. If it contains results you don't
12432 # want to keep, you may remove or edit it.
12434 # config.status only pays attention to the cache file if you give it
12435 # the --recheck option to rerun configure.
12437 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12438 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12439 # following values.
12443 # The following way of writing the cache mishandles newlines in values,
12444 # but we know of no workaround that is simple, portable, and efficient.
12445 # So, we kill variables containing newlines.
12446 # Ultrix sh set writes to stderr and can't be redirected directly,
12447 # and sets the high bit in the cache file unless we assign to the vars.
12449 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12450 eval ac_val=\$$ac_var
12454 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12455 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12458 _ | IFS | as_nl) ;; #(
12459 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12460 *) { eval $ac_var=; unset $ac_var;} ;;
12466 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12467 *${as_nl}ac_space=\ *)
12468 # `set' does not quote correctly, so add quotes: double-quote
12469 # substitution turns \\\\ into \\, and sed turns \\ into \.
12472 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12475 # `set' quotes correctly as required by POSIX, so do not add quotes.
12476 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12485 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12487 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12489 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12490 if test -w "$cache_file"; then
12491 test "x$cache_file" != "x/dev/null" &&
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12493 $as_echo "$as_me: updating cache $cache_file" >&6;}
12494 cat confcache >$cache_file
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12497 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12502 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12503 # Let make expand exec_prefix.
12504 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12506 DEFS=-DHAVE_CONFIG_H
12510 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12511 # 1. Remove the extension, and $U if already installed.
12512 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12513 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12514 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12515 # will be set to the directory where LIBOBJS objects are built.
12516 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12517 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12519 LIBOBJS=$ac_libobjs
12521 LTLIBOBJS=$ac_ltlibobjs
12524 if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
12525 as_fn_error "conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12528 if test -n "$EXEEXT"; then
12530 am__EXEEXT_FALSE='#'
12532 am__EXEEXT_TRUE='#'
12536 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12537 as_fn_error "conditional \"AMDEP\" was never defined.
12538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12540 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12541 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12544 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12545 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12548 if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
12549 as_fn_error "conditional \"ELIX_LEVEL_0\" was never defined.
12550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12552 if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
12553 as_fn_error "conditional \"ELIX_LEVEL_1\" was never defined.
12554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12556 if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
12557 as_fn_error "conditional \"ELIX_LEVEL_2\" was never defined.
12558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12560 if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
12561 as_fn_error "conditional \"ELIX_LEVEL_3\" was never defined.
12562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12564 if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
12565 as_fn_error "conditional \"ELIX_LEVEL_4\" was never defined.
12566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12568 if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
12569 as_fn_error "conditional \"USE_LIBTOOL\" was never defined.
12570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12572 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12573 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12576 if test -z "${NEWLIB_HW_FP_TRUE}" && test -z "${NEWLIB_HW_FP_FALSE}"; then
12577 as_fn_error "conditional \"NEWLIB_HW_FP\" was never defined.
12578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12580 if test -z "${HAVE_DOC_TRUE}" && test -z "${HAVE_DOC_FALSE}"; then
12581 as_fn_error "conditional \"HAVE_DOC\" was never defined.
12582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12584 if test -z "${HAVE_LONG_DOUBLE_TRUE}" && test -z "${HAVE_LONG_DOUBLE_FALSE}"; then
12585 as_fn_error "conditional \"HAVE_LONG_DOUBLE\" was never defined.
12586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12589 : ${CONFIG_STATUS=./config.status}
12591 ac_clean_files_save=$ac_clean_files
12592 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12594 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12596 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12598 # Generated by $as_me.
12599 # Run this file to recreate the current configuration.
12600 # Compiler output produced by configure, useful for debugging
12601 # configure, is in config.log if it exists.
12604 ac_cs_recheck=false
12607 SHELL=\${CONFIG_SHELL-$SHELL}
12610 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12611 ## -------------------- ##
12612 ## M4sh Initialization. ##
12613 ## -------------------- ##
12615 # Be more Bourne compatible
12616 DUALCASE=1; export DUALCASE # for MKS sh
12617 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12620 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12621 # is contrary to our usage. Disable this feature.
12622 alias -g '${1+"$@"}'='"$@"'
12623 setopt NO_GLOB_SUBST
12625 case `(set -o) 2>/dev/null` in #(
12637 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12638 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12639 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12640 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12641 # Prefer a ksh shell builtin over an external printf program on Solaris,
12642 # but without wasting forks for bash or zsh.
12643 if test -z "$BASH_VERSION$ZSH_VERSION" \
12644 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12645 as_echo='print -r --'
12646 as_echo_n='print -rn --'
12647 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12648 as_echo='printf %s\n'
12649 as_echo_n='printf %s'
12651 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12652 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12653 as_echo_n='/usr/ucb/echo -n'
12655 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12656 as_echo_n_body='eval
12660 expr "X$arg" : "X\\(.*\\)$as_nl";
12661 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12663 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12665 export as_echo_n_body
12666 as_echo_n='sh -c $as_echo_n_body as_echo'
12668 export as_echo_body
12669 as_echo='sh -c $as_echo_body as_echo'
12672 # The user is always right.
12673 if test "${PATH_SEPARATOR+set}" != set; then
12675 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12676 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12683 # We need space, tab and new line, in precisely that order. Quoting is
12684 # there to prevent editors from complaining about space-tab.
12685 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12686 # splitting by setting IFS to empty value.)
12689 # Find who we are. Look in the path if we contain no directory separator.
12691 *[\\/]* ) as_myself=$0 ;;
12692 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12693 for as_dir in $PATH
12696 test -z "$as_dir" && as_dir=.
12697 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12703 # We did not find ourselves, most probably we were run as `sh COMMAND'
12704 # in which case we are not to be found in the path.
12705 if test "x$as_myself" = x; then
12708 if test ! -f "$as_myself"; then
12709 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12713 # Unset variables that we do not need and which cause bugs (e.g. in
12714 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12715 # suppresses any "Segmentation fault" message there. '((' could
12716 # trigger a bug in pdksh 5.2.14.
12717 for as_var in BASH_ENV ENV MAIL MAILPATH
12718 do eval test x\${$as_var+set} = xset \
12719 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12732 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12735 # as_fn_error ERROR [LINENO LOG_FD]
12736 # ---------------------------------
12737 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12738 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12739 # script with status $?, using 1 if that was 0.
12742 as_status=$?; test $as_status -eq 0 && as_status=1
12744 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12745 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12747 $as_echo "$as_me: error: $1" >&2
12748 as_fn_exit $as_status
12752 # as_fn_set_status STATUS
12753 # -----------------------
12754 # Set $? to STATUS, without forking.
12755 as_fn_set_status ()
12758 } # as_fn_set_status
12760 # as_fn_exit STATUS
12761 # -----------------
12762 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12766 as_fn_set_status $1
12772 # Portably unset VAR.
12775 { eval $1=; unset $1;}
12777 as_unset=as_fn_unset
12778 # as_fn_append VAR VALUE
12779 # ----------------------
12780 # Append the text in VALUE to the end of the definition contained in VAR. Take
12781 # advantage of any shell optimizations that allow amortized linear growth over
12782 # repeated appends, instead of the typical quadratic growth present in naive
12784 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12785 eval 'as_fn_append ()
12796 # as_fn_arith ARG...
12797 # ------------------
12798 # Perform arithmetic evaluation on the ARGs, and store the result in the
12799 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12800 # must be portable across $(()) and expr.
12801 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12802 eval 'as_fn_arith ()
12809 as_val=`expr "$@" || test $? -eq 1`
12814 if expr a : '\(a\)' >/dev/null 2>&1 &&
12815 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12821 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12822 as_basename=basename
12827 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12833 as_me=`$as_basename -- "$0" ||
12834 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12835 X"$0" : 'X\(//\)$' \| \
12836 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12838 sed '/^.*\/\([^/][^/]*\)\/*$/{
12852 # Avoid depending upon Character Ranges.
12853 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12854 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12855 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12856 as_cr_digits='0123456789'
12857 as_cr_alnum=$as_cr_Letters$as_cr_digits
12859 ECHO_C= ECHO_N= ECHO_T=
12860 case `echo -n x` in #(((((
12862 case `echo 'xy\c'` in
12863 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12865 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12872 rm -f conf$$ conf$$.exe conf$$.file
12873 if test -d conf$$.dir; then
12874 rm -f conf$$.dir/conf$$.file
12877 mkdir conf$$.dir 2>/dev/null
12879 if (echo >conf$$.file) 2>/dev/null; then
12880 if ln -s conf$$.file conf$$ 2>/dev/null; then
12882 # ... but there are two gotchas:
12883 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12884 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12885 # In both cases, we have to default to `cp -p'.
12886 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12888 elif ln conf$$.file conf$$ 2>/dev/null; then
12896 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12897 rmdir conf$$.dir 2>/dev/null
12902 # Create "$as_dir" as a directory, including parents if necessary.
12907 -*) as_dir=./$as_dir;;
12909 test -d "$as_dir" || eval $as_mkdir_p || {
12913 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12914 *) as_qdir=$as_dir;;
12916 as_dirs="'$as_qdir' $as_dirs"
12917 as_dir=`$as_dirname -- "$as_dir" ||
12918 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12919 X"$as_dir" : 'X\(//\)[^/]' \| \
12920 X"$as_dir" : 'X\(//\)$' \| \
12921 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12922 $as_echo X"$as_dir" |
12923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12927 /^X\(\/\/\)[^/].*/{
12940 test -d "$as_dir" && break
12942 test -z "$as_dirs" || eval "mkdir $as_dirs"
12943 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12947 if mkdir -p . 2>/dev/null; then
12948 as_mkdir_p='mkdir -p "$as_dir"'
12950 test -d ./-p && rmdir ./-p
12954 if test -x / >/dev/null 2>&1; then
12955 as_test_x='test -x'
12957 if ls -dL / >/dev/null 2>&1; then
12964 if test -d "$1"; then
12970 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12971 ???[sx]*):;;*)false;;esac;fi
12975 as_executable_p=$as_test_x
12977 # Sed expression to map a string onto a valid CPP name.
12978 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12980 # Sed expression to map a string onto a valid variable name.
12981 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12985 ## ----------------------------------- ##
12986 ## Main body of $CONFIG_STATUS script. ##
12987 ## ----------------------------------- ##
12989 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12992 # Save the log message, to keep $0 and so on meaningful, and to
12993 # report actual input values of CONFIG_FILES etc. instead of their
12994 # values after options handling.
12996 This file was extended by newlib $as_me 1.19.0, which was
12997 generated by GNU Autoconf 2.65. Invocation command line was
12999 CONFIG_FILES = $CONFIG_FILES
13000 CONFIG_HEADERS = $CONFIG_HEADERS
13001 CONFIG_LINKS = $CONFIG_LINKS
13002 CONFIG_COMMANDS = $CONFIG_COMMANDS
13005 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13010 case $ac_config_files in *"
13011 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13014 case $ac_config_headers in *"
13015 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13020 # Files that config.status was made for.
13021 config_files="$ac_config_files"
13022 config_headers="$ac_config_headers"
13023 config_commands="$ac_config_commands"
13027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13029 \`$as_me' instantiates files and other configuration actions
13030 from templates according to the current configuration. Unless the files
13031 and actions are specified as TAGs, all are instantiated by default.
13033 Usage: $0 [OPTION]... [TAG]...
13035 -h, --help print this help, then exit
13036 -V, --version print version number and configuration settings, then exit
13037 --config print configuration, then exit
13038 -q, --quiet, --silent
13039 do not print progress messages
13040 -d, --debug don't remove temporary files
13041 --recheck update $as_me by reconfiguring in the same conditions
13042 --file=FILE[:TEMPLATE]
13043 instantiate the configuration file FILE
13044 --header=FILE[:TEMPLATE]
13045 instantiate the configuration header FILE
13047 Configuration files:
13050 Configuration headers:
13053 Configuration commands:
13056 Report bugs to the package provider."
13059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13060 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13062 newlib config.status 1.19.0
13063 configured by $0, generated by GNU Autoconf 2.65,
13064 with options \\"\$ac_cs_config\\"
13066 Copyright (C) 2009 Free Software Foundation, Inc.
13067 This config.status script is free software; the Free Software Foundation
13068 gives unlimited permission to copy, distribute and modify it."
13075 test -n "\$AWK" || AWK=awk
13078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13079 # The default lists apply if the user does not specify any file.
13085 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13086 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13097 # Handling of the options.
13098 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13100 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13101 $as_echo "$ac_cs_version"; exit ;;
13102 --config | --confi | --conf | --con | --co | --c )
13103 $as_echo "$ac_cs_config"; exit ;;
13104 --debug | --debu | --deb | --de | --d | -d )
13106 --file | --fil | --fi | --f )
13109 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13111 as_fn_append CONFIG_FILES " '$ac_optarg'"
13112 ac_need_defaults=false;;
13113 --header | --heade | --head | --hea )
13116 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13118 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13119 ac_need_defaults=false;;
13121 # Conflict between --help and --header
13122 as_fn_error "ambiguous option: \`$1'
13123 Try \`$0 --help' for more information.";;
13124 --help | --hel | -h )
13125 $as_echo "$ac_cs_usage"; exit ;;
13126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13127 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13130 # This is an error.
13131 -*) as_fn_error "unrecognized option: \`$1'
13132 Try \`$0 --help' for more information." ;;
13134 *) as_fn_append ac_config_targets " $1"
13135 ac_need_defaults=false ;;
13141 ac_configure_extra_args=
13143 if $ac_cs_silent; then
13145 ac_configure_extra_args="$ac_configure_extra_args --silent"
13149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13150 if \$ac_cs_recheck; then
13151 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13153 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13154 CONFIG_SHELL='$SHELL'
13155 export CONFIG_SHELL
13160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13164 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13165 ## Running $as_me. ##
13171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13175 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13178 # The HP-UX ksh and POSIX shell print the target directory to stdout
13179 # if CDPATH is set.
13180 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13182 sed_quote_subst='$sed_quote_subst'
13183 double_quote_subst='$double_quote_subst'
13184 delay_variable_subst='$delay_variable_subst'
13185 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13186 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13187 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13188 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13189 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13190 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13191 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13192 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13193 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13194 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13195 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13196 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13197 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13198 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13199 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13200 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13201 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13202 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13203 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13204 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13205 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13206 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13207 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13208 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13209 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13210 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13211 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13212 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13213 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13214 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13215 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13216 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13217 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13218 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13219 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13220 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13221 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13222 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13223 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13224 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13225 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13226 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13227 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13228 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13229 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13230 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13231 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13232 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13233 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13234 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13235 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"`'
13236 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13237 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13238 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13239 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13240 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13241 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13242 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13243 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13244 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13245 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13246 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13247 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13248 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13249 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13250 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13251 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13252 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13253 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13254 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13255 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13256 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13257 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13258 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13259 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13260 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13261 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13262 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13263 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13264 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13265 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13266 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13267 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13268 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13269 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13270 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13271 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13272 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13273 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13274 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13275 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13276 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13277 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13278 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13279 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13280 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13281 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13282 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13283 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13284 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13285 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13286 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13287 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13288 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13289 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13290 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13291 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13292 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13293 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13294 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13295 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13296 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13297 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13298 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13299 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13300 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13301 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13302 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13303 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13304 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13305 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13306 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13309 LTCFLAGS='$LTCFLAGS'
13310 compiler='$compiler_DEFAULT'
13312 # A function that is used when there is no print builtin or printf.
13313 func_fallback_echo ()
13315 eval 'cat <<_LTECHO_EOF
13320 # Quote evaled strings.
13336 deplibs_check_method \
13345 lt_cv_sys_global_symbol_pipe \
13346 lt_cv_sys_global_symbol_to_cdecl \
13347 lt_cv_sys_global_symbol_to_c_name_address \
13348 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13349 lt_prog_compiler_no_builtin_flag \
13350 lt_prog_compiler_wl \
13351 lt_prog_compiler_pic \
13352 lt_prog_compiler_static \
13353 lt_cv_prog_compiler_c_o \
13361 export_dynamic_flag_spec \
13362 whole_archive_flag_spec \
13363 compiler_needs_object \
13365 allow_undefined_flag \
13366 no_undefined_flag \
13367 hardcode_libdir_flag_spec \
13368 hardcode_libdir_flag_spec_ld \
13369 hardcode_libdir_separator \
13374 variables_saved_for_relink \
13376 library_names_spec \
13378 install_override_mode \
13382 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13383 *[\\\\\\\`\\"\\\$]*)
13384 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13387 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13392 # Double-quote double-evaled strings.
13393 for var in reload_cmds \
13394 old_postinstall_cmds \
13395 old_postuninstall_cmds \
13397 extract_expsyms_cmds \
13398 old_archive_from_new_cmds \
13399 old_archive_from_expsyms_cmds \
13401 archive_expsym_cmds \
13403 module_expsym_cmds \
13404 export_symbols_cmds \
13407 postuninstall_cmds \
13409 sys_lib_search_path_spec \
13410 sys_lib_dlsearch_path_spec; do
13411 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13412 *[\\\\\\\`\\"\\\$]*)
13413 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13416 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13421 ac_aux_dir='$ac_aux_dir'
13422 xsi_shell='$xsi_shell'
13423 lt_shell_append='$lt_shell_append'
13425 # See if we are running on zsh, and set the options which allow our
13426 # commands through without removal of \ escapes INIT.
13427 if test -n "\${ZSH_VERSION+set}" ; then
13428 setopt NO_GLOB_SUBST
13434 TIMESTAMP='$TIMESTAMP'
13442 with_multisubdir=${with_multisubdir}
13443 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13444 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13445 newlib_basedir=${newlib_basedir}
13447 LDFLAGS="${LDFLAGS}"
13452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13454 # Handling of arguments.
13455 for ac_config_target in $ac_config_targets
13457 case $ac_config_target in
13458 "newlib.h") CONFIG_HEADERS="$CONFIG_HEADERS newlib.h:newlib.hin" ;;
13459 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13460 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13461 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13463 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13468 # If the user did not use the arguments to specify the items to instantiate,
13469 # then the envvar interface is used. Set only those that are not.
13470 # We use the long form for the default assignment because of an extremely
13471 # bizarre bug on SunOS 4.1.3.
13472 if $ac_need_defaults; then
13473 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13474 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13475 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13478 # Have a temporary directory for convenience. Make it in the build tree
13479 # simply because there is no reason against having it here, and in addition,
13480 # creating and moving files from /tmp can sometimes cause problems.
13481 # Hook for its removal unless debugging.
13482 # Note that there is a small window in which the directory will not be cleaned:
13483 # after its creation but before its name has been assigned to `$tmp'.
13487 trap 'exit_status=$?
13488 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13490 trap 'as_fn_exit 1' 1 2 13 15
13492 # Create a (secure) tmp directory for tmp files.
13495 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13496 test -n "$tmp" && test -d "$tmp"
13499 tmp=./conf$$-$RANDOM
13500 (umask 077 && mkdir "$tmp")
13501 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13503 # Set up the scripts for CONFIG_FILES section.
13504 # No need to generate them if there are no CONFIG_FILES.
13505 # This happens for instance with `./config.status config.h'.
13506 if test -n "$CONFIG_FILES"; then
13509 ac_cr=`echo X | tr X '\015'`
13510 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13511 # But we know of no other shell where ac_cr would be empty at this
13512 # point, so we can use a bashism as a fallback.
13513 if test "x$ac_cr" = x; then
13514 eval ac_cr=\$\'\\r\'
13516 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13517 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13520 ac_cs_awk_cr=$ac_cr
13523 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13528 echo "cat >conf$$subs.awk <<_ACEOF" &&
13529 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13531 } >conf$$subs.sh ||
13532 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13533 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13535 for ac_last_try in false false false false false :; do
13536 . ./conf$$subs.sh ||
13537 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13539 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13540 if test $ac_delim_n = $ac_delim_num; then
13542 elif $ac_last_try; then
13543 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13545 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13548 rm -f conf$$subs.sh
13550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13551 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13555 s/^/S["/; s/!.*/"]=/
13565 s/\(.\{148\}\)..*/\1/
13567 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13572 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13579 s/\(.\{148\}\)..*/\1/
13581 s/["\\]/\\&/g; s/^/"/; s/$/"/
13585 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13590 ' <conf$$subs.awk | sed '
13595 ' >>$CONFIG_STATUS || ac_write_fail=1
13596 rm -f conf$$subs.awk
13597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13599 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13600 for (key in S) S_is_set[key] = 1
13606 nfields = split(line, field, "@")
13608 len = length(field[1])
13609 for (i = 2; i < nfields; i++) {
13611 keylen = length(key)
13612 if (S_is_set[key]) {
13614 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13615 len += length(value) + length(field[++i])
13626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13627 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13628 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13631 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13632 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13635 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13636 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13637 # trailing colons and then remove the whole line if VPATH becomes empty
13638 # (actually we leave an empty line to preserve line numbers).
13639 if test "x$srcdir" = x.; then
13640 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13641 s/:*\$(srcdir):*/:/
13642 s/:*\${srcdir}:*/:/
13644 s/^\([^=]*=[ ]*\):*/\1/
13650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13651 fi # test -n "$CONFIG_FILES"
13653 # Set up the scripts for CONFIG_HEADERS section.
13654 # No need to generate them if there are no CONFIG_HEADERS.
13655 # This happens for instance with `./config.status Makefile'.
13656 if test -n "$CONFIG_HEADERS"; then
13657 cat >"$tmp/defines.awk" <<\_ACAWK ||
13661 # Transform confdefs.h into an awk script `defines.awk', embedded as
13662 # here-document in config.status, that substitutes the proper values into
13663 # config.h.in to produce config.h.
13665 # Create a delimiter string that does not exist in confdefs.h, to ease
13666 # handling of long lines.
13668 for ac_last_try in false false :; do
13669 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13670 if test -z "$ac_t"; then
13672 elif $ac_last_try; then
13673 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13675 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13679 # For the awk script, D is an array of macro values keyed by name,
13680 # likewise P contains macro parameters if any. Preserve backslash
13681 # newline sequences.
13683 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13685 s/.\{148\}/&'"$ac_delim"'/g
13688 s/^[ ]*#[ ]*define[ ][ ]*/ /
13695 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13697 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13701 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13702 D["\1"]=" \3\\\\\\n"\\/p
13704 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13709 s/.\{148\}/&'"$ac_delim"'/g
13714 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13717 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13719 ' <confdefs.h | sed '
13720 s/'"$ac_delim"'/"\\\
13721 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13724 for (key in D) D_is_set[key] = 1
13727 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13729 split(line, arg, " ")
13730 if (arg[1] == "#") {
13734 defundef = substr(arg[1], 2)
13737 split(mac1, mac2, "(") #)
13739 prefix = substr(line, 1, index(line, defundef) - 1)
13740 if (D_is_set[macro]) {
13741 # Preserve the white space surrounding the "#".
13742 print prefix "define", macro P[macro] D[macro]
13745 # Replace #undef with comments. This is necessary, for example,
13746 # in the case of _POSIX_SOURCE, which is predefined and required
13747 # on some systems where configure will not decide to define it.
13748 if (defundef == "undef") {
13749 print "/*", prefix defundef, macro, "*/"
13757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13758 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13759 fi # test -n "$CONFIG_HEADERS"
13762 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13767 :[FHLC]) ac_mode=$ac_tag; continue;;
13769 case $ac_mode$ac_tag in
13771 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13772 :[FH]-) ac_tag=-:-;;
13773 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13790 -) ac_f="$tmp/stdin";;
13791 *) # Look for the file first in the build tree, then in the source tree
13792 # (if the path is not absolute). The absolute path cannot be DOS-style,
13793 # because $ac_f cannot contain `:'.
13797 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13799 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13801 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13802 as_fn_append ac_file_inputs " '$ac_f'"
13805 # Let's still pretend it is `configure' which instantiates (i.e., don't
13806 # use $as_me), people would be surprised to read:
13807 # /* config.h. Generated by config.status. */
13808 configure_input='Generated from '`
13809 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13811 if test x"$ac_file" != x-; then
13812 configure_input="$ac_file. $configure_input"
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13814 $as_echo "$as_me: creating $ac_file" >&6;}
13816 # Neutralize special characters interpreted by sed in replacement strings.
13817 case $configure_input in #(
13818 *\&* | *\|* | *\\* )
13819 ac_sed_conf_input=`$as_echo "$configure_input" |
13820 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13821 *) ac_sed_conf_input=$configure_input;;
13825 *:-:* | *:-) cat >"$tmp/stdin" \
13826 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13831 ac_dir=`$as_dirname -- "$ac_file" ||
13832 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13833 X"$ac_file" : 'X\(//\)[^/]' \| \
13834 X"$ac_file" : 'X\(//\)$' \| \
13835 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13836 $as_echo X"$ac_file" |
13837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13841 /^X\(\/\/\)[^/].*/{
13854 as_dir="$ac_dir"; as_fn_mkdir_p
13858 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13860 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13861 # A ".." for each directory in $ac_dir_suffix.
13862 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13863 case $ac_top_builddir_sub in
13864 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13865 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13868 ac_abs_top_builddir=$ac_pwd
13869 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13870 # for backward compatibility:
13871 ac_top_builddir=$ac_top_build_prefix
13874 .) # We are building in place.
13876 ac_top_srcdir=$ac_top_builddir_sub
13877 ac_abs_top_srcdir=$ac_pwd ;;
13878 [\\/]* | ?:[\\/]* ) # Absolute name.
13879 ac_srcdir=$srcdir$ac_dir_suffix;
13880 ac_top_srcdir=$srcdir
13881 ac_abs_top_srcdir=$srcdir ;;
13882 *) # Relative name.
13883 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13884 ac_top_srcdir=$ac_top_build_prefix$srcdir
13885 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13887 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13897 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13898 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13900 ac_MKDIR_P=$MKDIR_P
13902 [\\/$]* | ?:[\\/]* ) ;;
13903 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13908 # If the template does not know about datarootdir, expand it.
13909 # FIXME: This hack should be removed a few years after 2.60.
13910 ac_datarootdir_hack=; ac_datarootdir_seen=
13921 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13922 *datarootdir*) ac_datarootdir_seen=yes;;
13923 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13925 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13928 ac_datarootdir_hack='
13929 s&@datadir@&$datadir&g
13930 s&@docdir@&$docdir&g
13931 s&@infodir@&$infodir&g
13932 s&@localedir@&$localedir&g
13933 s&@mandir@&$mandir&g
13934 s&\\\${datarootdir}&$datarootdir&g' ;;
13938 # Neutralize VPATH when `$srcdir' = `.'.
13939 # Shell code in configure.ac might set extrasub.
13940 # FIXME: do we really want to maintain this feature?
13941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13942 ac_sed_extra="$ac_vpsub
13945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13947 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13948 s|@configure_input@|$ac_sed_conf_input|;t t
13949 s&@top_builddir@&$ac_top_builddir_sub&;t t
13950 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13951 s&@srcdir@&$ac_srcdir&;t t
13952 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13953 s&@top_srcdir@&$ac_top_srcdir&;t t
13954 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13955 s&@builddir@&$ac_builddir&;t t
13956 s&@abs_builddir@&$ac_abs_builddir&;t t
13957 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13958 s&@INSTALL@&$ac_INSTALL&;t t
13959 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13960 $ac_datarootdir_hack
13962 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13963 || as_fn_error "could not create $ac_file" "$LINENO" 5
13965 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13966 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13967 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13969 which seems to be undefined. Please make sure it is defined." >&5
13970 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13971 which seems to be undefined. Please make sure it is defined." >&2;}
13975 -) cat "$tmp/out" && rm -f "$tmp/out";;
13976 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13978 || as_fn_error "could not create $ac_file" "$LINENO" 5
13984 if test x"$ac_file" != x-; then
13986 $as_echo "/* $configure_input */" \
13987 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13988 } >"$tmp/config.h" \
13989 || as_fn_error "could not create $ac_file" "$LINENO" 5
13990 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13992 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13995 mv "$tmp/config.h" "$ac_file" \
13996 || as_fn_error "could not create $ac_file" "$LINENO" 5
13999 $as_echo "/* $configure_input */" \
14000 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14001 || as_fn_error "could not create -" "$LINENO" 5
14003 # Compute "$ac_file"'s index in $config_headers.
14006 for _am_header in $config_headers :; do
14007 case $_am_header in
14008 $_am_arg | $_am_arg:* )
14011 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14014 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14015 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14016 X"$_am_arg" : 'X\(//\)[^/]' \| \
14017 X"$_am_arg" : 'X\(//\)$' \| \
14018 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14019 $as_echo X"$_am_arg" |
14020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14024 /^X\(\/\/\)[^/].*/{
14036 s/.*/./; q'`/stamp-h$_am_stamp_count
14039 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14040 $as_echo "$as_me: executing $ac_file commands" >&6;}
14045 case $ac_file$ac_mode in
14046 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14047 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14048 # are listed without --file. Let's play safe and only enable the eval
14049 # if we detect the quoting.
14050 case $CONFIG_FILES in
14051 *\'*) eval set x "$CONFIG_FILES" ;;
14052 *) set x $CONFIG_FILES ;;
14057 # Strip MF so we end up with the name of the file.
14058 mf=`echo "$mf" | sed -e 's/:.*$//'`
14059 # Check whether this is an Automake generated Makefile or not.
14060 # We used to match only the files named `Makefile.in', but
14061 # some people rename them; so instead we look at the file content.
14062 # Grep'ing the first line is not enough: some people post-process
14063 # each Makefile.in and add a new line on top of each file to say so.
14064 # Grep'ing the whole file is not good either: AIX grep has a line
14065 # limit of 2048, but all sed's we know have understand at least 4000.
14066 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14067 dirpart=`$as_dirname -- "$mf" ||
14068 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14069 X"$mf" : 'X\(//\)[^/]' \| \
14070 X"$mf" : 'X\(//\)$' \| \
14071 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14077 /^X\(\/\/\)[^/].*/{
14093 # Extract the definition of DEPDIR, am__include, and am__quote
14094 # from the Makefile without running `make'.
14095 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14096 test -z "$DEPDIR" && continue
14097 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14098 test -z "am__include" && continue
14099 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14100 # When using ansi2knr, U may be empty or an underscore; expand it
14101 U=`sed -n 's/^U = //p' < "$mf"`
14102 # Find all dependency output files, they are included files with
14103 # $(DEPDIR) in their names. We invoke sed twice because it is the
14104 # simplest approach to changing $(DEPDIR) to its actual value in the
14106 for file in `sed -n "
14107 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14108 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14109 # Make sure the directory exists.
14110 test -f "$dirpart/$file" && continue
14111 fdir=`$as_dirname -- "$file" ||
14112 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14113 X"$file" : 'X\(//\)[^/]' \| \
14114 X"$file" : 'X\(//\)$' \| \
14115 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14116 $as_echo X"$file" |
14117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14121 /^X\(\/\/\)[^/].*/{
14134 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14135 # echo "creating $dirpart/$file"
14136 echo '# dummy' > "$dirpart/$file"
14143 # See if we are running on zsh, and set the options which allow our
14144 # commands through without removal of \ escapes.
14145 if test -n "${ZSH_VERSION+set}" ; then
14146 setopt NO_GLOB_SUBST
14149 cfgfile="${ofile}T"
14150 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14153 cat <<_LT_EOF >> "$cfgfile"
14156 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14157 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14158 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14159 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14161 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14162 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14163 # Written by Gordon Matzigkeit, 1996
14165 # This file is part of GNU Libtool.
14167 # GNU Libtool is free software; you can redistribute it and/or
14168 # modify it under the terms of the GNU General Public License as
14169 # published by the Free Software Foundation; either version 2 of
14170 # the License, or (at your option) any later version.
14172 # As a special exception to the GNU General Public License,
14173 # if you distribute this file as part of a program or library that
14174 # is built using GNU Libtool, you may include this file under the
14175 # same distribution terms that you use for the rest of that program.
14177 # GNU Libtool is distributed in the hope that it will be useful,
14178 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14179 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14180 # GNU General Public License for more details.
14182 # You should have received a copy of the GNU General Public License
14183 # along with GNU Libtool; see the file COPYING. If not, a copy
14184 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14185 # obtained by writing to the Free Software Foundation, Inc.,
14186 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14189 # The names of the tagged configurations supported by this script.
14192 # ### BEGIN LIBTOOL CONFIG
14194 # A sed program that does not truncate output.
14197 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14198 Xsed="\$SED -e 1s/^X//"
14200 # Shell to use when invoking shell scripts.
14203 # An echo program that protects backslashes.
14206 # Assembler program.
14209 # DLL creation program.
14210 DLLTOOL=$lt_DLLTOOL
14212 # Object dumper program.
14213 OBJDUMP=$lt_OBJDUMP
14215 # Which release of libtool.m4 was used?
14216 macro_version=$macro_version
14217 macro_revision=$macro_revision
14219 # Whether or not to build shared libraries.
14220 build_libtool_libs=$enable_shared
14222 # Whether or not to build static libraries.
14223 build_old_libs=$enable_static
14225 # What type of objects to build.
14228 # Whether or not to optimize for fast installation.
14229 fast_install=$enable_fast_install
14232 host_alias=$host_alias
14236 # The build system.
14237 build_alias=$build_alias
14241 # A grep program that handles long lines.
14247 # A literal string matcher.
14250 # A BSD- or MS-compatible name lister.
14253 # Whether we need soft or hard links.
14256 # What is the maximum length of a command?
14257 max_cmd_len=$max_cmd_len
14259 # Object file suffix (normally "o").
14262 # Executable file suffix (normally "").
14265 # whether the shell understands "unset".
14268 # turn spaces into newlines.
14271 # turn newlines into spaces.
14274 # Method to check whether dependent libraries are shared objects.
14275 deplibs_check_method=$lt_deplibs_check_method
14277 # Command to use when deplibs_check_method == "file_magic".
14278 file_magic_cmd=$lt_file_magic_cmd
14282 AR_FLAGS=$lt_AR_FLAGS
14284 # A symbol stripping program.
14287 # Commands used to install an old-style archive.
14289 old_postinstall_cmds=$lt_old_postinstall_cmds
14290 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14292 # Whether to use a lock for old archive extraction.
14293 lock_old_archive_extraction=$lock_old_archive_extraction
14298 # LTCC compiler flags.
14299 LTCFLAGS=$lt_CFLAGS
14301 # Take the output of nm and produce a listing of raw symbols and C names.
14302 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14304 # Transform the output of nm in a proper C declaration.
14305 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14307 # Transform the output of nm in a C name address pair.
14308 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14310 # Transform the output of nm in a C name address pair when lib prefix is needed.
14311 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14313 # The name of the directory that contains temporary libtool files.
14316 # Used to examine libraries when file_magic_cmd begins with "file".
14317 MAGIC_CMD=$MAGIC_CMD
14319 # Must we lock files when doing compilation?
14320 need_locks=$lt_need_locks
14322 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14323 DSYMUTIL=$lt_DSYMUTIL
14325 # Tool to change global to local symbols on Mac OS X.
14328 # Tool to manipulate fat objects and archives on Mac OS X.
14331 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14334 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14335 OTOOL64=$lt_OTOOL64
14337 # Old archive suffix (normally "a").
14340 # Shared library suffix (normally ".so").
14341 shrext_cmds=$lt_shrext_cmds
14343 # The commands to extract the exported symbol list from a shared archive.
14344 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14346 # Variables whose values should be saved in libtool wrapper scripts and
14347 # restored at link time.
14348 variables_saved_for_relink=$lt_variables_saved_for_relink
14350 # Do we need the "lib" prefix for modules?
14351 need_lib_prefix=$need_lib_prefix
14353 # Do we need a version for libraries?
14354 need_version=$need_version
14356 # Library versioning type.
14357 version_type=$version_type
14359 # Shared library runtime path variable.
14360 runpath_var=$runpath_var
14362 # Shared library path variable.
14363 shlibpath_var=$shlibpath_var
14365 # Is shlibpath searched before the hard-coded library search path?
14366 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14368 # Format of library name prefix.
14369 libname_spec=$lt_libname_spec
14371 # List of archive names. First name is the real one, the rest are links.
14372 # The last name is the one that the linker finds with -lNAME
14373 library_names_spec=$lt_library_names_spec
14375 # The coded name of the library, if different from the real name.
14376 soname_spec=$lt_soname_spec
14378 # Permission mode override for installation of shared libraries.
14379 install_override_mode=$lt_install_override_mode
14381 # Command to use after installation of a shared archive.
14382 postinstall_cmds=$lt_postinstall_cmds
14384 # Command to use after uninstallation of a shared archive.
14385 postuninstall_cmds=$lt_postuninstall_cmds
14387 # Commands used to finish a libtool library installation in a directory.
14388 finish_cmds=$lt_finish_cmds
14390 # As "finish_cmds", except a single script fragment to be evaled but
14392 finish_eval=$lt_finish_eval
14394 # Whether we should hardcode library paths into libraries.
14395 hardcode_into_libs=$hardcode_into_libs
14397 # Compile-time system search path for libraries.
14398 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14400 # Run-time system search path for libraries.
14401 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14403 # Whether dlopen is supported.
14404 dlopen_support=$enable_dlopen
14406 # Whether dlopen of programs is supported.
14407 dlopen_self=$enable_dlopen_self
14409 # Whether dlopen of statically linked programs is supported.
14410 dlopen_self_static=$enable_dlopen_self_static
14412 # Commands to strip libraries.
14413 old_striplib=$lt_old_striplib
14414 striplib=$lt_striplib
14417 # The linker used to build libraries.
14420 # How to create reloadable object files.
14421 reload_flag=$lt_reload_flag
14422 reload_cmds=$lt_reload_cmds
14424 # Commands used to build an old-style archive.
14425 old_archive_cmds=$lt_old_archive_cmds
14427 # A language specific compiler.
14430 # Is the compiler the GNU compiler?
14433 # Compiler flag to turn off builtin functions.
14434 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14436 # How to pass a linker flag through the compiler.
14437 wl=$lt_lt_prog_compiler_wl
14439 # Additional compiler flags for building library objects.
14440 pic_flag=$lt_lt_prog_compiler_pic
14442 # Compiler flag to prevent dynamic linking.
14443 link_static_flag=$lt_lt_prog_compiler_static
14445 # Does compiler simultaneously support -c and -o options?
14446 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14448 # Whether or not to add -lc for building shared libraries.
14449 build_libtool_need_lc=$archive_cmds_need_lc
14451 # Whether or not to disallow shared libs when runtime libs are static.
14452 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14454 # Compiler flag to allow reflexive dlopens.
14455 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14457 # Compiler flag to generate shared objects directly from archives.
14458 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14460 # Whether the compiler copes with passing no objects directly.
14461 compiler_needs_object=$lt_compiler_needs_object
14463 # Create an old-style archive from a shared archive.
14464 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14466 # Create a temporary old-style archive to link instead of a shared archive.
14467 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14469 # Commands used to build a shared archive.
14470 archive_cmds=$lt_archive_cmds
14471 archive_expsym_cmds=$lt_archive_expsym_cmds
14473 # Commands used to build a loadable module if different from building
14474 # a shared archive.
14475 module_cmds=$lt_module_cmds
14476 module_expsym_cmds=$lt_module_expsym_cmds
14478 # Whether we are building with GNU ld or not.
14479 with_gnu_ld=$lt_with_gnu_ld
14481 # Flag that allows shared libraries with undefined symbols to be built.
14482 allow_undefined_flag=$lt_allow_undefined_flag
14484 # Flag that enforces no undefined symbols.
14485 no_undefined_flag=$lt_no_undefined_flag
14487 # Flag to hardcode \$libdir into a binary during linking.
14488 # This must work even if \$libdir does not exist
14489 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14491 # If ld is used when linking, flag to hardcode \$libdir into a binary
14492 # during linking. This must work even if \$libdir does not exist.
14493 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14495 # Whether we need a single "-rpath" flag with a separated argument.
14496 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14498 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14499 # DIR into the resulting binary.
14500 hardcode_direct=$hardcode_direct
14502 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14503 # DIR into the resulting binary and the resulting library dependency is
14504 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14505 # library is relocated.
14506 hardcode_direct_absolute=$hardcode_direct_absolute
14508 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14509 # into the resulting binary.
14510 hardcode_minus_L=$hardcode_minus_L
14512 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14513 # into the resulting binary.
14514 hardcode_shlibpath_var=$hardcode_shlibpath_var
14516 # Set to "yes" if building a shared library automatically hardcodes DIR
14517 # into the library and all subsequent libraries and executables linked
14519 hardcode_automatic=$hardcode_automatic
14521 # Set to yes if linker adds runtime paths of dependent libraries
14522 # to runtime path list.
14523 inherit_rpath=$inherit_rpath
14525 # Whether libtool must link a program against all its dependency libraries.
14526 link_all_deplibs=$link_all_deplibs
14528 # Fix the shell variable \$srcfile for the compiler.
14529 fix_srcfile_path=$lt_fix_srcfile_path
14531 # Set to "yes" if exported symbols are required.
14532 always_export_symbols=$always_export_symbols
14534 # The commands to list exported symbols.
14535 export_symbols_cmds=$lt_export_symbols_cmds
14537 # Symbols that should not be listed in the preloaded symbols.
14538 exclude_expsyms=$lt_exclude_expsyms
14540 # Symbols that must always be exported.
14541 include_expsyms=$lt_include_expsyms
14543 # Commands necessary for linking programs (against libraries) with templates.
14544 prelink_cmds=$lt_prelink_cmds
14546 # Specify filename containing input files.
14547 file_list_spec=$lt_file_list_spec
14549 # How to hardcode a shared library path into an executable.
14550 hardcode_action=$hardcode_action
14552 # ### END LIBTOOL CONFIG
14558 cat <<\_LT_EOF >> "$cfgfile"
14559 # AIX sometimes has problems with the GCC collect2 program. For some
14560 # reason, if we set the COLLECT_NAMES environment variable, the problems
14561 # vanish in a puff of smoke.
14562 if test "X${COLLECT_NAMES+set}" != Xset; then
14564 export COLLECT_NAMES
14571 ltmain="$ac_aux_dir/ltmain.sh"
14574 # We use sed instead of cat because bash on DJGPP gets confused if
14575 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14576 # text mode, it properly converts lines to CR/LF. This bash problem
14577 # is reportedly fixed, but why not run on old versions too?
14578 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14579 || (rm -f "$cfgfile"; exit 1)
14583 cat << \_LT_EOF >> "$cfgfile"
14585 # func_dirname file append nondir_replacement
14586 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14587 # otherwise set result to NONDIR_REPLACEMENT.
14591 */*) func_dirname_result="${1%/*}${2}" ;;
14592 * ) func_dirname_result="${3}" ;;
14596 # func_basename file
14599 func_basename_result="${1##*/}"
14602 # func_dirname_and_basename file append nondir_replacement
14603 # perform func_basename and func_dirname in a single function
14605 # dirname: Compute the dirname of FILE. If nonempty,
14606 # add APPEND to the result, otherwise set result
14607 # to NONDIR_REPLACEMENT.
14608 # value returned in "$func_dirname_result"
14609 # basename: Compute filename of FILE.
14610 # value retuned in "$func_basename_result"
14611 # Implementation must be kept synchronized with func_dirname
14612 # and func_basename. For efficiency, we do not delegate to
14613 # those functions but instead duplicate the functionality here.
14614 func_dirname_and_basename ()
14617 */*) func_dirname_result="${1%/*}${2}" ;;
14618 * ) func_dirname_result="${3}" ;;
14620 func_basename_result="${1##*/}"
14623 # func_stripname prefix suffix name
14624 # strip PREFIX and SUFFIX off of NAME.
14625 # PREFIX and SUFFIX must not contain globbing or regex special
14626 # characters, hashes, percent signs, but SUFFIX may contain a leading
14627 # dot (in which case that matches only a dot).
14630 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14631 # positional parameters, so assign one to ordinary parameter first.
14632 func_stripname_result=${3}
14633 func_stripname_result=${func_stripname_result#"${1}"}
14634 func_stripname_result=${func_stripname_result%"${2}"}
14640 func_opt_split_opt=${1%%=*}
14641 func_opt_split_arg=${1#*=}
14648 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14649 *) func_lo2o_result=${1} ;;
14653 # func_xform libobj-or-source
14656 func_xform_result=${1%.*}.lo
14659 # func_arith arithmetic-term...
14662 func_arith_result=$(( $* ))
14666 # STRING may not start with a hyphen.
14669 func_len_result=${#1}
14674 *) # Bourne compatible functions.
14675 cat << \_LT_EOF >> "$cfgfile"
14677 # func_dirname file append nondir_replacement
14678 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14679 # otherwise set result to NONDIR_REPLACEMENT.
14682 # Extract subdirectory from the argument.
14683 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14684 if test "X$func_dirname_result" = "X${1}"; then
14685 func_dirname_result="${3}"
14687 func_dirname_result="$func_dirname_result${2}"
14691 # func_basename file
14694 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14698 # func_stripname prefix suffix name
14699 # strip PREFIX and SUFFIX off of NAME.
14700 # PREFIX and SUFFIX must not contain globbing or regex special
14701 # characters, hashes, percent signs, but SUFFIX may contain a leading
14702 # dot (in which case that matches only a dot).
14703 # func_strip_suffix prefix name
14707 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14708 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14713 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14714 my_sed_long_arg='1s/^-[^=]*=//'
14719 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14720 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14726 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14729 # func_xform libobj-or-source
14732 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14735 # func_arith arithmetic-term...
14738 func_arith_result=`expr "$@"`
14742 # STRING may not start with a hyphen.
14745 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14751 case $lt_shell_append in
14753 cat << \_LT_EOF >> "$cfgfile"
14755 # func_append var value
14756 # Append VALUE to the end of shell variable VAR.
14764 cat << \_LT_EOF >> "$cfgfile"
14766 # func_append var value
14767 # Append VALUE to the end of shell variable VAR.
14778 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14779 || (rm -f "$cfgfile"; exit 1)
14781 mv -f "$cfgfile" "$ofile" ||
14782 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14786 "Makefile":F) if test -n "$CONFIG_FILES"; then
14788 . ${newlib_basedir}/../config-ml.in
14797 ac_clean_files=$ac_clean_files_save
14799 test $ac_write_fail = 0 ||
14800 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14803 # configure is writing to config.log, and then calls config.status.
14804 # config.status does its own redirection, appending to config.log.
14805 # Unfortunately, on DOS this fails, as config.log is still kept open
14806 # by configure, so config.status won't be able to write to it; its
14807 # output is simply discarded. So we exec the FD to /dev/null,
14808 # effectively closing config.log, so it can be properly (re)opened and
14809 # appended to by config.status. When coming back to configure, we
14810 # need to make the FD available again.
14811 if test "$no_create" != yes; then
14813 ac_config_status_args=
14814 test "$silent" = yes &&
14815 ac_config_status_args="$ac_config_status_args --quiet"
14817 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14819 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14820 # would make configure fail if this is the last instruction.
14821 $ac_cs_success || as_fn_exit $?
14825 # CONFIG_SUBDIRS section.
14827 if test "$no_recursion" != yes; then
14829 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14830 # so they do not pile up.
14831 ac_sub_configure_args=
14833 eval "set x $ac_configure_args"
14837 if test -n "$ac_prev"; then
14842 -cache-file | --cache-file | --cache-fil | --cache-fi \
14843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14844 ac_prev=cache_file ;;
14845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14849 --config-cache | -C)
14851 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14853 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14855 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14857 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14859 --disable-option-checking)
14863 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14865 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
14869 # Always prepend --prefix to ensure using the same prefix
14870 # in subdir configurations.
14871 ac_arg="--prefix=$prefix"
14873 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14875 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14878 if test "$silent" = yes; then
14879 ac_sub_configure_args="--silent $ac_sub_configure_args"
14882 # Always prepend --disable-option-checking to silence warnings, since
14883 # different subdirs can have different --enable and --with options.
14884 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14887 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14889 # Do not complain, so a configure script can configure whichever
14890 # parts of a large source tree are present.
14891 test -d "$srcdir/$ac_dir" || continue
14893 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14894 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14895 $as_echo "$ac_msg" >&6
14896 as_dir="$ac_dir"; as_fn_mkdir_p
14900 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14902 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14903 # A ".." for each directory in $ac_dir_suffix.
14904 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14905 case $ac_top_builddir_sub in
14906 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14907 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14910 ac_abs_top_builddir=$ac_pwd
14911 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14912 # for backward compatibility:
14913 ac_top_builddir=$ac_top_build_prefix
14916 .) # We are building in place.
14918 ac_top_srcdir=$ac_top_builddir_sub
14919 ac_abs_top_srcdir=$ac_pwd ;;
14920 [\\/]* | ?:[\\/]* ) # Absolute name.
14921 ac_srcdir=$srcdir$ac_dir_suffix;
14922 ac_top_srcdir=$srcdir
14923 ac_abs_top_srcdir=$srcdir ;;
14924 *) # Relative name.
14925 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14926 ac_top_srcdir=$ac_top_build_prefix$srcdir
14927 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14929 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14934 # Check for guested configure; otherwise get Cygnus style configure.
14935 if test -f "$ac_srcdir/configure.gnu"; then
14936 ac_sub_configure=$ac_srcdir/configure.gnu
14937 elif test -f "$ac_srcdir/configure"; then
14938 ac_sub_configure=$ac_srcdir/configure
14939 elif test -f "$ac_srcdir/configure.in"; then
14940 # This should be Cygnus configure.
14941 ac_sub_configure=$ac_aux_dir/configure
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14944 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14948 # The recursion is here.
14949 if test -n "$ac_sub_configure"; then
14950 # Make the cache file name correct relative to the subdirectory.
14951 case $cache_file in
14952 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14953 *) # Relative name.
14954 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
14958 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14959 # The eval makes quoting arguments work.
14960 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14961 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14962 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14968 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14970 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}