2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
539 if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
542 elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
566 if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
588 # So, first we look for a working echo in the user's PATH.
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
641 # maybe with a smaller string...
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
657 # Oops. We lost completely, so just stick with echo.
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 exec 7<&0 </dev/null 6>&1
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
686 ac_default_prefix=/usr/local
688 ac_config_libobj_dir=.
695 # Identity of this package.
703 ac_unique_file="libbfd.c"
704 # Factoring default headers for most tests.
705 ac_includes_default="\
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
717 # ifdef HAVE_STDLIB_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
740 ac_subst_vars='am__EXEEXT_FALSE
748 bfd_default_target_size
765 BFD_HOST_64_BIT_DEFINED
766 BFD_HOST_64BIT_LONG_LONG
793 MAINTAINER_MODE_FALSE
840 INSTALL_STRIP_PROGRAM
901 program_transform_name
914 enable_option_checking
915 enable_dependency_tracking
928 with_separate_debug_dir
929 enable_elf_stt_common
933 enable_build_warnings
934 enable_maintainer_mode
935 enable_install_libbfd
939 ac_precious_vars='build_alias
950 # Initialize some variables set by options.
952 ac_init_version=false
953 ac_unrecognized_opts=
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
964 program_transform_name=s,x,x,
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 includedir='${prefix}/include'
987 oldincludedir='/usr/include'
988 docdir='${datarootdir}/doc/${PACKAGE}'
989 infodir='${datarootdir}/info'
994 libdir='${exec_prefix}/lib'
995 localedir='${datarootdir}/locale'
996 mandir='${datarootdir}/man'
1002 # If the previous option needs an argument, assign it.
1003 if test -n "$ac_prev"; then
1004 eval $ac_prev=\$ac_option
1010 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014 # Accept the important Cygnus configure options, so we can diagnose typos.
1016 case $ac_dashdash$ac_option in
1020 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023 bindir=$ac_optarg ;;
1025 -build | --build | --buil | --bui | --bu)
1026 ac_prev=build_alias ;;
1027 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028 build_alias=$ac_optarg ;;
1030 -cache-file | --cache-file | --cache-fil | --cache-fi \
1031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032 ac_prev=cache_file ;;
1033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035 cache_file=$ac_optarg ;;
1037 --config-cache | -C)
1038 cache_file=config.cache ;;
1040 -datadir | --datadir | --datadi | --datad)
1042 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043 datadir=$ac_optarg ;;
1045 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046 | --dataroo | --dataro | --datar)
1047 ac_prev=datarootdir ;;
1048 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050 datarootdir=$ac_optarg ;;
1052 -disable-* | --disable-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error "invalid feature name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1061 "enable_$ac_useropt"
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1066 eval enable_$ac_useropt=no ;;
1068 -docdir | --docdir | --docdi | --doc | --do)
1070 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071 docdir=$ac_optarg ;;
1073 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076 dvidir=$ac_optarg ;;
1078 -enable-* | --enable-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error "invalid feature name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1087 "enable_$ac_useropt"
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1092 eval enable_$ac_useropt=\$ac_optarg ;;
1094 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096 | --exec | --exe | --ex)
1097 ac_prev=exec_prefix ;;
1098 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100 | --exec=* | --exe=* | --ex=*)
1101 exec_prefix=$ac_optarg ;;
1103 -gas | --gas | --ga | --g)
1104 # Obsolete; use --with-gas.
1107 -help | --help | --hel | --he | -h)
1108 ac_init_help=long ;;
1109 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110 ac_init_help=recursive ;;
1111 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112 ac_init_help=short ;;
1114 -host | --host | --hos | --ho)
1115 ac_prev=host_alias ;;
1116 -host=* | --host=* | --hos=* | --ho=*)
1117 host_alias=$ac_optarg ;;
1119 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1121 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1123 htmldir=$ac_optarg ;;
1125 -includedir | --includedir | --includedi | --included | --include \
1126 | --includ | --inclu | --incl | --inc)
1127 ac_prev=includedir ;;
1128 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129 | --includ=* | --inclu=* | --incl=* | --inc=*)
1130 includedir=$ac_optarg ;;
1132 -infodir | --infodir | --infodi | --infod | --info | --inf)
1134 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1135 infodir=$ac_optarg ;;
1137 -libdir | --libdir | --libdi | --libd)
1139 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1140 libdir=$ac_optarg ;;
1142 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143 | --libexe | --libex | --libe)
1144 ac_prev=libexecdir ;;
1145 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146 | --libexe=* | --libex=* | --libe=*)
1147 libexecdir=$ac_optarg ;;
1149 -localedir | --localedir | --localedi | --localed | --locale)
1150 ac_prev=localedir ;;
1151 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152 localedir=$ac_optarg ;;
1154 -localstatedir | --localstatedir | --localstatedi | --localstated \
1155 | --localstate | --localstat | --localsta | --localst | --locals)
1156 ac_prev=localstatedir ;;
1157 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1158 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1159 localstatedir=$ac_optarg ;;
1161 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1163 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1164 mandir=$ac_optarg ;;
1166 -nfp | --nfp | --nf)
1167 # Obsolete; use --without-fp.
1170 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171 | --no-cr | --no-c | -n)
1174 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1178 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180 | --oldin | --oldi | --old | --ol | --o)
1181 ac_prev=oldincludedir ;;
1182 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1185 oldincludedir=$ac_optarg ;;
1187 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1189 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1190 prefix=$ac_optarg ;;
1192 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193 | --program-pre | --program-pr | --program-p)
1194 ac_prev=program_prefix ;;
1195 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1197 program_prefix=$ac_optarg ;;
1199 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200 | --program-suf | --program-su | --program-s)
1201 ac_prev=program_suffix ;;
1202 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1204 program_suffix=$ac_optarg ;;
1206 -program-transform-name | --program-transform-name \
1207 | --program-transform-nam | --program-transform-na \
1208 | --program-transform-n | --program-transform- \
1209 | --program-transform | --program-transfor \
1210 | --program-transfo | --program-transf \
1211 | --program-trans | --program-tran \
1212 | --progr-tra | --program-tr | --program-t)
1213 ac_prev=program_transform_name ;;
1214 -program-transform-name=* | --program-transform-name=* \
1215 | --program-transform-nam=* | --program-transform-na=* \
1216 | --program-transform-n=* | --program-transform-=* \
1217 | --program-transform=* | --program-transfor=* \
1218 | --program-transfo=* | --program-transf=* \
1219 | --program-trans=* | --program-tran=* \
1220 | --progr-tra=* | --program-tr=* | --program-t=*)
1221 program_transform_name=$ac_optarg ;;
1223 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1225 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226 pdfdir=$ac_optarg ;;
1228 -psdir | --psdir | --psdi | --psd | --ps)
1230 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234 | -silent | --silent | --silen | --sile | --sil)
1237 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241 sbindir=$ac_optarg ;;
1243 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245 | --sharedst | --shareds | --shared | --share | --shar \
1247 ac_prev=sharedstatedir ;;
1248 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252 sharedstatedir=$ac_optarg ;;
1254 -site | --site | --sit)
1256 -site=* | --site=* | --sit=*)
1259 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262 srcdir=$ac_optarg ;;
1264 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265 | --syscon | --sysco | --sysc | --sys | --sy)
1266 ac_prev=sysconfdir ;;
1267 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269 sysconfdir=$ac_optarg ;;
1271 -target | --target | --targe | --targ | --tar | --ta | --t)
1272 ac_prev=target_alias ;;
1273 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274 target_alias=$ac_optarg ;;
1276 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1279 -version | --version | --versio | --versi | --vers | -V)
1280 ac_init_version=: ;;
1283 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 as_fn_error "invalid package name: $ac_useropt"
1287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1296 eval with_$ac_useropt=\$ac_optarg ;;
1298 -without-* | --without-*)
1299 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302 as_fn_error "invalid package name: $ac_useropt"
1303 ac_useropt_orig=$ac_useropt
1304 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305 case $ac_user_opts in
1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310 ac_unrecognized_sep=', ';;
1312 eval with_$ac_useropt=no ;;
1315 # Obsolete; use --with-x.
1318 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319 | --x-incl | --x-inc | --x-in | --x-i)
1320 ac_prev=x_includes ;;
1321 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323 x_includes=$ac_optarg ;;
1325 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327 ac_prev=x_libraries ;;
1328 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330 x_libraries=$ac_optarg ;;
1332 -*) as_fn_error "unrecognized option: \`$ac_option'
1333 Try \`$0 --help' for more information."
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
1339 case $ac_envvar in #(
1340 '' | [0-9]* | *[!_$as_cr_alnum]* )
1341 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1343 eval $ac_envvar=\$ac_optarg
1344 export $ac_envvar ;;
1347 # FIXME: should be removed in autoconf 3.0.
1348 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1349 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1351 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1357 if test -n "$ac_prev"; then
1358 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359 as_fn_error "missing argument to $ac_option"
1362 if test -n "$ac_unrecognized_opts"; then
1363 case $enable_option_checking in
1365 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1366 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1370 # Check all directory arguments for consistency.
1371 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372 datadir sysconfdir sharedstatedir localstatedir includedir \
1373 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374 libdir localedir mandir
1376 eval ac_val=\$$ac_var
1377 # Remove trailing slashes.
1380 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381 eval $ac_var=\$ac_val;;
1383 # Be sure to have absolute directory names.
1385 [\\/$]* | ?:[\\/]* ) continue;;
1386 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1388 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1391 # There might be people who depend on the old broken behavior: `$host'
1392 # used to hold the argument of --host etc.
1393 # FIXME: To remove some day.
1396 target=$target_alias
1398 # FIXME: To remove some day.
1399 if test "x$host_alias" != x; then
1400 if test "x$build_alias" = x; then
1401 cross_compiling=maybe
1402 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1403 If a cross compiler is detected then cross compile mode will be used." >&2
1404 elif test "x$build_alias" != "x$host_alias"; then
1410 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1412 test "$silent" = yes && exec 6>/dev/null
1415 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1416 ac_ls_di=`ls -di .` &&
1417 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1418 as_fn_error "working directory cannot be determined"
1419 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1420 as_fn_error "pwd does not report name of working directory"
1423 # Find the source files, if location was not specified.
1424 if test -z "$srcdir"; then
1425 ac_srcdir_defaulted=yes
1426 # Try the directory containing this script, then the parent directory.
1427 ac_confdir=`$as_dirname -- "$as_myself" ||
1428 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1429 X"$as_myself" : 'X\(//\)[^/]' \| \
1430 X"$as_myself" : 'X\(//\)$' \| \
1431 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1432 $as_echo X"$as_myself" |
1433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1455 ac_srcdir_defaulted=no
1457 if test ! -r "$srcdir/$ac_unique_file"; then
1458 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1459 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1461 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1463 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1465 # When building in place, set srcdir=.
1466 if test "$ac_abs_confdir" = "$ac_pwd"; then
1469 # Remove unnecessary trailing slashes from srcdir.
1470 # Double slashes in file names in object file debugging info
1471 # mess up M-x gdb in Emacs.
1473 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1475 for ac_var in $ac_precious_vars; do
1476 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_env_${ac_var}_value=\$${ac_var}
1478 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1479 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483 # Report the --help message.
1485 if test "$ac_init_help" = "long"; then
1486 # Omit some internal or obsolete options to make the list less imposing.
1487 # This message is too long to be a string in the A/UX 3.1 sh.
1489 \`configure' configures this package to adapt to many kinds of systems.
1491 Usage: $0 [OPTION]... [VAR=VALUE]...
1493 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1494 VAR=VALUE. See below for descriptions of some of the useful variables.
1496 Defaults for the options are specified in brackets.
1499 -h, --help display this help and exit
1500 --help=short display options specific to this package
1501 --help=recursive display the short help of all the included packages
1502 -V, --version display version information and exit
1503 -q, --quiet, --silent do not print \`checking...' messages
1504 --cache-file=FILE cache test results in FILE [disabled]
1505 -C, --config-cache alias for \`--cache-file=config.cache'
1506 -n, --no-create do not create output files
1507 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1509 Installation directories:
1510 --prefix=PREFIX install architecture-independent files in PREFIX
1511 [$ac_default_prefix]
1512 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1515 By default, \`make install' will install all the files in
1516 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1517 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1518 for instance \`--prefix=\$HOME'.
1520 For better control, use the options below.
1522 Fine tuning of the installation directories:
1523 --bindir=DIR user executables [EPREFIX/bin]
1524 --sbindir=DIR system admin executables [EPREFIX/sbin]
1525 --libexecdir=DIR program executables [EPREFIX/libexec]
1526 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1527 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1528 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1529 --libdir=DIR object code libraries [EPREFIX/lib]
1530 --includedir=DIR C header files [PREFIX/include]
1531 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1532 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1533 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1534 --infodir=DIR info documentation [DATAROOTDIR/info]
1535 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1536 --mandir=DIR man documentation [DATAROOTDIR/man]
1537 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1538 --htmldir=DIR html documentation [DOCDIR]
1539 --dvidir=DIR dvi documentation [DOCDIR]
1540 --pdfdir=DIR pdf documentation [DOCDIR]
1541 --psdir=DIR ps documentation [DOCDIR]
1547 --program-prefix=PREFIX prepend PREFIX to installed program names
1548 --program-suffix=SUFFIX append SUFFIX to installed program names
1549 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1552 --build=BUILD configure for building on BUILD [guessed]
1553 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1554 --target=TARGET configure for building compilers for TARGET [HOST]
1558 if test -n "$ac_init_help"; then
1563 --disable-option-checking ignore unrecognized --enable/--with options
1564 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1565 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1566 --disable-dependency-tracking speeds up one-time build
1567 --enable-dependency-tracking do not reject slow dependency extractors
1568 --enable-shared[=PKGS] build shared libraries [default=no]
1569 --enable-static[=PKGS] build static libraries [default=yes]
1570 --enable-fast-install[=PKGS]
1571 optimize for fast installation [default=yes]
1572 --disable-libtool-lock avoid locking (might break parallel builds)
1573 --enable-plugins Enable support for plugins (defaults no)
1574 --disable-largefile omit support for large files
1575 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1576 --enable-targets alternative target configurations
1577 --enable-secureplt Default to creating read-only plt entries
1578 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
1579 --enable-werror treat compile warnings as errors
1580 --enable-build-warnings enable build-time compiler warnings
1581 --enable-maintainer-mode enable make rules and dependencies not useful
1582 (and sometimes confusing) to the casual installer
1583 --enable-install-libbfd controls installation of libbfd and related headers
1584 --disable-nls do not use Native Language Support
1587 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1588 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1589 --with-pic try to use only PIC/non-PIC objects [default=use
1591 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1592 --with-mmap try using mmap for BFD input files if available
1593 --with-separate-debug-dir=DIR
1594 Look for global separate debug info in DIR
1595 [default=LIBDIR/debug]
1596 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1598 --with-bugurl=URL Direct users to URL to report a bug
1599 --with-zlib include zlib support (auto/yes/no) default=auto
1601 Some influential environment variables:
1602 CC C compiler command
1603 CFLAGS C compiler flags
1604 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1605 nonstandard directory <lib dir>
1606 LIBS libraries to pass to the linker, e.g. -l<library>
1607 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1608 you have headers in a nonstandard directory <include dir>
1611 Use these variables to override the choices made by `configure' or to help
1612 it to find libraries and programs with nonstandard names/locations.
1614 Report bugs to the package provider.
1619 if test "$ac_init_help" = "recursive"; then
1620 # If there are subdirs, report their specific --help.
1621 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1622 test -d "$ac_dir" ||
1623 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1628 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1631 # A ".." for each directory in $ac_dir_suffix.
1632 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1633 case $ac_top_builddir_sub in
1634 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638 ac_abs_top_builddir=$ac_pwd
1639 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1640 # for backward compatibility:
1641 ac_top_builddir=$ac_top_build_prefix
1644 .) # We are building in place.
1646 ac_top_srcdir=$ac_top_builddir_sub
1647 ac_abs_top_srcdir=$ac_pwd ;;
1648 [\\/]* | ?:[\\/]* ) # Absolute name.
1649 ac_srcdir=$srcdir$ac_dir_suffix;
1650 ac_top_srcdir=$srcdir
1651 ac_abs_top_srcdir=$srcdir ;;
1653 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1654 ac_top_srcdir=$ac_top_build_prefix$srcdir
1655 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1657 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1659 cd "$ac_dir" || { ac_status=$?; continue; }
1660 # Check for guested configure.
1661 if test -f "$ac_srcdir/configure.gnu"; then
1663 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1664 elif test -f "$ac_srcdir/configure"; then
1666 $SHELL "$ac_srcdir/configure" --help=recursive
1668 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1670 cd "$ac_pwd" || { ac_status=$?; break; }
1674 test -n "$ac_init_help" && exit $ac_status
1675 if $ac_init_version; then
1678 generated by GNU Autoconf 2.64
1680 Copyright (C) 2009 Free Software Foundation, Inc.
1681 This configure script is free software; the Free Software Foundation
1682 gives unlimited permission to copy, distribute and modify it.
1687 ## ------------------------ ##
1688 ## Autoconf initialization. ##
1689 ## ------------------------ ##
1691 # ac_fn_c_try_compile LINENO
1692 # --------------------------
1693 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_compile ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 rm -f conftest.$ac_objext
1698 if { { ac_try="$ac_compile"
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_compile") 2>conftest.err
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && {
1714 test -z "$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 } && test -s conftest.$ac_objext; then :
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1724 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727 } # ac_fn_c_try_compile
1729 # ac_fn_c_try_link LINENO
1730 # -----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded.
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext conftest$ac_exeext
1736 if { { ac_try="$ac_link"
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>conftest.err
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest$ac_exeext && {
1755 test "$cross_compiling" = yes ||
1756 $as_test_x conftest$ac_exeext
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1765 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1766 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1767 # interfere with the next link command; also delete a directory that is
1768 # left behind by Apple's compiler. We do this before executing the actions.
1769 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773 } # ac_fn_c_try_link
1775 # ac_fn_c_try_cpp LINENO
1776 # ----------------------
1777 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if { { ac_try="$ac_cpp conftest.$ac_ext"
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } >/dev/null && {
1797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1813 # -------------------------------------------------------
1814 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1815 # the include files in INCLUDES and setting the cache variable VAR
1817 ac_fn_c_check_header_mongrel ()
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1824 $as_echo_n "(cached) " >&6
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1830 # Is the header compilable?
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1832 $as_echo_n "checking $2 usability... " >&6; }
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1838 if ac_fn_c_try_compile "$LINENO"; then :
1839 ac_header_compiler=yes
1841 ac_header_compiler=no
1843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1845 $as_echo "$ac_header_compiler" >&6; }
1847 # Is the header present?
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1849 $as_echo_n "checking $2 presence... " >&6; }
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h. */
1854 if ac_fn_c_try_cpp "$LINENO"; then :
1855 ac_header_preproc=yes
1857 ac_header_preproc=no
1859 rm -f conftest.err conftest.$ac_ext
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1861 $as_echo "$ac_header_preproc" >&6; }
1863 # So? What about this header?
1864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1867 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1869 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1873 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1875 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1877 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1879 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1881 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1887 $as_echo_n "(cached) " >&6
1889 eval "$3=\$ac_header_compiler"
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897 } # ac_fn_c_check_header_mongrel
1899 # ac_fn_c_try_run LINENO
1900 # ----------------------
1901 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1902 # that executables *can* be run.
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 if { { ac_try="$ac_link"
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_link") 2>&5
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1917 { { case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_try") 2>&5
1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926 test $ac_status = 0; }; }; then :
1929 $as_echo "$as_me: program exited with status $ac_status" >&5
1930 $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1933 ac_retval=$ac_status
1935 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1936 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1941 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1942 # -------------------------------------------------------
1943 # Tests whether HEADER exists and can be compiled using the include files in
1944 # INCLUDES, setting the cache variable VAR accordingly.
1945 ac_fn_c_check_header_compile ()
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949 $as_echo_n "checking for $2... " >&6; }
1950 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1951 $as_echo_n "(cached) " >&6
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1958 if ac_fn_c_try_compile "$LINENO"; then :
1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970 } # ac_fn_c_check_header_compile
1972 # ac_fn_c_check_func LINENO FUNC VAR
1973 # ----------------------------------
1974 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1975 ac_fn_c_check_func ()
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979 $as_echo_n "checking for $2... " >&6; }
1980 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1981 $as_echo_n "(cached) " >&6
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1985 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1987 #define $2 innocuous_$2
1989 /* System header to define __stub macros and hopefully few prototypes,
1990 which can conflict with char $2 (); below.
1991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1992 <limits.h> exists even on freestanding compilers. */
1995 # include <limits.h>
1997 # include <assert.h>
2002 /* Override any GCC internal prototype to avoid an error.
2003 Use char because int might match the return type of a GCC
2004 builtin and then its argument prototype would still apply. */
2009 /* The GNU C library defines this for functions which it implements
2010 to always fail with ENOSYS. Some functions are actually named
2011 something starting with __ and the normal name is an alias. */
2012 #if defined __stub_$2 || defined __stub___$2
2024 if ac_fn_c_try_link "$LINENO"; then :
2029 rm -f core conftest.err conftest.$ac_objext \
2030 conftest$ac_exeext conftest.$ac_ext
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2035 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037 } # ac_fn_c_check_func
2039 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2040 # --------------------------------------------
2041 # Tries to find the compile-time value of EXPR in a program that includes
2042 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2044 ac_fn_c_compute_int ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 if test "$cross_compiling" = yes; then
2048 # Depending upon the size, compute the lo and hi bounds.
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2055 static int test_array [1 - 2 * !(($2) >= 0)];
2062 if ac_fn_c_try_compile "$LINENO"; then :
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2071 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079 ac_hi=$ac_mid; break
2081 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2082 if test $ac_lo -le $ac_mid; then
2086 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2097 static int test_array [1 - 2 * !(($2) < 0)];
2104 if ac_fn_c_try_compile "$LINENO"; then :
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2113 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_lo=$ac_mid; break
2123 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2124 if test $ac_mid -le $ac_hi; then
2128 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 # Binary search between lo and hi bounds.
2139 while test "x$ac_lo" != "x$ac_hi"; do
2140 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2147 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2154 if ac_fn_c_try_compile "$LINENO"; then :
2157 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2169 static long int longval () { return $2; }
2170 static unsigned long int ulongval () { return $2; }
2177 FILE *f = fopen ("conftest.val", "w");
2182 long int i = longval ();
2185 fprintf (f, "%ld", i);
2189 unsigned long int i = ulongval ();
2192 fprintf (f, "%lu", i);
2194 /* Do not output a trailing newline, as this causes \r\n confusion
2195 on some platforms. */
2196 return ferror (f) || fclose (f) != 0;
2202 if ac_fn_c_try_run "$LINENO"; then :
2203 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2208 conftest.$ac_objext conftest.beam conftest.$ac_ext
2212 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2215 } # ac_fn_c_compute_int
2217 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2218 # -------------------------------------------
2219 # Tests whether TYPE exists after having included INCLUDES, setting cache
2220 # variable VAR accordingly.
2221 ac_fn_c_check_type ()
2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2225 $as_echo_n "checking for $2... " >&6; }
2226 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2227 $as_echo_n "(cached) " >&6
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2242 if ac_fn_c_try_compile "$LINENO"; then :
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2255 if ac_fn_c_try_compile "$LINENO"; then :
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2269 } # ac_fn_c_check_type
2271 # ac_fn_c_check_decl LINENO SYMBOL VAR
2272 # ------------------------------------
2273 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2274 ac_fn_c_check_decl ()
2276 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2278 $as_echo_n "checking whether $2 is declared... " >&6; }
2279 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2280 $as_echo_n "(cached) " >&6
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2296 if ac_fn_c_try_compile "$LINENO"; then :
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305 $as_echo "$ac_res" >&6; }
2306 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2308 } # ac_fn_c_check_decl
2309 cat >config.log <<_ACEOF
2310 This file contains any messages produced by compilers while
2311 running configure, to aid debugging if configure makes a mistake.
2313 It was created by $as_me, which was
2314 generated by GNU Autoconf 2.64. Invocation command line was
2326 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2327 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2328 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2329 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2330 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2332 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2333 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2335 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2336 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2337 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2338 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2339 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2340 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2341 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 test -z "$as_dir" && as_dir=.
2350 $as_echo "PATH: $as_dir"
2366 # Keep a trace of the command line.
2367 # Strip out --no-create and --no-recursion so they do not pile up.
2368 # Strip out --silent because we don't want to record it for future runs.
2369 # Also quote any args containing shell meta-characters.
2370 # Make two passes to allow for proper duplicate-argument suppression.
2374 ac_must_keep_next=false
2380 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2381 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2382 | -silent | --silent | --silen | --sile | --sil)
2385 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2388 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2390 as_fn_append ac_configure_args1 " '$ac_arg'"
2391 if test $ac_must_keep_next = true; then
2392 ac_must_keep_next=false # Got value, back to normal.
2395 *=* | --config-cache | -C | -disable-* | --disable-* \
2396 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2397 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2398 | -with-* | --with-* | -without-* | --without-* | --x)
2399 case "$ac_configure_args0 " in
2400 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2403 -* ) ac_must_keep_next=true ;;
2406 as_fn_append ac_configure_args " '$ac_arg'"
2411 { ac_configure_args0=; unset ac_configure_args0;}
2412 { ac_configure_args1=; unset ac_configure_args1;}
2414 # When interrupted or exit'd, cleanup temporary files, and complete
2415 # config.log. We remove comments because anyway the quotes in there
2416 # would cause problems or look ugly.
2417 # WARNING: Use '\'' to represent an apostrophe within the trap.
2418 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2419 trap 'exit_status=$?
2420 # Save into config.log some information that might help in debugging.
2425 ## ---------------- ##
2426 ## Cache variables. ##
2427 ## ---------------- ##
2430 # The following way of writing the cache mishandles newlines in values,
2432 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2433 eval ac_val=\$$ac_var
2437 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2438 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2441 _ | IFS | as_nl) ;; #(
2442 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2443 *) { eval $ac_var=; unset $ac_var;} ;;
2448 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2449 *${as_nl}ac_space=\ *)
2451 "s/'\''/'\''\\\\'\'''\''/g;
2452 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2455 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2463 ## ----------------- ##
2464 ## Output variables. ##
2465 ## ----------------- ##
2468 for ac_var in $ac_subst_vars
2470 eval ac_val=\$$ac_var
2472 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2474 $as_echo "$ac_var='\''$ac_val'\''"
2478 if test -n "$ac_subst_files"; then
2480 ## ------------------- ##
2481 ## File substitutions. ##
2482 ## ------------------- ##
2485 for ac_var in $ac_subst_files
2487 eval ac_val=\$$ac_var
2489 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2491 $as_echo "$ac_var='\''$ac_val'\''"
2496 if test -s confdefs.h; then
2506 test "$ac_signal" != 0 &&
2507 $as_echo "$as_me: caught signal $ac_signal"
2508 $as_echo "$as_me: exit $exit_status"
2510 rm -f core *.core core.conftest.* &&
2511 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2514 for ac_signal in 1 2 13 15; do
2515 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2519 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2520 rm -f -r conftest* confdefs.h
2522 $as_echo "/* confdefs.h */" > confdefs.h
2524 # Predefined preprocessor variables.
2526 cat >>confdefs.h <<_ACEOF
2527 #define PACKAGE_NAME "$PACKAGE_NAME"
2530 cat >>confdefs.h <<_ACEOF
2531 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2534 cat >>confdefs.h <<_ACEOF
2535 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2538 cat >>confdefs.h <<_ACEOF
2539 #define PACKAGE_STRING "$PACKAGE_STRING"
2542 cat >>confdefs.h <<_ACEOF
2543 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2546 cat >>confdefs.h <<_ACEOF
2547 #define PACKAGE_URL "$PACKAGE_URL"
2551 # Let the site file select an alternate cache file if it wants to.
2552 # Prefer an explicitly selected file to automatically selected ones.
2555 if test -n "$CONFIG_SITE"; then
2556 ac_site_file1=$CONFIG_SITE
2557 elif test "x$prefix" != xNONE; then
2558 ac_site_file1=$prefix/share/config.site
2559 ac_site_file2=$prefix/etc/config.site
2561 ac_site_file1=$ac_default_prefix/share/config.site
2562 ac_site_file2=$ac_default_prefix/etc/config.site
2564 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2566 test "x$ac_site_file" = xNONE && continue
2567 if test -r "$ac_site_file"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2569 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2570 sed 's/^/| /' "$ac_site_file" >&5
2575 if test -r "$cache_file"; then
2576 # Some versions of bash will fail to source /dev/null (special
2577 # files actually), so we avoid doing that.
2578 if test -f "$cache_file"; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2580 $as_echo "$as_me: loading cache $cache_file" >&6;}
2582 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2583 *) . "./$cache_file";;
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2588 $as_echo "$as_me: creating cache $cache_file" >&6;}
2592 # Check that the precious variables saved in the cache have kept the same
2594 ac_cache_corrupted=false
2595 for ac_var in $ac_precious_vars; do
2596 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2597 eval ac_new_set=\$ac_env_${ac_var}_set
2598 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2599 eval ac_new_val=\$ac_env_${ac_var}_value
2600 case $ac_old_set,$ac_new_set in
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2603 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2604 ac_cache_corrupted=: ;;
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2607 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2608 ac_cache_corrupted=: ;;
2611 if test "x$ac_old_val" != "x$ac_new_val"; then
2612 # differences in whitespace do not lead to failure.
2613 ac_old_val_w=`echo x $ac_old_val`
2614 ac_new_val_w=`echo x $ac_new_val`
2615 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2617 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2618 ac_cache_corrupted=:
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2621 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2622 eval $ac_var=\$ac_old_val
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2625 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2627 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2630 # Pass precious variables to config.status.
2631 if test "$ac_new_set" = set; then
2633 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2634 *) ac_arg=$ac_var=$ac_new_val ;;
2636 case " $ac_configure_args " in
2637 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2638 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2642 if $ac_cache_corrupted; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2646 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2647 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2649 ## -------------------- ##
2650 ## Main body of script. ##
2651 ## -------------------- ##
2654 ac_cpp='$CPP $CPPFLAGS'
2655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2666 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2667 for ac_t in install-sh install.sh shtool; do
2668 if test -f "$ac_dir/$ac_t"; then
2670 ac_install_sh="$ac_aux_dir/$ac_t -c"
2675 if test -z "$ac_aux_dir"; then
2676 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2679 # These three variables are undocumented and unsupported,
2680 # and are intended to be withdrawn in a future Autoconf release.
2681 # They can cause serious problems if a builder's source tree is in a directory
2682 # whose full name contains unusual characters.
2683 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2684 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2685 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2688 # Make sure we can run config.sub.
2689 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2690 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2693 $as_echo_n "checking build system type... " >&6; }
2694 if test "${ac_cv_build+set}" = set; then :
2695 $as_echo_n "(cached) " >&6
2697 ac_build_alias=$build_alias
2698 test "x$ac_build_alias" = x &&
2699 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2700 test "x$ac_build_alias" = x &&
2701 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2702 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2703 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2707 $as_echo "$ac_cv_build" >&6; }
2708 case $ac_cv_build in
2710 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2713 ac_save_IFS=$IFS; IFS='-'
2719 # Remember, the first character of IFS is used to create $*,
2720 # except with old shells:
2723 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2727 $as_echo_n "checking host system type... " >&6; }
2728 if test "${ac_cv_host+set}" = set; then :
2729 $as_echo_n "(cached) " >&6
2731 if test "x$host_alias" = x; then
2732 ac_cv_host=$ac_cv_build
2734 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2735 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2740 $as_echo "$ac_cv_host" >&6; }
2743 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2746 ac_save_IFS=$IFS; IFS='-'
2752 # Remember, the first character of IFS is used to create $*,
2753 # except with old shells:
2756 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2760 $as_echo_n "checking target system type... " >&6; }
2761 if test "${ac_cv_target+set}" = set; then :
2762 $as_echo_n "(cached) " >&6
2764 if test "x$target_alias" = x; then
2765 ac_cv_target=$ac_cv_host
2767 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2768 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2773 $as_echo "$ac_cv_target" >&6; }
2774 case $ac_cv_target in
2776 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2778 target=$ac_cv_target
2779 ac_save_IFS=$IFS; IFS='-'
2785 # Remember, the first character of IFS is used to create $*,
2786 # except with old shells:
2789 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2792 # The aliases save the names the user supplied, while $host etc.
2793 # will get canonicalized.
2794 test -n "$target_alias" &&
2795 test "$program_prefix$program_suffix$program_transform_name" = \
2797 program_prefix=${target_alias}-
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803 if test -n "$ac_tool_prefix"; then
2804 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2805 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if test "${ac_cv_prog_CC+set}" = set; then :
2809 $as_echo_n "(cached) " >&6
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC="$CC" # Let the user override the test.
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 if test -n "$CC"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2834 $as_echo "$CC" >&6; }
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2842 if test -z "$ac_cv_prog_CC"; then
2844 # Extract the first word of "gcc", so it can be a program name with args.
2845 set dummy gcc; ac_word=$2
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847 $as_echo_n "checking for $ac_word... " >&6; }
2848 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2849 $as_echo_n "(cached) " >&6
2851 if test -n "$ac_ct_CC"; then
2852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 test -z "$as_dir" && as_dir=.
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2861 ac_cv_prog_ac_ct_CC="gcc"
2862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2872 if test -n "$ac_ct_CC"; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2874 $as_echo "$ac_ct_CC" >&6; }
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877 $as_echo "no" >&6; }
2880 if test "x$ac_ct_CC" = x; then
2883 case $cross_compiling:$ac_tool_warned in
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2887 ac_tool_warned=yes ;;
2895 if test -z "$CC"; then
2896 if test -n "$ac_tool_prefix"; then
2897 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2898 set dummy ${ac_tool_prefix}cc; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if test "${ac_cv_prog_CC+set}" = set; then :
2902 $as_echo_n "(cached) " >&6
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914 ac_cv_prog_CC="${ac_tool_prefix}cc"
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 if test -n "$CC"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2927 $as_echo "$CC" >&6; }
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2936 if test -z "$CC"; then
2937 # Extract the first word of "cc", so it can be a program name with args.
2938 set dummy cc; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if test "${ac_cv_prog_CC+set}" = set; then :
2942 $as_echo_n "(cached) " >&6
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC="$CC" # Let the user override the test.
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2956 ac_prog_rejected=yes
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 if test $ac_prog_rejected = yes; then
2968 # We found a bogon in the path, so make sure we never use it.
2969 set dummy $ac_cv_prog_CC
2971 if test $# != 0; then
2972 # We chose a different compiler from the bogus one.
2973 # However, it has the same basename, so the bogon will be chosen
2974 # first if we set CC to just the basename; use the full file name.
2976 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2982 if test -n "$CC"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2984 $as_echo "$CC" >&6; }
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2992 if test -z "$CC"; then
2993 if test -n "$ac_tool_prefix"; then
2994 for ac_prog in cl.exe
2996 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2997 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if test "${ac_cv_prog_CC+set}" = set; then :
3001 $as_echo_n "(cached) " >&6
3003 if test -n "$CC"; then
3004 ac_cv_prog_CC="$CC" # Let the user override the test.
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 if test -n "$CC"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026 $as_echo "$CC" >&6; }
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3033 test -n "$CC" && break
3036 if test -z "$CC"; then
3038 for ac_prog in cl.exe
3040 # Extract the first word of "$ac_prog", so it can be a program name with args.
3041 set dummy $ac_prog; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3045 $as_echo_n "(cached) " >&6
3047 if test -n "$ac_ct_CC"; then
3048 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3057 ac_cv_prog_ac_ct_CC="$ac_prog"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3068 if test -n "$ac_ct_CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3070 $as_echo "$ac_ct_CC" >&6; }
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3077 test -n "$ac_ct_CC" && break
3080 if test "x$ac_ct_CC" = x; then
3083 case $cross_compiling:$ac_tool_warned in
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3087 ac_tool_warned=yes ;;
3096 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3098 as_fn_error "no acceptable C compiler found in \$PATH
3099 See \`config.log' for more details." "$LINENO" 5; }
3101 # Provide some information about the compiler.
3102 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3105 for ac_option in --version -v -V -qversion; do
3106 { { ac_try="$ac_compiler $ac_option >&5"
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3112 $as_echo "$ac_try_echo"; } >&5
3113 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3115 if test -s conftest.err; then
3117 ... rest of stderr output deleted ...
3118 10q' conftest.err >conftest.er1
3119 cat conftest.er1 >&5
3120 rm -f conftest.er1 conftest.err
3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123 test $ac_status = 0; }
3126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3127 /* end confdefs.h. */
3137 ac_clean_files_save=$ac_clean_files
3138 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3139 # Try to create an executable without -o first, disregard a.out.
3140 # It will help us diagnose broken compilers, and finding out an intuition
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3143 $as_echo_n "checking for C compiler default output file name... " >&6; }
3144 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3146 # The possible output files:
3147 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3150 for ac_file in $ac_files
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3154 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3159 if { { ac_try="$ac_link_default"
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3165 $as_echo "$ac_try_echo"; } >&5
3166 (eval "$ac_link_default") 2>&5
3168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3169 test $ac_status = 0; }; then :
3170 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3171 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3172 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3173 # so that the user can short-circuit this test for compilers unknown to
3175 for ac_file in $ac_files ''
3177 test -f "$ac_file" || continue
3179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3182 # We found the default executable, but exeext='' is most
3186 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3188 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3190 # We set ac_cv_exeext here because the later test for it is not
3191 # safe: cross compilers may not add the suffix if given an `-o'
3192 # argument, so we may need to know it at that point already.
3193 # Even if this section looks crufty: it has the advantage of
3200 test "$ac_cv_exeext" = no && ac_cv_exeext=
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3206 $as_echo "$ac_file" >&6; }
3207 if test -z "$ac_file"; then :
3208 $as_echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3213 { as_fn_set_status 77
3214 as_fn_error "C compiler cannot create executables
3215 See \`config.log' for more details." "$LINENO" 5; }; }
3217 ac_exeext=$ac_cv_exeext
3219 # Check that the compiler produces executables we can run. If not, either
3220 # the compiler is broken, or we cross compile.
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3222 $as_echo_n "checking whether the C compiler works... " >&6; }
3223 # If not cross compiling, check that we can run a simple program.
3224 if test "$cross_compiling" != yes; then
3225 if { ac_try='./$ac_file'
3226 { { case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231 $as_echo "$ac_try_echo"; } >&5
3232 (eval "$ac_try") 2>&5
3234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235 test $ac_status = 0; }; }; then
3238 if test "$cross_compiling" = maybe; then
3241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error "cannot run C compiled programs.
3244 If you meant to cross compile, use \`--host'.
3245 See \`config.log' for more details." "$LINENO" 5; }
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3250 $as_echo "yes" >&6; }
3252 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3253 ac_clean_files=$ac_clean_files_save
3254 # Check that the compiler produces executables we can run. If not, either
3255 # the compiler is broken, or we cross compile.
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3257 $as_echo_n "checking whether we are cross compiling... " >&6; }
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3259 $as_echo "$cross_compiling" >&6; }
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3262 $as_echo_n "checking for suffix of executables... " >&6; }
3263 if { { ac_try="$ac_link"
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269 $as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_link") 2>&5
3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }; then :
3274 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3275 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3276 # work properly (i.e., refer to `conftest.exe'), while it won't with
3278 for ac_file in conftest.exe conftest conftest.*; do
3279 test -f "$ac_file" || continue
3281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3282 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 as_fn_error "cannot compute suffix of executables: cannot compile and link
3291 See \`config.log' for more details." "$LINENO" 5; }
3293 rm -f conftest$ac_cv_exeext
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3295 $as_echo "$ac_cv_exeext" >&6; }
3297 rm -f conftest.$ac_ext
3298 EXEEXT=$ac_cv_exeext
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3301 $as_echo_n "checking for suffix of object files... " >&6; }
3302 if test "${ac_cv_objext+set}" = set; then :
3303 $as_echo_n "(cached) " >&6
3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h. */
3316 rm -f conftest.o conftest.obj
3317 if { { ac_try="$ac_compile"
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323 $as_echo "$ac_try_echo"; } >&5
3324 (eval "$ac_compile") 2>&5
3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }; then :
3328 for ac_file in conftest.o conftest.obj conftest.*; do
3329 test -f "$ac_file" || continue;
3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3332 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3337 $as_echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342 as_fn_error "cannot compute suffix of object files: cannot compile
3343 See \`config.log' for more details." "$LINENO" 5; }
3345 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3348 $as_echo "$ac_cv_objext" >&6; }
3349 OBJEXT=$ac_cv_objext
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3352 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3353 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3354 $as_echo_n "(cached) " >&6
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3370 if ac_fn_c_try_compile "$LINENO"; then :
3375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3380 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3381 if test $ac_compiler_gnu = yes; then
3386 ac_test_CFLAGS=${CFLAGS+set}
3387 ac_save_CFLAGS=$CFLAGS
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3389 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3390 if test "${ac_cv_prog_cc_g+set}" = set; then :
3391 $as_echo_n "(cached) " >&6
3393 ac_save_c_werror_flag=$ac_c_werror_flag
3394 ac_c_werror_flag=yes
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3408 if ac_fn_c_try_compile "$LINENO"; then :
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3423 if ac_fn_c_try_compile "$LINENO"; then :
3426 ac_c_werror_flag=$ac_save_c_werror_flag
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3439 if ac_fn_c_try_compile "$LINENO"; then :
3442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447 ac_c_werror_flag=$ac_save_c_werror_flag
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3450 $as_echo "$ac_cv_prog_cc_g" >&6; }
3451 if test "$ac_test_CFLAGS" = set; then
3452 CFLAGS=$ac_save_CFLAGS
3453 elif test $ac_cv_prog_cc_g = yes; then
3454 if test "$GCC" = yes; then
3460 if test "$GCC" = yes; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3467 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3468 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3469 $as_echo_n "(cached) " >&6
3471 ac_cv_prog_cc_c89=no
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3477 #include <sys/types.h>
3478 #include <sys/stat.h>
3479 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3480 struct buf { int x; };
3481 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3482 static char *e (p, i)
3488 static char *f (char * (*g) (char **, int), char **p, ...)
3493 s = g (p, va_arg (v,int));
3498 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3499 function prototypes and stuff, but not '\xHH' hex character constants.
3500 These don't provoke an error unfortunately, instead are silently treated
3501 as 'x'. The following induces an error, until -std is added to get
3502 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3503 array size at least. It's necessary to write '\x00'==0 to get something
3504 that's true only with -std. */
3505 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3507 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3508 inside strings and character constants. */
3510 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3512 int test (int i, double x);
3513 struct s1 {int (*f) (int a);};
3514 struct s2 {int (*f) (double a);};
3515 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3521 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3526 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3527 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3529 CC="$ac_save_CC $ac_arg"
3530 if ac_fn_c_try_compile "$LINENO"; then :
3531 ac_cv_prog_cc_c89=$ac_arg
3533 rm -f core conftest.err conftest.$ac_objext
3534 test "x$ac_cv_prog_cc_c89" != "xno" && break
3536 rm -f conftest.$ac_ext
3541 case "x$ac_cv_prog_cc_c89" in
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3544 $as_echo "none needed" >&6; } ;;
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3547 $as_echo "unsupported" >&6; } ;;
3549 CC="$CC $ac_cv_prog_cc_c89"
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3551 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3553 if test "x$ac_cv_prog_cc_c89" != xno; then :
3558 ac_cpp='$CPP $CPPFLAGS'
3559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3565 $as_echo_n "checking for library containing strerror... " >&6; }
3566 if test "${ac_cv_search_strerror+set}" = set; then :
3567 $as_echo_n "(cached) " >&6
3569 ac_func_search_save_LIBS=$LIBS
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3573 /* Override any GCC internal prototype to avoid an error.
3574 Use char because int might match the return type of a GCC
3575 builtin and then its argument prototype would still apply. */
3588 for ac_lib in '' cposix; do
3589 if test -z "$ac_lib"; then
3590 ac_res="none required"
3593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3595 if ac_fn_c_try_link "$LINENO"; then :
3596 ac_cv_search_strerror=$ac_res
3598 rm -f core conftest.err conftest.$ac_objext \
3600 if test "${ac_cv_search_strerror+set}" = set; then :
3604 if test "${ac_cv_search_strerror+set}" = set; then :
3607 ac_cv_search_strerror=no
3610 LIBS=$ac_func_search_save_LIBS
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3613 $as_echo "$ac_cv_search_strerror" >&6; }
3614 ac_res=$ac_cv_search_strerror
3615 if test "$ac_res" != no; then :
3616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3621 am__api_version='1.11'
3623 # Find a good install program. We prefer a C program (faster),
3624 # so one script is as good as another. But avoid the broken or
3625 # incompatible versions:
3626 # SysV /etc/install, /usr/sbin/install
3627 # SunOS /usr/etc/install
3628 # IRIX /sbin/install
3630 # AmigaOS /C/install, which installs bootblocks on floppy discs
3631 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3632 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3633 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3634 # OS/2's system install, which has a completely different semantic
3635 # ./install, which can be erroneously created by make from ./install.sh.
3636 # Reject install programs that cannot install multiple files.
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3638 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3639 if test -z "$INSTALL"; then
3640 if test "${ac_cv_path_install+set}" = set; then :
3641 $as_echo_n "(cached) " >&6
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 test -z "$as_dir" && as_dir=.
3648 # Account for people who put trailing slashes in PATH elements.
3649 case $as_dir/ in #((
3650 ./ | .// | /[cC]/* | \
3651 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3652 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3655 # OSF1 and SCO ODT 3.0 have their own names for install.
3656 # Don't use installbsd from OSF since it installs stuff as root
3658 for ac_prog in ginstall scoinst install; do
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3661 if test $ac_prog = install &&
3662 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3663 # AIX install. It has an incompatible calling convention.
3665 elif test $ac_prog = install &&
3666 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3667 # program-specific install script used by HP pwplus--don't use.
3670 rm -rf conftest.one conftest.two conftest.dir
3671 echo one > conftest.one
3672 echo two > conftest.two
3674 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3675 test -s conftest.one && test -s conftest.two &&
3676 test -s conftest.dir/conftest.one &&
3677 test -s conftest.dir/conftest.two
3679 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3692 rm -rf conftest.one conftest.two conftest.dir
3695 if test "${ac_cv_path_install+set}" = set; then
3696 INSTALL=$ac_cv_path_install
3698 # As a last resort, use the slow shell script. Don't cache a
3699 # value for INSTALL within a source directory, because that will
3700 # break other packages using the cache if that directory is
3701 # removed, or if the value is a relative name.
3702 INSTALL=$ac_install_sh
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3706 $as_echo "$INSTALL" >&6; }
3708 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3709 # It thinks the first close brace ends the variable substitution.
3710 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3712 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3714 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3717 $as_echo_n "checking whether build environment is sane... " >&6; }
3720 echo timestamp > conftest.file
3721 # Reject unsafe characters in $srcdir or the absolute working directory
3722 # name. Accept space and tab only in the latter.
3726 *[\\\"\#\$\&\'\`$am_lf]*)
3727 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3730 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3731 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3734 # Do `set' in a subshell so we don't clobber the current shell's
3735 # arguments. Must try -L first in case configure is actually a
3736 # symlink; some systems play weird games with the mod time of symlinks
3737 # (eg FreeBSD returns the mod time of the symlink's containing
3740 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3741 if test "$*" = "X"; then
3743 set X `ls -t "$srcdir/configure" conftest.file`
3746 if test "$*" != "X $srcdir/configure conftest.file" \
3747 && test "$*" != "X conftest.file $srcdir/configure"; then
3749 # If neither matched, then we have a broken ls. This can happen
3750 # if, for instance, CONFIG_SHELL is bash and it inherits a
3751 # broken ls alias from the environment. This has actually
3752 # happened. Such a system could not be considered "sane".
3753 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3754 alias in your environment" "$LINENO" 5
3757 test "$2" = conftest.file
3763 as_fn_error "newly created file is older than distributed files!
3764 Check your system clock" "$LINENO" 5
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3767 $as_echo "yes" >&6; }
3768 test "$program_prefix" != NONE &&
3769 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3770 # Use a double $ so make ignores it.
3771 test "$program_suffix" != NONE &&
3772 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3773 # Double any \ or $.
3774 # By default was `s,x,x', remove it if useless.
3775 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3776 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3778 # expand $ac_aux_dir to an absolute path
3779 am_aux_dir=`cd $ac_aux_dir && pwd`
3781 if test x"${MISSING+set}" != xset; then
3784 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3786 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3789 # Use eval to expand $SHELL
3790 if eval "$MISSING --run true"; then
3791 am_missing_run="$MISSING --run "
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3795 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3798 if test x"${install_sh}" != xset; then
3801 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3803 install_sh="\${SHELL} $am_aux_dir/install-sh"
3807 # Installed binaries are usually stripped using `strip' when the user
3808 # run `make install-strip'. However `strip' might not be the right
3809 # tool to use in cross-compilation environments, therefore Automake
3810 # will honor the `STRIP' environment variable to overrule this program.
3811 if test "$cross_compiling" != no; then
3812 if test -n "$ac_tool_prefix"; then
3813 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3814 set dummy ${ac_tool_prefix}strip; ac_word=$2
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3816 $as_echo_n "checking for $ac_word... " >&6; }
3817 if test "${ac_cv_prog_STRIP+set}" = set; then :
3818 $as_echo_n "(cached) " >&6
3820 if test -n "$STRIP"; then
3821 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827 test -z "$as_dir" && as_dir=.
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3830 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3840 STRIP=$ac_cv_prog_STRIP
3841 if test -n "$STRIP"; then
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3843 $as_echo "$STRIP" >&6; }
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846 $as_echo "no" >&6; }
3851 if test -z "$ac_cv_prog_STRIP"; then
3853 # Extract the first word of "strip", so it can be a program name with args.
3854 set dummy strip; ac_word=$2
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3858 $as_echo_n "(cached) " >&6
3860 if test -n "$ac_ct_STRIP"; then
3861 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3870 ac_cv_prog_ac_ct_STRIP="strip"
3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3880 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3881 if test -n "$ac_ct_STRIP"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3883 $as_echo "$ac_ct_STRIP" >&6; }
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3889 if test "x$ac_ct_STRIP" = x; then
3892 case $cross_compiling:$ac_tool_warned in
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3896 ac_tool_warned=yes ;;
3901 STRIP="$ac_cv_prog_STRIP"
3905 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3908 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3909 if test -z "$MKDIR_P"; then
3910 if test "${ac_cv_path_mkdir+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3917 test -z "$as_dir" && as_dir=.
3918 for ac_prog in mkdir gmkdir; do
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3921 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3922 'mkdir (GNU coreutils) '* | \
3923 'mkdir (coreutils) '* | \
3924 'mkdir (fileutils) '4.1*)
3925 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3935 if test "${ac_cv_path_mkdir+set}" = set; then
3936 MKDIR_P="$ac_cv_path_mkdir -p"
3938 # As a last resort, use the slow shell script. Don't cache a
3939 # value for MKDIR_P within a source directory, because that will
3940 # break other packages using the cache if that directory is
3941 # removed, or if the value is a relative name.
3942 test -d ./--version && rmdir ./--version
3943 MKDIR_P="$ac_install_sh -d"
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3947 $as_echo "$MKDIR_P" >&6; }
3951 [\\/$]* | ?:[\\/]*) ;;
3952 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3955 for ac_prog in gawk mawk nawk awk
3957 # Extract the first word of "$ac_prog", so it can be a program name with args.
3958 set dummy $ac_prog; ac_word=$2
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960 $as_echo_n "checking for $ac_word... " >&6; }
3961 if test "${ac_cv_prog_AWK+set}" = set; then :
3962 $as_echo_n "(cached) " >&6
3964 if test -n "$AWK"; then
3965 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3974 ac_cv_prog_AWK="$ac_prog"
3975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3985 if test -n "$AWK"; then
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3987 $as_echo "$AWK" >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990 $as_echo "no" >&6; }
3994 test -n "$AWK" && break
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3998 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4000 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4001 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4002 $as_echo_n "(cached) " >&6
4004 cat >conftest.make <<\_ACEOF
4007 @echo '@@@%%%=$(MAKE)=@@@%%%'
4009 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4010 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4012 eval ac_cv_prog_make_${ac_make}_set=yes;;
4014 eval ac_cv_prog_make_${ac_make}_set=no;;
4018 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4020 $as_echo "yes" >&6; }
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024 $as_echo "no" >&6; }
4025 SET_MAKE="MAKE=${MAKE-make}"
4028 rm -rf .tst 2>/dev/null
4029 mkdir .tst 2>/dev/null
4030 if test -d .tst; then
4035 rmdir .tst 2>/dev/null
4037 DEPDIR="${am__leading_dot}deps"
4039 ac_config_commands="$ac_config_commands depfiles"
4042 am_make=${MAKE-make}
4043 cat > confinc << 'END'
4045 @echo this is the am__doit target
4048 # If we don't find an include directive, just comment out the code.
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4050 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4054 # First try GNU make style include.
4055 echo "include confinc" > confmf
4056 # Ignore all kinds of additional output from `make'.
4057 case `$am_make -s -f confmf 2> /dev/null` in #(
4058 *the\ am__doit\ target*)
4064 # Now try BSD make style include.
4065 if test "$am__include" = "#"; then
4066 echo '.include "confinc"' > confmf
4067 case `$am_make -s -f confmf 2> /dev/null` in #(
4068 *the\ am__doit\ target*)
4069 am__include=.include
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4078 $as_echo "$_am_result" >&6; }
4079 rm -f confinc confmf
4081 # Check whether --enable-dependency-tracking was given.
4082 if test "${enable_dependency_tracking+set}" = set; then :
4083 enableval=$enable_dependency_tracking;
4086 if test "x$enable_dependency_tracking" != xno; then
4087 am_depcomp="$ac_aux_dir/depcomp"
4090 if test "x$enable_dependency_tracking" != xno; then
4099 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4100 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4101 # is not polluted with repeated "-I."
4102 am__isrc=' -I$(srcdir)'
4103 # test to see if srcdir already configured
4104 if test -f $srcdir/config.status; then
4105 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4109 # test whether we have cygpath
4110 if test -z "$CYGPATH_W"; then
4111 if (cygpath --version) >/dev/null 2>/dev/null; then
4112 CYGPATH_W='cygpath -w'
4119 # Define the identity of the package.
4124 cat >>confdefs.h <<_ACEOF
4125 #define PACKAGE "$PACKAGE"
4129 cat >>confdefs.h <<_ACEOF
4130 #define VERSION "$VERSION"
4133 # Some tools Automake needs.
4135 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4138 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4141 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4144 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4147 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4149 # We need awk for the "check" target. The system "awk" is bad on
4151 # Always define AMTAR for backward compatibility.
4153 AMTAR=${AMTAR-"${am_missing_run}tar"}
4155 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4160 depcc="$CC" am_compiler_list=
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4163 $as_echo_n "checking dependency style of $depcc... " >&6; }
4164 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
4167 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4168 # We make a subdir and do the tests there. Otherwise we can end up
4169 # making bogus files that we don't know about and never remove. For
4170 # instance it was reported that on HP-UX the gcc test will end up
4171 # making a dummy file named `D' -- because `-MD' means `put the output
4174 # Copy depcomp to subdir because otherwise we won't find it if we're
4175 # using a relative directory.
4176 cp "$am_depcomp" conftest.dir
4178 # We will build objects and dependencies in a subdirectory because
4179 # it helps to detect inapplicable dependency modes. For instance
4180 # both Tru64's cc and ICC support -MD to output dependencies as a
4181 # side effect of compilation, but ICC will put the dependencies in
4182 # the current directory while Tru64 will put them in the object
4186 am_cv_CC_dependencies_compiler_type=none
4187 if test "$am_compiler_list" = ""; then
4188 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4191 case " $depcc " in #(
4192 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4195 for depmode in $am_compiler_list; do
4196 # Setup a source with many dependencies, because some compilers
4197 # like to wrap large dependency lists on column 80 (with \), and
4198 # we should not choose a depcomp mode which is confused by this.
4200 # We need to recreate these files for each test, as the compiler may
4201 # overwrite some of them when testing with obscure command lines.
4202 # This happens at least with the AIX C compiler.
4204 for i in 1 2 3 4 5 6; do
4205 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4206 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4207 # Solaris 8's {/usr,}/bin/sh.
4208 touch sub/conftst$i.h
4210 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4212 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4213 # mode. It turns out that the SunPro C++ compiler does not properly
4214 # handle `-M -o', and we need to detect this. Also, some Intel
4215 # versions had trouble with output in subdirs
4216 am__obj=sub/conftest.${OBJEXT-o}
4217 am__minus_obj="-o $am__obj"
4220 # This depmode causes a compiler race in universal mode.
4221 test "$am__universal" = false || continue
4224 # after this tag, mechanisms are not by side-effect, so they'll
4225 # only be used when explicitly requested
4226 if test "x$enable_dependency_tracking" = xyes; then
4232 msvisualcpp | msvcmsys)
4233 # This compiler won't grok `-c -o', but also, the minuso test has
4234 # not run yet. These depmodes are late enough in the game, and
4235 # so weak that their functioning should not be impacted.
4236 am__obj=conftest.${OBJEXT-o}
4241 if depmode=$depmode \
4242 source=sub/conftest.c object=$am__obj \
4243 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4244 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4245 >/dev/null 2>conftest.err &&
4246 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4247 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4248 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4249 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4250 # icc doesn't choke on unknown options, it will just issue warnings
4251 # or remarks (even with -Werror). So we grep stderr for any message
4252 # that says an option was ignored or not supported.
4253 # When given -MP, icc 7.0 and 7.1 complain thusly:
4254 # icc: Command line warning: ignoring option '-M'; no argument required
4255 # The diagnosis changed in icc 8.0:
4256 # icc: Command line remark: option '-MP' not supported
4257 if (grep 'ignoring option' conftest.err ||
4258 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4259 am_cv_CC_dependencies_compiler_type=$depmode
4268 am_cv_CC_dependencies_compiler_type=none
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4273 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4274 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4277 test "x$enable_dependency_tracking" != xno \
4278 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4280 am__fastdepCC_FALSE='#'
4282 am__fastdepCC_TRUE='#'
4283 am__fastdepCC_FALSE=
4289 if test -n "$ac_tool_prefix"; then
4290 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4291 set dummy ${ac_tool_prefix}ar; ac_word=$2
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4293 $as_echo_n "checking for $ac_word... " >&6; }
4294 if test "${ac_cv_prog_AR+set}" = set; then :
4295 $as_echo_n "(cached) " >&6
4297 if test -n "$AR"; then
4298 ac_cv_prog_AR="$AR" # Let the user override the test.
4300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 test -z "$as_dir" && as_dir=.
4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4307 ac_cv_prog_AR="${ac_tool_prefix}ar"
4308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 if test -n "$AR"; then
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4320 $as_echo "$AR" >&6; }
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4323 $as_echo "no" >&6; }
4328 if test -z "$ac_cv_prog_AR"; then
4330 # Extract the first word of "ar", so it can be a program name with args.
4331 set dummy ar; ac_word=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4335 $as_echo_n "(cached) " >&6
4337 if test -n "$ac_ct_AR"; then
4338 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4347 ac_cv_prog_ac_ct_AR="ar"
4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4358 if test -n "$ac_ct_AR"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4360 $as_echo "$ac_ct_AR" >&6; }
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4366 if test "x$ac_ct_AR" = x; then
4369 case $cross_compiling:$ac_tool_warned in
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4373 ac_tool_warned=yes ;;
4381 if test -n "$ac_tool_prefix"; then
4382 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4383 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385 $as_echo_n "checking for $ac_word... " >&6; }
4386 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4387 $as_echo_n "(cached) " >&6
4389 if test -n "$RANLIB"; then
4390 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4399 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 RANLIB=$ac_cv_prog_RANLIB
4410 if test -n "$RANLIB"; then
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4412 $as_echo "$RANLIB" >&6; }
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415 $as_echo "no" >&6; }
4420 if test -z "$ac_cv_prog_RANLIB"; then
4421 ac_ct_RANLIB=$RANLIB
4422 # Extract the first word of "ranlib", so it can be a program name with args.
4423 set dummy ranlib; ac_word=$2
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425 $as_echo_n "checking for $ac_word... " >&6; }
4426 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4427 $as_echo_n "(cached) " >&6
4429 if test -n "$ac_ct_RANLIB"; then
4430 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4439 ac_cv_prog_ac_ct_RANLIB="ranlib"
4440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4450 if test -n "$ac_ct_RANLIB"; then
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4452 $as_echo "$ac_ct_RANLIB" >&6; }
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455 $as_echo "no" >&6; }
4458 if test "x$ac_ct_RANLIB" = x; then
4461 case $cross_compiling:$ac_tool_warned in
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4465 ac_tool_warned=yes ;;
4467 RANLIB=$ac_ct_RANLIB
4470 RANLIB="$ac_cv_prog_RANLIB"
4474 # Check whether --enable-shared was given.
4475 if test "${enable_shared+set}" = set; then :
4476 enableval=$enable_shared; p=${PACKAGE-default}
4478 yes) enable_shared=yes ;;
4479 no) enable_shared=no ;;
4482 # Look at the argument we got. We use all the common list separators.
4483 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4484 for pkg in $enableval; do
4486 if test "X$pkg" = "X$p"; then
4507 ac_cpp='$CPP $CPPFLAGS'
4508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4511 if test -n "$ac_tool_prefix"; then
4512 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4513 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4515 $as_echo_n "checking for $ac_word... " >&6; }
4516 if test "${ac_cv_prog_CC+set}" = set; then :
4517 $as_echo_n "(cached) " >&6
4519 if test -n "$CC"; then
4520 ac_cv_prog_CC="$CC" # Let the user override the test.
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 if test -n "$CC"; then
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4542 $as_echo "$CC" >&6; }
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545 $as_echo "no" >&6; }
4550 if test -z "$ac_cv_prog_CC"; then
4552 # Extract the first word of "gcc", so it can be a program name with args.
4553 set dummy gcc; ac_word=$2
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4555 $as_echo_n "checking for $ac_word... " >&6; }
4556 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4559 if test -n "$ac_ct_CC"; then
4560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569 ac_cv_prog_ac_ct_CC="gcc"
4570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4580 if test -n "$ac_ct_CC"; then
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4582 $as_echo "$ac_ct_CC" >&6; }
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585 $as_echo "no" >&6; }
4588 if test "x$ac_ct_CC" = x; then
4591 case $cross_compiling:$ac_tool_warned in
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4595 ac_tool_warned=yes ;;
4603 if test -z "$CC"; then
4604 if test -n "$ac_tool_prefix"; then
4605 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4606 set dummy ${ac_tool_prefix}cc; ac_word=$2
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608 $as_echo_n "checking for $ac_word... " >&6; }
4609 if test "${ac_cv_prog_CC+set}" = set; then :
4610 $as_echo_n "(cached) " >&6
4612 if test -n "$CC"; then
4613 ac_cv_prog_CC="$CC" # Let the user override the test.
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622 ac_cv_prog_CC="${ac_tool_prefix}cc"
4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 if test -n "$CC"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4635 $as_echo "$CC" >&6; }
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638 $as_echo "no" >&6; }
4644 if test -z "$CC"; then
4645 # Extract the first word of "cc", so it can be a program name with args.
4646 set dummy cc; ac_word=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if test "${ac_cv_prog_CC+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4652 if test -n "$CC"; then
4653 ac_cv_prog_CC="$CC" # Let the user override the test.
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4663 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4664 ac_prog_rejected=yes
4668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 if test $ac_prog_rejected = yes; then
4676 # We found a bogon in the path, so make sure we never use it.
4677 set dummy $ac_cv_prog_CC
4679 if test $# != 0; then
4680 # We chose a different compiler from the bogus one.
4681 # However, it has the same basename, so the bogon will be chosen
4682 # first if we set CC to just the basename; use the full file name.
4684 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4690 if test -n "$CC"; then
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4692 $as_echo "$CC" >&6; }
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 $as_echo "no" >&6; }
4700 if test -z "$CC"; then
4701 if test -n "$ac_tool_prefix"; then
4702 for ac_prog in cl.exe
4704 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4705 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4707 $as_echo_n "checking for $ac_word... " >&6; }
4708 if test "${ac_cv_prog_CC+set}" = set; then :
4709 $as_echo_n "(cached) " >&6
4711 if test -n "$CC"; then
4712 ac_cv_prog_CC="$CC" # Let the user override the test.
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 if test -n "$CC"; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4734 $as_echo "$CC" >&6; }
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4737 $as_echo "no" >&6; }
4741 test -n "$CC" && break
4744 if test -z "$CC"; then
4746 for ac_prog in cl.exe
4748 # Extract the first word of "$ac_prog", so it can be a program name with args.
4749 set dummy $ac_prog; ac_word=$2
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4751 $as_echo_n "checking for $ac_word... " >&6; }
4752 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4753 $as_echo_n "(cached) " >&6
4755 if test -n "$ac_ct_CC"; then
4756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 test -z "$as_dir" && as_dir=.
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4765 ac_cv_prog_ac_ct_CC="$ac_prog"
4766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4776 if test -n "$ac_ct_CC"; then
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4778 $as_echo "$ac_ct_CC" >&6; }
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781 $as_echo "no" >&6; }
4785 test -n "$ac_ct_CC" && break
4788 if test "x$ac_ct_CC" = x; then
4791 case $cross_compiling:$ac_tool_warned in
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4795 ac_tool_warned=yes ;;
4804 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4806 as_fn_error "no acceptable C compiler found in \$PATH
4807 See \`config.log' for more details." "$LINENO" 5; }
4809 # Provide some information about the compiler.
4810 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4813 for ac_option in --version -v -V -qversion; do
4814 { { ac_try="$ac_compiler $ac_option >&5"
4816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4817 *) ac_try_echo=$ac_try;;
4819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4820 $as_echo "$ac_try_echo"; } >&5
4821 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4823 if test -s conftest.err; then
4825 ... rest of stderr output deleted ...
4826 10q' conftest.err >conftest.er1
4827 cat conftest.er1 >&5
4828 rm -f conftest.er1 conftest.err
4830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4831 test $ac_status = 0; }
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4835 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4836 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4837 $as_echo_n "(cached) " >&6
4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h. */
4853 if ac_fn_c_try_compile "$LINENO"; then :
4858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4863 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4864 if test $ac_compiler_gnu = yes; then
4869 ac_test_CFLAGS=${CFLAGS+set}
4870 ac_save_CFLAGS=$CFLAGS
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4872 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4873 if test "${ac_cv_prog_cc_g+set}" = set; then :
4874 $as_echo_n "(cached) " >&6
4876 ac_save_c_werror_flag=$ac_c_werror_flag
4877 ac_c_werror_flag=yes
4880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881 /* end confdefs.h. */
4891 if ac_fn_c_try_compile "$LINENO"; then :
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4906 if ac_fn_c_try_compile "$LINENO"; then :
4909 ac_c_werror_flag=$ac_save_c_werror_flag
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4922 if ac_fn_c_try_compile "$LINENO"; then :
4925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930 ac_c_werror_flag=$ac_save_c_werror_flag
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4933 $as_echo "$ac_cv_prog_cc_g" >&6; }
4934 if test "$ac_test_CFLAGS" = set; then
4935 CFLAGS=$ac_save_CFLAGS
4936 elif test $ac_cv_prog_cc_g = yes; then
4937 if test "$GCC" = yes; then
4943 if test "$GCC" = yes; then
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4950 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4951 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4952 $as_echo_n "(cached) " >&6
4954 ac_cv_prog_cc_c89=no
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4960 #include <sys/types.h>
4961 #include <sys/stat.h>
4962 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4963 struct buf { int x; };
4964 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4965 static char *e (p, i)
4971 static char *f (char * (*g) (char **, int), char **p, ...)
4976 s = g (p, va_arg (v,int));
4981 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4982 function prototypes and stuff, but not '\xHH' hex character constants.
4983 These don't provoke an error unfortunately, instead are silently treated
4984 as 'x'. The following induces an error, until -std is added to get
4985 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4986 array size at least. It's necessary to write '\x00'==0 to get something
4987 that's true only with -std. */
4988 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4990 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4991 inside strings and character constants. */
4993 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4995 int test (int i, double x);
4996 struct s1 {int (*f) (int a);};
4997 struct s2 {int (*f) (double a);};
4998 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5004 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5009 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5010 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5012 CC="$ac_save_CC $ac_arg"
5013 if ac_fn_c_try_compile "$LINENO"; then :
5014 ac_cv_prog_cc_c89=$ac_arg
5016 rm -f core conftest.err conftest.$ac_objext
5017 test "x$ac_cv_prog_cc_c89" != "xno" && break
5019 rm -f conftest.$ac_ext
5024 case "x$ac_cv_prog_cc_c89" in
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5027 $as_echo "none needed" >&6; } ;;
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5030 $as_echo "unsupported" >&6; } ;;
5032 CC="$CC $ac_cv_prog_cc_c89"
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5034 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5036 if test "x$ac_cv_prog_cc_c89" != xno; then :
5041 ac_cpp='$CPP $CPPFLAGS'
5042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5047 ac_cpp='$CPP $CPPFLAGS'
5048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5052 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5053 # On Suns, sometimes $CPP names a directory.
5054 if test -n "$CPP" && test -d "$CPP"; then
5057 if test -z "$CPP"; then
5058 if test "${ac_cv_prog_CPP+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5061 # Double quotes because CPP needs to be expanded
5062 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5065 for ac_c_preproc_warn_flag in '' yes
5067 # Use a header file that comes with gcc, so configuring glibc
5068 # with a fresh cross-compiler works.
5069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5070 # <limits.h> exists even on freestanding compilers.
5071 # On the NeXT, cc -E runs the code through the compiler's parser,
5072 # not just through cpp. "Syntax error" is here to catch this case.
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5076 # include <limits.h>
5078 # include <assert.h>
5082 if ac_fn_c_try_cpp "$LINENO"; then :
5085 # Broken: fails on valid input.
5088 rm -f conftest.err conftest.$ac_ext
5090 # OK, works on sane cases. Now check whether nonexistent headers
5091 # can be detected and how.
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094 #include <ac_nonexistent.h>
5096 if ac_fn_c_try_cpp "$LINENO"; then :
5097 # Broken: success on invalid input.
5100 # Passes both tests.
5104 rm -f conftest.err conftest.$ac_ext
5107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5108 rm -f conftest.err conftest.$ac_ext
5109 if $ac_preproc_ok; then :
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5122 $as_echo "$CPP" >&6; }
5124 for ac_c_preproc_warn_flag in '' yes
5126 # Use a header file that comes with gcc, so configuring glibc
5127 # with a fresh cross-compiler works.
5128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5129 # <limits.h> exists even on freestanding compilers.
5130 # On the NeXT, cc -E runs the code through the compiler's parser,
5131 # not just through cpp. "Syntax error" is here to catch this case.
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5135 # include <limits.h>
5137 # include <assert.h>
5141 if ac_fn_c_try_cpp "$LINENO"; then :
5144 # Broken: fails on valid input.
5147 rm -f conftest.err conftest.$ac_ext
5149 # OK, works on sane cases. Now check whether nonexistent headers
5150 # can be detected and how.
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5153 #include <ac_nonexistent.h>
5155 if ac_fn_c_try_cpp "$LINENO"; then :
5156 # Broken: success on invalid input.
5159 # Passes both tests.
5163 rm -f conftest.err conftest.$ac_ext
5166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5167 rm -f conftest.err conftest.$ac_ext
5168 if $ac_preproc_ok; then :
5171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5173 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5174 See \`config.log' for more details." "$LINENO" 5; }
5178 ac_cpp='$CPP $CPPFLAGS'
5179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5185 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5186 if test "${ac_cv_path_GREP+set}" = set; then :
5187 $as_echo_n "(cached) " >&6
5189 if test -z "$GREP"; then
5190 ac_path_GREP_found=false
5191 # Loop through the user's path and test for each of PROGNAME-LIST
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5196 test -z "$as_dir" && as_dir=.
5197 for ac_prog in grep ggrep; do
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5200 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5201 # Check for GNU ac_path_GREP and select it if it is found.
5202 # Check for GNU $ac_path_GREP
5203 case `"$ac_path_GREP" --version 2>&1` in
5205 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5208 $as_echo_n 0123456789 >"conftest.in"
5211 cat "conftest.in" "conftest.in" >"conftest.tmp"
5212 mv "conftest.tmp" "conftest.in"
5213 cp "conftest.in" "conftest.nl"
5214 $as_echo 'GREP' >> "conftest.nl"
5215 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5216 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5217 as_fn_arith $ac_count + 1 && ac_count=$as_val
5218 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5219 # Best one so far, save it but keep looking for a better one
5220 ac_cv_path_GREP="$ac_path_GREP"
5221 ac_path_GREP_max=$ac_count
5223 # 10*(2^10) chars as input seems more than enough
5224 test $ac_count -gt 10 && break
5226 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5229 $ac_path_GREP_found && break 3
5234 if test -z "$ac_cv_path_GREP"; then
5235 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5238 ac_cv_path_GREP=$GREP
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5243 $as_echo "$ac_cv_path_GREP" >&6; }
5244 GREP="$ac_cv_path_GREP"
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5248 $as_echo_n "checking for egrep... " >&6; }
5249 if test "${ac_cv_path_EGREP+set}" = set; then :
5250 $as_echo_n "(cached) " >&6
5252 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5253 then ac_cv_path_EGREP="$GREP -E"
5255 if test -z "$EGREP"; then
5256 ac_path_EGREP_found=false
5257 # Loop through the user's path and test for each of PROGNAME-LIST
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5262 test -z "$as_dir" && as_dir=.
5263 for ac_prog in egrep; do
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5266 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5267 # Check for GNU ac_path_EGREP and select it if it is found.
5268 # Check for GNU $ac_path_EGREP
5269 case `"$ac_path_EGREP" --version 2>&1` in
5271 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5274 $as_echo_n 0123456789 >"conftest.in"
5277 cat "conftest.in" "conftest.in" >"conftest.tmp"
5278 mv "conftest.tmp" "conftest.in"
5279 cp "conftest.in" "conftest.nl"
5280 $as_echo 'EGREP' >> "conftest.nl"
5281 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5282 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5283 as_fn_arith $ac_count + 1 && ac_count=$as_val
5284 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5285 # Best one so far, save it but keep looking for a better one
5286 ac_cv_path_EGREP="$ac_path_EGREP"
5287 ac_path_EGREP_max=$ac_count
5289 # 10*(2^10) chars as input seems more than enough
5290 test $ac_count -gt 10 && break
5292 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5295 $ac_path_EGREP_found && break 3
5300 if test -z "$ac_cv_path_EGREP"; then
5301 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5304 ac_cv_path_EGREP=$EGREP
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5310 $as_echo "$ac_cv_path_EGREP" >&6; }
5311 EGREP="$ac_cv_path_EGREP"
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5315 $as_echo_n "checking for ANSI C header files... " >&6; }
5316 if test "${ac_cv_header_stdc+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5334 if ac_fn_c_try_compile "$LINENO"; then :
5335 ac_cv_header_stdc=yes
5337 ac_cv_header_stdc=no
5339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5341 if test $ac_cv_header_stdc = yes; then
5342 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5349 $EGREP "memchr" >/dev/null 2>&1; then :
5352 ac_cv_header_stdc=no
5358 if test $ac_cv_header_stdc = yes; then
5359 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5366 $EGREP "free" >/dev/null 2>&1; then :
5369 ac_cv_header_stdc=no
5375 if test $ac_cv_header_stdc = yes; then
5376 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5377 if test "$cross_compiling" = yes; then :
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5384 #if ((' ' & 0x0FF) == 0x020)
5385 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5386 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5388 # define ISLOWER(c) \
5389 (('a' <= (c) && (c) <= 'i') \
5390 || ('j' <= (c) && (c) <= 'r') \
5391 || ('s' <= (c) && (c) <= 'z'))
5392 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5395 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5400 for (i = 0; i < 256; i++)
5401 if (XOR (islower (i), ISLOWER (i))
5402 || toupper (i) != TOUPPER (i))
5407 if ac_fn_c_try_run "$LINENO"; then :
5410 ac_cv_header_stdc=no
5412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5413 conftest.$ac_objext conftest.beam conftest.$ac_ext
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5419 $as_echo "$ac_cv_header_stdc" >&6; }
5420 if test $ac_cv_header_stdc = yes; then
5422 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5426 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5427 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5428 inttypes.h stdint.h unistd.h
5430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5431 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5433 eval as_val=\$$as_ac_Header
5434 if test "x$as_val" = x""yes; then :
5435 cat >>confdefs.h <<_ACEOF
5436 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5445 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5446 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5453 if test "$MINIX" = yes; then
5455 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5458 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5461 $as_echo "#define _MINIX 1" >>confdefs.h
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5467 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5468 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5469 $as_echo_n "(cached) " >&6
5471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472 /* end confdefs.h. */
5474 # define __EXTENSIONS__ 1
5475 $ac_includes_default
5484 if ac_fn_c_try_compile "$LINENO"; then :
5485 ac_cv_safe_to_define___extensions__=yes
5487 ac_cv_safe_to_define___extensions__=no
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5492 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5493 test $ac_cv_safe_to_define___extensions__ = yes &&
5494 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5496 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5498 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5500 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5502 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5511 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5516 macro_version='2.2.6'
5517 macro_revision='1.3012'
5531 ltmain="$ac_aux_dir/ltmain.sh"
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5534 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5535 if test "${ac_cv_path_SED+set}" = set; then :
5536 $as_echo_n "(cached) " >&6
5538 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5539 for ac_i in 1 2 3 4 5 6 7; do
5540 ac_script="$ac_script$as_nl$ac_script"
5542 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5543 { ac_script=; unset ac_script;}
5544 if test -z "$SED"; then
5545 ac_path_SED_found=false
5546 # Loop through the user's path and test for each of PROGNAME-LIST
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 test -z "$as_dir" && as_dir=.
5552 for ac_prog in sed gsed; do
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5555 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5556 # Check for GNU ac_path_SED and select it if it is found.
5557 # Check for GNU $ac_path_SED
5558 case `"$ac_path_SED" --version 2>&1` in
5560 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5563 $as_echo_n 0123456789 >"conftest.in"
5566 cat "conftest.in" "conftest.in" >"conftest.tmp"
5567 mv "conftest.tmp" "conftest.in"
5568 cp "conftest.in" "conftest.nl"
5569 $as_echo '' >> "conftest.nl"
5570 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5571 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5572 as_fn_arith $ac_count + 1 && ac_count=$as_val
5573 if test $ac_count -gt ${ac_path_SED_max-0}; then
5574 # Best one so far, save it but keep looking for a better one
5575 ac_cv_path_SED="$ac_path_SED"
5576 ac_path_SED_max=$ac_count
5578 # 10*(2^10) chars as input seems more than enough
5579 test $ac_count -gt 10 && break
5581 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5584 $ac_path_SED_found && break 3
5589 if test -z "$ac_cv_path_SED"; then
5590 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5598 $as_echo "$ac_cv_path_SED" >&6; }
5599 SED="$ac_cv_path_SED"
5602 test -z "$SED" && SED=sed
5603 Xsed="$SED -e 1s/^X//"
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5616 $as_echo_n "checking for fgrep... " >&6; }
5617 if test "${ac_cv_path_FGREP+set}" = set; then :
5618 $as_echo_n "(cached) " >&6
5620 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5621 then ac_cv_path_FGREP="$GREP -F"
5623 if test -z "$FGREP"; then
5624 ac_path_FGREP_found=false
5625 # Loop through the user's path and test for each of PROGNAME-LIST
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5630 test -z "$as_dir" && as_dir=.
5631 for ac_prog in fgrep; do
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5634 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5635 # Check for GNU ac_path_FGREP and select it if it is found.
5636 # Check for GNU $ac_path_FGREP
5637 case `"$ac_path_FGREP" --version 2>&1` in
5639 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5642 $as_echo_n 0123456789 >"conftest.in"
5645 cat "conftest.in" "conftest.in" >"conftest.tmp"
5646 mv "conftest.tmp" "conftest.in"
5647 cp "conftest.in" "conftest.nl"
5648 $as_echo 'FGREP' >> "conftest.nl"
5649 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5651 as_fn_arith $ac_count + 1 && ac_count=$as_val
5652 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5653 # Best one so far, save it but keep looking for a better one
5654 ac_cv_path_FGREP="$ac_path_FGREP"
5655 ac_path_FGREP_max=$ac_count
5657 # 10*(2^10) chars as input seems more than enough
5658 test $ac_count -gt 10 && break
5660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5663 $ac_path_FGREP_found && break 3
5668 if test -z "$ac_cv_path_FGREP"; then
5669 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5672 ac_cv_path_FGREP=$FGREP
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5678 $as_echo "$ac_cv_path_FGREP" >&6; }
5679 FGREP="$ac_cv_path_FGREP"
5682 test -z "$GREP" && GREP=grep
5702 # Check whether --with-gnu-ld was given.
5703 if test "${with_gnu_ld+set}" = set; then :
5704 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5710 if test "$GCC" = yes; then
5711 # Check if gcc -print-prog-name=ld gives a path.
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5713 $as_echo_n "checking for ld used by $CC... " >&6; }
5716 # gcc leaves a trailing carriage return which upsets mingw
5717 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5719 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5722 # Accept absolute paths.
5724 re_direlt='/[^/][^/]*/\.\./'
5725 # Canonicalize the pathname of ld
5726 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5727 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5728 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5730 test -z "$LD" && LD="$ac_prog"
5733 # If it fails, then pretend we aren't using GCC.
5737 # If it is relative, then search for the first ld in PATH.
5741 elif test "$with_gnu_ld" = yes; then
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5743 $as_echo_n "checking for GNU ld... " >&6; }
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5746 $as_echo_n "checking for non-GNU ld... " >&6; }
5748 if test "${lt_cv_path_LD+set}" = set; then :
5749 $as_echo_n "(cached) " >&6
5751 if test -z "$LD"; then
5752 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5753 for ac_dir in $PATH; do
5755 test -z "$ac_dir" && ac_dir=.
5756 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5757 lt_cv_path_LD="$ac_dir/$ac_prog"
5758 # Check to see if the program is GNU ld. I'd rather use --version,
5759 # but apparently some variants of GNU ld only accept -v.
5760 # Break only if it was the GNU/non-GNU ld that we prefer.
5761 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5762 *GNU* | *'with BFD'*)
5763 test "$with_gnu_ld" != no && break
5766 test "$with_gnu_ld" != yes && break
5773 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5778 if test -n "$LD"; then
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5780 $as_echo "$LD" >&6; }
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783 $as_echo "no" >&6; }
5785 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5787 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5788 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5789 $as_echo_n "(cached) " >&6
5791 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5792 case `$LD -v 2>&1 </dev/null` in
5793 *GNU* | *'with BFD'*)
5794 lt_cv_prog_gnu_ld=yes
5797 lt_cv_prog_gnu_ld=no
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5802 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5803 with_gnu_ld=$lt_cv_prog_gnu_ld
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5814 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5815 if test "${lt_cv_path_NM+set}" = set; then :
5816 $as_echo_n "(cached) " >&6
5818 if test -n "$NM"; then
5819 # Let the user override the test.
5822 lt_nm_to_check="${ac_tool_prefix}nm"
5823 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5824 lt_nm_to_check="$lt_nm_to_check nm"
5826 for lt_tmp_nm in $lt_nm_to_check; do
5827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5828 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5830 test -z "$ac_dir" && ac_dir=.
5831 tmp_nm="$ac_dir/$lt_tmp_nm"
5832 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5833 # Check to see if the nm accepts a BSD-compat flag.
5834 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5835 # nm: unknown option "B" ignored
5836 # Tru64's nm complains that /dev/null is an invalid object file
5837 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5838 */dev/null* | *'Invalid file or object type'*)
5839 lt_cv_path_NM="$tmp_nm -B"
5843 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5845 lt_cv_path_NM="$tmp_nm -p"
5849 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5850 continue # so that we can try to find one that supports BSD flags
5859 : ${lt_cv_path_NM=no}
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5863 $as_echo "$lt_cv_path_NM" >&6; }
5864 if test "$lt_cv_path_NM" != "no"; then
5867 # Didn't find any BSD compatible name lister, look for dumpbin.
5868 if test -n "$ac_tool_prefix"; then
5869 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5871 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5872 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874 $as_echo_n "checking for $ac_word... " >&6; }
5875 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5876 $as_echo_n "(cached) " >&6
5878 if test -n "$DUMPBIN"; then
5879 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 DUMPBIN=$ac_cv_prog_DUMPBIN
5899 if test -n "$DUMPBIN"; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5901 $as_echo "$DUMPBIN" >&6; }
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904 $as_echo "no" >&6; }
5908 test -n "$DUMPBIN" && break
5911 if test -z "$DUMPBIN"; then
5912 ac_ct_DUMPBIN=$DUMPBIN
5913 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5915 # Extract the first word of "$ac_prog", so it can be a program name with args.
5916 set dummy $ac_prog; ac_word=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918 $as_echo_n "checking for $ac_word... " >&6; }
5919 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5920 $as_echo_n "(cached) " >&6
5922 if test -n "$ac_ct_DUMPBIN"; then
5923 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5932 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5943 if test -n "$ac_ct_DUMPBIN"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5945 $as_echo "$ac_ct_DUMPBIN" >&6; }
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5952 test -n "$ac_ct_DUMPBIN" && break
5955 if test "x$ac_ct_DUMPBIN" = x; then
5958 case $cross_compiling:$ac_tool_warned in
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5962 ac_tool_warned=yes ;;
5964 DUMPBIN=$ac_ct_DUMPBIN
5969 if test "$DUMPBIN" != ":"; then
5973 test -z "$NM" && NM=nm
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5981 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5982 if test "${lt_cv_nm_interface+set}" = set; then :
5983 $as_echo_n "(cached) " >&6
5985 lt_cv_nm_interface="BSD nm"
5986 echo "int some_variable = 0;" > conftest.$ac_ext
5987 (eval echo "\"\$as_me:5987: $ac_compile\"" >&5)
5988 (eval "$ac_compile" 2>conftest.err)
5989 cat conftest.err >&5
5990 (eval echo "\"\$as_me:5990: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5991 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5992 cat conftest.err >&5
5993 (eval echo "\"\$as_me:5993: output\"" >&5)
5994 cat conftest.out >&5
5995 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5996 lt_cv_nm_interface="MS dumpbin"
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6001 $as_echo "$lt_cv_nm_interface" >&6; }
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6004 $as_echo_n "checking whether ln -s works... " >&6; }
6006 if test "$LN_S" = "ln -s"; then
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6008 $as_echo "yes" >&6; }
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6011 $as_echo "no, using $LN_S" >&6; }
6014 # find the maximum length of command line arguments
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6016 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6017 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6018 $as_echo_n "(cached) " >&6
6025 # On DJGPP, this test can blow up pretty badly due to problems in libc
6026 # (any single argument exceeding 2000 bytes causes a buffer overrun
6027 # during glob expansion). Even if it were fixed, the result of this
6028 # check would be larger than it should be.
6029 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6033 # Under GNU Hurd, this test is not required because there is
6034 # no limit to the length of command line arguments.
6035 # Libtool will interpret -1 as no limit whatsoever
6036 lt_cv_sys_max_cmd_len=-1;
6039 cygwin* | mingw* | cegcc*)
6040 # On Win9x/ME, this test blows up -- it succeeds, but takes
6041 # about 5 minutes as the teststring grows exponentially.
6042 # Worse, since 9x/ME are not pre-emptively multitasking,
6043 # you end up with a "frozen" computer, even though with patience
6044 # the test eventually succeeds (with a max line length of 256k).
6045 # Instead, let's just punt: use the minimum linelength reported by
6046 # all of the supported platforms: 8192 (on NT/2K/XP).
6047 lt_cv_sys_max_cmd_len=8192;
6051 # On AmigaOS with pdksh, this test takes hours, literally.
6052 # So we just punt and use a minimum line length of 8192.
6053 lt_cv_sys_max_cmd_len=8192;
6056 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6057 # This has been around since 386BSD, at least. Likely further.
6058 if test -x /sbin/sysctl; then
6059 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6060 elif test -x /usr/sbin/sysctl; then
6061 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6063 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6065 # And add a safety zone
6066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6067 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6071 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6072 lt_cv_sys_max_cmd_len=196608
6076 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6077 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6078 # nice to cause kernel panics so lets avoid the loop below.
6079 # First set a reasonable default.
6080 lt_cv_sys_max_cmd_len=16384
6082 if test -x /sbin/sysconfig; then
6083 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6084 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6089 lt_cv_sys_max_cmd_len=102400
6091 sysv5* | sco5v6* | sysv4.2uw2*)
6092 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6093 if test -n "$kargmax"; then
6094 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6096 lt_cv_sys_max_cmd_len=32768
6100 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6101 if test -n "$lt_cv_sys_max_cmd_len"; then
6102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6105 # Make teststring a little bigger before we do anything with it.
6106 # a 1K string should be a reasonable start.
6107 for i in 1 2 3 4 5 6 7 8 ; do
6108 teststring=$teststring$teststring
6110 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6111 # If test is not a shell built-in, we'll probably end up computing a
6112 # maximum length that is only half of the actual maximum length, but
6114 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6115 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6116 test $i != 17 # 1/2 MB should be enough
6119 teststring=$teststring$teststring
6121 # Only check the string length outside the loop.
6122 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6124 # Add a significant safety factor because C++ compilers can tack on
6125 # massive amounts of additional arguments before passing them to the
6126 # linker. It appears as though 1/2 is a usable value.
6127 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6134 if test -n $lt_cv_sys_max_cmd_len ; then
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6136 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6139 $as_echo "none" >&6; }
6141 max_cmd_len=$lt_cv_sys_max_cmd_len
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6153 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6154 # Try some XSI features
6157 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6159 && eval 'test $(( 1 + 1 )) -eq 2 \
6160 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6163 $as_echo "$xsi_shell" >&6; }
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6167 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6169 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6171 && lt_shell_append=yes
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6173 $as_echo "$lt_shell_append" >&6; }
6176 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6186 # test EBCDIC or ASCII
6187 case `echo X|tr X '\101'` in
6188 A) # ASCII based system
6189 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6190 lt_SP2NL='tr \040 \012'
6191 lt_NL2SP='tr \015\012 \040\040'
6193 *) # EBCDIC based system
6194 lt_SP2NL='tr \100 \n'
6195 lt_NL2SP='tr \r\n \100\100'
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6208 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6209 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6210 $as_echo_n "(cached) " >&6
6212 lt_cv_ld_reload_flag='-r'
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6215 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6216 reload_flag=$lt_cv_ld_reload_flag
6217 case $reload_flag in
6219 *) reload_flag=" $reload_flag" ;;
6221 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6224 if test "$GCC" = yes; then
6225 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6227 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6240 if test -n "$ac_tool_prefix"; then
6241 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6242 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244 $as_echo_n "checking for $ac_word... " >&6; }
6245 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6246 $as_echo_n "(cached) " >&6
6248 if test -n "$OBJDUMP"; then
6249 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 test -z "$as_dir" && as_dir=.
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6258 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 OBJDUMP=$ac_cv_prog_OBJDUMP
6269 if test -n "$OBJDUMP"; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6271 $as_echo "$OBJDUMP" >&6; }
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274 $as_echo "no" >&6; }
6279 if test -z "$ac_cv_prog_OBJDUMP"; then
6280 ac_ct_OBJDUMP=$OBJDUMP
6281 # Extract the first word of "objdump", so it can be a program name with args.
6282 set dummy objdump; ac_word=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6286 $as_echo_n "(cached) " >&6
6288 if test -n "$ac_ct_OBJDUMP"; then
6289 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6298 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6309 if test -n "$ac_ct_OBJDUMP"; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6311 $as_echo "$ac_ct_OBJDUMP" >&6; }
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6317 if test "x$ac_ct_OBJDUMP" = x; then
6320 case $cross_compiling:$ac_tool_warned in
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6324 ac_tool_warned=yes ;;
6326 OBJDUMP=$ac_ct_OBJDUMP
6329 OBJDUMP="$ac_cv_prog_OBJDUMP"
6332 test -z "$OBJDUMP" && OBJDUMP=objdump
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6343 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6344 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6345 $as_echo_n "(cached) " >&6
6347 lt_cv_file_magic_cmd='$MAGIC_CMD'
6348 lt_cv_file_magic_test_file=
6349 lt_cv_deplibs_check_method='unknown'
6350 # Need to set the preceding variable on all platforms that support
6351 # interlibrary dependencies.
6352 # 'none' -- dependencies not supported.
6353 # `unknown' -- same as none, but documents that we really don't know.
6354 # 'pass_all' -- all dependencies passed with no checks.
6355 # 'test_compile' -- check by making test program.
6356 # 'file_magic [[regex]]' -- check by looking for files in library path
6357 # which responds to the $file_magic_cmd with a given extended regex.
6358 # If you have `file' or equivalent on your system and you're not sure
6359 # whether `pass_all' will *always* work, you probably want this one.
6363 lt_cv_deplibs_check_method=pass_all
6367 lt_cv_deplibs_check_method=pass_all
6371 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6372 lt_cv_file_magic_cmd='/usr/bin/file -L'
6373 lt_cv_file_magic_test_file=/shlib/libc.so
6377 # func_win32_libid is a shell function defined in ltmain.sh
6378 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6379 lt_cv_file_magic_cmd='func_win32_libid'
6383 # Base MSYS/MinGW do not provide the 'file' command needed by
6384 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6385 # unless we find 'file', for example because we are cross-compiling.
6386 if ( file / ) >/dev/null 2>&1; then
6387 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6388 lt_cv_file_magic_cmd='func_win32_libid'
6390 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6391 lt_cv_file_magic_cmd='$OBJDUMP -f'
6396 # use the weaker test based on 'objdump'. See mingw*.
6397 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6398 lt_cv_file_magic_cmd='$OBJDUMP -f'
6401 darwin* | rhapsody*)
6402 lt_cv_deplibs_check_method=pass_all
6405 freebsd* | dragonfly*)
6406 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6409 # Not sure whether the presence of OpenBSD here was a mistake.
6410 # Let's accept both of them until this is cleared up.
6411 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6412 lt_cv_file_magic_cmd=/usr/bin/file
6413 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6417 lt_cv_deplibs_check_method=pass_all
6422 lt_cv_deplibs_check_method=pass_all
6425 hpux10.20* | hpux11*)
6426 lt_cv_file_magic_cmd=/usr/bin/file
6429 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6430 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6433 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6434 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6437 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6438 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6444 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6445 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6448 irix5* | irix6* | nonstopux*)
6450 *-32|*"-32 ") libmagic=32-bit;;
6451 *-n32|*"-n32 ") libmagic=N32;;
6452 *-64|*"-64 ") libmagic=64-bit;;
6453 *) libmagic=never-match;;
6455 lt_cv_deplibs_check_method=pass_all
6458 # This must be Linux ELF.
6459 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6460 lt_cv_deplibs_check_method=pass_all
6464 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6465 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6467 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6472 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6473 lt_cv_file_magic_cmd=/usr/bin/file
6474 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6478 lt_cv_deplibs_check_method=pass_all
6482 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6483 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6485 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6489 osf3* | osf4* | osf5*)
6490 lt_cv_deplibs_check_method=pass_all
6494 lt_cv_deplibs_check_method=pass_all
6498 lt_cv_deplibs_check_method=pass_all
6501 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6502 lt_cv_deplibs_check_method=pass_all
6506 case $host_vendor in
6508 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]'
6509 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6512 lt_cv_deplibs_check_method=pass_all
6515 lt_cv_file_magic_cmd='/bin/file'
6516 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6519 lt_cv_file_magic_cmd='/bin/file'
6520 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6521 lt_cv_file_magic_test_file=/lib/libc.so
6524 lt_cv_deplibs_check_method=pass_all
6527 lt_cv_deplibs_check_method=pass_all
6533 lt_cv_deplibs_check_method=pass_all
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6539 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6540 file_magic_cmd=$lt_cv_file_magic_cmd
6541 deplibs_check_method=$lt_cv_deplibs_check_method
6542 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6555 if test -n "$ac_tool_prefix"; then
6556 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6557 set dummy ${ac_tool_prefix}ar; ac_word=$2
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6559 $as_echo_n "checking for $ac_word... " >&6; }
6560 if test "${ac_cv_prog_AR+set}" = set; then :
6561 $as_echo_n "(cached) " >&6
6563 if test -n "$AR"; then
6564 ac_cv_prog_AR="$AR" # Let the user override the test.
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 test -z "$as_dir" && as_dir=.
6571 for ac_exec_ext in '' $ac_executable_extensions; do
6572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6573 ac_cv_prog_AR="${ac_tool_prefix}ar"
6574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 if test -n "$AR"; then
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6586 $as_echo "$AR" >&6; }
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6589 $as_echo "no" >&6; }
6594 if test -z "$ac_cv_prog_AR"; then
6596 # Extract the first word of "ar", so it can be a program name with args.
6597 set dummy ar; ac_word=$2
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6599 $as_echo_n "checking for $ac_word... " >&6; }
6600 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6601 $as_echo_n "(cached) " >&6
6603 if test -n "$ac_ct_AR"; then
6604 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6613 ac_cv_prog_ac_ct_AR="ar"
6614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6623 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6624 if test -n "$ac_ct_AR"; then
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6626 $as_echo "$ac_ct_AR" >&6; }
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629 $as_echo "no" >&6; }
6632 if test "x$ac_ct_AR" = x; then
6635 case $cross_compiling:$ac_tool_warned in
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6639 ac_tool_warned=yes ;;
6647 test -z "$AR" && AR=ar
6648 test -z "$AR_FLAGS" && AR_FLAGS=cru
6660 if test -n "$ac_tool_prefix"; then
6661 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6662 set dummy ${ac_tool_prefix}strip; ac_word=$2
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664 $as_echo_n "checking for $ac_word... " >&6; }
6665 if test "${ac_cv_prog_STRIP+set}" = set; then :
6666 $as_echo_n "(cached) " >&6
6668 if test -n "$STRIP"; then
6669 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 STRIP=$ac_cv_prog_STRIP
6689 if test -n "$STRIP"; then
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6691 $as_echo "$STRIP" >&6; }
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694 $as_echo "no" >&6; }
6699 if test -z "$ac_cv_prog_STRIP"; then
6701 # Extract the first word of "strip", so it can be a program name with args.
6702 set dummy strip; ac_word=$2
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704 $as_echo_n "checking for $ac_word... " >&6; }
6705 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6706 $as_echo_n "(cached) " >&6
6708 if test -n "$ac_ct_STRIP"; then
6709 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 test -z "$as_dir" && as_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6718 ac_cv_prog_ac_ct_STRIP="strip"
6719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6728 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6729 if test -n "$ac_ct_STRIP"; then
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6731 $as_echo "$ac_ct_STRIP" >&6; }
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 $as_echo "no" >&6; }
6737 if test "x$ac_ct_STRIP" = x; then
6740 case $cross_compiling:$ac_tool_warned in
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6744 ac_tool_warned=yes ;;
6749 STRIP="$ac_cv_prog_STRIP"
6752 test -z "$STRIP" && STRIP=:
6759 if test -n "$ac_tool_prefix"; then
6760 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6761 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763 $as_echo_n "checking for $ac_word... " >&6; }
6764 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6765 $as_echo_n "(cached) " >&6
6767 if test -n "$RANLIB"; then
6768 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 RANLIB=$ac_cv_prog_RANLIB
6788 if test -n "$RANLIB"; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6790 $as_echo "$RANLIB" >&6; }
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 $as_echo "no" >&6; }
6798 if test -z "$ac_cv_prog_RANLIB"; then
6799 ac_ct_RANLIB=$RANLIB
6800 # Extract the first word of "ranlib", so it can be a program name with args.
6801 set dummy ranlib; ac_word=$2
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803 $as_echo_n "checking for $ac_word... " >&6; }
6804 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6805 $as_echo_n "(cached) " >&6
6807 if test -n "$ac_ct_RANLIB"; then
6808 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817 ac_cv_prog_ac_ct_RANLIB="ranlib"
6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6828 if test -n "$ac_ct_RANLIB"; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6830 $as_echo "$ac_ct_RANLIB" >&6; }
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 $as_echo "no" >&6; }
6836 if test "x$ac_ct_RANLIB" = x; then
6839 case $cross_compiling:$ac_tool_warned in
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6843 ac_tool_warned=yes ;;
6845 RANLIB=$ac_ct_RANLIB
6848 RANLIB="$ac_cv_prog_RANLIB"
6851 test -z "$RANLIB" && RANLIB=:
6858 # Determine commands to create old-style static archives.
6859 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6860 old_postinstall_cmds='chmod 644 $oldlib'
6861 old_postuninstall_cmds=
6863 if test -n "$RANLIB"; then
6866 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6869 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6872 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6908 # If no C compiler was specified, use CC.
6911 # If no C compiler flags were specified, use CFLAGS.
6912 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6914 # Allow CC to be a program name with arguments.
6918 # Check for command to grab the raw symbol name followed by C symbol from nm.
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6920 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6921 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6922 $as_echo_n "(cached) " >&6
6925 # These are sane defaults that work on at least a few old systems.
6926 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6928 # Character class describing NM global symbol codes.
6929 symcode='[BCDEGRST]'
6931 # Regexp to match symbols that can be accessed directly from C.
6932 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6934 # Define system-specific variables.
6939 cygwin* | mingw* | pw32* | cegcc*)
6940 symcode='[ABCDGISTW]'
6943 if test "$host_cpu" = ia64; then
6944 symcode='[ABCDEGRST]'
6948 symcode='[BCDEGRST]'
6951 symcode='[BCDEGQRST]'
6962 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6970 # If we're using GNU nm, then use its standard symbol codes.
6971 case `$NM -V 2>&1` in
6972 *GNU* | *'with BFD'*)
6973 symcode='[ABCDGIRSTW]' ;;
6976 # Transform an extracted symbol line into a proper C declaration.
6977 # Some systems (esp. on ia64) link data and code symbols differently,
6978 # so use this general approach.
6979 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6981 # Transform an extracted symbol line into symbol name and symbol address
6982 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6983 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'"
6985 # Handle CRLF in mingw tool chain
6989 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6993 # Try without a prefix underscore, then with it.
6994 for ac_symprfx in "" "_"; do
6996 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6997 symxfrm="\\1 $ac_symprfx\\2 \\2"
6999 # Write the raw and C identifiers.
7000 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7001 # Fake it for dumpbin and say T for any non-static function
7002 # and D for any global variable.
7003 # Also find C++ and __fastcall symbols from MSVC++,
7004 # which start with @ or ?.
7005 lt_cv_sys_global_symbol_pipe="$AWK '"\
7006 " {last_section=section; section=\$ 3};"\
7007 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7008 " \$ 0!~/External *\|/{next};"\
7009 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7010 " {if(hide[section]) next};"\
7011 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7012 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7013 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7014 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7015 " ' prfx=^$ac_symprfx"
7017 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7020 # Check to see that the pipe works correctly.
7024 cat > conftest.$ac_ext <<_LT_EOF
7029 void nm_test_func(void);
7030 void nm_test_func(void){}
7034 int main(){nm_test_var='a';nm_test_func();return(0);}
7037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7038 (eval $ac_compile) 2>&5
7040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7041 test $ac_status = 0; }; then
7042 # Now try to grab the symbols.
7044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7045 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7048 test $ac_status = 0; } && test -s "$nlist"; then
7049 # Try sorting and uniquifying the output.
7050 if sort "$nlist" | uniq > "$nlist"T; then
7051 mv -f "$nlist"T "$nlist"
7056 # Make sure that we snagged all the symbols we need.
7057 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7058 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7059 cat <<_LT_EOF > conftest.$ac_ext
7065 # Now generate the symbol file.
7066 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7068 cat <<_LT_EOF >> conftest.$ac_ext
7070 /* The mapping between symbol names and symbols. */
7075 lt__PROGRAM__LTX_preloaded_symbols[] =
7077 { "@PROGRAM@", (void *) 0 },
7079 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7080 cat <<\_LT_EOF >> conftest.$ac_ext
7084 /* This works around a problem in FreeBSD linker */
7085 #ifdef FREEBSD_WORKAROUND
7086 static const void *lt_preloaded_setup() {
7087 return lt__PROGRAM__LTX_preloaded_symbols;
7095 # Now try linking the two files.
7096 mv conftest.$ac_objext conftstm.$ac_objext
7097 lt_save_LIBS="$LIBS"
7098 lt_save_CFLAGS="$CFLAGS"
7099 LIBS="conftstm.$ac_objext"
7100 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7102 (eval $ac_link) 2>&5
7104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7105 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7108 LIBS="$lt_save_LIBS"
7109 CFLAGS="$lt_save_CFLAGS"
7111 echo "cannot find nm_test_func in $nlist" >&5
7114 echo "cannot find nm_test_var in $nlist" >&5
7117 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7120 echo "$progname: failed program was:" >&5
7121 cat conftest.$ac_ext >&5
7123 rm -rf conftest* conftst*
7125 # Do not use the global_symbol_pipe unless it works.
7126 if test "$pipe_works" = yes; then
7129 lt_cv_sys_global_symbol_pipe=
7135 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7136 lt_cv_sys_global_symbol_to_cdecl=
7138 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7140 $as_echo "failed" >&6; }
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7143 $as_echo "ok" >&6; }
7167 # Check whether --enable-libtool-lock was given.
7168 if test "${enable_libtool_lock+set}" = set; then :
7169 enableval=$enable_libtool_lock;
7172 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7174 # Some flags need to be propagated to the compiler or linker for good
7178 # Find out which ABI we are using.
7179 echo 'int i;' > conftest.$ac_ext
7180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7181 (eval $ac_compile) 2>&5
7183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7184 test $ac_status = 0; }; then
7185 case `/usr/bin/file conftest.$ac_objext` in
7197 # Find out which ABI we are using.
7198 echo '#line 7198 "configure"' > conftest.$ac_ext
7199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7200 (eval $ac_compile) 2>&5
7202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7203 test $ac_status = 0; }; then
7204 if test "$lt_cv_prog_gnu_ld" = yes; then
7205 case `/usr/bin/file conftest.$ac_objext` in
7207 LD="${LD-ld} -melf32bsmip"
7210 LD="${LD-ld} -melf32bmipn32"
7213 LD="${LD-ld} -melf64bmip"
7217 case `/usr/bin/file conftest.$ac_objext` in
7233 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7234 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7235 # Find out which ABI we are using.
7236 echo 'int i;' > conftest.$ac_ext
7237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7238 (eval $ac_compile) 2>&5
7240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7241 test $ac_status = 0; }; then
7242 case `/usr/bin/file conftest.o` in
7245 x86_64-*kfreebsd*-gnu)
7246 LD="${LD-ld} -m elf_i386_fbsd"
7249 LD="${LD-ld} -m elf_i386"
7251 ppc64-*linux*|powerpc64-*linux*)
7252 LD="${LD-ld} -m elf32ppclinux"
7255 LD="${LD-ld} -m elf_s390"
7258 LD="${LD-ld} -m elf32_sparc"
7264 x86_64-*kfreebsd*-gnu)
7265 LD="${LD-ld} -m elf_x86_64_fbsd"
7268 LD="${LD-ld} -m elf_x86_64"
7270 ppc*-*linux*|powerpc*-*linux*)
7271 LD="${LD-ld} -m elf64ppc"
7273 s390*-*linux*|s390*-*tpf*)
7274 LD="${LD-ld} -m elf64_s390"
7277 LD="${LD-ld} -m elf64_sparc"
7287 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7288 SAVE_CFLAGS="$CFLAGS"
7289 CFLAGS="$CFLAGS -belf"
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7291 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7292 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7293 $as_echo_n "(cached) " >&6
7296 ac_cpp='$CPP $CPPFLAGS'
7297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h. */
7312 if ac_fn_c_try_link "$LINENO"; then :
7313 lt_cv_cc_needs_belf=yes
7315 lt_cv_cc_needs_belf=no
7317 rm -f core conftest.err conftest.$ac_objext \
7318 conftest$ac_exeext conftest.$ac_ext
7320 ac_cpp='$CPP $CPPFLAGS'
7321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7327 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7328 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7329 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7330 CFLAGS="$SAVE_CFLAGS"
7334 # Find out which ABI we are using.
7335 echo 'int i;' > conftest.$ac_ext
7336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7337 (eval $ac_compile) 2>&5
7339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7340 test $ac_status = 0; }; then
7341 case `/usr/bin/file conftest.o` in
7343 case $lt_cv_prog_gnu_ld in
7344 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7346 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7358 need_locks="$enable_libtool_lock"
7362 rhapsody* | darwin*)
7363 if test -n "$ac_tool_prefix"; then
7364 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7365 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
7371 if test -n "$DSYMUTIL"; then
7372 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7381 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7392 if test -n "$DSYMUTIL"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7394 $as_echo "$DSYMUTIL" >&6; }
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7402 if test -z "$ac_cv_prog_DSYMUTIL"; then
7403 ac_ct_DSYMUTIL=$DSYMUTIL
7404 # Extract the first word of "dsymutil", so it can be a program name with args.
7405 set dummy dsymutil; ac_word=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
7411 if test -n "$ac_ct_DSYMUTIL"; then
7412 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7432 if test -n "$ac_ct_DSYMUTIL"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7434 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7440 if test "x$ac_ct_DSYMUTIL" = x; then
7443 case $cross_compiling:$ac_tool_warned in
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7447 ac_tool_warned=yes ;;
7449 DSYMUTIL=$ac_ct_DSYMUTIL
7452 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7455 if test -n "$ac_tool_prefix"; then
7456 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7457 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459 $as_echo_n "checking for $ac_word... " >&6; }
7460 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7461 $as_echo_n "(cached) " >&6
7463 if test -n "$NMEDIT"; then
7464 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7473 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 NMEDIT=$ac_cv_prog_NMEDIT
7484 if test -n "$NMEDIT"; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7486 $as_echo "$NMEDIT" >&6; }
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7494 if test -z "$ac_cv_prog_NMEDIT"; then
7495 ac_ct_NMEDIT=$NMEDIT
7496 # Extract the first word of "nmedit", so it can be a program name with args.
7497 set dummy nmedit; ac_word=$2
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499 $as_echo_n "checking for $ac_word... " >&6; }
7500 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7501 $as_echo_n "(cached) " >&6
7503 if test -n "$ac_ct_NMEDIT"; then
7504 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 test -z "$as_dir" && as_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7513 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7524 if test -n "$ac_ct_NMEDIT"; then
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7526 $as_echo "$ac_ct_NMEDIT" >&6; }
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529 $as_echo "no" >&6; }
7532 if test "x$ac_ct_NMEDIT" = x; then
7535 case $cross_compiling:$ac_tool_warned in
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7539 ac_tool_warned=yes ;;
7541 NMEDIT=$ac_ct_NMEDIT
7544 NMEDIT="$ac_cv_prog_NMEDIT"
7547 if test -n "$ac_tool_prefix"; then
7548 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7549 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551 $as_echo_n "checking for $ac_word... " >&6; }
7552 if test "${ac_cv_prog_LIPO+set}" = set; then :
7553 $as_echo_n "(cached) " >&6
7555 if test -n "$LIPO"; then
7556 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 test -z "$as_dir" && as_dir=.
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7565 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 LIPO=$ac_cv_prog_LIPO
7576 if test -n "$LIPO"; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7578 $as_echo "$LIPO" >&6; }
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 $as_echo "no" >&6; }
7586 if test -z "$ac_cv_prog_LIPO"; then
7588 # Extract the first word of "lipo", so it can be a program name with args.
7589 set dummy lipo; ac_word=$2
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591 $as_echo_n "checking for $ac_word... " >&6; }
7592 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7593 $as_echo_n "(cached) " >&6
7595 if test -n "$ac_ct_LIPO"; then
7596 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_prog_ac_ct_LIPO="lipo"
7606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7616 if test -n "$ac_ct_LIPO"; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7618 $as_echo "$ac_ct_LIPO" >&6; }
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7624 if test "x$ac_ct_LIPO" = x; then
7627 case $cross_compiling:$ac_tool_warned in
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7631 ac_tool_warned=yes ;;
7636 LIPO="$ac_cv_prog_LIPO"
7639 if test -n "$ac_tool_prefix"; then
7640 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7641 set dummy ${ac_tool_prefix}otool; ac_word=$2
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643 $as_echo_n "checking for $ac_word... " >&6; }
7644 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7645 $as_echo_n "(cached) " >&6
7647 if test -n "$OTOOL"; then
7648 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7657 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7667 OTOOL=$ac_cv_prog_OTOOL
7668 if test -n "$OTOOL"; then
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7670 $as_echo "$OTOOL" >&6; }
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 $as_echo "no" >&6; }
7678 if test -z "$ac_cv_prog_OTOOL"; then
7680 # Extract the first word of "otool", so it can be a program name with args.
7681 set dummy otool; ac_word=$2
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683 $as_echo_n "checking for $ac_word... " >&6; }
7684 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7685 $as_echo_n "(cached) " >&6
7687 if test -n "$ac_ct_OTOOL"; then
7688 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7697 ac_cv_prog_ac_ct_OTOOL="otool"
7698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7708 if test -n "$ac_ct_OTOOL"; then
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7710 $as_echo "$ac_ct_OTOOL" >&6; }
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 $as_echo "no" >&6; }
7716 if test "x$ac_ct_OTOOL" = x; then
7719 case $cross_compiling:$ac_tool_warned in
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7723 ac_tool_warned=yes ;;
7728 OTOOL="$ac_cv_prog_OTOOL"
7731 if test -n "$ac_tool_prefix"; then
7732 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7733 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735 $as_echo_n "checking for $ac_word... " >&6; }
7736 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7737 $as_echo_n "(cached) " >&6
7739 if test -n "$OTOOL64"; then
7740 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 test -z "$as_dir" && as_dir=.
7747 for ac_exec_ext in '' $ac_executable_extensions; do
7748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7749 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 OTOOL64=$ac_cv_prog_OTOOL64
7760 if test -n "$OTOOL64"; then
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7762 $as_echo "$OTOOL64" >&6; }
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 $as_echo "no" >&6; }
7770 if test -z "$ac_cv_prog_OTOOL64"; then
7771 ac_ct_OTOOL64=$OTOOL64
7772 # Extract the first word of "otool64", so it can be a program name with args.
7773 set dummy otool64; ac_word=$2
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775 $as_echo_n "checking for $ac_word... " >&6; }
7776 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7777 $as_echo_n "(cached) " >&6
7779 if test -n "$ac_ct_OTOOL64"; then
7780 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7789 ac_cv_prog_ac_ct_OTOOL64="otool64"
7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7800 if test -n "$ac_ct_OTOOL64"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7802 $as_echo "$ac_ct_OTOOL64" >&6; }
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7808 if test "x$ac_ct_OTOOL64" = x; then
7811 case $cross_compiling:$ac_tool_warned in
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7815 ac_tool_warned=yes ;;
7817 OTOOL64=$ac_ct_OTOOL64
7820 OTOOL64="$ac_cv_prog_OTOOL64"
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7850 $as_echo_n "checking for -single_module linker flag... " >&6; }
7851 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7852 $as_echo_n "(cached) " >&6
7854 lt_cv_apple_cc_single_mod=no
7855 if test -z "${LT_MULTI_MODULE}"; then
7856 # By default we will add the -single_module flag. You can override
7857 # by either setting the environment variable LT_MULTI_MODULE
7858 # non-empty at configure time, or by adding -multi_module to the
7860 rm -rf libconftest.dylib*
7861 echo "int foo(void){return 1;}" > conftest.c
7862 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7863 -dynamiclib -Wl,-single_module conftest.c" >&5
7864 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7865 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7867 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7868 lt_cv_apple_cc_single_mod=yes
7870 cat conftest.err >&5
7872 rm -rf libconftest.dylib*
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7877 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7879 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7880 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7883 lt_cv_ld_exported_symbols_list=no
7884 save_LDFLAGS=$LDFLAGS
7885 echo "_main" > conftest.sym
7886 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h. */
7898 if ac_fn_c_try_link "$LINENO"; then :
7899 lt_cv_ld_exported_symbols_list=yes
7901 lt_cv_ld_exported_symbols_list=no
7903 rm -f core conftest.err conftest.$ac_objext \
7904 conftest$ac_exeext conftest.$ac_ext
7905 LDFLAGS="$save_LDFLAGS"
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7909 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7911 rhapsody* | darwin1.[012])
7912 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7914 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7915 darwin*) # darwin 5.x on
7916 # if running on 10.5 or later, the deployment target defaults
7917 # to the OS version, if on x86, and 10.4, the deployment
7918 # target defaults to 10.4. Don't you love it?
7919 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7920 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7921 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7923 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7925 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7929 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7930 _lt_dar_single_mod='$single_module'
7932 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7933 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7935 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7937 if test "$DSYMUTIL" != ":"; then
7938 _lt_dsymutil='~$DSYMUTIL $lib || :'
7945 for ac_header in dlfcn.h
7947 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7949 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7950 cat >>confdefs.h <<_ACEOF
7951 #define HAVE_DLFCN_H 1
7970 # Check whether --enable-static was given.
7971 if test "${enable_static+set}" = set; then :
7972 enableval=$enable_static; p=${PACKAGE-default}
7974 yes) enable_static=yes ;;
7975 no) enable_static=no ;;
7978 # Look at the argument we got. We use all the common list separators.
7979 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7980 for pkg in $enableval; do
7982 if test "X$pkg" = "X$p"; then
8002 # Check whether --with-pic was given.
8003 if test "${with_pic+set}" = set; then :
8004 withval=$with_pic; pic_mode="$withval"
8010 test -z "$pic_mode" && pic_mode=default
8018 # Check whether --enable-fast-install was given.
8019 if test "${enable_fast_install+set}" = set; then :
8020 enableval=$enable_fast_install; p=${PACKAGE-default}
8022 yes) enable_fast_install=yes ;;
8023 no) enable_fast_install=no ;;
8025 enable_fast_install=no
8026 # Look at the argument we got. We use all the common list separators.
8027 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8028 for pkg in $enableval; do
8030 if test "X$pkg" = "X$p"; then
8031 enable_fast_install=yes
8038 enable_fast_install=yes
8051 # This can be used to rebuild libtool when needed
8052 LIBTOOL_DEPS="$ltmain"
8054 # Always use our own libtool.
8055 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8081 test -z "$LN_S" && LN_S="ln -s"
8096 if test -n "${ZSH_VERSION+set}" ; then
8097 setopt NO_GLOB_SUBST
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8101 $as_echo_n "checking for objdir... " >&6; }
8102 if test "${lt_cv_objdir+set}" = set; then :
8103 $as_echo_n "(cached) " >&6
8105 rm -f .libs 2>/dev/null
8106 mkdir .libs 2>/dev/null
8107 if test -d .libs; then
8110 # MS-DOS does not allow filenames that begin with a dot.
8113 rmdir .libs 2>/dev/null
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8116 $as_echo "$lt_cv_objdir" >&6; }
8117 objdir=$lt_cv_objdir
8123 cat >>confdefs.h <<_ACEOF
8124 #define LT_OBJDIR "$lt_cv_objdir/"
8145 # AIX sometimes has problems with the GCC collect2 program. For some
8146 # reason, if we set the COLLECT_NAMES environment variable, the problems
8147 # vanish in a puff of smoke.
8148 if test "X${COLLECT_NAMES+set}" != Xset; then
8150 export COLLECT_NAMES
8155 # Sed substitution that helps us do robust quoting. It backslashifies
8156 # metacharacters that are still active within double-quoted strings.
8157 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8159 # Same as above, but do not quote variable references.
8160 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8162 # Sed substitution to delay expansion of an escaped shell variable in a
8163 # double_quote_subst'ed string.
8164 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8166 # Sed substitution to delay expansion of an escaped single quote.
8167 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8169 # Sed substitution to avoid accidental globbing in evaled expressions
8170 no_glob_subst='s/\*/\\\*/g'
8174 can_build_shared=yes
8176 # All known linkers require a `.a' archive for static linking (except MSVC,
8177 # which needs '.lib').
8180 with_gnu_ld="$lt_cv_prog_gnu_ld"
8183 old_CFLAGS="$CFLAGS"
8185 # Set sane defaults for various variables
8186 test -z "$CC" && CC=cc
8187 test -z "$LTCC" && LTCC=$CC
8188 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8189 test -z "$LD" && LD=ld
8190 test -z "$ac_objext" && ac_objext=o
8192 for cc_temp in $compiler""; do
8194 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8195 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8200 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8203 # Only perform the check for file, if the check method requires it
8204 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8205 case $deplibs_check_method in
8207 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8209 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8210 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8211 $as_echo_n "(cached) " >&6
8215 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8218 lt_save_MAGIC_CMD="$MAGIC_CMD"
8219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8220 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8221 for ac_dir in $ac_dummy; do
8223 test -z "$ac_dir" && ac_dir=.
8224 if test -f $ac_dir/${ac_tool_prefix}file; then
8225 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8226 if test -n "$file_magic_test_file"; then
8227 case $deplibs_check_method in
8229 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8231 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8232 $EGREP "$file_magic_regex" > /dev/null; then
8237 *** Warning: the command libtool uses to detect shared libraries,
8238 *** $file_magic_cmd, produces output that libtool cannot recognize.
8239 *** The result is that libtool may fail to recognize shared libraries
8240 *** as such. This will affect the creation of libtool libraries that
8241 *** depend on shared libraries, but programs linked with such libtool
8242 *** libraries will work regardless of this problem. Nevertheless, you
8243 *** may want to report the problem to your system manager and/or to
8254 MAGIC_CMD="$lt_save_MAGIC_CMD"
8259 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8260 if test -n "$MAGIC_CMD"; then
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8262 $as_echo "$MAGIC_CMD" >&6; }
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265 $as_echo "no" >&6; }
8272 if test -z "$lt_cv_path_MAGIC_CMD"; then
8273 if test -n "$ac_tool_prefix"; then
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8275 $as_echo_n "checking for file... " >&6; }
8276 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8277 $as_echo_n "(cached) " >&6
8281 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8284 lt_save_MAGIC_CMD="$MAGIC_CMD"
8285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8286 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8287 for ac_dir in $ac_dummy; do
8289 test -z "$ac_dir" && ac_dir=.
8290 if test -f $ac_dir/file; then
8291 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8292 if test -n "$file_magic_test_file"; then
8293 case $deplibs_check_method in
8295 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8296 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8297 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8298 $EGREP "$file_magic_regex" > /dev/null; then
8303 *** Warning: the command libtool uses to detect shared libraries,
8304 *** $file_magic_cmd, produces output that libtool cannot recognize.
8305 *** The result is that libtool may fail to recognize shared libraries
8306 *** as such. This will affect the creation of libtool libraries that
8307 *** depend on shared libraries, but programs linked with such libtool
8308 *** libraries will work regardless of this problem. Nevertheless, you
8309 *** may want to report the problem to your system manager and/or to
8320 MAGIC_CMD="$lt_save_MAGIC_CMD"
8325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8326 if test -n "$MAGIC_CMD"; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8328 $as_echo "$MAGIC_CMD" >&6; }
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 $as_echo "no" >&6; }
8344 # Use C for the default configuration in the libtool script
8348 ac_cpp='$CPP $CPPFLAGS'
8349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8354 # Source file extension for C test sources.
8357 # Object file extension for compiled C test sources.
8361 # Code to be used in simple compile tests
8362 lt_simple_compile_test_code="int some_variable = 0;"
8364 # Code to be used in simple link tests
8365 lt_simple_link_test_code='int main(){return(0);}'
8373 # If no C compiler was specified, use CC.
8376 # If no C compiler flags were specified, use CFLAGS.
8377 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8379 # Allow CC to be a program name with arguments.
8382 # Save the default compiler, since it gets overwritten when the other
8383 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8384 compiler_DEFAULT=$CC
8386 # save warnings/boilerplate of simple test code
8387 ac_outfile=conftest.$ac_objext
8388 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8389 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8390 _lt_compiler_boilerplate=`cat conftest.err`
8393 ac_outfile=conftest.$ac_objext
8394 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8395 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8396 _lt_linker_boilerplate=`cat conftest.err`
8401 ## There is no encapsulation within the following macros, do not change
8402 ## the running order or otherwise move them around unless you know exactly
8403 ## what you are doing...
8404 if test -n "$compiler"; then
8406 lt_prog_compiler_no_builtin_flag=
8408 if test "$GCC" = yes; then
8409 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8412 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8413 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8414 $as_echo_n "(cached) " >&6
8416 lt_cv_prog_compiler_rtti_exceptions=no
8417 ac_outfile=conftest.$ac_objext
8418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8419 lt_compiler_flag="-fno-rtti -fno-exceptions"
8420 # Insert the option either (1) after the last *FLAGS variable, or
8421 # (2) before a word containing "conftest.", or (3) at the end.
8422 # Note that $ac_compile itself does not contain backslashes and begins
8423 # with a dollar sign (not a hyphen), so the echo should work correctly.
8424 # The option is referenced via a variable to avoid confusing sed.
8425 lt_compile=`echo "$ac_compile" | $SED \
8426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8428 -e 's:$: $lt_compiler_flag:'`
8429 (eval echo "\"\$as_me:8429: $lt_compile\"" >&5)
8430 (eval "$lt_compile" 2>conftest.err)
8432 cat conftest.err >&5
8433 echo "$as_me:8433: \$? = $ac_status" >&5
8434 if (exit $ac_status) && test -s "$ac_outfile"; then
8435 # The compiler can only warn and ignore the option if not recognized
8436 # So say no if there are warnings other than the usual output.
8437 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8439 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8440 lt_cv_prog_compiler_rtti_exceptions=yes
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8447 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8449 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8450 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8462 lt_prog_compiler_wl=
8463 lt_prog_compiler_pic=
8464 lt_prog_compiler_static=
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8467 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8469 if test "$GCC" = yes; then
8470 lt_prog_compiler_wl='-Wl,'
8471 lt_prog_compiler_static='-static'
8475 # All AIX code is PIC.
8476 if test "$host_cpu" = ia64; then
8477 # AIX 5 now supports IA64 processor
8478 lt_prog_compiler_static='-Bstatic'
8485 # see comment about AmigaOS4 .so support
8486 lt_prog_compiler_pic='-fPIC'
8489 # FIXME: we need at least 68020 code to build shared libraries, but
8490 # adding the `-m68020' flag to GCC prevents building anything better,
8492 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8497 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8498 # PIC is the default for these OSes.
8501 mingw* | cygwin* | pw32* | os2* | cegcc*)
8502 # This hack is so that the source file can tell whether it is being
8503 # built for inclusion in a dll (and should export symbols for example).
8504 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8505 # (--disable-auto-import) libraries
8506 lt_prog_compiler_pic='-DDLL_EXPORT'
8509 darwin* | rhapsody*)
8510 # PIC is the default on this platform
8511 # Common symbols not allowed in MH_DYLIB files
8512 lt_prog_compiler_pic='-fno-common'
8516 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8517 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8518 # sets the default TLS model and affects inlining.
8524 lt_prog_compiler_pic='-fPIC'
8530 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8531 # Instead, we relocate shared libraries at runtime.
8535 # Just because we use GCC doesn't mean we suddenly get shared libraries
8536 # on systems that don't support them.
8537 lt_prog_compiler_can_build_shared=no
8542 # QNX uses GNU C++, but need to define -shared option too, otherwise
8544 lt_prog_compiler_pic='-fPIC -shared'
8548 if test -d /usr/nec; then
8549 lt_prog_compiler_pic=-Kconform_pic
8554 lt_prog_compiler_pic='-fPIC'
8558 # PORTME Check for flag to pass linker flags through the system compiler.
8561 lt_prog_compiler_wl='-Wl,'
8562 if test "$host_cpu" = ia64; then
8563 # AIX 5 now supports IA64 processor
8564 lt_prog_compiler_static='-Bstatic'
8566 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8570 mingw* | cygwin* | pw32* | os2* | cegcc*)
8571 # This hack is so that the source file can tell whether it is being
8572 # built for inclusion in a dll (and should export symbols for example).
8573 lt_prog_compiler_pic='-DDLL_EXPORT'
8576 hpux9* | hpux10* | hpux11*)
8577 lt_prog_compiler_wl='-Wl,'
8578 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8585 lt_prog_compiler_pic='+Z'
8588 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8589 lt_prog_compiler_static='${wl}-a ${wl}archive'
8592 irix5* | irix6* | nonstopux*)
8593 lt_prog_compiler_wl='-Wl,'
8594 # PIC (with -KPIC) is the default.
8595 lt_prog_compiler_static='-non_shared'
8598 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8599 case $cc_basename in
8600 # old Intel for x86_64 which still supported -KPIC.
8602 lt_prog_compiler_wl='-Wl,'
8603 lt_prog_compiler_pic='-KPIC'
8604 lt_prog_compiler_static='-static'
8606 # icc used to be incompatible with GCC.
8607 # ICC 10 doesn't accept -KPIC any more.
8609 lt_prog_compiler_wl='-Wl,'
8610 lt_prog_compiler_pic='-fPIC'
8611 lt_prog_compiler_static='-static'
8613 # Lahey Fortran 8.1.
8615 lt_prog_compiler_wl='-Wl,'
8616 lt_prog_compiler_pic='--shared'
8617 lt_prog_compiler_static='--static'
8619 pgcc* | pgf77* | pgf90* | pgf95*)
8620 # Portland Group compilers (*not* the Pentium gcc compiler,
8621 # which looks to be a dead project)
8622 lt_prog_compiler_wl='-Wl,'
8623 lt_prog_compiler_pic='-fpic'
8624 lt_prog_compiler_static='-Bstatic'
8627 lt_prog_compiler_wl='-Wl,'
8628 # All Alpha code is PIC.
8629 lt_prog_compiler_static='-non_shared'
8632 # IBM XL C 8.0/Fortran 10.1 on PPC
8633 lt_prog_compiler_wl='-Wl,'
8634 lt_prog_compiler_pic='-qpic'
8635 lt_prog_compiler_static='-qstaticlink'
8638 case `$CC -V 2>&1 | sed 5q` in
8641 lt_prog_compiler_pic='-KPIC'
8642 lt_prog_compiler_static='-Bstatic'
8643 lt_prog_compiler_wl='-Wl,'
8646 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8647 lt_prog_compiler_pic='-KPIC'
8648 lt_prog_compiler_static='-Bstatic'
8649 lt_prog_compiler_wl=''
8657 lt_prog_compiler_pic='-KPIC'
8658 lt_prog_compiler_static='-Bstatic'
8662 # QNX uses GNU C++, but need to define -shared option too, otherwise
8664 lt_prog_compiler_pic='-fPIC -shared'
8667 osf3* | osf4* | osf5*)
8668 lt_prog_compiler_wl='-Wl,'
8669 # All OSF/1 code is PIC.
8670 lt_prog_compiler_static='-non_shared'
8674 lt_prog_compiler_static='-non_shared'
8678 lt_prog_compiler_pic='-KPIC'
8679 lt_prog_compiler_static='-Bstatic'
8680 case $cc_basename in
8682 lt_prog_compiler_wl='-Qoption ld ';;
8684 lt_prog_compiler_wl='-Wl,';;
8689 lt_prog_compiler_wl='-Qoption ld '
8690 lt_prog_compiler_pic='-PIC'
8691 lt_prog_compiler_static='-Bstatic'
8694 sysv4 | sysv4.2uw2* | sysv4.3*)
8695 lt_prog_compiler_wl='-Wl,'
8696 lt_prog_compiler_pic='-KPIC'
8697 lt_prog_compiler_static='-Bstatic'
8701 if test -d /usr/nec ;then
8702 lt_prog_compiler_pic='-Kconform_pic'
8703 lt_prog_compiler_static='-Bstatic'
8707 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8708 lt_prog_compiler_wl='-Wl,'
8709 lt_prog_compiler_pic='-KPIC'
8710 lt_prog_compiler_static='-Bstatic'
8714 lt_prog_compiler_wl='-Wl,'
8715 lt_prog_compiler_can_build_shared=no
8719 lt_prog_compiler_pic='-pic'
8720 lt_prog_compiler_static='-Bstatic'
8724 lt_prog_compiler_can_build_shared=no
8730 # For platforms which do not support PIC, -DPIC is meaningless:
8732 lt_prog_compiler_pic=
8735 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8739 $as_echo "$lt_prog_compiler_pic" >&6; }
8747 # Check to make sure the PIC flag actually works.
8749 if test -n "$lt_prog_compiler_pic"; then
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8751 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8752 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8753 $as_echo_n "(cached) " >&6
8755 lt_cv_prog_compiler_pic_works=no
8756 ac_outfile=conftest.$ac_objext
8757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8758 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8759 # Insert the option either (1) after the last *FLAGS variable, or
8760 # (2) before a word containing "conftest.", or (3) at the end.
8761 # Note that $ac_compile itself does not contain backslashes and begins
8762 # with a dollar sign (not a hyphen), so the echo should work correctly.
8763 # The option is referenced via a variable to avoid confusing sed.
8764 lt_compile=`echo "$ac_compile" | $SED \
8765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8767 -e 's:$: $lt_compiler_flag:'`
8768 (eval echo "\"\$as_me:8768: $lt_compile\"" >&5)
8769 (eval "$lt_compile" 2>conftest.err)
8771 cat conftest.err >&5
8772 echo "$as_me:8772: \$? = $ac_status" >&5
8773 if (exit $ac_status) && test -s "$ac_outfile"; then
8774 # The compiler can only warn and ignore the option if not recognized
8775 # So say no if there are warnings other than the usual output.
8776 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8777 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8778 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8779 lt_cv_prog_compiler_pic_works=yes
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8786 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8788 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8789 case $lt_prog_compiler_pic in
8791 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8794 lt_prog_compiler_pic=
8795 lt_prog_compiler_can_build_shared=no
8806 # Check to make sure the static flag actually works.
8808 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8810 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8811 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8812 $as_echo_n "(cached) " >&6
8814 lt_cv_prog_compiler_static_works=no
8815 save_LDFLAGS="$LDFLAGS"
8816 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8817 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8818 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8819 # The linker can only warn and ignore the option if not recognized
8820 # So say no if there are warnings
8821 if test -s conftest.err; then
8822 # Append any errors to the config.log.
8823 cat conftest.err 1>&5
8824 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8826 if diff conftest.exp conftest.er2 >/dev/null; then
8827 lt_cv_prog_compiler_static_works=yes
8830 lt_cv_prog_compiler_static_works=yes
8834 LDFLAGS="$save_LDFLAGS"
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8838 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8840 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8843 lt_prog_compiler_static=
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8853 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8854 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8855 $as_echo_n "(cached) " >&6
8857 lt_cv_prog_compiler_c_o=no
8858 $RM -r conftest 2>/dev/null
8862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8864 lt_compiler_flag="-o out/conftest2.$ac_objext"
8865 # Insert the option either (1) after the last *FLAGS variable, or
8866 # (2) before a word containing "conftest.", or (3) at the end.
8867 # Note that $ac_compile itself does not contain backslashes and begins
8868 # with a dollar sign (not a hyphen), so the echo should work correctly.
8869 lt_compile=`echo "$ac_compile" | $SED \
8870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8872 -e 's:$: $lt_compiler_flag:'`
8873 (eval echo "\"\$as_me:8873: $lt_compile\"" >&5)
8874 (eval "$lt_compile" 2>out/conftest.err)
8876 cat out/conftest.err >&5
8877 echo "$as_me:8877: \$? = $ac_status" >&5
8878 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8880 # The compiler can only warn and ignore the option if not recognized
8881 # So say no if there are warnings
8882 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8883 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8884 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8885 lt_cv_prog_compiler_c_o=yes
8890 # SGI C++ compiler will create directory out/ii_files/ for
8891 # template instantiation
8892 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8893 $RM out/* && rmdir out
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8900 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8908 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8909 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8910 $as_echo_n "(cached) " >&6
8912 lt_cv_prog_compiler_c_o=no
8913 $RM -r conftest 2>/dev/null
8917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8919 lt_compiler_flag="-o out/conftest2.$ac_objext"
8920 # Insert the option either (1) after the last *FLAGS variable, or
8921 # (2) before a word containing "conftest.", or (3) at the end.
8922 # Note that $ac_compile itself does not contain backslashes and begins
8923 # with a dollar sign (not a hyphen), so the echo should work correctly.
8924 lt_compile=`echo "$ac_compile" | $SED \
8925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8927 -e 's:$: $lt_compiler_flag:'`
8928 (eval echo "\"\$as_me:8928: $lt_compile\"" >&5)
8929 (eval "$lt_compile" 2>out/conftest.err)
8931 cat out/conftest.err >&5
8932 echo "$as_me:8932: \$? = $ac_status" >&5
8933 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8935 # The compiler can only warn and ignore the option if not recognized
8936 # So say no if there are warnings
8937 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8938 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8939 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8940 lt_cv_prog_compiler_c_o=yes
8945 # SGI C++ compiler will create directory out/ii_files/ for
8946 # template instantiation
8947 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8948 $RM out/* && rmdir out
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8955 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8960 hard_links="nottested"
8961 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8962 # do not overwrite the value of need_locks provided by the user
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8964 $as_echo_n "checking if we can lock with hard links... " >&6; }
8967 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8969 ln conftest.a conftest.b 2>&5 || hard_links=no
8970 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8972 $as_echo "$hard_links" >&6; }
8973 if test "$hard_links" = no; then
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8975 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8988 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8991 allow_undefined_flag=
8992 always_export_symbols=no
8994 archive_expsym_cmds=
8995 compiler_needs_object=no
8996 enable_shared_with_static_runtimes=no
8997 export_dynamic_flag_spec=
8998 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8999 hardcode_automatic=no
9001 hardcode_direct_absolute=no
9002 hardcode_libdir_flag_spec=
9003 hardcode_libdir_flag_spec_ld=
9004 hardcode_libdir_separator=
9006 hardcode_shlibpath_var=unsupported
9008 link_all_deplibs=unknown
9011 old_archive_from_new_cmds=
9012 old_archive_from_expsyms_cmds=
9013 thread_safe_flag_spec=
9014 whole_archive_flag_spec=
9015 # include_expsyms should be a list of space-separated symbols to be *always*
9016 # included in the symbol list
9018 # exclude_expsyms can be an extended regexp of symbols to exclude
9019 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9020 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9021 # as well as any symbol that contains `d'.
9022 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9023 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9024 # platforms (ab)use it in PIC code, but their linkers get confused if
9025 # the symbol is explicitly referenced. Since portable code cannot
9026 # rely on this symbol name, it's probably fine to never include it in
9027 # preloaded symbol tables.
9028 # Exclude shared library initialization/finalization symbols.
9029 extract_expsyms_cmds=
9032 cygwin* | mingw* | pw32* | cegcc*)
9033 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9034 # When not using gcc, we currently assume that we are using
9035 # Microsoft Visual C++.
9036 if test "$GCC" != yes; then
9041 # we just hope/assume this is gcc and not c89 (= MSVC++)
9050 if test "$with_gnu_ld" = yes; then
9051 # If archive_cmds runs LD, not CC, wlarc should be empty
9054 # Set some defaults for GNU ld with shared library support. These
9055 # are reset later if shared libraries are not supported. Putting them
9056 # here allows them to be overridden if necessary.
9057 runpath_var=LD_RUN_PATH
9058 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9059 export_dynamic_flag_spec='${wl}--export-dynamic'
9060 # ancient GNU ld didn't support --whole-archive et. al.
9061 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9062 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9064 whole_archive_flag_spec=
9066 supports_anon_versioning=no
9067 case `$LD -v 2>&1` in
9068 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9069 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9070 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9071 *\ 2.11.*) ;; # other 2.11 versions
9072 *) supports_anon_versioning=yes ;;
9075 # See if GNU ld supports shared libraries.
9078 # On AIX/PPC, the GNU linker is very broken
9079 if test "$host_cpu" != ia64; then
9083 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9084 *** to be unable to reliably create shared libraries on AIX.
9085 *** Therefore, libtool is disabling shared libraries support. If you
9086 *** really care for shared libraries, you may want to modify your PATH
9087 *** so that a non-GNU linker is found, and then restart.
9096 # see comment about AmigaOS4 .so support
9097 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9098 archive_expsym_cmds=''
9101 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)'
9102 hardcode_libdir_flag_spec='-L$libdir'
9103 hardcode_minus_L=yes
9109 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9110 allow_undefined_flag=unsupported
9112 # support --undefined. This deserves some investigation. FIXME
9113 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9119 cygwin* | mingw* | pw32* | cegcc*)
9120 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9121 # as there is no search path for DLLs.
9122 hardcode_libdir_flag_spec='-L$libdir'
9123 allow_undefined_flag=unsupported
9124 always_export_symbols=no
9125 enable_shared_with_static_runtimes=yes
9126 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9128 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9129 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9130 # If the export-symbols file already is a .def file (1st line
9131 # is EXPORTS), use it as is; otherwise, prepend...
9132 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9133 cp $export_symbols $output_objdir/$soname.def;
9135 echo EXPORTS > $output_objdir/$soname.def;
9136 cat $export_symbols >> $output_objdir/$soname.def;
9138 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9146 hardcode_shlibpath_var=no
9147 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9148 export_dynamic_flag_spec='${wl}-E'
9149 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9150 # Instead, shared libraries are loaded at an image base (0x10000000 by
9151 # default) and relocated if they conflict, which is a slow very memory
9152 # consuming and fragmenting process. To avoid this, we pick a random,
9153 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9154 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9155 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9156 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'
9159 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9161 if test "$host_os" = linux-dietlibc; then
9162 case $cc_basename in
9163 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9166 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9167 && test "$tmp_diet" = no
9170 tmp_sharedflag='-shared'
9171 case $cc_basename,$host_cpu in
9172 pgcc*) # Portland Group C compiler
9173 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9174 tmp_addflag=' $pic_flag'
9176 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9177 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9178 tmp_addflag=' $pic_flag -Mnomain' ;;
9179 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9180 tmp_addflag=' -i_dynamic' ;;
9181 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9182 tmp_addflag=' -i_dynamic -nofor_main' ;;
9183 ifc* | ifort*) # Intel Fortran compiler
9184 tmp_addflag=' -nofor_main' ;;
9185 lf95*) # Lahey Fortran 8.1
9186 whole_archive_flag_spec=
9187 tmp_sharedflag='--shared' ;;
9188 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9189 tmp_sharedflag='-qmkshrobj'
9192 case `$CC -V 2>&1 | sed 5q` in
9193 *Sun\ C*) # Sun C 5.9
9194 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9195 compiler_needs_object=yes
9196 tmp_sharedflag='-G' ;;
9197 *Sun\ F*) # Sun Fortran 8.3
9198 tmp_sharedflag='-G' ;;
9200 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202 if test "x$supports_anon_versioning" = xyes; then
9203 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9204 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9205 echo "local: *; };" >> $output_objdir/$libname.ver~
9206 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9209 case $cc_basename in
9211 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9212 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9213 hardcode_libdir_flag_spec=
9214 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9215 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9216 if test "x$supports_anon_versioning" = xyes; then
9217 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9218 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9219 echo "local: *; };" >> $output_objdir/$libname.ver~
9220 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9230 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9231 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9235 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9240 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9244 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9245 *** create shared libraries on Solaris systems. Therefore, libtool
9246 *** is disabling shared libraries support. We urge you to upgrade GNU
9247 *** binutils to release 2.9.1 or newer. Another option is to modify
9248 *** your PATH or compiler configuration so that the native linker is
9249 *** used, and then restart.
9252 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9254 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9260 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9261 case `$LD -v 2>&1` in
9262 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9266 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9267 *** reliably create shared libraries on SCO systems. Therefore, libtool
9268 *** is disabling shared libraries support. We urge you to upgrade GNU
9269 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9270 *** your PATH or compiler configuration so that the native linker is
9271 *** used, and then restart.
9276 # For security reasons, it is highly recommended that you always
9277 # use absolute paths for naming shared libraries, and exclude the
9278 # DT_RUNPATH tag from executables and libraries. But doing so
9279 # requires that you compile everything twice, which is a pain.
9280 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9281 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9283 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9292 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9295 hardcode_shlibpath_var=no
9299 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9300 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9301 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9308 if test "$ld_shlibs" = no; then
9310 hardcode_libdir_flag_spec=
9311 export_dynamic_flag_spec=
9312 whole_archive_flag_spec=
9315 # PORTME fill in a description of your system's linker (not GNU ld)
9318 allow_undefined_flag=unsupported
9319 always_export_symbols=yes
9320 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'
9321 # Note: this linker hardcodes the directories in LIBPATH if there
9322 # are no directories specified by -L.
9323 hardcode_minus_L=yes
9324 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9325 # Neither direct hardcoding nor static linking is supported with a
9327 hardcode_direct=unsupported
9332 if test "$host_cpu" = ia64; then
9333 # On IA64, the linker does run time linking by default, so we don't
9334 # have to do anything special.
9335 aix_use_runtimelinking=no
9336 exp_sym_flag='-Bexport'
9339 # If we're using GNU nm, then we don't want the "-C" option.
9340 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9341 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9342 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9344 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'
9346 aix_use_runtimelinking=no
9348 # Test if we are trying to use run time linking or normal
9349 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9350 # need to do runtime linking.
9351 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9352 for ld_flag in $LDFLAGS; do
9353 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9354 aix_use_runtimelinking=yes
9361 exp_sym_flag='-bexport'
9362 no_entry_flag='-bnoentry'
9365 # When large executables or shared objects are built, AIX ld can
9366 # have problems creating the table of contents. If linking a library
9367 # or program results in "error TOC overflow" add -mminimal-toc to
9368 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9369 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9373 hardcode_direct_absolute=yes
9374 hardcode_libdir_separator=':'
9375 link_all_deplibs=yes
9376 file_list_spec='${wl}-f,'
9378 if test "$GCC" = yes; then
9379 case $host_os in aix4.[012]|aix4.[012].*)
9380 # We only want to do this on AIX 4.2 and lower, the check
9381 # below for broken collect2 doesn't work under 4.3+
9382 collect2name=`${CC} -print-prog-name=collect2`
9383 if test -f "$collect2name" &&
9384 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9386 # We have reworked collect2
9389 # We have old collect2
9390 hardcode_direct=unsupported
9391 # It fails to find uninstalled libraries when the uninstalled
9392 # path is not listed in the libpath. Setting hardcode_minus_L
9393 # to unsupported forces relinking
9394 hardcode_minus_L=yes
9395 hardcode_libdir_flag_spec='-L$libdir'
9396 hardcode_libdir_separator=
9400 shared_flag='-shared'
9401 if test "$aix_use_runtimelinking" = yes; then
9402 shared_flag="$shared_flag "'${wl}-G'
9406 if test "$host_cpu" = ia64; then
9407 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9408 # chokes on -Wl,-G. The following line is correct:
9411 if test "$aix_use_runtimelinking" = yes; then
9412 shared_flag='${wl}-G'
9414 shared_flag='${wl}-bM:SRE'
9419 export_dynamic_flag_spec='${wl}-bexpall'
9420 # It seems that -bexpall does not export symbols beginning with
9421 # underscore (_), so it is better to generate a list of symbols to export.
9422 always_export_symbols=yes
9423 if test "$aix_use_runtimelinking" = yes; then
9424 # Warning - without using the other runtime loading flags (-brtl),
9425 # -berok will link without error, but may produce a broken library.
9426 allow_undefined_flag='-berok'
9427 # Determine the default libpath from the value encoded in an
9429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9430 /* end confdefs.h. */
9440 if ac_fn_c_try_link "$LINENO"; then :
9442 lt_aix_libpath_sed='
9443 /Import File Strings/,/^$/ {
9449 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9450 # Check for a 64-bit object if we didn't find anything.
9451 if test -z "$aix_libpath"; then
9452 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9455 rm -f core conftest.err conftest.$ac_objext \
9456 conftest$ac_exeext conftest.$ac_ext
9457 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9459 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9460 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9462 if test "$host_cpu" = ia64; then
9463 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9464 allow_undefined_flag="-z nodefs"
9465 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"
9467 # Determine the default libpath from the value encoded in an
9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9480 if ac_fn_c_try_link "$LINENO"; then :
9482 lt_aix_libpath_sed='
9483 /Import File Strings/,/^$/ {
9489 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9490 # Check for a 64-bit object if we didn't find anything.
9491 if test -z "$aix_libpath"; then
9492 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9495 rm -f core conftest.err conftest.$ac_objext \
9496 conftest$ac_exeext conftest.$ac_ext
9497 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9499 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9500 # Warning - without using the other run time loading flags,
9501 # -berok will link without error, but may produce a broken library.
9502 no_undefined_flag=' ${wl}-bernotok'
9503 allow_undefined_flag=' ${wl}-berok'
9504 # Exported symbols can be pulled into shared objects from archives
9505 whole_archive_flag_spec='$convenience'
9506 archive_cmds_need_lc=yes
9507 # This is similar to how AIX traditionally builds its shared libraries.
9508 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'
9516 # see comment about AmigaOS4 .so support
9517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9518 archive_expsym_cmds=''
9521 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)'
9522 hardcode_libdir_flag_spec='-L$libdir'
9523 hardcode_minus_L=yes
9529 export_dynamic_flag_spec=-rdynamic
9532 cygwin* | mingw* | pw32* | cegcc*)
9533 # When not using gcc, we currently assume that we are using
9534 # Microsoft Visual C++.
9535 # hardcode_libdir_flag_spec is actually meaningless, as there is
9536 # no search path for DLLs.
9537 hardcode_libdir_flag_spec=' '
9538 allow_undefined_flag=unsupported
9539 # Tell ltmain to make .lib files, not .a files.
9541 # Tell ltmain to make .dll files, not .so files.
9543 # FIXME: Setting linknames here is a bad hack.
9544 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9545 # The linker will automatically build a .lib file if we build a DLL.
9546 old_archive_from_new_cmds='true'
9547 # FIXME: Should let the user specify the lib program.
9548 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9549 fix_srcfile_path='`cygpath -w "$srcfile"`'
9550 enable_shared_with_static_runtimes=yes
9553 darwin* | rhapsody*)
9556 archive_cmds_need_lc=no
9558 hardcode_automatic=yes
9559 hardcode_shlibpath_var=unsupported
9560 whole_archive_flag_spec=''
9561 link_all_deplibs=yes
9562 allow_undefined_flag="$_lt_dar_allow_undefined"
9563 case $cc_basename in
9564 ifort*) _lt_dar_can_shared=yes ;;
9565 *) _lt_dar_can_shared=$GCC ;;
9567 if test "$_lt_dar_can_shared" = "yes"; then
9568 output_verbose_link_cmd=echo
9569 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9570 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9571 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}"
9572 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}"
9581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9582 hardcode_libdir_flag_spec='-L$libdir'
9583 hardcode_shlibpath_var=no
9590 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9591 # support. Future versions do this automatically, but an explicit c++rt0.o
9592 # does not break anything, and helps significantly (at the cost of a little
9595 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9596 hardcode_libdir_flag_spec='-R$libdir'
9598 hardcode_shlibpath_var=no
9601 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9603 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9605 hardcode_minus_L=yes
9606 hardcode_shlibpath_var=no
9609 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9610 freebsd* | dragonfly*)
9611 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9612 hardcode_libdir_flag_spec='-R$libdir'
9614 hardcode_shlibpath_var=no
9618 if test "$GCC" = yes; then
9619 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'
9621 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'
9623 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9624 hardcode_libdir_separator=:
9627 # hardcode_minus_L: Not really in the search PATH,
9628 # but as the default location of the library.
9629 hardcode_minus_L=yes
9630 export_dynamic_flag_spec='${wl}-E'
9634 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9635 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9637 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9639 if test "$with_gnu_ld" = no; then
9640 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9641 hardcode_libdir_flag_spec_ld='+b $libdir'
9642 hardcode_libdir_separator=:
9644 hardcode_direct_absolute=yes
9645 export_dynamic_flag_spec='${wl}-E'
9646 # hardcode_minus_L: Not really in the search PATH,
9647 # but as the default location of the library.
9648 hardcode_minus_L=yes
9653 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9656 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9659 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9662 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9668 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9671 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9674 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9678 if test "$with_gnu_ld" = no; then
9679 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9680 hardcode_libdir_separator=:
9685 hardcode_shlibpath_var=no
9689 hardcode_direct_absolute=yes
9690 export_dynamic_flag_spec='${wl}-E'
9692 # hardcode_minus_L: Not really in the search PATH,
9693 # but as the default location of the library.
9694 hardcode_minus_L=yes
9700 irix5* | irix6* | nonstopux*)
9701 if test "$GCC" = yes; then
9702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9703 # Try to use the -exported_symbol ld option, if it does not
9704 # work, assume that -exports_file does not work either and
9705 # implicitly export all symbols.
9706 save_LDFLAGS="$LDFLAGS"
9707 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h. */
9712 if ac_fn_c_try_link "$LINENO"; then :
9713 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9716 rm -f core conftest.err conftest.$ac_objext \
9717 conftest$ac_exeext conftest.$ac_ext
9718 LDFLAGS="$save_LDFLAGS"
9720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9721 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9723 archive_cmds_need_lc='no'
9724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9725 hardcode_libdir_separator=:
9727 link_all_deplibs=yes
9731 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9734 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9736 hardcode_libdir_flag_spec='-R$libdir'
9738 hardcode_shlibpath_var=no
9742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9745 hardcode_libdir_separator=:
9746 hardcode_shlibpath_var=no
9753 if test -f /usr/libexec/ld.so; then
9755 hardcode_shlibpath_var=no
9756 hardcode_direct_absolute=yes
9757 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9758 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9759 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9760 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9761 export_dynamic_flag_spec='${wl}-E'
9764 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9765 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9766 hardcode_libdir_flag_spec='-R$libdir'
9769 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9770 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9780 hardcode_libdir_flag_spec='-L$libdir'
9781 hardcode_minus_L=yes
9782 allow_undefined_flag=unsupported
9783 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'
9784 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9788 if test "$GCC" = yes; then
9789 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9790 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9792 allow_undefined_flag=' -expect_unresolved \*'
9793 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9795 archive_cmds_need_lc='no'
9796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9797 hardcode_libdir_separator=:
9800 osf4* | osf5*) # as osf3* with the addition of -msym flag
9801 if test "$GCC" = yes; then
9802 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9803 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9806 allow_undefined_flag=' -expect_unresolved \*'
9807 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9808 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~
9809 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9811 # Both c and cxx compiler support -rpath directly
9812 hardcode_libdir_flag_spec='-rpath $libdir'
9814 archive_cmds_need_lc='no'
9815 hardcode_libdir_separator=:
9819 no_undefined_flag=' -z defs'
9820 if test "$GCC" = yes; then
9822 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9823 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9824 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9826 case `$CC -V 2>&1` in
9829 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9830 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9831 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9835 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9836 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9837 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9841 hardcode_libdir_flag_spec='-R$libdir'
9842 hardcode_shlibpath_var=no
9844 solaris2.[0-5] | solaris2.[0-5].*) ;;
9846 # The compiler driver will combine and reorder linker options,
9847 # but understands `-z linker_flag'. GCC discards it without `$wl',
9848 # but is careful enough not to reorder.
9849 # Supported since Solaris 2.6 (maybe 2.5.1?)
9850 if test "$GCC" = yes; then
9851 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9853 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9857 link_all_deplibs=yes
9861 if test "x$host_vendor" = xsequent; then
9862 # Use $CC to link under sequent, because it throws in some extra .o
9863 # files that make .init and .fini sections work.
9864 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9866 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9868 hardcode_libdir_flag_spec='-L$libdir'
9870 hardcode_minus_L=yes
9871 hardcode_shlibpath_var=no
9875 case $host_vendor in
9877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9878 hardcode_direct=yes # is this really true???
9881 ## LD is ld it makes a PLAMLIB
9882 ## CC just makes a GrossModule.
9883 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9884 reload_cmds='$CC -r -o $output$reload_objs'
9888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9889 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9892 runpath_var='LD_RUN_PATH'
9893 hardcode_shlibpath_var=no
9897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9898 hardcode_shlibpath_var=no
9899 export_dynamic_flag_spec='-Bexport'
9903 if test -d /usr/nec; then
9904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9905 hardcode_shlibpath_var=no
9906 runpath_var=LD_RUN_PATH
9907 hardcode_runpath_var=yes
9912 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9913 no_undefined_flag='${wl}-z,text'
9914 archive_cmds_need_lc=no
9915 hardcode_shlibpath_var=no
9916 runpath_var='LD_RUN_PATH'
9918 if test "$GCC" = yes; then
9919 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9920 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9922 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9923 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9927 sysv5* | sco3.2v5* | sco5v6*)
9928 # Note: We can NOT use -z defs as we might desire, because we do not
9929 # link with -lc, and that would cause any symbols used from libc to
9930 # always be unresolved, which means just about no library would
9931 # ever link correctly. If we're not using GNU ld we use -z text
9932 # though, which does catch some bad symbols but isn't as heavy-handed
9934 no_undefined_flag='${wl}-z,text'
9935 allow_undefined_flag='${wl}-z,nodefs'
9936 archive_cmds_need_lc=no
9937 hardcode_shlibpath_var=no
9938 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9939 hardcode_libdir_separator=':'
9940 link_all_deplibs=yes
9941 export_dynamic_flag_spec='${wl}-Bexport'
9942 runpath_var='LD_RUN_PATH'
9944 if test "$GCC" = yes; then
9945 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9946 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9948 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9949 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9955 hardcode_libdir_flag_spec='-L$libdir'
9956 hardcode_shlibpath_var=no
9964 if test x$host_vendor = xsni; then
9966 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9967 export_dynamic_flag_spec='${wl}-Blargedynsym'
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9974 $as_echo "$ld_shlibs" >&6; }
9975 test "$ld_shlibs" = no && can_build_shared=no
9977 with_gnu_ld=$with_gnu_ld
9994 # Do we need to explicitly link libc?
9996 case "x$archive_cmds_need_lc" in
9998 # Assume -lc should be added
9999 archive_cmds_need_lc=yes
10001 if test "$enable_shared" = yes && test "$GCC" = yes; then
10002 case $archive_cmds in
10004 # FIXME: we may have to deal with multi-command sequences.
10007 # Test whether the compiler implicitly links with -lc since on some
10008 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10009 # to ld, don't add -lc before -lgcc.
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10011 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10012 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10013 $as_echo_n "(cached) " >&6
10016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10019 (eval $ac_compile) 2>&5
10021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10022 test $ac_status = 0; } 2>conftest.err; then
10025 libobjs=conftest.$ac_objext
10027 wl=$lt_prog_compiler_wl
10028 pic_flag=$lt_prog_compiler_pic
10034 lt_save_allow_undefined_flag=$allow_undefined_flag
10035 allow_undefined_flag=
10036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10037 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10040 test $ac_status = 0; }
10042 lt_cv_archive_cmds_need_lc=no
10044 lt_cv_archive_cmds_need_lc=yes
10046 allow_undefined_flag=$lt_save_allow_undefined_flag
10048 cat conftest.err 1>&5
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10054 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10055 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10219 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10221 if test "$GCC" = yes; then
10223 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10224 *) lt_awk_arg="/^libraries:/" ;;
10226 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10227 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10228 # if the path contains ";" then we assume it to be the separator
10229 # otherwise default to the standard path separator (i.e. ":") - it is
10230 # assumed that no part of a normal pathname contains ";" but that should
10231 # okay in the real world where ";" in dirpaths is itself problematic.
10232 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10234 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10236 # Ok, now we have the path, separated by spaces, we can step through it
10237 # and add multilib dir if necessary.
10238 lt_tmp_lt_search_path_spec=
10239 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10240 for lt_sys_path in $lt_search_path_spec; do
10241 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10242 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10244 test -d "$lt_sys_path" && \
10245 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10248 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10249 BEGIN {RS=" "; FS="/|\n";} {
10252 for (lt_i = NF; lt_i > 0; lt_i--) {
10253 if ($lt_i != "" && $lt_i != ".") {
10254 if ($lt_i == "..") {
10257 if (lt_count == 0) {
10258 lt_foo="/" $lt_i lt_foo;
10265 if (lt_foo != "") { lt_freq[lt_foo]++; }
10266 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10268 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10270 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10272 library_names_spec=
10273 libname_spec='lib$name'
10277 postuninstall_cmds=
10281 shlibpath_overrides_runpath=unknown
10283 dynamic_linker="$host_os ld.so"
10284 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10285 need_lib_prefix=unknown
10286 hardcode_into_libs=no
10288 # when you set need_version to no, make sure it does not cause -set_version
10289 # flags to be left without arguments
10290 need_version=unknown
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10296 shlibpath_var=LIBPATH
10298 # AIX 3 has no versioning support, so we append a major version to the name.
10299 soname_spec='${libname}${release}${shared_ext}$major'
10306 hardcode_into_libs=yes
10307 if test "$host_cpu" = ia64; then
10308 # AIX 5 supports IA64
10309 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10310 shlibpath_var=LD_LIBRARY_PATH
10312 # With GCC up to 2.95.x, collect2 would create an import file
10313 # for dependence libraries. The import file would start with
10314 # the line `#! .'. This would cause the generated library to
10315 # depend on `.', always an invalid library. This was fixed in
10316 # development snapshots of GCC prior to 3.0.
10318 aix4 | aix4.[01] | aix4.[01].*)
10319 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10321 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10324 can_build_shared=no
10328 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10329 # soname into executable. Probably we can add versioning support to
10330 # collect2, so additional links can be useful in future.
10331 if test "$aix_use_runtimelinking" = yes; then
10332 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10333 # instead of lib<name>.a to let people know that these are not
10334 # typical AIX shared libraries.
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337 # We preserve .a as extension for shared libraries through AIX4.2
10338 # and later when we are not doing run time linking.
10339 library_names_spec='${libname}${release}.a $libname.a'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10342 shlibpath_var=LIBPATH
10349 # Since July 2007 AmigaOS4 officially supports .so libraries.
10350 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 library_names_spec='$libname.ixlibrary $libname.a'
10355 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10356 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10362 library_names_spec='${libname}${shared_ext}'
10363 dynamic_linker="$host_os ld.so"
10364 shlibpath_var=LIBRARY_PATH
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10373 shlibpath_var=LD_LIBRARY_PATH
10374 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10375 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10376 # the default ld.so.conf also contains /usr/contrib/lib and
10377 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10378 # libtool to hard-code these into programs
10381 cygwin* | mingw* | pw32* | cegcc*)
10382 version_type=windows
10387 case $GCC,$host_os in
10388 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10389 library_names_spec='$libname.dll.a'
10390 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10391 postinstall_cmds='base_file=`basename \${file}`~
10392 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10393 dldir=$destdir/`dirname \$dlpath`~
10394 test -d \$dldir || mkdir -p \$dldir~
10395 $install_prog $dir/$dlname \$dldir/$dlname~
10396 chmod a+x \$dldir/$dlname~
10397 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10398 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10400 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10401 dlpath=$dir/\$dldll~
10403 shlibpath_overrides_runpath=yes
10407 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10408 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10409 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10412 # MinGW DLLs use traditional 'lib' prefix
10413 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10414 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10415 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10416 # It is most probably a Windows format PATH printed by
10417 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10418 # path with ; separators, and with drive letters. We can handle the
10419 # drive letters (cygwin fileutils understands them), so leave them,
10420 # especially as we might pass files found there to a mingw objdump,
10421 # which wouldn't understand a cygwinified path. Ahh.
10422 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10424 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10428 # pw32 DLLs use 'pw' prefix rather than 'lib'
10429 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10435 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10438 dynamic_linker='Win32 ld.exe'
10439 # FIXME: first we should search . and the directory the executable is in
10443 darwin* | rhapsody*)
10444 dynamic_linker="$host_os dyld"
10445 version_type=darwin
10448 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10449 soname_spec='${libname}${release}${major}$shared_ext'
10450 shlibpath_overrides_runpath=yes
10451 shlibpath_var=DYLD_LIBRARY_PATH
10452 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10454 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10455 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10463 soname_spec='${libname}${release}${shared_ext}$major'
10464 shlibpath_var=LD_LIBRARY_PATH
10471 freebsd* | dragonfly*)
10472 # DragonFly does not have aout. When/if they implement a new
10473 # versioning mechanism, adjust this.
10474 if test -x /usr/bin/objformat; then
10475 objformat=`/usr/bin/objformat`
10478 freebsd[123]*) objformat=aout ;;
10479 *) objformat=elf ;;
10482 version_type=freebsd-$objformat
10483 case $version_type in
10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10490 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10494 shlibpath_var=LD_LIBRARY_PATH
10497 shlibpath_overrides_runpath=yes
10499 freebsd3.[01]* | freebsdelf3.[01]*)
10500 shlibpath_overrides_runpath=yes
10501 hardcode_into_libs=yes
10503 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10504 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10505 shlibpath_overrides_runpath=no
10506 hardcode_into_libs=yes
10508 *) # from 4.6 on, and DragonFly
10509 shlibpath_overrides_runpath=yes
10510 hardcode_into_libs=yes
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10520 soname_spec='${libname}${release}${shared_ext}$major'
10521 shlibpath_var=LD_LIBRARY_PATH
10522 hardcode_into_libs=yes
10525 hpux9* | hpux10* | hpux11*)
10526 # Give a soname corresponding to the major version so that dld.sl refuses to
10527 # link against other versions.
10534 hardcode_into_libs=yes
10535 dynamic_linker="$host_os dld.so"
10536 shlibpath_var=LD_LIBRARY_PATH
10537 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10539 soname_spec='${libname}${release}${shared_ext}$major'
10540 if test "X$HPUX_IA64_MODE" = X32; then
10541 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10543 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10545 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10549 hardcode_into_libs=yes
10550 dynamic_linker="$host_os dld.sl"
10551 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10554 soname_spec='${libname}${release}${shared_ext}$major'
10555 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10556 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10560 dynamic_linker="$host_os dld.sl"
10561 shlibpath_var=SHLIB_PATH
10562 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10564 soname_spec='${libname}${release}${shared_ext}$major'
10567 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10568 postinstall_cmds='chmod 555 $lib'
10575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10576 soname_spec='${libname}${release}${shared_ext}$major'
10577 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10578 shlibpath_var=LD_LIBRARY_PATH
10579 shlibpath_overrides_runpath=no
10580 hardcode_into_libs=yes
10583 irix5* | irix6* | nonstopux*)
10585 nonstopux*) version_type=nonstopux ;;
10587 if test "$lt_cv_prog_gnu_ld" = yes; then
10595 soname_spec='${libname}${release}${shared_ext}$major'
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10598 irix5* | nonstopux*)
10599 libsuff= shlibsuff=
10602 case $LD in # libtool.m4 will add one of these switches to LD
10603 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10604 libsuff= shlibsuff= libmagic=32-bit;;
10605 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10606 libsuff=32 shlibsuff=N32 libmagic=N32;;
10607 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10608 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10609 *) libsuff= shlibsuff= libmagic=never-match;;
10613 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10614 shlibpath_overrides_runpath=no
10615 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10616 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10617 hardcode_into_libs=yes
10620 # No shared lib support for Linux oldld, aout, or coff.
10621 linux*oldld* | linux*aout* | linux*coff*)
10625 # This must be Linux ELF.
10626 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10631 soname_spec='${libname}${release}${shared_ext}$major'
10632 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10633 shlibpath_var=LD_LIBRARY_PATH
10634 shlibpath_overrides_runpath=no
10636 # Some binutils ld are patched to set DT_RUNPATH
10637 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10638 $as_echo_n "(cached) " >&6
10640 lt_cv_shlibpath_overrides_runpath=no
10641 save_LDFLAGS=$LDFLAGS
10642 save_libdir=$libdir
10643 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10644 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h. */
10656 if ac_fn_c_try_link "$LINENO"; then :
10657 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10658 lt_cv_shlibpath_overrides_runpath=yes
10661 rm -f core conftest.err conftest.$ac_objext \
10662 conftest$ac_exeext conftest.$ac_ext
10663 LDFLAGS=$save_LDFLAGS
10664 libdir=$save_libdir
10668 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10670 # This implies no fast_install, which is unacceptable.
10671 # Some rework will be needed to allow for fast_install
10672 # before this can be enabled.
10673 hardcode_into_libs=yes
10675 # Append ld.so.conf contents to the search path
10676 if test -f /etc/ld.so.conf; then
10677 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;/^$/d' | tr '\n' ' '`
10678 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10681 # We used to test for /lib/ld.so.1 and disable shared libraries on
10682 # powerpc, because MkLinux only supported shared libraries with the
10683 # GNU dynamic linker. Since this was broken with cross compilers,
10684 # most powerpc-linux boxes support dynamic linking these days and
10685 # people can always --disable-shared, the test was removed, and we
10686 # assume the GNU/Linux dynamic linker is in use.
10687 dynamic_linker='GNU/Linux ld.so'
10694 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10697 dynamic_linker='NetBSD (a.out) ld.so'
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10700 soname_spec='${libname}${release}${shared_ext}$major'
10701 dynamic_linker='NetBSD ld.elf_so'
10703 shlibpath_var=LD_LIBRARY_PATH
10704 shlibpath_overrides_runpath=yes
10705 hardcode_into_libs=yes
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10711 shlibpath_var=LD_LIBRARY_PATH
10712 shlibpath_overrides_runpath=yes
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10720 soname_spec='${libname}${release}${shared_ext}$major'
10721 shlibpath_var=LD_LIBRARY_PATH
10722 shlibpath_overrides_runpath=no
10723 hardcode_into_libs=yes
10724 dynamic_linker='ldqnx.so'
10729 sys_lib_dlsearch_path_spec="/usr/lib"
10731 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10733 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10734 *) need_version=no ;;
10736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10737 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10738 shlibpath_var=LD_LIBRARY_PATH
10739 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10741 openbsd2.[89] | openbsd2.[89].*)
10742 shlibpath_overrides_runpath=no
10745 shlibpath_overrides_runpath=yes
10749 shlibpath_overrides_runpath=yes
10754 libname_spec='$name'
10757 library_names_spec='$libname${shared_ext} $libname.a'
10758 dynamic_linker='OS/2 ld.exe'
10759 shlibpath_var=LIBPATH
10762 osf3* | osf4* | osf5*)
10766 soname_spec='${libname}${release}${shared_ext}$major'
10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10768 shlibpath_var=LD_LIBRARY_PATH
10769 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10770 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10782 soname_spec='${libname}${release}${shared_ext}$major'
10783 shlibpath_var=LD_LIBRARY_PATH
10784 shlibpath_overrides_runpath=yes
10785 hardcode_into_libs=yes
10786 # ldd complains unless libraries are executable
10787 postinstall_cmds='chmod +x $lib'
10792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10793 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10794 shlibpath_var=LD_LIBRARY_PATH
10795 shlibpath_overrides_runpath=yes
10796 if test "$with_gnu_ld" = yes; then
10804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10805 soname_spec='${libname}${release}${shared_ext}$major'
10806 shlibpath_var=LD_LIBRARY_PATH
10807 case $host_vendor in
10809 shlibpath_overrides_runpath=no
10811 runpath_var=LD_RUN_PATH
10819 shlibpath_overrides_runpath=no
10820 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10826 if test -d /usr/nec ;then
10828 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10829 soname_spec='$libname${shared_ext}.$major'
10830 shlibpath_var=LD_LIBRARY_PATH
10834 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10835 version_type=freebsd-elf
10838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10839 soname_spec='${libname}${release}${shared_ext}$major'
10840 shlibpath_var=LD_LIBRARY_PATH
10841 shlibpath_overrides_runpath=yes
10842 hardcode_into_libs=yes
10843 if test "$with_gnu_ld" = yes; then
10844 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10846 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10849 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10853 sys_lib_dlsearch_path_spec='/usr/lib'
10857 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10862 shlibpath_var=LD_LIBRARY_PATH
10863 shlibpath_overrides_runpath=no
10864 hardcode_into_libs=yes
10869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10870 soname_spec='${libname}${release}${shared_ext}$major'
10871 shlibpath_var=LD_LIBRARY_PATH
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10879 $as_echo "$dynamic_linker" >&6; }
10880 test "$dynamic_linker" = no && can_build_shared=no
10882 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10883 if test "$GCC" = yes; then
10884 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10887 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10888 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10890 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10891 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10981 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10983 if test -n "$hardcode_libdir_flag_spec" ||
10984 test -n "$runpath_var" ||
10985 test "X$hardcode_automatic" = "Xyes" ; then
10987 # We can hardcode non-existent directories.
10988 if test "$hardcode_direct" != no &&
10989 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10990 # have to relink, otherwise we might link with an installed library
10991 # when we should be linking with a yet-to-be-installed one
10992 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10993 test "$hardcode_minus_L" != no; then
10994 # Linking always hardcodes the temporary library directory.
10995 hardcode_action=relink
10997 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10998 hardcode_action=immediate
11001 # We cannot hardcode anything, or else we can only hardcode existing
11003 hardcode_action=unsupported
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11006 $as_echo "$hardcode_action" >&6; }
11008 if test "$hardcode_action" = relink ||
11009 test "$inherit_rpath" = yes; then
11010 # Fast installation is not supported
11011 enable_fast_install=no
11012 elif test "$shlibpath_overrides_runpath" = yes ||
11013 test "$enable_shared" = no; then
11014 # Fast installation is not necessary
11015 enable_fast_install=needless
11023 if test "x$enable_dlopen" != xyes; then
11024 enable_dlopen=unknown
11025 enable_dlopen_self=unknown
11026 enable_dlopen_self_static=unknown
11033 lt_cv_dlopen="load_add_on"
11035 lt_cv_dlopen_self=yes
11038 mingw* | pw32* | cegcc*)
11039 lt_cv_dlopen="LoadLibrary"
11044 lt_cv_dlopen="dlopen"
11049 # if libdl is installed we need to link against it
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11051 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11052 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11053 $as_echo_n "(cached) " >&6
11055 ac_check_lib_save_LIBS=$LIBS
11057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11058 /* end confdefs.h. */
11060 /* Override any GCC internal prototype to avoid an error.
11061 Use char because int might match the return type of a GCC
11062 builtin and then its argument prototype would still apply. */
11075 if ac_fn_c_try_link "$LINENO"; then :
11076 ac_cv_lib_dl_dlopen=yes
11078 ac_cv_lib_dl_dlopen=no
11080 rm -f core conftest.err conftest.$ac_objext \
11081 conftest$ac_exeext conftest.$ac_ext
11082 LIBS=$ac_check_lib_save_LIBS
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11085 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11086 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11087 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11090 lt_cv_dlopen="dyld"
11092 lt_cv_dlopen_self=yes
11099 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11100 if test "x$ac_cv_func_shl_load" = x""yes; then :
11101 lt_cv_dlopen="shl_load"
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11104 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11105 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11106 $as_echo_n "(cached) " >&6
11108 ac_check_lib_save_LIBS=$LIBS
11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111 /* end confdefs.h. */
11113 /* Override any GCC internal prototype to avoid an error.
11114 Use char because int might match the return type of a GCC
11115 builtin and then its argument prototype would still apply. */
11123 return shl_load ();
11128 if ac_fn_c_try_link "$LINENO"; then :
11129 ac_cv_lib_dld_shl_load=yes
11131 ac_cv_lib_dld_shl_load=no
11133 rm -f core conftest.err conftest.$ac_objext \
11134 conftest$ac_exeext conftest.$ac_ext
11135 LIBS=$ac_check_lib_save_LIBS
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11138 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11139 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11140 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11142 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11143 if test "x$ac_cv_func_dlopen" = x""yes; then :
11144 lt_cv_dlopen="dlopen"
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11147 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11148 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11149 $as_echo_n "(cached) " >&6
11151 ac_check_lib_save_LIBS=$LIBS
11153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154 /* end confdefs.h. */
11156 /* Override any GCC internal prototype to avoid an error.
11157 Use char because int might match the return type of a GCC
11158 builtin and then its argument prototype would still apply. */
11171 if ac_fn_c_try_link "$LINENO"; then :
11172 ac_cv_lib_dl_dlopen=yes
11174 ac_cv_lib_dl_dlopen=no
11176 rm -f core conftest.err conftest.$ac_objext \
11177 conftest$ac_exeext conftest.$ac_ext
11178 LIBS=$ac_check_lib_save_LIBS
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11181 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11182 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11183 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11186 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11187 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11188 $as_echo_n "(cached) " >&6
11190 ac_check_lib_save_LIBS=$LIBS
11191 LIBS="-lsvld $LIBS"
11192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11195 /* Override any GCC internal prototype to avoid an error.
11196 Use char because int might match the return type of a GCC
11197 builtin and then its argument prototype would still apply. */
11210 if ac_fn_c_try_link "$LINENO"; then :
11211 ac_cv_lib_svld_dlopen=yes
11213 ac_cv_lib_svld_dlopen=no
11215 rm -f core conftest.err conftest.$ac_objext \
11216 conftest$ac_exeext conftest.$ac_ext
11217 LIBS=$ac_check_lib_save_LIBS
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11220 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11221 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11222 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11225 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11226 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11227 $as_echo_n "(cached) " >&6
11229 ac_check_lib_save_LIBS=$LIBS
11231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11232 /* end confdefs.h. */
11234 /* Override any GCC internal prototype to avoid an error.
11235 Use char because int might match the return type of a GCC
11236 builtin and then its argument prototype would still apply. */
11244 return dld_link ();
11249 if ac_fn_c_try_link "$LINENO"; then :
11250 ac_cv_lib_dld_dld_link=yes
11252 ac_cv_lib_dld_dld_link=no
11254 rm -f core conftest.err conftest.$ac_objext \
11255 conftest$ac_exeext conftest.$ac_ext
11256 LIBS=$ac_check_lib_save_LIBS
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11259 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11260 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11261 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11282 if test "x$lt_cv_dlopen" != xno; then
11288 case $lt_cv_dlopen in
11290 save_CPPFLAGS="$CPPFLAGS"
11291 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11293 save_LDFLAGS="$LDFLAGS"
11294 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11297 LIBS="$lt_cv_dlopen_libs $LIBS"
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11300 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11301 if test "${lt_cv_dlopen_self+set}" = set; then :
11302 $as_echo_n "(cached) " >&6
11304 if test "$cross_compiling" = yes; then :
11305 lt_cv_dlopen_self=cross
11307 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11308 lt_status=$lt_dlunknown
11309 cat > conftest.$ac_ext <<_LT_EOF
11310 #line 11310 "configure"
11311 #include "confdefs.h"
11320 # define LT_DLGLOBAL RTLD_GLOBAL
11323 # define LT_DLGLOBAL DL_GLOBAL
11325 # define LT_DLGLOBAL 0
11329 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11330 find out it does not work in some platform. */
11331 #ifndef LT_DLLAZY_OR_NOW
11333 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11336 # define LT_DLLAZY_OR_NOW DL_LAZY
11339 # define LT_DLLAZY_OR_NOW RTLD_NOW
11342 # define LT_DLLAZY_OR_NOW DL_NOW
11344 # define LT_DLLAZY_OR_NOW 0
11351 void fnord() { int i=42;}
11354 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11355 int status = $lt_dlunknown;
11359 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11360 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11361 /* dlclose (self); */
11369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11370 (eval $ac_link) 2>&5
11372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11373 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11374 (./conftest; exit; ) >&5 2>/dev/null
11376 case x$lt_status in
11377 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11378 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11379 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11382 # compilation failed
11383 lt_cv_dlopen_self=no
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11391 $as_echo "$lt_cv_dlopen_self" >&6; }
11393 if test "x$lt_cv_dlopen_self" = xyes; then
11394 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11396 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11397 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11398 $as_echo_n "(cached) " >&6
11400 if test "$cross_compiling" = yes; then :
11401 lt_cv_dlopen_self_static=cross
11403 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11404 lt_status=$lt_dlunknown
11405 cat > conftest.$ac_ext <<_LT_EOF
11406 #line 11406 "configure"
11407 #include "confdefs.h"
11416 # define LT_DLGLOBAL RTLD_GLOBAL
11419 # define LT_DLGLOBAL DL_GLOBAL
11421 # define LT_DLGLOBAL 0
11425 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11426 find out it does not work in some platform. */
11427 #ifndef LT_DLLAZY_OR_NOW
11429 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11432 # define LT_DLLAZY_OR_NOW DL_LAZY
11435 # define LT_DLLAZY_OR_NOW RTLD_NOW
11438 # define LT_DLLAZY_OR_NOW DL_NOW
11440 # define LT_DLLAZY_OR_NOW 0
11447 void fnord() { int i=42;}
11450 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11451 int status = $lt_dlunknown;
11455 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11456 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11457 /* dlclose (self); */
11465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11466 (eval $ac_link) 2>&5
11468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11469 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11470 (./conftest; exit; ) >&5 2>/dev/null
11472 case x$lt_status in
11473 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11474 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11475 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11478 # compilation failed
11479 lt_cv_dlopen_self_static=no
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11487 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11490 CPPFLAGS="$save_CPPFLAGS"
11491 LDFLAGS="$save_LDFLAGS"
11496 case $lt_cv_dlopen_self in
11497 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11498 *) enable_dlopen_self=unknown ;;
11501 case $lt_cv_dlopen_self_static in
11502 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11503 *) enable_dlopen_self_static=unknown ;;
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11526 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11527 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11528 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11529 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11531 $as_echo "yes" >&6; }
11533 # FIXME - insert some real tests, host_os isn't really good enough
11536 if test -n "$STRIP" ; then
11537 striplib="$STRIP -x"
11538 old_striplib="$STRIP -S"
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11540 $as_echo "yes" >&6; }
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543 $as_echo "no" >&6; }
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548 $as_echo "no" >&6; }
11564 # Report which library types will actually be built
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11566 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11568 $as_echo "$can_build_shared" >&6; }
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11571 $as_echo_n "checking whether to build shared libraries... " >&6; }
11572 test "$can_build_shared" = "no" && enable_shared=no
11574 # On AIX, shared libraries and static libraries use the same namespace, and
11575 # are all built from PIC.
11578 test "$enable_shared" = yes && enable_static=no
11579 if test -n "$RANLIB"; then
11580 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11581 postinstall_cmds='$RANLIB $lib'
11586 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11587 test "$enable_shared" = yes && enable_static=no
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11592 $as_echo "$enable_shared" >&6; }
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11595 $as_echo_n "checking whether to build static libraries... " >&6; }
11596 # Make sure either enable_shared or enable_static is yes.
11597 test "$enable_shared" = yes || enable_static=yes
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11599 $as_echo "$enable_static" >&6; }
11606 ac_cpp='$CPP $CPPFLAGS'
11607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11625 ac_config_commands="$ac_config_commands libtool"
11630 # Only expand once:
11634 # AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
11636 # The tests for host and target for $enable_largefile require
11641 # As the $enable_largefile decision depends on --enable-plugins we must set it
11642 # even in directories otherwise not depending on the $plugins option.
11645 # Check whether --enable-plugins was given.
11646 if test "${enable_plugins+set}" = set; then :
11647 enableval=$enable_plugins; case "${enableval}" in
11648 yes | "") plugins=yes ;;
11659 sparc-*-solaris*|i[3-7]86-*-solaris*)
11660 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11661 # are mutually exclusive; and without procfs support, the bfd/ elf module
11662 # cannot provide certain routines such as elfcore_write_prpsinfo
11663 # or elfcore_write_prstatus. So unless the user explicitly requested
11664 # large-file support through the --enable-largefile switch, disable
11665 # large-file support in favor of procfs support.
11666 test "${target}" = "${host}" -a "x$plugins" = xno \
11667 && : ${enable_largefile="no"}
11671 # Check whether --enable-largefile was given.
11672 if test "${enable_largefile+set}" = set; then :
11673 enableval=$enable_largefile;
11676 if test "$enable_largefile" != no; then
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11679 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11680 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11681 $as_echo_n "(cached) " >&6
11683 ac_cv_sys_largefile_CC=no
11684 if test "$GCC" != yes; then
11687 # IRIX 6.2 and later do not support large files by default,
11688 # so use the C compiler's -n32 option if that helps.
11689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h. */
11691 #include <sys/types.h>
11692 /* Check that off_t can represent 2**63 - 1 correctly.
11693 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11694 since some C++ compilers masquerading as C compilers
11695 incorrectly reject 9223372036854775807. */
11696 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11697 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11698 && LARGE_OFF_T % 2147483647 == 1)
11708 if ac_fn_c_try_compile "$LINENO"; then :
11711 rm -f core conftest.err conftest.$ac_objext
11713 if ac_fn_c_try_compile "$LINENO"; then :
11714 ac_cv_sys_largefile_CC=' -n32'; break
11716 rm -f core conftest.err conftest.$ac_objext
11720 rm -f conftest.$ac_ext
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11724 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11725 if test "$ac_cv_sys_largefile_CC" != no; then
11726 CC=$CC$ac_cv_sys_largefile_CC
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11730 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11731 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11732 $as_echo_n "(cached) " >&6
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11737 #include <sys/types.h>
11738 /* Check that off_t can represent 2**63 - 1 correctly.
11739 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11740 since some C++ compilers masquerading as C compilers
11741 incorrectly reject 9223372036854775807. */
11742 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11743 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11744 && LARGE_OFF_T % 2147483647 == 1)
11754 if ac_fn_c_try_compile "$LINENO"; then :
11755 ac_cv_sys_file_offset_bits=no; break
11757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h. */
11760 #define _FILE_OFFSET_BITS 64
11761 #include <sys/types.h>
11762 /* Check that off_t can represent 2**63 - 1 correctly.
11763 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11764 since some C++ compilers masquerading as C compilers
11765 incorrectly reject 9223372036854775807. */
11766 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11767 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11768 && LARGE_OFF_T % 2147483647 == 1)
11778 if ac_fn_c_try_compile "$LINENO"; then :
11779 ac_cv_sys_file_offset_bits=64; break
11781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11782 ac_cv_sys_file_offset_bits=unknown
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11787 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11788 case $ac_cv_sys_file_offset_bits in #(
11791 cat >>confdefs.h <<_ACEOF
11792 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11797 if test $ac_cv_sys_file_offset_bits = unknown; then
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11799 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11800 if test "${ac_cv_sys_large_files+set}" = set; then :
11801 $as_echo_n "(cached) " >&6
11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h. */
11806 #include <sys/types.h>
11807 /* Check that off_t can represent 2**63 - 1 correctly.
11808 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11809 since some C++ compilers masquerading as C compilers
11810 incorrectly reject 9223372036854775807. */
11811 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11812 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11813 && LARGE_OFF_T % 2147483647 == 1)
11823 if ac_fn_c_try_compile "$LINENO"; then :
11824 ac_cv_sys_large_files=no; break
11826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11828 /* end confdefs.h. */
11829 #define _LARGE_FILES 1
11830 #include <sys/types.h>
11831 /* Check that off_t can represent 2**63 - 1 correctly.
11832 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11833 since some C++ compilers masquerading as C compilers
11834 incorrectly reject 9223372036854775807. */
11835 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11836 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11837 && LARGE_OFF_T % 2147483647 == 1)
11847 if ac_fn_c_try_compile "$LINENO"; then :
11848 ac_cv_sys_large_files=1; break
11850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11851 ac_cv_sys_large_files=unknown
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11856 $as_echo "$ac_cv_sys_large_files" >&6; }
11857 case $ac_cv_sys_large_files in #(
11860 cat >>confdefs.h <<_ACEOF
11861 #define _LARGE_FILES $ac_cv_sys_large_files
11871 if test "$plugins" = "yes"; then
11880 if test "$plugins" = "yes"; then
11881 if test "$enable_dlopen" != "yes" ; then
11883 Building BFD with plugin support requires a host that supports -ldl." "$LINENO" 5
11885 enable_targets="$enable_targets plugin"
11888 # Check whether --enable-64-bit-bfd was given.
11889 if test "${enable_64_bit_bfd+set}" = set; then :
11890 enableval=$enable_64_bit_bfd; case "${enableval}" in
11891 yes) want64=true ;;
11892 no) want64=false ;;
11893 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
11899 # Check whether --enable-targets was given.
11900 if test "${enable_targets+set}" = set; then :
11901 enableval=$enable_targets; case "${enableval}" in
11902 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
11904 no) enable_targets= ;;
11905 *) enable_targets=$enableval ;;
11910 # Check whether --with-mmap was given.
11911 if test "${with_mmap+set}" = set; then :
11912 withval=$with_mmap; case "${withval}" in
11913 yes) want_mmap=true ;;
11914 no) want_mmap=false ;;
11915 *) as_fn_error "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;;
11921 # Check whether --enable-secureplt was given.
11922 if test "${enable_secureplt+set}" = set; then :
11923 enableval=$enable_secureplt; case "${enableval}" in
11924 yes) use_secureplt=true ;;
11925 no) use_secureplt=false ;;
11926 *) as_fn_error "bad value ${enableval} for secureplt option" "$LINENO" 5 ;;
11929 use_secureplt=false
11931 if test $use_secureplt = true; then
11933 $as_echo "#define USE_SECUREPLT 1" >>confdefs.h
11937 DEBUGDIR=${libdir}/debug
11939 # Check whether --with-separate-debug-dir was given.
11940 if test "${with_separate_debug_dir+set}" = set; then :
11941 withval=$with_separate_debug_dir; DEBUGDIR="${withval}"
11946 # Check to see if we should allow the generation of
11947 # symbols with the ELF standard's STT_COMMON type.
11948 # Check whether --enable-elf-stt-common was given.
11949 if test "${enable_elf_stt_common+set}" = set; then :
11950 enableval=$enable_elf_stt_common; case "${enableval}" in
11951 yes) want_elf_stt_common=true ;;
11952 no) want_elf_stt_common=false ;;
11953 *) as_fn_error "bad value ${enableval} for ELF STT_COMMON option" "$LINENO" 5 ;;
11956 # We have to choose a default behaviour. For native builds we could
11957 # test whether the loader supports the STT_COMMON type, but that would
11958 # mean that built binaries could not be exported to older systems where
11959 # the loader does not support it. So by default we always choose to
11960 # disable this feature.
11961 want_elf_stt_common=false
11963 if test $want_elf_stt_common = true; then
11965 $as_echo "#define USE_STT_COMMON 1" >>confdefs.h
11971 # Check whether --with-pkgversion was given.
11972 if test "${with_pkgversion+set}" = set; then :
11973 withval=$with_pkgversion; case "$withval" in
11974 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
11976 *) PKGVERSION="($withval) " ;;
11979 PKGVERSION="(GNU Binutils) "
11987 # Check whether --with-bugurl was given.
11988 if test "${with_bugurl+set}" = set; then :
11989 withval=$with_bugurl; case "$withval" in
11990 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
11993 *) BUGURL="$withval"
11997 BUGURL="http://www.sourceware.org/bugzilla/"
12007 REPORT_BUGS_TO="<$BUGURL>"
12008 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
12016 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow"
12018 # Check whether --enable-werror was given.
12019 if test "${enable_werror+set}" = set; then :
12020 enableval=$enable_werror; case "${enableval}" in
12021 yes | y) ERROR_ON_WARNING="yes" ;;
12022 no | n) ERROR_ON_WARNING="no" ;;
12023 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12028 # Enable -Wno-format by default when using gcc on mingw
12031 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12032 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12038 # Enable -Werror by default when using gcc
12039 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12040 ERROR_ON_WARNING=yes
12044 if test "${ERROR_ON_WARNING}" = yes ; then
12045 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12046 NO_WERROR="-Wno-error"
12049 if test "${GCC}" = yes ; then
12050 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12053 # Check whether --enable-build-warnings was given.
12054 if test "${enable_build_warnings+set}" = set; then :
12055 enableval=$enable_build_warnings; case "${enableval}" in
12056 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
12057 no) if test "${GCC}" = yes ; then
12060 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12061 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
12062 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12063 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
12064 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12069 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12070 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12077 ac_config_headers="$ac_config_headers config.h:config.in"
12080 if test -z "$target" ; then
12081 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12086 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12087 # Check whether --enable-maintainer-mode was given.
12088 if test "${enable_maintainer_mode+set}" = set; then :
12089 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12091 USE_MAINTAINER_MODE=no
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12095 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12096 if test $USE_MAINTAINER_MODE = yes; then
12097 MAINTAINER_MODE_TRUE=
12098 MAINTAINER_MODE_FALSE='#'
12100 MAINTAINER_MODE_TRUE='#'
12101 MAINTAINER_MODE_FALSE=
12104 MAINT=$MAINTAINER_MODE_TRUE
12108 GENINSRC_NEVER_TRUE=
12109 GENINSRC_NEVER_FALSE='#'
12111 GENINSRC_NEVER_TRUE='#'
12112 GENINSRC_NEVER_FALSE=
12115 case ${build_alias} in
12116 "") build_noncanonical=${build} ;;
12117 *) build_noncanonical=${build_alias} ;;
12120 case ${host_alias} in
12121 "") host_noncanonical=${build_noncanonical} ;;
12122 *) host_noncanonical=${host_alias} ;;
12125 case ${target_alias} in
12126 "") target_noncanonical=${host_noncanonical} ;;
12127 *) target_noncanonical=${target_alias} ;;
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
12131 $as_echo_n "checking whether to install libbfd... " >&6; }
12132 # Check whether --enable-install-libbfd was given.
12133 if test "${enable_install_libbfd+set}" = set; then :
12134 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
12136 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12137 install_libbfd_p=yes
12139 install_libbfd_p=no
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
12144 $as_echo "$install_libbfd_p" >&6; }
12145 if test $install_libbfd_p = yes; then
12146 INSTALL_LIBBFD_TRUE=
12147 INSTALL_LIBBFD_FALSE='#'
12149 INSTALL_LIBBFD_TRUE='#'
12150 INSTALL_LIBBFD_FALSE=
12153 # Need _noncanonical variables for this.
12158 # libbfd.a is a host library containing target dependent code
12159 bfdlibdir='$(libdir)'
12160 bfdincludedir='$(includedir)'
12161 if test "${host}" != "${target}"; then
12162 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12163 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
12175 bfd_default_target_size=32
12179 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id ru"
12180 # If we haven't got the data from the intl directory,
12181 # assume NLS is disabled.
12190 if test -f ../intl/config.intl; then
12191 . ../intl/config.intl
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12194 $as_echo_n "checking whether NLS is requested... " >&6; }
12195 if test x"$USE_NLS" != xyes; then
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12197 $as_echo "no" >&6; }
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12200 $as_echo "yes" >&6; }
12202 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12206 $as_echo_n "checking for catalogs to be installed... " >&6; }
12207 # Look for .po and .gmo files in the source directory.
12210 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12211 # If there aren't any .gmo files the shell will give us the
12212 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12214 case "$cat" in *\**)
12217 # The quadruple backslash is collapsed to a double backslash
12218 # by the backticks, then collapsed again by the double quotes,
12219 # leaving us with one backslash in the sed expression (right
12220 # before the dot that mustn't act as a wildcard).
12221 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12222 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12223 # The user is allowed to set LINGUAS to a list of languages to
12224 # install catalogs for. If it's empty that means "all of them."
12225 if test "x$LINGUAS" = x; then
12226 CATALOGS="$CATALOGS $cat"
12227 XLINGUAS="$XLINGUAS $lang"
12229 case "$LINGUAS" in *$lang*)
12230 CATALOGS="$CATALOGS $cat"
12231 XLINGUAS="$XLINGUAS $lang"
12236 LINGUAS="$XLINGUAS"
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12238 $as_echo "$LINGUAS" >&6; }
12252 if test -n "$ac_aux_dir"; then
12253 case "$ac_aux_dir" in
12254 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12255 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12258 if test -z "$MKINSTALLDIRS"; then
12259 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12265 $as_echo_n "checking whether NLS is requested... " >&6; }
12266 # Check whether --enable-nls was given.
12267 if test "${enable_nls+set}" = set; then :
12268 enableval=$enable_nls; USE_NLS=$enableval
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12274 $as_echo "$USE_NLS" >&6; }
12281 # Prepare PATH_SEPARATOR.
12282 # The user is always right.
12283 if test "${PATH_SEPARATOR+set}" != set; then
12284 echo "#! /bin/sh" >conf$$.sh
12285 echo "exit 0" >>conf$$.sh
12287 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12295 # Find out how to test for executable files. Don't use a zero-byte file,
12296 # as systems may use methods other than mode bits to determine executability.
12297 cat >conf$$.file <<_ASEOF
12301 chmod +x conf$$.file
12302 if test -x conf$$.file >/dev/null 2>&1; then
12303 ac_executable_p="test -x"
12305 ac_executable_p="test -f"
12309 # Extract the first word of "msgfmt", so it can be a program name with args.
12310 set dummy msgfmt; ac_word=$2
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12312 $as_echo_n "checking for $ac_word... " >&6; }
12313 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12314 $as_echo_n "(cached) " >&6
12318 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12321 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12322 for ac_dir in $PATH; do
12324 test -z "$ac_dir" && ac_dir=.
12325 for ac_exec_ext in '' $ac_executable_extensions; do
12326 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12327 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12328 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12329 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12336 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12340 MSGFMT="$ac_cv_path_MSGFMT"
12341 if test "$MSGFMT" != ":"; then
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12343 $as_echo "$MSGFMT" >&6; }
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346 $as_echo "no" >&6; }
12349 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12350 set dummy gmsgfmt; ac_word=$2
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12352 $as_echo_n "checking for $ac_word... " >&6; }
12353 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12354 $as_echo_n "(cached) " >&6
12358 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362 for as_dir in $PATH
12365 test -z "$as_dir" && as_dir=.
12366 for ac_exec_ext in '' $ac_executable_extensions; do
12367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12368 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12376 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12380 GMSGFMT=$ac_cv_path_GMSGFMT
12381 if test -n "$GMSGFMT"; then
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12383 $as_echo "$GMSGFMT" >&6; }
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12386 $as_echo "no" >&6; }
12392 # Prepare PATH_SEPARATOR.
12393 # The user is always right.
12394 if test "${PATH_SEPARATOR+set}" != set; then
12395 echo "#! /bin/sh" >conf$$.sh
12396 echo "exit 0" >>conf$$.sh
12398 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12406 # Find out how to test for executable files. Don't use a zero-byte file,
12407 # as systems may use methods other than mode bits to determine executability.
12408 cat >conf$$.file <<_ASEOF
12412 chmod +x conf$$.file
12413 if test -x conf$$.file >/dev/null 2>&1; then
12414 ac_executable_p="test -x"
12416 ac_executable_p="test -f"
12420 # Extract the first word of "xgettext", so it can be a program name with args.
12421 set dummy xgettext; ac_word=$2
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12423 $as_echo_n "checking for $ac_word... " >&6; }
12424 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12425 $as_echo_n "(cached) " >&6
12427 case "$XGETTEXT" in
12429 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12432 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12433 for ac_dir in $PATH; do
12435 test -z "$ac_dir" && ac_dir=.
12436 for ac_exec_ext in '' $ac_executable_extensions; do
12437 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12438 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12439 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12440 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12447 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12451 XGETTEXT="$ac_cv_path_XGETTEXT"
12452 if test "$XGETTEXT" != ":"; then
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12454 $as_echo "$XGETTEXT" >&6; }
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457 $as_echo "no" >&6; }
12463 # Prepare PATH_SEPARATOR.
12464 # The user is always right.
12465 if test "${PATH_SEPARATOR+set}" != set; then
12466 echo "#! /bin/sh" >conf$$.sh
12467 echo "exit 0" >>conf$$.sh
12469 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12477 # Find out how to test for executable files. Don't use a zero-byte file,
12478 # as systems may use methods other than mode bits to determine executability.
12479 cat >conf$$.file <<_ASEOF
12483 chmod +x conf$$.file
12484 if test -x conf$$.file >/dev/null 2>&1; then
12485 ac_executable_p="test -x"
12487 ac_executable_p="test -f"
12491 # Extract the first word of "msgmerge", so it can be a program name with args.
12492 set dummy msgmerge; ac_word=$2
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12494 $as_echo_n "checking for $ac_word... " >&6; }
12495 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12496 $as_echo_n "(cached) " >&6
12498 case "$MSGMERGE" in
12500 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12503 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12504 for ac_dir in $PATH; do
12506 test -z "$ac_dir" && ac_dir=.
12507 for ac_exec_ext in '' $ac_executable_extensions; do
12508 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12509 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12510 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12517 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12521 MSGMERGE="$ac_cv_path_MSGMERGE"
12522 if test "$MSGMERGE" != ":"; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12524 $as_echo "$MSGMERGE" >&6; }
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527 $as_echo "no" >&6; }
12531 if test "$GMSGFMT" != ":"; then
12532 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12533 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12536 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12538 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12543 if test "$XGETTEXT" != ":"; then
12544 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12545 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12549 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12555 ac_config_commands="$ac_config_commands default-1"
12559 # Permit host specific settings.
12560 . ${srcdir}/configure.host
12565 BFD_HOST_64BIT_LONG=0
12566 BFD_HOST_64BIT_LONG_LONG=0
12567 BFD_HOST_64_BIT_DEFINED=0
12570 BFD_HOSTPTR_T="unsigned long"
12572 # The cast to long int works around a bug in the HP C Compiler
12573 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12574 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12575 # This bug is HP SR number 8606223364.
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12577 $as_echo_n "checking size of long long... " >&6; }
12578 if test "${ac_cv_sizeof_long_long+set}" = set; then :
12579 $as_echo_n "(cached) " >&6
12581 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12584 if test "$ac_cv_type_long_long" = yes; then
12585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12587 { as_fn_set_status 77
12588 as_fn_error "cannot compute sizeof (long long)
12589 See \`config.log' for more details." "$LINENO" 5; }; }
12591 ac_cv_sizeof_long_long=0
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12597 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12601 cat >>confdefs.h <<_ACEOF
12602 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12606 # The cast to long int works around a bug in the HP C Compiler
12607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12609 # This bug is HP SR number 8606223364.
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12611 $as_echo_n "checking size of void *... " >&6; }
12612 if test "${ac_cv_sizeof_void_p+set}" = set; then :
12613 $as_echo_n "(cached) " >&6
12615 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12618 if test "$ac_cv_type_void_p" = yes; then
12619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12621 { as_fn_set_status 77
12622 as_fn_error "cannot compute sizeof (void *)
12623 See \`config.log' for more details." "$LINENO" 5; }; }
12625 ac_cv_sizeof_void_p=0
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12631 $as_echo "$ac_cv_sizeof_void_p" >&6; }
12635 cat >>confdefs.h <<_ACEOF
12636 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12640 # The cast to long int works around a bug in the HP C Compiler
12641 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12642 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12643 # This bug is HP SR number 8606223364.
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12645 $as_echo_n "checking size of long... " >&6; }
12646 if test "${ac_cv_sizeof_long+set}" = set; then :
12647 $as_echo_n "(cached) " >&6
12649 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12652 if test "$ac_cv_type_long" = yes; then
12653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12655 { as_fn_set_status 77
12656 as_fn_error "cannot compute sizeof (long)
12657 See \`config.log' for more details." "$LINENO" 5; }; }
12659 ac_cv_sizeof_long=0
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12665 $as_echo "$ac_cv_sizeof_long" >&6; }
12669 cat >>confdefs.h <<_ACEOF
12670 #define SIZEOF_LONG $ac_cv_sizeof_long
12675 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12679 if test "x${ac_cv_sizeof_long}" = "x8"; then
12680 BFD_HOST_64BIT_LONG=1
12681 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12682 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12683 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12684 BFD_HOST_64BIT_LONG_LONG=1
12685 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12686 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
12687 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12688 BFD_HOSTPTR_T="unsigned long long"
12692 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12693 BFD_HOST_64_BIT_DEFINED=1
12694 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12695 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
12705 # Put a plausible default for CC_FOR_BUILD in Makefile.
12706 if test -z "$CC_FOR_BUILD"; then
12707 if test "x$cross_compiling" = "xno"; then
12708 CC_FOR_BUILD='$(CC)'
12714 # Also set EXEEXT_FOR_BUILD.
12715 if test "x$cross_compiling" = "xno"; then
12716 EXEEXT_FOR_BUILD='$(EXEEXT)'
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12719 $as_echo_n "checking for build system executable suffix... " >&6; }
12720 if test "${bfd_cv_build_exeext+set}" = set; then :
12721 $as_echo_n "(cached) " >&6
12724 echo 'int main () { return 0; }' > conftest.c
12725 bfd_cv_build_exeext=
12726 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12727 for file in conftest.*; do
12729 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12730 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12734 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12737 $as_echo "$bfd_cv_build_exeext" >&6; }
12738 EXEEXT_FOR_BUILD=""
12739 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12743 for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
12745 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12746 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12747 eval as_val=\$$as_ac_Header
12748 if test "x$as_val" = x""yes; then :
12749 cat >>confdefs.h <<_ACEOF
12750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12757 for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
12759 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12760 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12761 eval as_val=\$$as_ac_Header
12762 if test "x$as_val" = x""yes; then :
12763 cat >>confdefs.h <<_ACEOF
12764 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12773 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12775 acx_cv_header_stdint=stddef.h
12776 acx_cv_header_stdint_kind="(already complete)"
12777 for i in stdint.h $inttype_headers; do
12778 unset ac_cv_type_uintptr_t
12779 unset ac_cv_type_uintmax_t
12780 unset ac_cv_type_int_least32_t
12781 unset ac_cv_type_int_fast32_t
12782 unset ac_cv_type_uint64_t
12783 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12784 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12787 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
12788 acx_cv_header_stdint=$i
12793 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12796 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12799 acx_cv_header_stdint_kind="(mostly complete)"
12802 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12805 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
12808 acx_cv_header_stdint_kind="(mostly complete)"
12811 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12814 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
12817 acx_cv_header_stdint_kind="(mostly complete)"
12820 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12823 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12826 acx_cv_header_stdint_kind="(lacks uint64_t)"
12831 if test "$acx_cv_header_stdint" = stddef.h; then
12832 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12833 for i in stdint.h $inttype_headers; do
12834 unset ac_cv_type_uintptr_t
12835 unset ac_cv_type_uint32_t
12836 unset ac_cv_type_uint64_t
12837 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12838 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12841 if test "x$ac_cv_type_uint32_t" = x""yes; then :
12842 acx_cv_header_stdint=$i
12847 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12850 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12854 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12857 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12864 if test "$acx_cv_header_stdint" = stddef.h; then
12865 acx_cv_header_stdint_kind="(u_intXX_t style)"
12866 for i in sys/types.h $inttype_headers; do
12867 unset ac_cv_type_u_int32_t
12868 unset ac_cv_type_u_int64_t
12869 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12870 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12873 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
12874 acx_cv_header_stdint=$i
12879 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12882 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
12889 if test "$acx_cv_header_stdint" = stddef.h; then
12890 acx_cv_header_stdint_kind="(using manual detection)"
12893 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12894 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12895 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12896 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12897 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12899 # ----------------- Summarize what we found so far
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in bfd_stdint.h" >&5
12902 $as_echo_n "checking what to include in bfd_stdint.h... " >&6; }
12904 case `$as_basename -- bfd_stdint.h ||
12905 $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
12906 Xbfd_stdint.h : 'X\(//\)$' \| \
12907 Xbfd_stdint.h : 'X\(/\)' \| . 2>/dev/null ||
12908 $as_echo X/bfd_stdint.h |
12909 sed '/^.*\/\([^/][^/]*\)\/*$/{
12922 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12923 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12924 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12925 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12930 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12932 # ----------------- done included file, check C basic types --------
12934 # Lacking an uintptr_t? Test size of void *
12935 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12936 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12937 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12938 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12939 # This bug is HP SR number 8606223364.
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12941 $as_echo_n "checking size of void *... " >&6; }
12942 if test "${ac_cv_sizeof_void_p+set}" = set; then :
12943 $as_echo_n "(cached) " >&6
12945 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12948 if test "$ac_cv_type_void_p" = yes; then
12949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12951 { as_fn_set_status 77
12952 as_fn_error "cannot compute sizeof (void *)
12953 See \`config.log' for more details." "$LINENO" 5; }; }
12955 ac_cv_sizeof_void_p=0
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12961 $as_echo "$ac_cv_sizeof_void_p" >&6; }
12965 cat >>confdefs.h <<_ACEOF
12966 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12972 # Lacking an uint64_t? Test size of long
12973 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12974 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12975 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12976 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12977 # This bug is HP SR number 8606223364.
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12979 $as_echo_n "checking size of long... " >&6; }
12980 if test "${ac_cv_sizeof_long+set}" = set; then :
12981 $as_echo_n "(cached) " >&6
12983 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12986 if test "$ac_cv_type_long" = yes; then
12987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12989 { as_fn_set_status 77
12990 as_fn_error "cannot compute sizeof (long)
12991 See \`config.log' for more details." "$LINENO" 5; }; }
12993 ac_cv_sizeof_long=0
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12999 $as_echo "$ac_cv_sizeof_long" >&6; }
13003 cat >>confdefs.h <<_ACEOF
13004 #define SIZEOF_LONG $ac_cv_sizeof_long
13010 if test $acx_cv_header_stdint = stddef.h; then
13011 # Lacking a good header? Test size of everything and deduce all types.
13012 # The cast to long int works around a bug in the HP C Compiler
13013 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13014 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13015 # This bug is HP SR number 8606223364.
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13017 $as_echo_n "checking size of int... " >&6; }
13018 if test "${ac_cv_sizeof_int+set}" = set; then :
13019 $as_echo_n "(cached) " >&6
13021 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13024 if test "$ac_cv_type_int" = yes; then
13025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13027 { as_fn_set_status 77
13028 as_fn_error "cannot compute sizeof (int)
13029 See \`config.log' for more details." "$LINENO" 5; }; }
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13037 $as_echo "$ac_cv_sizeof_int" >&6; }
13041 cat >>confdefs.h <<_ACEOF
13042 #define SIZEOF_INT $ac_cv_sizeof_int
13046 # The cast to long int works around a bug in the HP C Compiler
13047 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13048 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13049 # This bug is HP SR number 8606223364.
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13051 $as_echo_n "checking size of short... " >&6; }
13052 if test "${ac_cv_sizeof_short+set}" = set; then :
13053 $as_echo_n "(cached) " >&6
13055 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13058 if test "$ac_cv_type_short" = yes; then
13059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13061 { as_fn_set_status 77
13062 as_fn_error "cannot compute sizeof (short)
13063 See \`config.log' for more details." "$LINENO" 5; }; }
13065 ac_cv_sizeof_short=0
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13071 $as_echo "$ac_cv_sizeof_short" >&6; }
13075 cat >>confdefs.h <<_ACEOF
13076 #define SIZEOF_SHORT $ac_cv_sizeof_short
13080 # The cast to long int works around a bug in the HP C Compiler
13081 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13082 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13083 # This bug is HP SR number 8606223364.
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13085 $as_echo_n "checking size of char... " >&6; }
13086 if test "${ac_cv_sizeof_char+set}" = set; then :
13087 $as_echo_n "(cached) " >&6
13089 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
13092 if test "$ac_cv_type_char" = yes; then
13093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13095 { as_fn_set_status 77
13096 as_fn_error "cannot compute sizeof (char)
13097 See \`config.log' for more details." "$LINENO" 5; }; }
13099 ac_cv_sizeof_char=0
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13105 $as_echo "$ac_cv_sizeof_char" >&6; }
13109 cat >>confdefs.h <<_ACEOF
13110 #define SIZEOF_CHAR $ac_cv_sizeof_char
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13116 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
13117 case "$ac_cv_sizeof_char" in
13118 1) acx_cv_type_int8_t=char ;;
13119 *) { as_fn_set_status please report a bug
13120 as_fn_error "no 8-bit type" "$LINENO" 5; }
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13123 $as_echo "$acx_cv_type_int8_t" >&6; }
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13126 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
13127 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13128 2:*) acx_cv_type_int16_t=int ;;
13129 *:2) acx_cv_type_int16_t=short ;;
13130 *) { as_fn_set_status please report a bug
13131 as_fn_error "no 16-bit type" "$LINENO" 5; }
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13134 $as_echo "$acx_cv_type_int16_t" >&6; }
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13137 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
13138 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13139 4:*) acx_cv_type_int32_t=int ;;
13140 *:4) acx_cv_type_int32_t=long ;;
13141 *) { as_fn_set_status please report a bug
13142 as_fn_error "no 32-bit type" "$LINENO" 5; }
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13145 $as_echo "$acx_cv_type_int32_t" >&6; }
13148 # These tests are here to make the output prettier
13150 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13151 case "$ac_cv_sizeof_long" in
13152 8) acx_cv_type_int64_t=long ;;
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13155 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13157 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13160 # Now we can use the above types
13162 if test "$ac_cv_type_uintptr_t" != yes; then
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13164 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13165 case $ac_cv_sizeof_void_p in
13166 2) acx_cv_type_intptr_t=int16_t ;;
13167 4) acx_cv_type_intptr_t=int32_t ;;
13168 8) acx_cv_type_intptr_t=int64_t ;;
13169 *) { as_fn_set_status please report a bug
13170 as_fn_error "no equivalent for intptr_t" "$LINENO" 5; }
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13173 $as_echo "$acx_cv_type_intptr_t" >&6; }
13176 # ----------------- done all checks, emit header -------------
13177 ac_config_commands="$ac_config_commands bfd_stdint.h"
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13182 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13183 if test "${ac_cv_header_time+set}" = set; then :
13184 $as_echo_n "(cached) " >&6
13186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187 /* end confdefs.h. */
13188 #include <sys/types.h>
13189 #include <sys/time.h>
13195 if ((struct tm *) 0)
13201 if ac_fn_c_try_compile "$LINENO"; then :
13202 ac_cv_header_time=yes
13204 ac_cv_header_time=no
13206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13209 $as_echo "$ac_cv_header_time" >&6; }
13210 if test $ac_cv_header_time = yes; then
13212 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13216 ac_header_dirent=no
13217 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13218 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13220 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13222 $as_echo_n "(cached) " >&6
13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h. */
13226 #include <sys/types.h>
13238 if ac_fn_c_try_compile "$LINENO"; then :
13239 eval "$as_ac_Header=yes"
13241 eval "$as_ac_Header=no"
13243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13245 eval ac_res=\$$as_ac_Header
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13247 $as_echo "$ac_res" >&6; }
13248 eval as_val=\$$as_ac_Header
13249 if test "x$as_val" = x""yes; then :
13250 cat >>confdefs.h <<_ACEOF
13251 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13254 ac_header_dirent=$ac_hdr; break
13258 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13259 if test $ac_header_dirent = dirent.h; then
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13261 $as_echo_n "checking for library containing opendir... " >&6; }
13262 if test "${ac_cv_search_opendir+set}" = set; then :
13263 $as_echo_n "(cached) " >&6
13265 ac_func_search_save_LIBS=$LIBS
13266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267 /* end confdefs.h. */
13269 /* Override any GCC internal prototype to avoid an error.
13270 Use char because int might match the return type of a GCC
13271 builtin and then its argument prototype would still apply. */
13284 for ac_lib in '' dir; do
13285 if test -z "$ac_lib"; then
13286 ac_res="none required"
13289 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13291 if ac_fn_c_try_link "$LINENO"; then :
13292 ac_cv_search_opendir=$ac_res
13294 rm -f core conftest.err conftest.$ac_objext \
13296 if test "${ac_cv_search_opendir+set}" = set; then :
13300 if test "${ac_cv_search_opendir+set}" = set; then :
13303 ac_cv_search_opendir=no
13305 rm conftest.$ac_ext
13306 LIBS=$ac_func_search_save_LIBS
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13309 $as_echo "$ac_cv_search_opendir" >&6; }
13310 ac_res=$ac_cv_search_opendir
13311 if test "$ac_res" != no; then :
13312 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13318 $as_echo_n "checking for library containing opendir... " >&6; }
13319 if test "${ac_cv_search_opendir+set}" = set; then :
13320 $as_echo_n "(cached) " >&6
13322 ac_func_search_save_LIBS=$LIBS
13323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13324 /* end confdefs.h. */
13326 /* Override any GCC internal prototype to avoid an error.
13327 Use char because int might match the return type of a GCC
13328 builtin and then its argument prototype would still apply. */
13341 for ac_lib in '' x; do
13342 if test -z "$ac_lib"; then
13343 ac_res="none required"
13346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13348 if ac_fn_c_try_link "$LINENO"; then :
13349 ac_cv_search_opendir=$ac_res
13351 rm -f core conftest.err conftest.$ac_objext \
13353 if test "${ac_cv_search_opendir+set}" = set; then :
13357 if test "${ac_cv_search_opendir+set}" = set; then :
13360 ac_cv_search_opendir=no
13362 rm conftest.$ac_ext
13363 LIBS=$ac_func_search_save_LIBS
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13366 $as_echo "$ac_cv_search_opendir" >&6; }
13367 ac_res=$ac_cv_search_opendir
13368 if test "$ac_res" != no; then :
13369 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13376 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13377 if test "${gcc_cv_header_string+set}" = set; then :
13378 $as_echo_n "(cached) " >&6
13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13382 #include <string.h>
13383 #include <strings.h>
13392 if ac_fn_c_try_compile "$LINENO"; then :
13393 gcc_cv_header_string=yes
13395 gcc_cv_header_string=no
13397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13400 $as_echo "$gcc_cv_header_string" >&6; }
13401 if test $gcc_cv_header_string = yes; then
13403 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13407 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
13409 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13410 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13411 eval as_val=\$$as_ac_var
13412 if test "x$as_val" = x""yes; then :
13413 cat >>confdefs.h <<_ACEOF
13414 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13420 for ac_func in strtoull
13422 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13423 if test "x$ac_cv_func_strtoull" = x""yes; then :
13424 cat >>confdefs.h <<_ACEOF
13425 #define HAVE_STRTOULL 1
13432 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
13433 if test "x$ac_cv_have_decl_basename" = x""yes; then :
13439 cat >>confdefs.h <<_ACEOF
13440 #define HAVE_DECL_BASENAME $ac_have_decl
13443 ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
13444 if test "x$ac_cv_have_decl_ftello" = x""yes; then :
13450 cat >>confdefs.h <<_ACEOF
13451 #define HAVE_DECL_FTELLO $ac_have_decl
13454 ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default"
13455 if test "x$ac_cv_have_decl_ftello64" = x""yes; then :
13461 cat >>confdefs.h <<_ACEOF
13462 #define HAVE_DECL_FTELLO64 $ac_have_decl
13465 ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
13466 if test "x$ac_cv_have_decl_fseeko" = x""yes; then :
13472 cat >>confdefs.h <<_ACEOF
13473 #define HAVE_DECL_FSEEKO $ac_have_decl
13476 ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default"
13477 if test "x$ac_cv_have_decl_fseeko64" = x""yes; then :
13483 cat >>confdefs.h <<_ACEOF
13484 #define HAVE_DECL_FSEEKO64 $ac_have_decl
13490 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13492 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13496 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
13497 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
13503 cat >>confdefs.h <<_ACEOF
13504 #define HAVE_DECL_FFS $ac_have_decl
13507 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
13508 if test "x$ac_cv_have_decl_free" = x""yes; then :
13514 cat >>confdefs.h <<_ACEOF
13515 #define HAVE_DECL_FREE $ac_have_decl
13518 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13519 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
13525 cat >>confdefs.h <<_ACEOF
13526 #define HAVE_DECL_GETENV $ac_have_decl
13529 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
13530 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
13536 cat >>confdefs.h <<_ACEOF
13537 #define HAVE_DECL_MALLOC $ac_have_decl
13540 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
13541 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
13547 cat >>confdefs.h <<_ACEOF
13548 #define HAVE_DECL_REALLOC $ac_have_decl
13551 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13552 if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
13558 cat >>confdefs.h <<_ACEOF
13559 #define HAVE_DECL_STPCPY $ac_have_decl
13562 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13563 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
13569 cat >>confdefs.h <<_ACEOF
13570 #define HAVE_DECL_STRSTR $ac_have_decl
13573 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13574 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
13580 cat >>confdefs.h <<_ACEOF
13581 #define HAVE_DECL_SNPRINTF $ac_have_decl
13584 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13585 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13591 cat >>confdefs.h <<_ACEOF
13592 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13596 # Link in zlib if we can. This allows us to read compressed debug sections.
13597 # This is used only by compress.c.
13599 # See if the user specified whether he wants zlib support or not.
13601 # Check whether --with-zlib was given.
13602 if test "${with_zlib+set}" = set; then :
13603 withval=$with_zlib;
13609 if test "$with_zlib" != "no"; then
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
13611 $as_echo_n "checking for library containing zlibVersion... " >&6; }
13612 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13613 $as_echo_n "(cached) " >&6
13615 ac_func_search_save_LIBS=$LIBS
13616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13617 /* end confdefs.h. */
13619 /* Override any GCC internal prototype to avoid an error.
13620 Use char because int might match the return type of a GCC
13621 builtin and then its argument prototype would still apply. */
13625 char zlibVersion ();
13629 return zlibVersion ();
13634 for ac_lib in '' z; do
13635 if test -z "$ac_lib"; then
13636 ac_res="none required"
13639 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13641 if ac_fn_c_try_link "$LINENO"; then :
13642 ac_cv_search_zlibVersion=$ac_res
13644 rm -f core conftest.err conftest.$ac_objext \
13646 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13650 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13653 ac_cv_search_zlibVersion=no
13655 rm conftest.$ac_ext
13656 LIBS=$ac_func_search_save_LIBS
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
13659 $as_echo "$ac_cv_search_zlibVersion" >&6; }
13660 ac_res=$ac_cv_search_zlibVersion
13661 if test "$ac_res" != no; then :
13662 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13663 for ac_header in zlib.h
13665 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13666 if test "x$ac_cv_header_zlib_h" = x""yes; then :
13667 cat >>confdefs.h <<_ACEOF
13668 #define HAVE_ZLIB_H 1
13677 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
13678 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
13683 # If we are configured native, pick a core file support file.
13687 if test "${target}" = "${host}"; then
13689 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
13693 COREFILE=trad-core.lo
13694 TRAD_HEADER='"hosts/alphalinux.h"'
13696 alpha*-*-netbsd* | alpha*-*-openbsd*)
13697 COREFILE=netbsd-core.lo
13699 alpha*-*-*) COREFILE=osf-core.lo ;;
13700 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
13702 arm-*-netbsd* | arm-*-openbsd*)
13703 COREFILE=netbsd-core.lo
13705 arm-*-riscix) COREFILE=trad-core.lo ;;
13706 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
13707 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
13708 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
13709 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
13710 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
13711 hppa*-*-netbsd* | hppa*-*-openbsd*)
13712 COREFILE=netbsd-core.lo
13716 COREFILE=trad-core.lo
13717 TRAD_HEADER='"hosts/i370linux.h"'
13720 i[3-7]86-sequent-bsd*)
13721 COREFILE=trad-core.lo
13722 TRAD_HEADER='"hosts/symmetry.h"'
13724 i[3-7]86-sequent-sysv4*) ;;
13725 i[3-7]86-sequent-sysv*)
13726 COREFILE=trad-core.lo
13727 TRAD_HEADER='"hosts/symmetry.h"'
13732 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
13733 COREFILE=trad-core.lo
13734 TRAD_HEADER='"hosts/i386bsd.h"'
13736 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
13738 TRAD_HEADER='"hosts/i386bsd.h"'
13740 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
13741 COREFILE=netbsd-core.lo
13743 i[3-7]86-esix-sysv3*)
13744 COREFILE=trad-core.lo
13745 TRAD_HEADER='"hosts/esix.h"'
13747 i[3-7]86-*-sco3.2v5*)
13748 COREFILE=sco5-core.lo
13750 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
13751 COREFILE=trad-core.lo
13752 TRAD_HEADER='"hosts/i386sco.h"'
13755 COREFILE=trad-core.lo
13756 TRAD_HEADER='"hosts/i386mach3.h"'
13758 i[3-7]86-*-linux-*)
13759 COREFILE=trad-core.lo
13760 TRAD_HEADER='"hosts/i386linux.h"'
13762 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
13763 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
13764 i860-*-mach3* | i860-*-osf1*)
13765 COREFILE=trad-core.lo
13766 TRAD_HEADER='"hosts/i860mach3.h"'
13768 mips-*-netbsd* | mips*-*-openbsd*)
13769 COREFILE=netbsd-core.lo
13772 COREFILE=trad-core.lo
13773 TRAD_HEADER='"hosts/decstation.h"'
13775 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
13776 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
13777 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
13779 mips-*-sysv* | mips-*-riscos*)
13780 COREFILE=trad-core.lo
13781 TRAD_HEADER='"hosts/riscos.h"'
13784 COREFILE=trad-core.lo
13785 TRAD_HEADER='"hosts/news-mips.h"'
13788 COREFILE=trad-core.lo
13789 TRAD_HEADER='"hosts/dpx2.h"'
13791 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
13793 COREFILE=trad-core.lo
13794 TRAD_HEADER='"hosts/hp300bsd.h"'
13797 COREFILE=trad-core.lo
13798 TRAD_HEADER='"hosts/m68klinux.h"'
13800 m68*-motorola-sysv*)
13801 COREFILE=trad-core.lo
13802 TRAD_HEADER='"hosts/delta68.h"'
13805 COREFILE=trad-core.lo
13806 TRAD_HEADER='"hosts/news.h"'
13808 m68*-*-netbsd* | m68*-*-openbsd*)
13809 COREFILE=netbsd-core.lo
13812 COREFILE=trad-core.lo
13813 TRAD_HEADER='"hosts/m68kaux.h"'
13817 m88*-motorola-sysv*)
13818 COREFILE=ptrace-core.lo
13821 COREFILE=trad-core.lo
13822 TRAD_HEADER='"hosts/m88kmach3.h"'
13825 COREFILE=netbsd-core.lo
13828 COREFILE=trad-core.lo
13829 TRAD_HEADER='"hosts/pc532mach.h"'
13831 ns32k-*-netbsd* | ns32k-*-openbsd*)
13832 COREFILE=netbsd-core.lo
13835 COREFILE=lynx-core.lo
13837 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].*)
13838 COREFILE=rs6000-core.lo
13839 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
13841 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
13842 COREFILE=rs6000-core.lo
13843 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
13844 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
13845 # have c_impl as a member of struct core_dumpx
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5
13847 $as_echo_n "checking for c_impl in struct core_dumpx... " >&6; }
13848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849 /* end confdefs.h. */
13854 struct core_dumpx c; c.c_impl = 0;
13859 if ac_fn_c_try_compile "$LINENO"; then :
13861 $as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13864 $as_echo "yes" >&6; }
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13867 $as_echo "no" >&6; }
13869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13871 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
13872 rs6000-*-*) COREFILE=rs6000-core.lo ;;
13873 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
13874 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
13875 powerpc-*-beos*) ;;
13876 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
13878 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
13879 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
13880 s390*-*-*) COREFILE=trad-core.lo ;;
13881 sh*-*-netbsd* | sh*-*-openbsd*)
13882 COREFILE=netbsd-core.lo
13884 sparc-*-netbsd* | sparc*-*-openbsd*)
13885 COREFILE=netbsd-core.lo
13888 COREFILE=trad-core.lo
13889 TRAD_HEADER='"hosts/tahoe.h"'
13891 vax-*-netbsd* | vax-*-openbsd*)
13892 COREFILE=netbsd-core.lo
13895 COREFILE=trad-core.lo
13896 TRAD_HEADER='"hosts/vaxult2.h"'
13899 COREFILE=trad-core.lo
13900 TRAD_HEADER='"hosts/vaxult2.h"'
13903 COREFILE=trad-core.lo
13904 TRAD_HEADER='"hosts/vaxlinux.h"'
13907 COREFILE=trad-core.lo
13908 TRAD_HEADER='"hosts/vaxbsd.h"'
13910 x86_64-*-netbsd* | x86_64-*-openbsd*)
13911 COREFILE=netbsd-core.lo
13915 case "$COREFILE" in
13916 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
13917 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
13918 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
13919 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
13920 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
13921 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
13922 osf-core.lo) COREFLAG=-DOSF_CORE ;;
13923 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
13924 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
13925 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
13926 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
13929 # ELF corefile support has several flavors, but all of
13930 # them use something called <sys/procfs.h>
13931 for ac_header in sys/procfs.h
13933 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
13934 if test "x$ac_cv_header_sys_procfs_h" = x""yes; then :
13935 cat >>confdefs.h <<_ACEOF
13936 #define HAVE_SYS_PROCFS_H 1
13943 if test "$ac_cv_header_sys_procfs_h" = yes; then
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5
13945 $as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; }
13946 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then :
13947 $as_echo_n "(cached) " >&6
13949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950 /* end confdefs.h. */
13953 /* Needed for new procfs interface on sparc-solaris. */
13954 #define _STRUCTURED_PROC 1
13955 #include <sys/procfs.h>
13964 if ac_fn_c_try_compile "$LINENO"; then :
13965 bfd_cv_have_sys_procfs_type_prstatus_t=yes
13967 bfd_cv_have_sys_procfs_type_prstatus_t=no
13970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13973 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
13975 $as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
13979 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5
13982 $as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; }
13983 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then :
13984 $as_echo_n "(cached) " >&6
13986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13987 /* end confdefs.h. */
13990 /* Needed for new procfs interface on sparc-solaris. */
13991 #define _STRUCTURED_PROC 1
13992 #include <sys/procfs.h>
14001 if ac_fn_c_try_compile "$LINENO"; then :
14002 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
14004 bfd_cv_have_sys_procfs_type_prstatus32_t=no
14007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
14012 $as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
14016 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5
14019 $as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; }
14020 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then :
14021 $as_echo_n "(cached) " >&6
14023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h. */
14027 /* Needed for new procfs interface on sparc-solaris. */
14028 #define _STRUCTURED_PROC 1
14029 #include <sys/procfs.h>
14033 prstatus_t avar; void* aref = (void*) &avar.pr_who
14038 if ac_fn_c_try_compile "$LINENO"; then :
14039 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
14041 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
14044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14047 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
14049 $as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
14053 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
14056 $as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; }
14057 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then :
14058 $as_echo_n "(cached) " >&6
14060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14061 /* end confdefs.h. */
14064 /* Needed for new procfs interface on sparc-solaris. */
14065 #define _STRUCTURED_PROC 1
14066 #include <sys/procfs.h>
14070 prstatus32_t avar; void* aref = (void*) &avar.pr_who
14075 if ac_fn_c_try_compile "$LINENO"; then :
14076 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
14078 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
14081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14084 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
14086 $as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
14090 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
14093 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
14094 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
14095 $as_echo_n "(cached) " >&6
14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h. */
14101 /* Needed for new procfs interface on sparc-solaris. */
14102 #define _STRUCTURED_PROC 1
14103 #include <sys/procfs.h>
14112 if ac_fn_c_try_compile "$LINENO"; then :
14113 bfd_cv_have_sys_procfs_type_pstatus_t=yes
14115 bfd_cv_have_sys_procfs_type_pstatus_t=no
14118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14121 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
14123 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
14127 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5
14130 $as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; }
14131 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then :
14132 $as_echo_n "(cached) " >&6
14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135 /* end confdefs.h. */
14138 /* Needed for new procfs interface on sparc-solaris. */
14139 #define _STRUCTURED_PROC 1
14140 #include <sys/procfs.h>
14149 if ac_fn_c_try_compile "$LINENO"; then :
14150 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
14152 bfd_cv_have_sys_procfs_type_pxstatus_t=no
14155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14158 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
14160 $as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
14164 $as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5
14167 $as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; }
14168 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then :
14169 $as_echo_n "(cached) " >&6
14171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14172 /* end confdefs.h. */
14175 /* Needed for new procfs interface on sparc-solaris. */
14176 #define _STRUCTURED_PROC 1
14177 #include <sys/procfs.h>
14186 if ac_fn_c_try_compile "$LINENO"; then :
14187 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
14189 bfd_cv_have_sys_procfs_type_pstatus32_t=no
14192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14195 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
14197 $as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
14201 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5
14204 $as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; }
14205 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then :
14206 $as_echo_n "(cached) " >&6
14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14212 /* Needed for new procfs interface on sparc-solaris. */
14213 #define _STRUCTURED_PROC 1
14214 #include <sys/procfs.h>
14223 if ac_fn_c_try_compile "$LINENO"; then :
14224 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
14226 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
14229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14232 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
14234 $as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
14238 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5
14241 $as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; }
14242 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then :
14243 $as_echo_n "(cached) " >&6
14245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h. */
14249 /* Needed for new procfs interface on sparc-solaris. */
14250 #define _STRUCTURED_PROC 1
14251 #include <sys/procfs.h>
14260 if ac_fn_c_try_compile "$LINENO"; then :
14261 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
14263 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
14266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14269 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
14271 $as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
14275 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5
14278 $as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; }
14279 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then :
14280 $as_echo_n "(cached) " >&6
14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14286 /* Needed for new procfs interface on sparc-solaris. */
14287 #define _STRUCTURED_PROC 1
14288 #include <sys/procfs.h>
14297 if ac_fn_c_try_compile "$LINENO"; then :
14298 bfd_cv_have_sys_procfs_type_psinfo_t=yes
14300 bfd_cv_have_sys_procfs_type_psinfo_t=no
14303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14306 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
14308 $as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
14312 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5
14315 $as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; }
14316 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then :
14317 $as_echo_n "(cached) " >&6
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14323 /* Needed for new procfs interface on sparc-solaris. */
14324 #define _STRUCTURED_PROC 1
14325 #include <sys/procfs.h>
14334 if ac_fn_c_try_compile "$LINENO"; then :
14335 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
14337 bfd_cv_have_sys_procfs_type_psinfo32_t=no
14340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14343 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
14345 $as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
14349 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5
14352 $as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; }
14353 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then :
14354 $as_echo_n "(cached) " >&6
14356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357 /* end confdefs.h. */
14360 /* Needed for new procfs interface on sparc-solaris. */
14361 #define _STRUCTURED_PROC 1
14362 #include <sys/procfs.h>
14371 if ac_fn_c_try_compile "$LINENO"; then :
14372 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
14374 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
14377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14380 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
14382 $as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
14386 $as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5
14389 $as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; }
14390 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then :
14391 $as_echo_n "(cached) " >&6
14393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14394 /* end confdefs.h. */
14397 /* Needed for new procfs interface on sparc-solaris. */
14398 #define _STRUCTURED_PROC 1
14399 #include <sys/procfs.h>
14408 if ac_fn_c_try_compile "$LINENO"; then :
14409 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
14411 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
14414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14417 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
14419 $as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
14423 $as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
14426 $as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; }
14427 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then :
14428 $as_echo_n "(cached) " >&6
14430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14431 /* end confdefs.h. */
14434 /* Needed for new procfs interface on sparc-solaris. */
14435 #define _STRUCTURED_PROC 1
14436 #include <sys/procfs.h>
14440 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
14445 if ac_fn_c_try_compile "$LINENO"; then :
14446 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
14448 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
14451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14454 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
14456 $as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
14460 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
14463 $as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; }
14464 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then :
14465 $as_echo_n "(cached) " >&6
14467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14468 /* end confdefs.h. */
14471 /* Needed for new procfs interface on sparc-solaris. */
14472 #define _STRUCTURED_PROC 1
14473 #include <sys/procfs.h>
14477 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
14482 if ac_fn_c_try_compile "$LINENO"; then :
14483 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
14485 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
14488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14491 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
14493 $as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
14497 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_fpreg in sys/procfs.h" >&5
14500 $as_echo_n "checking for lwpstatus_t.pr_fpreg in sys/procfs.h... " >&6; }
14501 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg+set}" = set; then :
14502 $as_echo_n "(cached) " >&6
14504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14505 /* end confdefs.h. */
14508 /* Needed for new procfs interface on sparc-solaris. */
14509 #define _STRUCTURED_PROC 1
14510 #include <sys/procfs.h>
14514 lwpstatus_t avar; void* aref = (void*) &avar.pr_fpreg
14519 if ac_fn_c_try_compile "$LINENO"; then :
14520 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=yes
14522 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=no
14525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14528 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg = yes; then
14530 $as_echo "#define HAVE_LWPSTATUS_T_PR_FPREG 1" >>confdefs.h
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&5
14534 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&6; }
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5
14537 $as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; }
14538 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then :
14539 $as_echo_n "(cached) " >&6
14541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14542 /* end confdefs.h. */
14545 /* Needed for new procfs interface on sparc-solaris. */
14546 #define _STRUCTURED_PROC 1
14547 #include <sys/procfs.h>
14551 win32_pstatus_t avar
14556 if ac_fn_c_try_compile "$LINENO"; then :
14557 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
14559 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
14562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14565 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
14567 $as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
14571 $as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
14577 if test -n "$TRAD_HEADER"; then
14579 cat >>confdefs.h <<_ACEOF
14580 #define TRAD_HEADER $TRAD_HEADER
14585 # Check if linker supports --as-needed and --no-as-needed options
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14587 $as_echo_n "checking linker --as-needed support... " >&6; }
14588 if test "${bfd_cv_ld_as_needed+set}" = set; then :
14589 $as_echo_n "(cached) " >&6
14591 bfd_cv_ld_as_needed=no
14592 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
14593 bfd_cv_ld_as_needed=yes
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
14598 $as_echo "$bfd_cv_ld_as_needed" >&6; }
14602 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
14603 # These system don't have libm, or don't need it
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14607 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
14608 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
14609 $as_echo_n "(cached) " >&6
14611 ac_check_lib_save_LIBS=$LIBS
14613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614 /* end confdefs.h. */
14616 /* Override any GCC internal prototype to avoid an error.
14617 Use char because int might match the return type of a GCC
14618 builtin and then its argument prototype would still apply. */
14622 char _mwvalidcheckl ();
14626 return _mwvalidcheckl ();
14631 if ac_fn_c_try_link "$LINENO"; then :
14632 ac_cv_lib_mw__mwvalidcheckl=yes
14634 ac_cv_lib_mw__mwvalidcheckl=no
14636 rm -f core conftest.err conftest.$ac_objext \
14637 conftest$ac_exeext conftest.$ac_ext
14638 LIBS=$ac_check_lib_save_LIBS
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14641 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14642 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14647 $as_echo_n "checking for cos in -lm... " >&6; }
14648 if test "${ac_cv_lib_m_cos+set}" = set; then :
14649 $as_echo_n "(cached) " >&6
14651 ac_check_lib_save_LIBS=$LIBS
14653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14654 /* end confdefs.h. */
14656 /* Override any GCC internal prototype to avoid an error.
14657 Use char because int might match the return type of a GCC
14658 builtin and then its argument prototype would still apply. */
14671 if ac_fn_c_try_link "$LINENO"; then :
14672 ac_cv_lib_m_cos=yes
14676 rm -f core conftest.err conftest.$ac_objext \
14677 conftest$ac_exeext conftest.$ac_ext
14678 LIBS=$ac_check_lib_save_LIBS
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14681 $as_echo "$ac_cv_lib_m_cos" >&6; }
14682 if test "x$ac_cv_lib_m_cos" = x""yes; then :
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14689 $as_echo_n "checking for cos in -lm... " >&6; }
14690 if test "${ac_cv_lib_m_cos+set}" = set; then :
14691 $as_echo_n "(cached) " >&6
14693 ac_check_lib_save_LIBS=$LIBS
14695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14696 /* end confdefs.h. */
14698 /* Override any GCC internal prototype to avoid an error.
14699 Use char because int might match the return type of a GCC
14700 builtin and then its argument prototype would still apply. */
14713 if ac_fn_c_try_link "$LINENO"; then :
14714 ac_cv_lib_m_cos=yes
14718 rm -f core conftest.err conftest.$ac_objext \
14719 conftest$ac_exeext conftest.$ac_ext
14720 LIBS=$ac_check_lib_save_LIBS
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14723 $as_echo "$ac_cv_lib_m_cos" >&6; }
14724 if test "x$ac_cv_lib_m_cos" = x""yes; then :
14733 # When building a shared libbfd, link against the pic version of libiberty
14734 # so that apps that use libbfd won't need libiberty just to satisfy any
14735 # libbfd references.
14736 # We can't do that if a pic libiberty is unavailable since including non-pic
14737 # code would insert text relocations into libbfd.
14740 if test "$enable_shared" = "yes"; then
14741 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
14742 if test -n "$x"; then
14743 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
14746 # More hacks to build DLLs on Windows.
14749 SHARED_LDFLAGS="-no-undefined"
14750 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
14754 if test -n "$SHARED_LIBADD"; then
14755 if test -n "$LIBM"; then
14756 if test x"$bfd_cv_ld_as_needed" = xyes; then
14757 # Link against libm only when needed. Put -lc, -lm inside -Wl
14758 # to stop libtool reordering these options.
14759 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
14761 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
14771 # Canonicalize the secondary target names.
14772 if test -n "$enable_targets" ; then
14773 for targ in `echo $enable_targets | sed 's/,/ /g'`
14775 result=`$ac_config_sub $targ 2>/dev/null`
14776 if test -n "$result" ; then
14777 canon_targets="$canon_targets $result"
14779 # Allow targets that config.sub doesn't recognize, like "all".
14780 canon_targets="$canon_targets $targ"
14791 for targ in $target $canon_targets
14793 if test "x$targ" = "xall"; then
14795 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
14797 . $srcdir/config.bfd
14798 if test "x$targ" = "x$target"; then
14799 defvec=$targ_defvec
14801 selvecs="$selvecs $targ_defvec $targ_selvecs"
14802 selarchs="$selarchs $targ_archs"
14803 TDEFINES="$TDEFINES $targ_cflags"
14808 # This processing still needs to be done if we're to decide properly whether
14809 # 64-bit support needs to be compiled in. Currently, it will be included if
14810 # the default or any other explicitly requested target requires it; it
14811 # will not be included on a 32-bit host if no 64-bit target is requested, and
14812 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
14815 # uniq the default and selected vectors in all the configured targets.
14817 for i in $selvecs ; do
14826 # uniq the associated vectors in all the configured targets.
14828 for i in $assocvecs ; do
14837 # uniq the architectures in all the configured targets.
14839 for i in $selarchs ; do
14847 # Target backend .o files.
14850 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo
14851 elf-eh-frame.lo dwarf1.lo"
14853 for vec in $selvecs
14857 # This list is alphabetized to make it easy to compare
14858 # with the two vector lists in targets.c. For the same reason,
14859 # use one entry per line, even though this leads to long lines.
14860 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
14861 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
14862 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
14863 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
14864 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
14865 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
14866 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
14867 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
14868 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
14869 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
14870 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
14871 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
14872 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
14873 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
14874 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
14875 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
14876 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
14877 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
14878 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
14879 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
14880 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
14881 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
14882 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
14883 bfd_pei_ia64_vec) tb="$tb pei-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
14884 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
14885 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
14886 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
14887 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
14888 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
14889 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
14890 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14891 bfd_elf32_bigarm_symbian_vec)
14892 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14893 bfd_elf32_bigarm_vxworks_vec)
14894 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14895 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
14896 bfd_elf32_bigmips_vxworks_vec)
14897 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
14898 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
14899 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
14900 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
14901 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
14902 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
14903 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
14904 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
14905 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
14906 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
14907 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
14908 bfd_elf32_moxie_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
14909 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
14910 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14911 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14912 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14913 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
14914 bfd_elf32_i386_dragonfly_vec)
14915 tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
14916 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
14917 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
14918 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
14919 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
14920 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
14921 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
14922 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
14923 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
14924 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
14925 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
14926 bfd_elf32_lm32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
14927 bfd_elf32_lm32fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
14928 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
14929 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
14930 bfd_elf32_littlearm_symbian_vec)
14931 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14932 bfd_elf32_littlearm_vxworks_vec)
14933 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14934 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14935 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
14936 bfd_elf32_littlemips_vxworks_vec)
14937 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
14938 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
14939 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14940 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14941 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14942 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14943 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
14944 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
14945 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
14946 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
14947 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
14948 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
14949 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
14950 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
14951 bfd_elf32_microblaze_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
14952 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
14953 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
14954 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
14955 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
14956 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
14957 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
14958 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
14959 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
14960 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
14961 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
14962 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
14963 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
14964 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14965 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14966 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14967 bfd_elf32_rx_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
14968 bfd_elf32_rx_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
14969 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
14970 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
14971 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
14972 # FIXME: We include cofflink.lo not because it's needed for
14973 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
14974 # which needs it but does not list it. Should be fixed in right place.
14975 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
14976 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
14977 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
14978 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
14979 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
14980 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
14981 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
14982 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
14983 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
14984 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
14985 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
14986 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
14987 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
14988 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
14989 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
14990 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14991 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14992 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
14993 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
14994 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
14995 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
14996 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
14997 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
14998 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
14999 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
15000 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
15001 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
15002 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
15003 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
15004 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15005 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15006 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
15007 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
15008 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
15009 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
15010 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
15011 bfd_elf64_ia64_vms_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
15012 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15013 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15014 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
15015 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15016 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
15017 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
15018 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15019 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15020 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15021 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15022 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15023 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15024 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
15025 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
15026 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15027 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15028 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15029 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15030 bfd_elf64_l1om_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15031 bfd_elf64_l1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15032 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
15033 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
15034 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
15035 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
15036 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
15037 cris_aout_vec) tb="$tb aout-cris.lo" ;;
15038 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
15039 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
15040 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
15041 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
15042 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
15043 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
15044 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
15045 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
15046 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
15047 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
15048 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
15049 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
15050 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
15051 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
15052 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
15053 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
15054 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
15055 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
15056 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
15057 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
15058 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
15059 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
15060 i386msdos_vec) tb="$tb i386msdos.lo" ;;
15061 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
15062 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
15063 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
15064 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
15065 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
15066 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
15067 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
15068 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
15069 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
15070 ieee_vec) tb="$tb ieee.lo" ;;
15071 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
15072 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
15073 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
15074 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
15075 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
15076 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
15077 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
15078 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
15079 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
15080 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
15081 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
15082 mach_o_be_vec) tb="$tb mach-o.lo" ;;
15083 mach_o_le_vec) tb="$tb mach-o.lo" ;;
15084 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
15085 mach_o_i386_vec) tb="$tb mach-o-i386.lo" ;;
15086 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
15087 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
15088 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
15089 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
15090 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
15091 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
15092 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
15093 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
15094 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
15095 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
15096 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
15097 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
15098 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
15099 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
15100 pef_vec) tb="$tb pef.lo" ;;
15101 pef_xlib_vec) tb="$tb pef.lo" ;;
15102 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
15103 plugin_vec) tb="$tb plugin.lo" ;;
15104 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
15105 ppcboot_vec) tb="$tb ppcboot.lo" ;;
15106 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
15107 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
15108 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
15109 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15110 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15111 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15112 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15113 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
15114 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
15115 som_vec) tb="$tb som.lo" ;;
15116 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
15117 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
15118 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
15119 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
15120 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
15121 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
15122 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
15123 sym_vec) tb="$tb xsym.lo" ;;
15124 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
15125 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
15126 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
15127 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
15128 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
15129 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
15130 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
15131 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
15132 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
15133 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
15134 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
15135 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
15136 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
15137 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
15138 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
15139 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
15140 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
15141 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
15142 versados_vec) tb="$tb versados.lo" ;;
15143 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
15144 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
15145 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
15146 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
15147 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
15148 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
15150 # These appear out of order in targets.c
15151 srec_vec) tb="$tb srec.lo" ;;
15152 symbolsrec_vec) tb="$tb srec.lo" ;;
15153 tekhex_vec) tb="$tb tekhex.lo" ;;
15154 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
15155 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
15158 *) as_fn_error "*** unknown target vector $vec" "$LINENO" 5 ;;
15161 if test ${target_size} = 64; then
15164 if test x"${vec}" = x"${defvec}"; then
15165 bfd_default_target_size=${target_size}
15169 # Target architecture .o files.
15170 # A couple of CPUs use shorter file names to avoid problems on DOS
15172 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
15174 # Weed out duplicate .o files.
15196 if test x${all_targets} = xtrue ; then
15197 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
15198 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
15202 test -n "$assocvecs" &&
15203 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15204 else # all_targets is true
15205 # Only set these if they will be nonempty, for the clever echo.
15208 test -n "$selvecs" &&
15209 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
15210 test -n "$selvecs" &&
15211 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15212 test -n "$selarchs" &&
15213 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15214 fi # all_targets is true
15216 case ${host64}-${target64}-${want64} in
15219 bfd64_libs='$(BFD64_LIBS)'
15220 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
15221 if test $BFD_HOST_64_BIT_DEFINED = 0; then
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have requested a 64 bit BFD configuration, but" >&5
15223 $as_echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler may not have a 64 bit integral type" >&5
15225 $as_echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
15227 if test -n "$GCC" ; then
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5
15230 $as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; }
15231 # Add more tests for gcc versions with non-working 64-bit support here.
15232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233 /* end confdefs.h. */
15234 :__GNUC__:__GNUC_MINOR__:__i386__:
15236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15237 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then :
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5
15240 $as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; }
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15243 $as_echo "no" >&6; }
15247 if test $bad_64bit_gcc = yes ; then
15248 as_fn_error "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5
15254 all_backends='$(BFD32_BACKENDS)'
15265 if test "$plugins" = "yes"; then
15272 # Determine the host dependant file_ptr a.k.a. off_t type. In order
15273 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
15274 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
15275 # Hopefully a reasonable assumption since fseeko et.al. should be
15276 # upward compatible.
15277 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
15279 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15280 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15281 eval as_val=\$$as_ac_var
15282 if test "x$as_val" = x""yes; then :
15283 cat >>confdefs.h <<_ACEOF
15284 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15290 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
15291 # The cast to long int works around a bug in the HP C Compiler
15292 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15293 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15294 # This bug is HP SR number 8606223364.
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15296 $as_echo_n "checking size of off_t... " >&6; }
15297 if test "${ac_cv_sizeof_off_t+set}" = set; then :
15298 $as_echo_n "(cached) " >&6
15300 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
15303 if test "$ac_cv_type_off_t" = yes; then
15304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15306 { as_fn_set_status 77
15307 as_fn_error "cannot compute sizeof (off_t)
15308 See \`config.log' for more details." "$LINENO" 5; }; }
15310 ac_cv_sizeof_off_t=0
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15316 $as_echo "$ac_cv_sizeof_off_t" >&6; }
15320 cat >>confdefs.h <<_ACEOF
15321 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5
15327 $as_echo_n "checking file_ptr type... " >&6; }
15328 bfd_file_ptr="long"
15329 bfd_ufile_ptr="unsigned long"
15330 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
15331 -o x"${ac_cv_sizeof_off_t}" = x8; then
15332 bfd_file_ptr=BFD_HOST_64_BIT
15333 bfd_ufile_ptr=BFD_HOST_U_64_BIT
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5
15336 $as_echo "$bfd_file_ptr" >&6; }
15342 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
15343 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
15344 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
15345 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
15346 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
15349 for ac_header in stdlib.h unistd.h
15351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15352 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15353 eval as_val=\$$as_ac_Header
15354 if test "x$as_val" = x""yes; then :
15355 cat >>confdefs.h <<_ACEOF
15356 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15363 for ac_func in getpagesize
15365 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15366 if test "x$ac_cv_func_getpagesize" = x""yes; then :
15367 cat >>confdefs.h <<_ACEOF
15368 #define HAVE_GETPAGESIZE 1
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15375 $as_echo_n "checking for working mmap... " >&6; }
15376 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
15377 $as_echo_n "(cached) " >&6
15379 if test "$cross_compiling" = yes; then :
15380 ac_cv_func_mmap_fixed_mapped=no
15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383 /* end confdefs.h. */
15384 $ac_includes_default
15385 /* malloc might have been renamed as rpl_malloc. */
15388 /* Thanks to Mike Haertel and Jim Avera for this test.
15389 Here is a matrix of mmap possibilities:
15390 mmap private not fixed
15391 mmap private fixed at somewhere currently unmapped
15392 mmap private fixed at somewhere already mapped
15393 mmap shared not fixed
15394 mmap shared fixed at somewhere currently unmapped
15395 mmap shared fixed at somewhere already mapped
15396 For private mappings, we should verify that changes cannot be read()
15397 back from the file, nor mmap's back from the file at a different
15398 address. (There have been systems where private was not correctly
15399 implemented like the infamous i386 svr4.0, and systems where the
15400 VM page cache was not coherent with the file system buffer cache
15401 like early versions of FreeBSD and possibly contemporary NetBSD.)
15402 For shared mappings, we should conversely verify that changes get
15403 propagated back to all the places they're supposed to be.
15405 Grep wants private fixed already mapped.
15406 The main things grep needs to know about mmap are:
15407 * does it exist and is it safe to write into the mmap'd area
15408 * how to use it (BSD variants) */
15411 #include <sys/mman.h>
15413 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15417 /* This mess was copied from the GNU getpagesize.h. */
15418 #ifndef HAVE_GETPAGESIZE
15419 /* Assume that all systems that can run configure have sys/param.h. */
15420 # ifndef HAVE_SYS_PARAM_H
15421 # define HAVE_SYS_PARAM_H 1
15424 # ifdef _SC_PAGESIZE
15425 # define getpagesize() sysconf(_SC_PAGESIZE)
15426 # else /* no _SC_PAGESIZE */
15427 # ifdef HAVE_SYS_PARAM_H
15428 # include <sys/param.h>
15429 # ifdef EXEC_PAGESIZE
15430 # define getpagesize() EXEC_PAGESIZE
15431 # else /* no EXEC_PAGESIZE */
15433 # define getpagesize() NBPG * CLSIZE
15436 # endif /* no CLSIZE */
15437 # else /* no NBPG */
15439 # define getpagesize() NBPC
15440 # else /* no NBPC */
15442 # define getpagesize() PAGESIZE
15443 # endif /* PAGESIZE */
15444 # endif /* no NBPC */
15445 # endif /* no NBPG */
15446 # endif /* no EXEC_PAGESIZE */
15447 # else /* no HAVE_SYS_PARAM_H */
15448 # define getpagesize() 8192 /* punt totally */
15449 # endif /* no HAVE_SYS_PARAM_H */
15450 # endif /* no _SC_PAGESIZE */
15452 #endif /* no HAVE_GETPAGESIZE */
15457 char *data, *data2, *data3;
15461 pagesize = getpagesize ();
15463 /* First, make a file with some known garbage in it. */
15464 data = (char *) malloc (pagesize);
15467 for (i = 0; i < pagesize; ++i)
15468 *(data + i) = rand ();
15470 fd = creat ("conftest.mmap", 0600);
15473 if (write (fd, data, pagesize) != pagesize)
15477 /* Next, try to mmap the file at a fixed address which already has
15478 something else allocated at it. If we can, also make sure that
15479 we see the same garbage. */
15480 fd = open ("conftest.mmap", O_RDWR);
15483 data2 = (char *) malloc (2 * pagesize);
15486 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
15487 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15488 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15490 for (i = 0; i < pagesize; ++i)
15491 if (*(data + i) != *(data2 + i))
15494 /* Finally, make sure that changes to the mapped area do not
15495 percolate back to the file as seen by read(). (This is a bug on
15496 some variants of i386 svr4.0.) */
15497 for (i = 0; i < pagesize; ++i)
15498 *(data2 + i) = *(data2 + i) + 1;
15499 data3 = (char *) malloc (pagesize);
15502 if (read (fd, data3, pagesize) != pagesize)
15504 for (i = 0; i < pagesize; ++i)
15505 if (*(data + i) != *(data3 + i))
15511 if ac_fn_c_try_run "$LINENO"; then :
15512 ac_cv_func_mmap_fixed_mapped=yes
15514 ac_cv_func_mmap_fixed_mapped=no
15516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15517 conftest.$ac_objext conftest.beam conftest.$ac_ext
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15522 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15523 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15525 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15528 rm -f conftest.mmap
15530 for ac_func in madvise mprotect
15532 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15533 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15534 eval as_val=\$$as_ac_var
15535 if test "x$as_val" = x""yes; then :
15536 cat >>confdefs.h <<_ACEOF
15537 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15543 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
15545 $as_echo "#define USE_MMAP 1" >>confdefs.h
15549 rm -f doc/config.status
15550 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
15553 ac_config_commands="$ac_config_commands default"
15561 cat >confcache <<\_ACEOF
15562 # This file is a shell script that caches the results of configure
15563 # tests run on this system so they can be shared between configure
15564 # scripts and configure runs, see configure's option --config-cache.
15565 # It is not useful on other systems. If it contains results you don't
15566 # want to keep, you may remove or edit it.
15568 # config.status only pays attention to the cache file if you give it
15569 # the --recheck option to rerun configure.
15571 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15572 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15573 # following values.
15577 # The following way of writing the cache mishandles newlines in values,
15578 # but we know of no workaround that is simple, portable, and efficient.
15579 # So, we kill variables containing newlines.
15580 # Ultrix sh set writes to stderr and can't be redirected directly,
15581 # and sets the high bit in the cache file unless we assign to the vars.
15583 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15584 eval ac_val=\$$ac_var
15588 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15589 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15592 _ | IFS | as_nl) ;; #(
15593 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15594 *) { eval $ac_var=; unset $ac_var;} ;;
15600 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15601 *${as_nl}ac_space=\ *)
15602 # `set' does not quote correctly, so add quotes: double-quote
15603 # substitution turns \\\\ into \\, and sed turns \\ into \.
15606 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15609 # `set' quotes correctly as required by POSIX, so do not add quotes.
15610 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15619 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15621 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15623 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15624 if test -w "$cache_file"; then
15625 test "x$cache_file" != "x/dev/null" &&
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15627 $as_echo "$as_me: updating cache $cache_file" >&6;}
15628 cat confcache >$cache_file
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15631 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15636 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15637 # Let make expand exec_prefix.
15638 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15640 DEFS=-DHAVE_CONFIG_H
15644 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15645 # 1. Remove the extension, and $U if already installed.
15646 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15647 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15648 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15649 # will be set to the directory where LIBOBJS objects are built.
15650 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15651 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15653 LIBOBJS=$ac_libobjs
15655 LTLIBOBJS=$ac_ltlibobjs
15658 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15659 as_fn_error "conditional \"AMDEP\" was never defined.
15660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15662 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15663 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15666 if test -n "$EXEEXT"; then
15668 am__EXEEXT_FALSE='#'
15670 am__EXEEXT_TRUE='#'
15674 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
15675 as_fn_error "conditional \"PLUGINS\" was never defined.
15676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15678 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15679 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15682 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15683 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
15684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15686 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
15687 as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined.
15688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15691 : ${CONFIG_STATUS=./config.status}
15693 ac_clean_files_save=$ac_clean_files
15694 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15696 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15698 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15700 # Generated by $as_me.
15701 # Run this file to recreate the current configuration.
15702 # Compiler output produced by configure, useful for debugging
15703 # configure, is in config.log if it exists.
15706 ac_cs_recheck=false
15709 SHELL=\${CONFIG_SHELL-$SHELL}
15712 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15713 ## -------------------- ##
15714 ## M4sh Initialization. ##
15715 ## -------------------- ##
15717 # Be more Bourne compatible
15718 DUALCASE=1; export DUALCASE # for MKS sh
15719 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15722 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15723 # is contrary to our usage. Disable this feature.
15724 alias -g '${1+"$@"}'='"$@"'
15725 setopt NO_GLOB_SUBST
15727 case `(set -o) 2>/dev/null` in #(
15739 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15740 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15741 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15742 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15743 # Prefer a ksh shell builtin over an external printf program on Solaris,
15744 # but without wasting forks for bash or zsh.
15745 if test -z "$BASH_VERSION$ZSH_VERSION" \
15746 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15747 as_echo='print -r --'
15748 as_echo_n='print -rn --'
15749 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15750 as_echo='printf %s\n'
15751 as_echo_n='printf %s'
15753 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15754 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15755 as_echo_n='/usr/ucb/echo -n'
15757 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15758 as_echo_n_body='eval
15762 expr "X$arg" : "X\\(.*\\)$as_nl";
15763 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15765 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15767 export as_echo_n_body
15768 as_echo_n='sh -c $as_echo_n_body as_echo'
15770 export as_echo_body
15771 as_echo='sh -c $as_echo_body as_echo'
15774 # The user is always right.
15775 if test "${PATH_SEPARATOR+set}" != set; then
15777 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15778 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15785 # We need space, tab and new line, in precisely that order. Quoting is
15786 # there to prevent editors from complaining about space-tab.
15787 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15788 # splitting by setting IFS to empty value.)
15791 # Find who we are. Look in the path if we contain no directory separator.
15793 *[\\/]* ) as_myself=$0 ;;
15794 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15795 for as_dir in $PATH
15798 test -z "$as_dir" && as_dir=.
15799 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15805 # We did not find ourselves, most probably we were run as `sh COMMAND'
15806 # in which case we are not to be found in the path.
15807 if test "x$as_myself" = x; then
15810 if test ! -f "$as_myself"; then
15811 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15815 # Unset variables that we do not need and which cause bugs (e.g. in
15816 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15817 # suppresses any "Segmentation fault" message there. '((' could
15818 # trigger a bug in pdksh 5.2.14.
15819 for as_var in BASH_ENV ENV MAIL MAILPATH
15820 do eval test x\${$as_var+set} = xset \
15821 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15834 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15837 # as_fn_error ERROR [LINENO LOG_FD]
15838 # ---------------------------------
15839 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15840 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15841 # script with status $?, using 1 if that was 0.
15844 as_status=$?; test $as_status -eq 0 && as_status=1
15846 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15847 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15849 $as_echo "$as_me: error: $1" >&2
15850 as_fn_exit $as_status
15854 # as_fn_set_status STATUS
15855 # -----------------------
15856 # Set $? to STATUS, without forking.
15857 as_fn_set_status ()
15860 } # as_fn_set_status
15862 # as_fn_exit STATUS
15863 # -----------------
15864 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15868 as_fn_set_status $1
15874 # Portably unset VAR.
15877 { eval $1=; unset $1;}
15879 as_unset=as_fn_unset
15880 # as_fn_append VAR VALUE
15881 # ----------------------
15882 # Append the text in VALUE to the end of the definition contained in VAR. Take
15883 # advantage of any shell optimizations that allow amortized linear growth over
15884 # repeated appends, instead of the typical quadratic growth present in naive
15886 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15887 eval 'as_fn_append ()
15898 # as_fn_arith ARG...
15899 # ------------------
15900 # Perform arithmetic evaluation on the ARGs, and store the result in the
15901 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15902 # must be portable across $(()) and expr.
15903 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15904 eval 'as_fn_arith ()
15911 as_val=`expr "$@" || test $? -eq 1`
15916 if expr a : '\(a\)' >/dev/null 2>&1 &&
15917 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15923 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15924 as_basename=basename
15929 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15935 as_me=`$as_basename -- "$0" ||
15936 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15937 X"$0" : 'X\(//\)$' \| \
15938 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15940 sed '/^.*\/\([^/][^/]*\)\/*$/{
15954 # Avoid depending upon Character Ranges.
15955 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15956 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15957 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15958 as_cr_digits='0123456789'
15959 as_cr_alnum=$as_cr_Letters$as_cr_digits
15961 ECHO_C= ECHO_N= ECHO_T=
15962 case `echo -n x` in #(((((
15964 case `echo 'xy\c'` in
15965 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15967 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15974 rm -f conf$$ conf$$.exe conf$$.file
15975 if test -d conf$$.dir; then
15976 rm -f conf$$.dir/conf$$.file
15979 mkdir conf$$.dir 2>/dev/null
15981 if (echo >conf$$.file) 2>/dev/null; then
15982 if ln -s conf$$.file conf$$ 2>/dev/null; then
15984 # ... but there are two gotchas:
15985 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15986 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15987 # In both cases, we have to default to `cp -p'.
15988 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15990 elif ln conf$$.file conf$$ 2>/dev/null; then
15998 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15999 rmdir conf$$.dir 2>/dev/null
16004 # Create "$as_dir" as a directory, including parents if necessary.
16009 -*) as_dir=./$as_dir;;
16011 test -d "$as_dir" || eval $as_mkdir_p || {
16015 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16016 *) as_qdir=$as_dir;;
16018 as_dirs="'$as_qdir' $as_dirs"
16019 as_dir=`$as_dirname -- "$as_dir" ||
16020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16021 X"$as_dir" : 'X\(//\)[^/]' \| \
16022 X"$as_dir" : 'X\(//\)$' \| \
16023 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16024 $as_echo X"$as_dir" |
16025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16029 /^X\(\/\/\)[^/].*/{
16042 test -d "$as_dir" && break
16044 test -z "$as_dirs" || eval "mkdir $as_dirs"
16045 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16049 if mkdir -p . 2>/dev/null; then
16050 as_mkdir_p='mkdir -p "$as_dir"'
16052 test -d ./-p && rmdir ./-p
16056 if test -x / >/dev/null 2>&1; then
16057 as_test_x='test -x'
16059 if ls -dL / >/dev/null 2>&1; then
16066 if test -d "$1"; then
16072 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16073 ???[sx]*):;;*)false;;esac;fi
16077 as_executable_p=$as_test_x
16079 # Sed expression to map a string onto a valid CPP name.
16080 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16082 # Sed expression to map a string onto a valid variable name.
16083 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16087 ## ----------------------------------- ##
16088 ## Main body of $CONFIG_STATUS script. ##
16089 ## ----------------------------------- ##
16091 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16094 # Save the log message, to keep $0 and so on meaningful, and to
16095 # report actual input values of CONFIG_FILES etc. instead of their
16096 # values after options handling.
16098 This file was extended by $as_me, which was
16099 generated by GNU Autoconf 2.64. Invocation command line was
16101 CONFIG_FILES = $CONFIG_FILES
16102 CONFIG_HEADERS = $CONFIG_HEADERS
16103 CONFIG_LINKS = $CONFIG_LINKS
16104 CONFIG_COMMANDS = $CONFIG_COMMANDS
16107 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16112 case $ac_config_files in *"
16113 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16116 case $ac_config_headers in *"
16117 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16122 # Files that config.status was made for.
16123 config_files="$ac_config_files"
16124 config_headers="$ac_config_headers"
16125 config_commands="$ac_config_commands"
16129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16131 \`$as_me' instantiates files and other configuration actions
16132 from templates according to the current configuration. Unless the files
16133 and actions are specified as TAGs, all are instantiated by default.
16135 Usage: $0 [OPTION]... [TAG]...
16137 -h, --help print this help, then exit
16138 -V, --version print version number and configuration settings, then exit
16139 -q, --quiet, --silent
16140 do not print progress messages
16141 -d, --debug don't remove temporary files
16142 --recheck update $as_me by reconfiguring in the same conditions
16143 --file=FILE[:TEMPLATE]
16144 instantiate the configuration file FILE
16145 --header=FILE[:TEMPLATE]
16146 instantiate the configuration header FILE
16148 Configuration files:
16151 Configuration headers:
16154 Configuration commands:
16157 Report bugs to the package provider."
16160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16163 configured by $0, generated by GNU Autoconf 2.64,
16164 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16166 Copyright (C) 2009 Free Software Foundation, Inc.
16167 This config.status script is free software; the Free Software Foundation
16168 gives unlimited permission to copy, distribute and modify it."
16175 test -n "\$AWK" || AWK=awk
16178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16179 # The default lists apply if the user does not specify any file.
16185 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16186 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16197 # Handling of the options.
16198 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16200 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16201 $as_echo "$ac_cs_version"; exit ;;
16202 --debug | --debu | --deb | --de | --d | -d )
16204 --file | --fil | --fi | --f )
16207 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16209 as_fn_append CONFIG_FILES " '$ac_optarg'"
16210 ac_need_defaults=false;;
16211 --header | --heade | --head | --hea )
16214 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16216 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16217 ac_need_defaults=false;;
16219 # Conflict between --help and --header
16220 as_fn_error "ambiguous option: \`$1'
16221 Try \`$0 --help' for more information.";;
16222 --help | --hel | -h )
16223 $as_echo "$ac_cs_usage"; exit ;;
16224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16225 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16228 # This is an error.
16229 -*) as_fn_error "unrecognized option: \`$1'
16230 Try \`$0 --help' for more information." ;;
16232 *) as_fn_append ac_config_targets " $1"
16233 ac_need_defaults=false ;;
16239 ac_configure_extra_args=
16241 if $ac_cs_silent; then
16243 ac_configure_extra_args="$ac_configure_extra_args --silent"
16247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16248 if \$ac_cs_recheck; then
16249 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16251 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16252 CONFIG_SHELL='$SHELL'
16253 export CONFIG_SHELL
16258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16262 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16263 ## Running $as_me. ##
16269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16273 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16276 # The HP-UX ksh and POSIX shell print the target directory to stdout
16277 # if CDPATH is set.
16278 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16280 sed_quote_subst='$sed_quote_subst'
16281 double_quote_subst='$double_quote_subst'
16282 delay_variable_subst='$delay_variable_subst'
16283 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16284 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16285 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16286 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16287 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16288 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16289 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16290 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16291 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16292 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16293 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16294 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16295 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16296 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16297 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16298 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16299 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16300 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16301 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16302 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16303 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16304 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16305 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16306 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16307 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16308 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16309 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16310 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16311 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16312 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16313 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16314 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16315 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16316 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16317 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16318 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16319 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16320 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16321 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16322 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16323 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16324 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16325 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16326 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16327 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16328 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16329 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16330 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16331 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16332 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16333 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16334 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16335 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16336 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16337 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16338 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16339 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16340 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16341 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16342 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16343 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16344 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16345 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16346 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16347 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16348 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16349 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16350 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16351 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16352 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16353 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16354 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16355 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16356 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16357 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16358 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16359 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16360 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16361 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16362 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16363 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16364 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16365 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16366 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16367 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16368 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16369 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16370 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16371 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16372 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16373 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16374 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16375 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16376 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16377 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16378 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16379 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16380 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16381 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16382 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16383 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16384 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16385 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16386 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16387 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16388 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16389 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16390 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16391 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16392 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16393 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16394 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16395 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16396 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16397 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16398 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16399 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16400 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16403 LTCFLAGS='$LTCFLAGS'
16404 compiler='$compiler_DEFAULT'
16406 # Quote evaled strings.
16418 deplibs_check_method \
16427 lt_cv_sys_global_symbol_pipe \
16428 lt_cv_sys_global_symbol_to_cdecl \
16429 lt_cv_sys_global_symbol_to_c_name_address \
16430 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16433 lt_prog_compiler_no_builtin_flag \
16434 lt_prog_compiler_wl \
16435 lt_prog_compiler_pic \
16436 lt_prog_compiler_static \
16437 lt_cv_prog_compiler_c_o \
16445 export_dynamic_flag_spec \
16446 whole_archive_flag_spec \
16447 compiler_needs_object \
16449 allow_undefined_flag \
16450 no_undefined_flag \
16451 hardcode_libdir_flag_spec \
16452 hardcode_libdir_flag_spec_ld \
16453 hardcode_libdir_separator \
16458 variables_saved_for_relink \
16460 library_names_spec \
16465 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16466 *[\\\\\\\`\\"\\\$]*)
16467 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16470 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16475 # Double-quote double-evaled strings.
16476 for var in reload_cmds \
16477 old_postinstall_cmds \
16478 old_postuninstall_cmds \
16480 extract_expsyms_cmds \
16481 old_archive_from_new_cmds \
16482 old_archive_from_expsyms_cmds \
16484 archive_expsym_cmds \
16486 module_expsym_cmds \
16487 export_symbols_cmds \
16490 postuninstall_cmds \
16492 sys_lib_search_path_spec \
16493 sys_lib_dlsearch_path_spec; do
16494 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16495 *[\\\\\\\`\\"\\\$]*)
16496 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16499 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16504 # Fix-up fallback echo if it was mangled by the above quoting rules.
16506 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16510 ac_aux_dir='$ac_aux_dir'
16511 xsi_shell='$xsi_shell'
16512 lt_shell_append='$lt_shell_append'
16514 # See if we are running on zsh, and set the options which allow our
16515 # commands through without removal of \ escapes INIT.
16516 if test -n "\${ZSH_VERSION+set}" ; then
16517 setopt NO_GLOB_SUBST
16523 TIMESTAMP='$TIMESTAMP'
16529 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16530 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16532 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16533 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16534 LINGUAS="${LINGUAS-%UNSET%}"
16539 acx_cv_header_stdint="$acx_cv_header_stdint"
16540 acx_cv_type_int8_t="$acx_cv_type_int8_t"
16541 acx_cv_type_int16_t="$acx_cv_type_int16_t"
16542 acx_cv_type_int32_t="$acx_cv_type_int32_t"
16543 acx_cv_type_int64_t="$acx_cv_type_int64_t"
16544 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
16545 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
16546 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
16547 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
16548 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
16549 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
16550 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16551 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
16552 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
16558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16560 # Handling of arguments.
16561 for ac_config_target in $ac_config_targets
16563 case $ac_config_target in
16564 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16565 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16566 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16567 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16568 "bfd_stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
16569 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16570 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16571 "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
16572 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16573 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16575 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16580 # If the user did not use the arguments to specify the items to instantiate,
16581 # then the envvar interface is used. Set only those that are not.
16582 # We use the long form for the default assignment because of an extremely
16583 # bizarre bug on SunOS 4.1.3.
16584 if $ac_need_defaults; then
16585 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16586 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16587 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16590 # Have a temporary directory for convenience. Make it in the build tree
16591 # simply because there is no reason against having it here, and in addition,
16592 # creating and moving files from /tmp can sometimes cause problems.
16593 # Hook for its removal unless debugging.
16594 # Note that there is a small window in which the directory will not be cleaned:
16595 # after its creation but before its name has been assigned to `$tmp'.
16599 trap 'exit_status=$?
16600 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16602 trap 'as_fn_exit 1' 1 2 13 15
16604 # Create a (secure) tmp directory for tmp files.
16607 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16608 test -n "$tmp" && test -d "$tmp"
16611 tmp=./conf$$-$RANDOM
16612 (umask 077 && mkdir "$tmp")
16613 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16615 # Set up the scripts for CONFIG_FILES section.
16616 # No need to generate them if there are no CONFIG_FILES.
16617 # This happens for instance with `./config.status config.h'.
16618 if test -n "$CONFIG_FILES"; then
16621 ac_cr=`echo X | tr X '\015'`
16622 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16623 # But we know of no other shell where ac_cr would be empty at this
16624 # point, so we can use a bashism as a fallback.
16625 if test "x$ac_cr" = x; then
16626 eval ac_cr=\$\'\\r\'
16628 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16629 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16632 ac_cs_awk_cr=$ac_cr
16635 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16640 echo "cat >conf$$subs.awk <<_ACEOF" &&
16641 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16643 } >conf$$subs.sh ||
16644 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16645 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16647 for ac_last_try in false false false false false :; do
16648 . ./conf$$subs.sh ||
16649 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16651 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16652 if test $ac_delim_n = $ac_delim_num; then
16654 elif $ac_last_try; then
16655 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16657 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16660 rm -f conf$$subs.sh
16662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16663 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16667 s/^/S["/; s/!.*/"]=/
16677 s/\(.\{148\}\).*/\1/
16679 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16684 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16691 s/\(.\{148\}\).*/\1/
16693 s/["\\]/\\&/g; s/^/"/; s/$/"/
16697 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16702 ' <conf$$subs.awk | sed '
16707 ' >>$CONFIG_STATUS || ac_write_fail=1
16708 rm -f conf$$subs.awk
16709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16711 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16712 for (key in S) S_is_set[key] = 1
16718 nfields = split(line, field, "@")
16720 len = length(field[1])
16721 for (i = 2; i < nfields; i++) {
16723 keylen = length(key)
16724 if (S_is_set[key]) {
16726 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16727 len += length(value) + length(field[++i])
16738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16739 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16740 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16743 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16744 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16747 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16748 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16749 # trailing colons and then remove the whole line if VPATH becomes empty
16750 # (actually we leave an empty line to preserve line numbers).
16751 if test "x$srcdir" = x.; then
16752 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16753 s/:*\$(srcdir):*/:/
16754 s/:*\${srcdir}:*/:/
16756 s/^\([^=]*=[ ]*\):*/\1/
16762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16763 fi # test -n "$CONFIG_FILES"
16765 # Set up the scripts for CONFIG_HEADERS section.
16766 # No need to generate them if there are no CONFIG_HEADERS.
16767 # This happens for instance with `./config.status Makefile'.
16768 if test -n "$CONFIG_HEADERS"; then
16769 cat >"$tmp/defines.awk" <<\_ACAWK ||
16773 # Transform confdefs.h into an awk script `defines.awk', embedded as
16774 # here-document in config.status, that substitutes the proper values into
16775 # config.h.in to produce config.h.
16777 # Create a delimiter string that does not exist in confdefs.h, to ease
16778 # handling of long lines.
16780 for ac_last_try in false false :; do
16781 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16782 if test -z "$ac_t"; then
16784 elif $ac_last_try; then
16785 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16787 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16791 # For the awk script, D is an array of macro values keyed by name,
16792 # likewise P contains macro parameters if any. Preserve backslash
16793 # newline sequences.
16795 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16797 s/.\{148\}/&'"$ac_delim"'/g
16800 s/^[ ]*#[ ]*define[ ][ ]*/ /
16807 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16809 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16813 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16814 D["\1"]=" \3\\\\\\n"\\/p
16816 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16821 s/.\{148\}/&'"$ac_delim"'/g
16826 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16829 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16831 ' <confdefs.h | sed '
16832 s/'"$ac_delim"'/"\\\
16833 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16836 for (key in D) D_is_set[key] = 1
16839 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16841 split(line, arg, " ")
16842 if (arg[1] == "#") {
16846 defundef = substr(arg[1], 2)
16849 split(mac1, mac2, "(") #)
16851 prefix = substr(line, 1, index(line, defundef) - 1)
16852 if (D_is_set[macro]) {
16853 # Preserve the white space surrounding the "#".
16854 print prefix "define", macro P[macro] D[macro]
16857 # Replace #undef with comments. This is necessary, for example,
16858 # in the case of _POSIX_SOURCE, which is predefined and required
16859 # on some systems where configure will not decide to define it.
16860 if (defundef == "undef") {
16861 print "/*", prefix defundef, macro, "*/"
16869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16870 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16871 fi # test -n "$CONFIG_HEADERS"
16874 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16879 :[FHLC]) ac_mode=$ac_tag; continue;;
16881 case $ac_mode$ac_tag in
16883 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16884 :[FH]-) ac_tag=-:-;;
16885 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16902 -) ac_f="$tmp/stdin";;
16903 *) # Look for the file first in the build tree, then in the source tree
16904 # (if the path is not absolute). The absolute path cannot be DOS-style,
16905 # because $ac_f cannot contain `:'.
16909 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16911 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16913 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16914 as_fn_append ac_file_inputs " '$ac_f'"
16917 # Let's still pretend it is `configure' which instantiates (i.e., don't
16918 # use $as_me), people would be surprised to read:
16919 # /* config.h. Generated by config.status. */
16920 configure_input='Generated from '`
16921 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16923 if test x"$ac_file" != x-; then
16924 configure_input="$ac_file. $configure_input"
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16926 $as_echo "$as_me: creating $ac_file" >&6;}
16928 # Neutralize special characters interpreted by sed in replacement strings.
16929 case $configure_input in #(
16930 *\&* | *\|* | *\\* )
16931 ac_sed_conf_input=`$as_echo "$configure_input" |
16932 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16933 *) ac_sed_conf_input=$configure_input;;
16937 *:-:* | *:-) cat >"$tmp/stdin" \
16938 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16943 ac_dir=`$as_dirname -- "$ac_file" ||
16944 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16945 X"$ac_file" : 'X\(//\)[^/]' \| \
16946 X"$ac_file" : 'X\(//\)$' \| \
16947 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16948 $as_echo X"$ac_file" |
16949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16953 /^X\(\/\/\)[^/].*/{
16966 as_dir="$ac_dir"; as_fn_mkdir_p
16970 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16972 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16973 # A ".." for each directory in $ac_dir_suffix.
16974 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16975 case $ac_top_builddir_sub in
16976 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16977 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16980 ac_abs_top_builddir=$ac_pwd
16981 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16982 # for backward compatibility:
16983 ac_top_builddir=$ac_top_build_prefix
16986 .) # We are building in place.
16988 ac_top_srcdir=$ac_top_builddir_sub
16989 ac_abs_top_srcdir=$ac_pwd ;;
16990 [\\/]* | ?:[\\/]* ) # Absolute name.
16991 ac_srcdir=$srcdir$ac_dir_suffix;
16992 ac_top_srcdir=$srcdir
16993 ac_abs_top_srcdir=$srcdir ;;
16994 *) # Relative name.
16995 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16996 ac_top_srcdir=$ac_top_build_prefix$srcdir
16997 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16999 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17009 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17010 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17012 ac_MKDIR_P=$MKDIR_P
17014 [\\/$]* | ?:[\\/]* ) ;;
17015 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17020 # If the template does not know about datarootdir, expand it.
17021 # FIXME: This hack should be removed a few years after 2.60.
17022 ac_datarootdir_hack=; ac_datarootdir_seen=
17033 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17034 *datarootdir*) ac_datarootdir_seen=yes;;
17035 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17037 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17040 ac_datarootdir_hack='
17041 s&@datadir@&$datadir&g
17042 s&@docdir@&$docdir&g
17043 s&@infodir@&$infodir&g
17044 s&@localedir@&$localedir&g
17045 s&@mandir@&$mandir&g
17046 s&\\\${datarootdir}&$datarootdir&g' ;;
17050 # Neutralize VPATH when `$srcdir' = `.'.
17051 # Shell code in configure.ac might set extrasub.
17052 # FIXME: do we really want to maintain this feature?
17053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17054 ac_sed_extra="$ac_vpsub
17057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17059 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17060 s|@configure_input@|$ac_sed_conf_input|;t t
17061 s&@top_builddir@&$ac_top_builddir_sub&;t t
17062 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17063 s&@srcdir@&$ac_srcdir&;t t
17064 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17065 s&@top_srcdir@&$ac_top_srcdir&;t t
17066 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17067 s&@builddir@&$ac_builddir&;t t
17068 s&@abs_builddir@&$ac_abs_builddir&;t t
17069 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17070 s&@INSTALL@&$ac_INSTALL&;t t
17071 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17072 $ac_datarootdir_hack
17074 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17075 || as_fn_error "could not create $ac_file" "$LINENO" 5
17077 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17078 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17079 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17081 which seems to be undefined. Please make sure it is defined." >&5
17082 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17083 which seems to be undefined. Please make sure it is defined." >&2;}
17087 -) cat "$tmp/out" && rm -f "$tmp/out";;
17088 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17090 || as_fn_error "could not create $ac_file" "$LINENO" 5
17096 if test x"$ac_file" != x-; then
17098 $as_echo "/* $configure_input */" \
17099 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17100 } >"$tmp/config.h" \
17101 || as_fn_error "could not create $ac_file" "$LINENO" 5
17102 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17104 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17107 mv "$tmp/config.h" "$ac_file" \
17108 || as_fn_error "could not create $ac_file" "$LINENO" 5
17111 $as_echo "/* $configure_input */" \
17112 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17113 || as_fn_error "could not create -" "$LINENO" 5
17115 # Compute "$ac_file"'s index in $config_headers.
17118 for _am_header in $config_headers :; do
17119 case $_am_header in
17120 $_am_arg | $_am_arg:* )
17123 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17126 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17127 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17128 X"$_am_arg" : 'X\(//\)[^/]' \| \
17129 X"$_am_arg" : 'X\(//\)$' \| \
17130 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17131 $as_echo X"$_am_arg" |
17132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17136 /^X\(\/\/\)[^/].*/{
17148 s/.*/./; q'`/stamp-h$_am_stamp_count
17151 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17152 $as_echo "$as_me: executing $ac_file commands" >&6;}
17157 case $ac_file$ac_mode in
17158 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17159 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17160 # are listed without --file. Let's play safe and only enable the eval
17161 # if we detect the quoting.
17162 case $CONFIG_FILES in
17163 *\'*) eval set x "$CONFIG_FILES" ;;
17164 *) set x $CONFIG_FILES ;;
17169 # Strip MF so we end up with the name of the file.
17170 mf=`echo "$mf" | sed -e 's/:.*$//'`
17171 # Check whether this is an Automake generated Makefile or not.
17172 # We used to match only the files named `Makefile.in', but
17173 # some people rename them; so instead we look at the file content.
17174 # Grep'ing the first line is not enough: some people post-process
17175 # each Makefile.in and add a new line on top of each file to say so.
17176 # Grep'ing the whole file is not good either: AIX grep has a line
17177 # limit of 2048, but all sed's we know have understand at least 4000.
17178 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17179 dirpart=`$as_dirname -- "$mf" ||
17180 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17181 X"$mf" : 'X\(//\)[^/]' \| \
17182 X"$mf" : 'X\(//\)$' \| \
17183 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17189 /^X\(\/\/\)[^/].*/{
17205 # Extract the definition of DEPDIR, am__include, and am__quote
17206 # from the Makefile without running `make'.
17207 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17208 test -z "$DEPDIR" && continue
17209 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17210 test -z "am__include" && continue
17211 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17212 # When using ansi2knr, U may be empty or an underscore; expand it
17213 U=`sed -n 's/^U = //p' < "$mf"`
17214 # Find all dependency output files, they are included files with
17215 # $(DEPDIR) in their names. We invoke sed twice because it is the
17216 # simplest approach to changing $(DEPDIR) to its actual value in the
17218 for file in `sed -n "
17219 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17220 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17221 # Make sure the directory exists.
17222 test -f "$dirpart/$file" && continue
17223 fdir=`$as_dirname -- "$file" ||
17224 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17225 X"$file" : 'X\(//\)[^/]' \| \
17226 X"$file" : 'X\(//\)$' \| \
17227 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17228 $as_echo X"$file" |
17229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17233 /^X\(\/\/\)[^/].*/{
17246 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17247 # echo "creating $dirpart/$file"
17248 echo '# dummy' > "$dirpart/$file"
17255 # See if we are running on zsh, and set the options which allow our
17256 # commands through without removal of \ escapes.
17257 if test -n "${ZSH_VERSION+set}" ; then
17258 setopt NO_GLOB_SUBST
17261 cfgfile="${ofile}T"
17262 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17265 cat <<_LT_EOF >> "$cfgfile"
17268 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17269 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17270 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17271 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17273 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17274 # 2006, 2007, 2008 Free Software Foundation, Inc.
17275 # Written by Gordon Matzigkeit, 1996
17277 # This file is part of GNU Libtool.
17279 # GNU Libtool is free software; you can redistribute it and/or
17280 # modify it under the terms of the GNU General Public License as
17281 # published by the Free Software Foundation; either version 2 of
17282 # the License, or (at your option) any later version.
17284 # As a special exception to the GNU General Public License,
17285 # if you distribute this file as part of a program or library that
17286 # is built using GNU Libtool, you may include this file under the
17287 # same distribution terms that you use for the rest of that program.
17289 # GNU Libtool is distributed in the hope that it will be useful,
17290 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17291 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17292 # GNU General Public License for more details.
17294 # You should have received a copy of the GNU General Public License
17295 # along with GNU Libtool; see the file COPYING. If not, a copy
17296 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17297 # obtained by writing to the Free Software Foundation, Inc.,
17298 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17301 # The names of the tagged configurations supported by this script.
17304 # ### BEGIN LIBTOOL CONFIG
17306 # Whether or not to build shared libraries.
17307 build_libtool_libs=$enable_shared
17309 # Which release of libtool.m4 was used?
17310 macro_version=$macro_version
17311 macro_revision=$macro_revision
17313 # Whether or not to build static libraries.
17314 build_old_libs=$enable_static
17316 # What type of objects to build.
17319 # Whether or not to optimize for fast installation.
17320 fast_install=$enable_fast_install
17323 host_alias=$host_alias
17327 # The build system.
17328 build_alias=$build_alias
17332 # A sed program that does not truncate output.
17335 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17336 Xsed="\$SED -e 1s/^X//"
17338 # A grep program that handles long lines.
17344 # A literal string matcher.
17347 # A BSD- or MS-compatible name lister.
17350 # Whether we need soft or hard links.
17353 # What is the maximum length of a command?
17354 max_cmd_len=$max_cmd_len
17356 # Object file suffix (normally "o").
17359 # Executable file suffix (normally "").
17362 # whether the shell understands "unset".
17365 # turn spaces into newlines.
17368 # turn newlines into spaces.
17371 # How to create reloadable object files.
17372 reload_flag=$lt_reload_flag
17373 reload_cmds=$lt_reload_cmds
17375 # An object symbol dumper.
17376 OBJDUMP=$lt_OBJDUMP
17378 # Method to check whether dependent libraries are shared objects.
17379 deplibs_check_method=$lt_deplibs_check_method
17381 # Command to use when deplibs_check_method == "file_magic".
17382 file_magic_cmd=$lt_file_magic_cmd
17386 AR_FLAGS=$lt_AR_FLAGS
17388 # A symbol stripping program.
17391 # Commands used to install an old-style archive.
17393 old_postinstall_cmds=$lt_old_postinstall_cmds
17394 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17399 # LTCC compiler flags.
17400 LTCFLAGS=$lt_CFLAGS
17402 # Take the output of nm and produce a listing of raw symbols and C names.
17403 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17405 # Transform the output of nm in a proper C declaration.
17406 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17408 # Transform the output of nm in a C name address pair.
17409 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17411 # Transform the output of nm in a C name address pair when lib prefix is needed.
17412 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17414 # The name of the directory that contains temporary libtool files.
17417 # Shell to use when invoking shell scripts.
17420 # An echo program that does not interpret backslashes.
17423 # Used to examine libraries when file_magic_cmd begins with "file".
17424 MAGIC_CMD=$MAGIC_CMD
17426 # Must we lock files when doing compilation?
17427 need_locks=$lt_need_locks
17429 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17430 DSYMUTIL=$lt_DSYMUTIL
17432 # Tool to change global to local symbols on Mac OS X.
17435 # Tool to manipulate fat objects and archives on Mac OS X.
17438 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17441 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17442 OTOOL64=$lt_OTOOL64
17444 # Old archive suffix (normally "a").
17447 # Shared library suffix (normally ".so").
17448 shrext_cmds=$lt_shrext_cmds
17450 # The commands to extract the exported symbol list from a shared archive.
17451 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17453 # Variables whose values should be saved in libtool wrapper scripts and
17454 # restored at link time.
17455 variables_saved_for_relink=$lt_variables_saved_for_relink
17457 # Do we need the "lib" prefix for modules?
17458 need_lib_prefix=$need_lib_prefix
17460 # Do we need a version for libraries?
17461 need_version=$need_version
17463 # Library versioning type.
17464 version_type=$version_type
17466 # Shared library runtime path variable.
17467 runpath_var=$runpath_var
17469 # Shared library path variable.
17470 shlibpath_var=$shlibpath_var
17472 # Is shlibpath searched before the hard-coded library search path?
17473 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17475 # Format of library name prefix.
17476 libname_spec=$lt_libname_spec
17478 # List of archive names. First name is the real one, the rest are links.
17479 # The last name is the one that the linker finds with -lNAME
17480 library_names_spec=$lt_library_names_spec
17482 # The coded name of the library, if different from the real name.
17483 soname_spec=$lt_soname_spec
17485 # Command to use after installation of a shared archive.
17486 postinstall_cmds=$lt_postinstall_cmds
17488 # Command to use after uninstallation of a shared archive.
17489 postuninstall_cmds=$lt_postuninstall_cmds
17491 # Commands used to finish a libtool library installation in a directory.
17492 finish_cmds=$lt_finish_cmds
17494 # As "finish_cmds", except a single script fragment to be evaled but
17496 finish_eval=$lt_finish_eval
17498 # Whether we should hardcode library paths into libraries.
17499 hardcode_into_libs=$hardcode_into_libs
17501 # Compile-time system search path for libraries.
17502 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17504 # Run-time system search path for libraries.
17505 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17507 # Whether dlopen is supported.
17508 dlopen_support=$enable_dlopen
17510 # Whether dlopen of programs is supported.
17511 dlopen_self=$enable_dlopen_self
17513 # Whether dlopen of statically linked programs is supported.
17514 dlopen_self_static=$enable_dlopen_self_static
17516 # Commands to strip libraries.
17517 old_striplib=$lt_old_striplib
17518 striplib=$lt_striplib
17521 # The linker used to build libraries.
17524 # Commands used to build an old-style archive.
17525 old_archive_cmds=$lt_old_archive_cmds
17527 # A language specific compiler.
17530 # Is the compiler the GNU compiler?
17533 # Compiler flag to turn off builtin functions.
17534 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17536 # How to pass a linker flag through the compiler.
17537 wl=$lt_lt_prog_compiler_wl
17539 # Additional compiler flags for building library objects.
17540 pic_flag=$lt_lt_prog_compiler_pic
17542 # Compiler flag to prevent dynamic linking.
17543 link_static_flag=$lt_lt_prog_compiler_static
17545 # Does compiler simultaneously support -c and -o options?
17546 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17548 # Whether or not to add -lc for building shared libraries.
17549 build_libtool_need_lc=$archive_cmds_need_lc
17551 # Whether or not to disallow shared libs when runtime libs are static.
17552 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17554 # Compiler flag to allow reflexive dlopens.
17555 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17557 # Compiler flag to generate shared objects directly from archives.
17558 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17560 # Whether the compiler copes with passing no objects directly.
17561 compiler_needs_object=$lt_compiler_needs_object
17563 # Create an old-style archive from a shared archive.
17564 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17566 # Create a temporary old-style archive to link instead of a shared archive.
17567 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17569 # Commands used to build a shared archive.
17570 archive_cmds=$lt_archive_cmds
17571 archive_expsym_cmds=$lt_archive_expsym_cmds
17573 # Commands used to build a loadable module if different from building
17574 # a shared archive.
17575 module_cmds=$lt_module_cmds
17576 module_expsym_cmds=$lt_module_expsym_cmds
17578 # Whether we are building with GNU ld or not.
17579 with_gnu_ld=$lt_with_gnu_ld
17581 # Flag that allows shared libraries with undefined symbols to be built.
17582 allow_undefined_flag=$lt_allow_undefined_flag
17584 # Flag that enforces no undefined symbols.
17585 no_undefined_flag=$lt_no_undefined_flag
17587 # Flag to hardcode \$libdir into a binary during linking.
17588 # This must work even if \$libdir does not exist
17589 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17591 # If ld is used when linking, flag to hardcode \$libdir into a binary
17592 # during linking. This must work even if \$libdir does not exist.
17593 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17595 # Whether we need a single "-rpath" flag with a separated argument.
17596 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17598 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17599 # DIR into the resulting binary.
17600 hardcode_direct=$hardcode_direct
17602 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17603 # DIR into the resulting binary and the resulting library dependency is
17604 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17605 # library is relocated.
17606 hardcode_direct_absolute=$hardcode_direct_absolute
17608 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17609 # into the resulting binary.
17610 hardcode_minus_L=$hardcode_minus_L
17612 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17613 # into the resulting binary.
17614 hardcode_shlibpath_var=$hardcode_shlibpath_var
17616 # Set to "yes" if building a shared library automatically hardcodes DIR
17617 # into the library and all subsequent libraries and executables linked
17619 hardcode_automatic=$hardcode_automatic
17621 # Set to yes if linker adds runtime paths of dependent libraries
17622 # to runtime path list.
17623 inherit_rpath=$inherit_rpath
17625 # Whether libtool must link a program against all its dependency libraries.
17626 link_all_deplibs=$link_all_deplibs
17628 # Fix the shell variable \$srcfile for the compiler.
17629 fix_srcfile_path=$lt_fix_srcfile_path
17631 # Set to "yes" if exported symbols are required.
17632 always_export_symbols=$always_export_symbols
17634 # The commands to list exported symbols.
17635 export_symbols_cmds=$lt_export_symbols_cmds
17637 # Symbols that should not be listed in the preloaded symbols.
17638 exclude_expsyms=$lt_exclude_expsyms
17640 # Symbols that must always be exported.
17641 include_expsyms=$lt_include_expsyms
17643 # Commands necessary for linking programs (against libraries) with templates.
17644 prelink_cmds=$lt_prelink_cmds
17646 # Specify filename containing input files.
17647 file_list_spec=$lt_file_list_spec
17649 # How to hardcode a shared library path into an executable.
17650 hardcode_action=$hardcode_action
17652 # ### END LIBTOOL CONFIG
17658 cat <<\_LT_EOF >> "$cfgfile"
17659 # AIX sometimes has problems with the GCC collect2 program. For some
17660 # reason, if we set the COLLECT_NAMES environment variable, the problems
17661 # vanish in a puff of smoke.
17662 if test "X${COLLECT_NAMES+set}" != Xset; then
17664 export COLLECT_NAMES
17671 ltmain="$ac_aux_dir/ltmain.sh"
17674 # We use sed instead of cat because bash on DJGPP gets confused if
17675 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17676 # text mode, it properly converts lines to CR/LF. This bash problem
17677 # is reportedly fixed, but why not run on old versions too?
17678 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17679 || (rm -f "$cfgfile"; exit 1)
17683 cat << \_LT_EOF >> "$cfgfile"
17685 # func_dirname file append nondir_replacement
17686 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17687 # otherwise set result to NONDIR_REPLACEMENT.
17691 */*) func_dirname_result="${1%/*}${2}" ;;
17692 * ) func_dirname_result="${3}" ;;
17696 # func_basename file
17699 func_basename_result="${1##*/}"
17702 # func_dirname_and_basename file append nondir_replacement
17703 # perform func_basename and func_dirname in a single function
17705 # dirname: Compute the dirname of FILE. If nonempty,
17706 # add APPEND to the result, otherwise set result
17707 # to NONDIR_REPLACEMENT.
17708 # value returned in "$func_dirname_result"
17709 # basename: Compute filename of FILE.
17710 # value retuned in "$func_basename_result"
17711 # Implementation must be kept synchronized with func_dirname
17712 # and func_basename. For efficiency, we do not delegate to
17713 # those functions but instead duplicate the functionality here.
17714 func_dirname_and_basename ()
17717 */*) func_dirname_result="${1%/*}${2}" ;;
17718 * ) func_dirname_result="${3}" ;;
17720 func_basename_result="${1##*/}"
17723 # func_stripname prefix suffix name
17724 # strip PREFIX and SUFFIX off of NAME.
17725 # PREFIX and SUFFIX must not contain globbing or regex special
17726 # characters, hashes, percent signs, but SUFFIX may contain a leading
17727 # dot (in which case that matches only a dot).
17730 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17731 # positional parameters, so assign one to ordinary parameter first.
17732 func_stripname_result=${3}
17733 func_stripname_result=${func_stripname_result#"${1}"}
17734 func_stripname_result=${func_stripname_result%"${2}"}
17740 func_opt_split_opt=${1%%=*}
17741 func_opt_split_arg=${1#*=}
17748 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17749 *) func_lo2o_result=${1} ;;
17753 # func_xform libobj-or-source
17756 func_xform_result=${1%.*}.lo
17759 # func_arith arithmetic-term...
17762 func_arith_result=$(( $* ))
17766 # STRING may not start with a hyphen.
17769 func_len_result=${#1}
17774 *) # Bourne compatible functions.
17775 cat << \_LT_EOF >> "$cfgfile"
17777 # func_dirname file append nondir_replacement
17778 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17779 # otherwise set result to NONDIR_REPLACEMENT.
17782 # Extract subdirectory from the argument.
17783 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17784 if test "X$func_dirname_result" = "X${1}"; then
17785 func_dirname_result="${3}"
17787 func_dirname_result="$func_dirname_result${2}"
17791 # func_basename file
17794 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17798 # func_stripname prefix suffix name
17799 # strip PREFIX and SUFFIX off of NAME.
17800 # PREFIX and SUFFIX must not contain globbing or regex special
17801 # characters, hashes, percent signs, but SUFFIX may contain a leading
17802 # dot (in which case that matches only a dot).
17803 # func_strip_suffix prefix name
17807 .*) func_stripname_result=`$ECHO "X${3}" \
17808 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17809 *) func_stripname_result=`$ECHO "X${3}" \
17810 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17815 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17816 my_sed_long_arg='1s/^-[^=]*=//'
17821 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17822 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17828 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17831 # func_xform libobj-or-source
17834 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17837 # func_arith arithmetic-term...
17840 func_arith_result=`expr "$@"`
17844 # STRING may not start with a hyphen.
17847 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17853 case $lt_shell_append in
17855 cat << \_LT_EOF >> "$cfgfile"
17857 # func_append var value
17858 # Append VALUE to the end of shell variable VAR.
17866 cat << \_LT_EOF >> "$cfgfile"
17868 # func_append var value
17869 # Append VALUE to the end of shell variable VAR.
17880 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17881 || (rm -f "$cfgfile"; exit 1)
17883 mv -f "$cfgfile" "$ofile" ||
17884 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17889 for ac_file in $CONFIG_FILES; do
17890 # Support "outfile[:infile[:infile...]]"
17892 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17894 # PO directories have a Makefile.in generated from Makefile.in.in.
17895 case "$ac_file" in */Makefile.in)
17896 # Adjust a relative srcdir.
17897 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17898 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17899 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17900 # In autoconf-2.13 it is called $ac_given_srcdir.
17901 # In autoconf-2.50 it is called $srcdir.
17902 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17903 case "$ac_given_srcdir" in
17904 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17905 /*) top_srcdir="$ac_given_srcdir" ;;
17906 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17908 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17909 rm -f "$ac_dir/POTFILES"
17910 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17911 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17912 POMAKEFILEDEPS="POTFILES.in"
17913 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17914 # on $ac_dir but don't depend on user-specified configuration
17916 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17917 # The LINGUAS file contains the set of available languages.
17918 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17919 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17921 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17922 # Hide the ALL_LINGUAS assigment from automake.
17923 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17924 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17926 # The set of available languages was given in configure.in.
17927 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17929 case "$ac_given_srcdir" in
17931 *) srcdirpre='$(srcdir)/' ;;
17937 for lang in $ALL_LINGUAS; do
17938 POFILES="$POFILES $srcdirpre$lang.po"
17939 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17940 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17941 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17943 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17944 # environment variable.
17946 if test -n "$ALL_LINGUAS"; then
17947 for presentlang in $ALL_LINGUAS; do
17949 if test "%UNSET%" != "$LINGUAS"; then
17950 desiredlanguages="$LINGUAS"
17952 desiredlanguages="$ALL_LINGUAS"
17954 for desiredlang in $desiredlanguages; do
17955 # Use the presentlang catalog if desiredlang is
17956 # a. equal to presentlang, or
17957 # b. a variant of presentlang (because in this case,
17958 # presentlang can be used as a fallback for messages
17959 # which are not translated in the desiredlang catalog).
17960 case "$desiredlang" in
17961 "$presentlang"*) useit=yes;;
17964 if test $useit = yes; then
17965 INST_LINGUAS="$INST_LINGUAS $presentlang"
17970 if test -n "$INST_LINGUAS"; then
17971 for lang in $INST_LINGUAS; do
17972 CATALOGS="$CATALOGS $lang.gmo"
17975 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17976 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17977 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17978 if test -f "$f"; then
17980 *.orig | *.bak | *~) ;;
17981 *) cat "$f" >> "$ac_dir/Makefile" ;;
17990 if test "$GCC" = yes; then
17991 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
17993 echo "/* generated for $CC */" > tmp-stdint.h
17996 sed 's/^ *//' >> tmp-stdint.h <<EOF
17998 #ifndef GCC_GENERATED_STDINT_H
17999 #define GCC_GENERATED_STDINT_H 1
18001 #include <sys/types.h>
18004 if test "$acx_cv_header_stdint" != stdint.h; then
18005 echo "#include <stddef.h>" >> tmp-stdint.h
18007 if test "$acx_cv_header_stdint" != stddef.h; then
18008 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18011 sed 's/^ *//' >> tmp-stdint.h <<EOF
18012 /* glibc uses these symbols as guards to prevent redefinitions. */
18013 #ifdef __int8_t_defined
18018 #ifdef __uint32_t_defined
18024 # ----------------- done header, emit basic int types -------------
18025 if test "$acx_cv_header_stdint" = stddef.h; then
18026 sed 's/^ *//' >> tmp-stdint.h <<EOF
18030 #ifndef __uint8_t_defined
18031 #define __uint8_t_defined
18032 typedef unsigned $acx_cv_type_int8_t uint8_t;
18038 #ifndef __uint16_t_defined
18039 #define __uint16_t_defined
18040 typedef unsigned $acx_cv_type_int16_t uint16_t;
18046 #ifndef __uint32_t_defined
18047 #define __uint32_t_defined
18048 typedef unsigned $acx_cv_type_int32_t uint32_t;
18054 #ifndef __int8_t_defined
18055 #define __int8_t_defined
18056 typedef $acx_cv_type_int8_t int8_t;
18062 #ifndef __int16_t_defined
18063 #define __int16_t_defined
18064 typedef $acx_cv_type_int16_t int16_t;
18070 #ifndef __int32_t_defined
18071 #define __int32_t_defined
18072 typedef $acx_cv_type_int32_t int32_t;
18076 elif test "$ac_cv_type_u_int32_t" = yes; then
18077 sed 's/^ *//' >> tmp-stdint.h <<EOF
18079 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18092 #ifndef __uint8_t_defined
18093 #define __uint8_t_defined
18094 typedef u_int8_t uint8_t;
18100 #ifndef __uint16_t_defined
18101 #define __uint16_t_defined
18102 typedef u_int16_t uint16_t;
18108 #ifndef __uint32_t_defined
18109 #define __uint32_t_defined
18110 typedef u_int32_t uint32_t;
18115 sed 's/^ *//' >> tmp-stdint.h <<EOF
18117 /* Some systems have guard macros to prevent redefinitions, define them. */
18139 # ------------- done basic int types, emit int64_t types ------------
18140 if test "$ac_cv_type_uint64_t" = yes; then
18141 sed 's/^ *//' >> tmp-stdint.h <<EOF
18143 /* system headers have good uint64_t and int64_t */
18151 elif test "$ac_cv_type_u_int64_t" = yes; then
18152 sed 's/^ *//' >> tmp-stdint.h <<EOF
18154 /* system headers have an u_int64_t (and int64_t) */
18160 #ifndef __uint64_t_defined
18161 #define __uint64_t_defined
18162 typedef u_int64_t uint64_t;
18166 elif test -n "$acx_cv_type_int64_t"; then
18167 sed 's/^ *//' >> tmp-stdint.h <<EOF
18169 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
18172 typedef $acx_cv_type_int64_t int64_t;
18176 #ifndef __uint64_t_defined
18177 #define __uint64_t_defined
18178 typedef unsigned $acx_cv_type_int64_t uint64_t;
18183 sed 's/^ *//' >> tmp-stdint.h <<EOF
18185 /* some common heuristics for int64_t, using compiler-specific tests */
18186 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
18189 #ifndef __int64_t_defined
18190 typedef long long int64_t;
18195 typedef unsigned long long uint64_t;
18198 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
18199 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
18200 does not implement __extension__. But that compiler doesn't define
18202 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
18203 # define __extension__
18208 __extension__ typedef long long int64_t;
18212 __extension__ typedef unsigned long long uint64_t;
18215 #elif !defined __STRICT_ANSI__
18216 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
18220 typedef __int64 int64_t;
18224 typedef unsigned __int64 uint64_t;
18226 # endif /* compiler */
18228 #endif /* ANSI version */
18232 # ------------- done int64_t types, emit intptr types ------------
18233 if test "$ac_cv_type_uintptr_t" != yes; then
18234 sed 's/^ *//' >> tmp-stdint.h <<EOF
18236 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
18237 #ifndef __uintptr_t_defined
18238 typedef u$acx_cv_type_intptr_t uintptr_t;
18240 #ifndef __intptr_t_defined
18241 typedef $acx_cv_type_intptr_t intptr_t;
18246 # ------------- done intptr types, emit int_least types ------------
18247 if test "$ac_cv_type_int_least32_t" != yes; then
18248 sed 's/^ *//' >> tmp-stdint.h <<EOF
18250 /* Define int_least types */
18251 typedef int8_t int_least8_t;
18252 typedef int16_t int_least16_t;
18253 typedef int32_t int_least32_t;
18255 typedef int64_t int_least64_t;
18258 typedef uint8_t uint_least8_t;
18259 typedef uint16_t uint_least16_t;
18260 typedef uint32_t uint_least32_t;
18262 typedef uint64_t uint_least64_t;
18267 # ------------- done intptr types, emit int_fast types ------------
18268 if test "$ac_cv_type_int_fast32_t" != yes; then
18269 sed 's/^ *//' >> tmp-stdint.h <<EOF
18271 /* Define int_fast types. short is often slow */
18272 typedef int8_t int_fast8_t;
18273 typedef int int_fast16_t;
18274 typedef int32_t int_fast32_t;
18276 typedef int64_t int_fast64_t;
18279 typedef uint8_t uint_fast8_t;
18280 typedef unsigned int uint_fast16_t;
18281 typedef uint32_t uint_fast32_t;
18283 typedef uint64_t uint_fast64_t;
18288 if test "$ac_cv_type_uintmax_t" != yes; then
18289 sed 's/^ *//' >> tmp-stdint.h <<EOF
18291 /* Define intmax based on what we found */
18293 typedef int64_t intmax_t;
18295 typedef long intmax_t;
18298 typedef uint64_t uintmax_t;
18300 typedef unsigned long uintmax_t;
18305 sed 's/^ *//' >> tmp-stdint.h <<EOF
18307 #endif /* GCC_GENERATED_STDINT_H */
18310 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
18313 mv -f tmp-stdint.h bfd_stdint.h
18320 *) srcdirpre='$(srcdir)/' ;;
18324 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
18325 if test $lang != dummy; then
18326 POFILES="$POFILES $srcdirpre$lang.po"
18327 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18330 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
18331 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
18332 -e "s,@POFILES@,$POFILES," \
18333 -e "s,@GMOFILES@,$GMOFILES," \
18334 po/Makefile.in > po/Makefile ;;
18342 ac_clean_files=$ac_clean_files_save
18344 test $ac_write_fail = 0 ||
18345 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18348 # configure is writing to config.log, and then calls config.status.
18349 # config.status does its own redirection, appending to config.log.
18350 # Unfortunately, on DOS this fails, as config.log is still kept open
18351 # by configure, so config.status won't be able to write to it; its
18352 # output is simply discarded. So we exec the FD to /dev/null,
18353 # effectively closing config.log, so it can be properly (re)opened and
18354 # appended to by config.status. When coming back to configure, we
18355 # need to make the FD available again.
18356 if test "$no_create" != yes; then
18358 ac_config_status_args=
18359 test "$silent" = yes &&
18360 ac_config_status_args="$ac_config_status_args --quiet"
18362 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18364 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18365 # would make configure fail if this is the last instruction.
18366 $ac_cs_success || as_fn_exit $?
18368 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18370 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}