2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for binutils 2.33.50.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
588 PACKAGE_NAME
='binutils'
589 PACKAGE_TARNAME
='binutils'
590 PACKAGE_VERSION
='2.33.50'
591 PACKAGE_STRING
='binutils 2.33.50'
595 ac_unique_file
="ar.c"
596 # Factoring default headers for most tests.
597 ac_includes_default
="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
633 ac_subst_vars
='am__EXEEXT_FALSE
639 OBJDUMP_PRIVATE_OFILES
661 MAINTAINER_MODE_FALSE
685 WARN_CFLAGS_FOR_BUILD
729 INSTALL_STRIP_PROGRAM
790 program_transform_name
803 enable_option_checking
804 enable_dependency_tracking
815 enable_deterministic_archives
816 enable_default_strings_all
819 enable_build_warnings
821 enable_maintainer_mode
826 ac_precious_vars
='build_alias
839 # Initialize some variables set by options.
841 ac_init_version
=false
842 ac_unrecognized_opts
=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
853 program_transform_name
=s
,x
,x
,
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir
='${exec_prefix}/bin'
868 sbindir
='${exec_prefix}/sbin'
869 libexecdir
='${exec_prefix}/libexec'
870 datarootdir
='${prefix}/share'
871 datadir
='${datarootdir}'
872 sysconfdir
='${prefix}/etc'
873 sharedstatedir
='${prefix}/com'
874 localstatedir
='${prefix}/var'
875 includedir
='${prefix}/include'
876 oldincludedir
='/usr/include'
877 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
878 infodir
='${datarootdir}/info'
883 libdir
='${exec_prefix}/lib'
884 localedir
='${datarootdir}/locale'
885 mandir
='${datarootdir}/man'
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
893 eval $ac_prev=\
$ac_option
899 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 # Accept the important Cygnus configure options, so we can diagnose typos.
906 case $ac_dashdash$ac_option in
910 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
912 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
915 -build |
--build |
--buil |
--bui |
--bu)
916 ac_prev
=build_alias
;;
917 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
918 build_alias
=$ac_optarg ;;
920 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
921 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
922 ac_prev
=cache_file
;;
923 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
924 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
925 cache_file
=$ac_optarg ;;
928 cache_file
=config.cache
;;
930 -datadir |
--datadir |
--datadi |
--datad)
932 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
933 datadir
=$ac_optarg ;;
935 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
936 |
--dataroo |
--dataro |
--datar)
937 ac_prev
=datarootdir
;;
938 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
939 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
940 datarootdir
=$ac_optarg ;;
942 -disable-* |
--disable-*)
943 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
946 as_fn_error $?
"invalid feature name: $ac_useropt"
947 ac_useropt_orig
=$ac_useropt
948 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
953 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep
=', ';;
956 eval enable_
$ac_useropt=no
;;
958 -docdir |
--docdir |
--docdi |
--doc |
--do)
960 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
963 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
965 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
968 -enable-* |
--enable-*)
969 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
972 as_fn_error $?
"invalid feature name: $ac_useropt"
973 ac_useropt_orig
=$ac_useropt
974 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
979 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep
=', ';;
982 eval enable_
$ac_useropt=\
$ac_optarg ;;
984 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
985 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
986 |
--exec |
--exe |
--ex)
987 ac_prev
=exec_prefix
;;
988 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
989 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
990 |
--exec=* |
--exe=* |
--ex=*)
991 exec_prefix
=$ac_optarg ;;
993 -gas |
--gas |
--ga |
--g)
994 # Obsolete; use --with-gas.
997 -help |
--help |
--hel |
--he |
-h)
999 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1000 ac_init_help
=recursive
;;
1001 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1002 ac_init_help
=short
;;
1004 -host |
--host |
--hos |
--ho)
1005 ac_prev
=host_alias
;;
1006 -host=* |
--host=* |
--hos=* |
--ho=*)
1007 host_alias
=$ac_optarg ;;
1009 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1011 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1013 htmldir
=$ac_optarg ;;
1015 -includedir |
--includedir |
--includedi |
--included |
--include \
1016 |
--includ |
--inclu |
--incl |
--inc)
1017 ac_prev
=includedir
;;
1018 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1019 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1020 includedir
=$ac_optarg ;;
1022 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1024 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1025 infodir
=$ac_optarg ;;
1027 -libdir |
--libdir |
--libdi |
--libd)
1029 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1030 libdir
=$ac_optarg ;;
1032 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1033 |
--libexe |
--libex |
--libe)
1034 ac_prev
=libexecdir
;;
1035 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1036 |
--libexe=* |
--libex=* |
--libe=*)
1037 libexecdir
=$ac_optarg ;;
1039 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1040 ac_prev
=localedir
;;
1041 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1042 localedir
=$ac_optarg ;;
1044 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1045 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1046 ac_prev
=localstatedir
;;
1047 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1048 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1049 localstatedir
=$ac_optarg ;;
1051 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1053 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1054 mandir
=$ac_optarg ;;
1056 -nfp |
--nfp |
--nf)
1057 # Obsolete; use --without-fp.
1060 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1061 |
--no-cr |
--no-c |
-n)
1064 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1065 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1068 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1069 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1070 |
--oldin |
--oldi |
--old |
--ol |
--o)
1071 ac_prev
=oldincludedir
;;
1072 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1073 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1074 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1075 oldincludedir
=$ac_optarg ;;
1077 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1079 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1080 prefix
=$ac_optarg ;;
1082 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1083 |
--program-pre |
--program-pr |
--program-p)
1084 ac_prev
=program_prefix
;;
1085 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1086 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1087 program_prefix
=$ac_optarg ;;
1089 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1090 |
--program-suf |
--program-su |
--program-s)
1091 ac_prev
=program_suffix
;;
1092 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1093 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1094 program_suffix
=$ac_optarg ;;
1096 -program-transform-name |
--program-transform-name \
1097 |
--program-transform-nam |
--program-transform-na \
1098 |
--program-transform-n |
--program-transform- \
1099 |
--program-transform |
--program-transfor \
1100 |
--program-transfo |
--program-transf \
1101 |
--program-trans |
--program-tran \
1102 |
--progr-tra |
--program-tr |
--program-t)
1103 ac_prev
=program_transform_name
;;
1104 -program-transform-name=* |
--program-transform-name=* \
1105 |
--program-transform-nam=* |
--program-transform-na=* \
1106 |
--program-transform-n=* |
--program-transform-=* \
1107 |
--program-transform=* |
--program-transfor=* \
1108 |
--program-transfo=* |
--program-transf=* \
1109 |
--program-trans=* |
--program-tran=* \
1110 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1111 program_transform_name
=$ac_optarg ;;
1113 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1115 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1116 pdfdir
=$ac_optarg ;;
1118 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1120 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1123 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1124 |
-silent |
--silent |
--silen |
--sile |
--sil)
1127 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1129 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1131 sbindir
=$ac_optarg ;;
1133 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1134 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1135 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1137 ac_prev
=sharedstatedir
;;
1138 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1139 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1140 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1142 sharedstatedir
=$ac_optarg ;;
1144 -site |
--site |
--sit)
1146 -site=* |
--site=* |
--sit=*)
1149 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1151 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1152 srcdir
=$ac_optarg ;;
1154 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1155 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1156 ac_prev
=sysconfdir
;;
1157 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1158 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1159 sysconfdir
=$ac_optarg ;;
1161 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1162 ac_prev
=target_alias
;;
1163 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1164 target_alias
=$ac_optarg ;;
1166 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1169 -version |
--version |
--versio |
--versi |
--vers |
-V)
1170 ac_init_version
=: ;;
1173 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1176 as_fn_error $?
"invalid package name: $ac_useropt"
1177 ac_useropt_orig
=$ac_useropt
1178 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1183 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184 ac_unrecognized_sep
=', ';;
1186 eval with_
$ac_useropt=\
$ac_optarg ;;
1188 -without-* |
--without-*)
1189 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1192 as_fn_error $?
"invalid package name: $ac_useropt"
1193 ac_useropt_orig
=$ac_useropt
1194 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1199 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep
=', ';;
1202 eval with_
$ac_useropt=no
;;
1205 # Obsolete; use --with-x.
1208 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1209 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1210 ac_prev
=x_includes
;;
1211 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1212 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1213 x_includes
=$ac_optarg ;;
1215 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1216 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1217 ac_prev
=x_libraries
;;
1218 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1219 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1220 x_libraries
=$ac_optarg ;;
1222 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1223 Try \`$0 --help' for more information"
1227 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1228 # Reject names that are not valid shell variable names.
1229 case $ac_envvar in #(
1230 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1231 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1233 eval $ac_envvar=\
$ac_optarg
1234 export $ac_envvar ;;
1237 # FIXME: should be removed in autoconf 3.0.
1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1247 if test -n "$ac_prev"; then
1248 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1249 as_fn_error $?
"missing argument to $ac_option"
1252 if test -n "$ac_unrecognized_opts"; then
1253 case $enable_option_checking in
1255 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260 # Check all directory arguments for consistency.
1261 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir
1266 eval ac_val
=\$
$ac_var
1267 # Remove trailing slashes.
1270 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271 eval $ac_var=\
$ac_val;;
1273 # Be sure to have absolute directory names.
1275 [\\/$
]* | ?
:[\\/]* ) continue;;
1276 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1278 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1286 target
=$target_alias
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x
; then
1290 if test "x$build_alias" = x
; then
1291 cross_compiling
=maybe
1292 elif test "x$build_alias" != "x$host_alias"; then
1298 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1300 test "$silent" = yes && exec 6>/dev
/null
1303 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di
=`ls -di .` &&
1305 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1306 as_fn_error $?
"working directory cannot be determined"
1307 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308 as_fn_error $?
"pwd does not report name of working directory"
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313 ac_srcdir_defaulted
=yes
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir
=`$as_dirname -- "$as_myself" ||
1316 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$as_myself" : 'X\(//\)[^/]' \| \
1318 X"$as_myself" : 'X\(//\)$' \| \
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320 $as_echo X"$as_myself" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1343 ac_srcdir_defaulted
=no
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1347 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1349 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1353 # When building in place, set srcdir=.
1354 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 # Remove unnecessary trailing slashes from srcdir.
1358 # Double slashes in file names in object file debugging info
1359 # mess up M-x gdb in Emacs.
1361 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 for ac_var
in $ac_precious_vars; do
1364 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1365 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1366 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1367 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1371 # Report the --help message.
1373 if test "$ac_init_help" = "long"; then
1374 # Omit some internal or obsolete options to make the list less imposing.
1375 # This message is too long to be a string in the A/UX 3.1 sh.
1377 \`configure' configures binutils 2.33.50 to adapt to many kinds of systems.
1379 Usage: $0 [OPTION]... [VAR=VALUE]...
1381 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382 VAR=VALUE. See below for descriptions of some of the useful variables.
1384 Defaults for the options are specified in brackets.
1387 -h, --help display this help and exit
1388 --help=short display options specific to this package
1389 --help=recursive display the short help of all the included packages
1390 -V, --version display version information and exit
1391 -q, --quiet, --silent do not print \`checking ...' messages
1392 --cache-file=FILE cache test results in FILE [disabled]
1393 -C, --config-cache alias for \`--cache-file=config.cache'
1394 -n, --no-create do not create output files
1395 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397 Installation directories:
1398 --prefix=PREFIX install architecture-independent files in PREFIX
1399 [$ac_default_prefix]
1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1403 By default, \`make install' will install all the files in
1404 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1405 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406 for instance \`--prefix=\$HOME'.
1408 For better control, use the options below.
1410 Fine tuning of the installation directories:
1411 --bindir=DIR user executables [EPREFIX/bin]
1412 --sbindir=DIR system admin executables [EPREFIX/sbin]
1413 --libexecdir=DIR program executables [EPREFIX/libexec]
1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417 --libdir=DIR object code libraries [EPREFIX/lib]
1418 --includedir=DIR C header files [PREFIX/include]
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422 --infodir=DIR info documentation [DATAROOTDIR/info]
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424 --mandir=DIR man documentation [DATAROOTDIR/man]
1425 --docdir=DIR documentation root [DATAROOTDIR/doc/binutils]
1426 --htmldir=DIR html documentation [DOCDIR]
1427 --dvidir=DIR dvi documentation [DOCDIR]
1428 --pdfdir=DIR pdf documentation [DOCDIR]
1429 --psdir=DIR ps documentation [DOCDIR]
1435 --program-prefix=PREFIX prepend PREFIX to installed program names
1436 --program-suffix=SUFFIX append SUFFIX to installed program names
1437 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1440 --build=BUILD configure
for building on BUILD
[guessed
]
1441 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1442 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1446 if test -n "$ac_init_help"; then
1447 case $ac_init_help in
1448 short | recursive
) echo "Configuration of binutils 2.33.50:";;
1453 --disable-option-checking ignore unrecognized
--enable/--with options
1454 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1455 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1456 --enable-dependency-tracking
1457 do not reject slow dependency extractors
1458 --disable-dependency-tracking
1459 speeds up one-time build
1460 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1461 --disable-silent-rules verbose build output
(undo
: "make V=0")
1462 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1463 --enable-static[=PKGS
] build static libraries
[default
=yes]
1464 --enable-fast-install[=PKGS
]
1465 optimize
for fast installation
[default
=yes]
1466 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1467 --enable-plugins Enable support
for plugins
1468 --disable-largefile omit support
for large files
1469 --enable-targets alternative target configurations
1470 --enable-deterministic-archives
1471 ar and ranlib default to
-D behavior
1472 --disable-default-strings-all
1473 strings defaults to
--data behavior
1474 --enable-werror treat compile warnings as errors
1475 --enable-build-warnings enable build-time compiler warnings
1476 --disable-nls do not use Native Language Support
1477 --enable-maintainer-mode
1478 enable make rules and dependencies not useful
(and
1479 sometimes confusing
) to the casual installer
1480 --disable-rpath do not hardcode runtime library paths
1483 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1484 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1485 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1487 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1488 --with-debuginfod Enable debuginfo lookups with debuginfod
1490 --with-system-zlib use installed libz
1491 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1492 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1493 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1495 Some influential environment variables:
1496 CC C compiler command
1497 CFLAGS C compiler flags
1498 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1499 nonstandard directory <lib dir>
1500 LIBS libraries to pass to the linker, e.g. -l<library>
1501 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1502 you have headers in a nonstandard directory <include dir>
1504 YACC The `Yet Another Compiler Compiler' implementation to use.
1505 Defaults to the first program found out of
: `bison -y', `byacc
',
1507 YFLAGS The list of arguments that will be passed by default to
$YACC.
1508 This
script will default YFLAGS to the empty string to avoid a
1509 default value of
`-d' given by some make applications.
1511 Use these variables to override the choices made by `configure
' or to help
1512 it to find libraries and programs with nonstandard names/locations.
1514 Report bugs to the package provider.
1519 if test "$ac_init_help" = "recursive"; then
1520 # If there are subdirs, report their specific --help.
1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522 test -d "$ac_dir" ||
1523 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1531 # A ".." for each directory in $ac_dir_suffix.
1532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1533 case $ac_top_builddir_sub in
1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 ac_abs_top_builddir=$ac_pwd
1539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540 # for backward compatibility:
1541 ac_top_builddir=$ac_top_build_prefix
1544 .) # We are building in place.
1546 ac_top_srcdir=$ac_top_builddir_sub
1547 ac_abs_top_srcdir=$ac_pwd ;;
1548 [\\/]* | ?:[\\/]* ) # Absolute name.
1549 ac_srcdir=$srcdir$ac_dir_suffix;
1550 ac_top_srcdir=$srcdir
1551 ac_abs_top_srcdir=$srcdir ;;
1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1554 ac_top_srcdir=$ac_top_build_prefix$srcdir
1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559 cd "$ac_dir" || { ac_status=$?; continue; }
1560 # Check for guested configure.
1561 if test -f "$ac_srcdir/configure.gnu"; then
1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1564 elif test -f "$ac_srcdir/configure"; then
1566 $SHELL "$ac_srcdir/configure" --help=recursive
1568 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570 cd "$ac_pwd" || { ac_status=$?; break; }
1574 test -n "$ac_init_help" && exit $ac_status
1575 if $ac_init_version; then
1577 binutils configure 2.33.50
1578 generated by GNU Autoconf 2.69
1580 Copyright (C) 2012 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1587 ## ------------------------ ##
1588 ## Autoconf initialization. ##
1589 ## ------------------------ ##
1591 # ac_fn_c_try_compile LINENO
1592 # --------------------------
1593 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1594 ac_fn_c_try_compile ()
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 rm -f conftest.$ac_objext
1598 if { { ac_try="$ac_compile"
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_compile") 2>conftest.err
1607 if test -s conftest.err; then
1608 grep -v '^
*+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } && {
1614 test -z "$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 } && test -s conftest.$ac_objext; then :
1619 $as_echo "$as_me: failed program was:" >&5
1620 sed 's
/^
/|
/' conftest.$ac_ext >&5
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
1627 } # ac_fn_c_try_compile
1629 # ac_fn_c_try_link LINENO
1630 # -----------------------
1631 # Try to link conftest.$ac_ext, and return whether this succeeded.
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext conftest$ac_exeext
1636 if { { ac_try="$ac_link"
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_link") 2>conftest.err
1645 if test -s conftest.err; then
1646 grep -v '^
*+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest$ac_exeext && {
1655 test "$cross_compiling" = yes ||
1656 test -x conftest$ac_exeext
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's
/^
/|
/' conftest.$ac_ext >&5
1665 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1666 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1667 # interfere with the next link command; also delete a directory that is
1668 # left behind by Apple's compiler. We
do this before executing the actions.
1669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status
$ac_retval
1673 } # ac_fn_c_try_link
1675 # ac_fn_c_try_cpp LINENO
1676 # ----------------------
1677 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1680 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1681 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } > conftest.i && {
1697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1712 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1713 # -------------------------------------------------------
1714 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1715 # the include files in INCLUDES and setting the cache variable VAR
1717 ac_fn_c_check_header_mongrel ()
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 if eval \${$3+:} false; then :
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 $as_echo_n "checking for $2... " >&6; }
1723 if eval \${$3+:} false; then :
1724 $as_echo_n "(cached) " >&6
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728 $as_echo "$ac_res" >&6; }
1730 # Is the header compilable?
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1732 $as_echo_n "checking $2 usability... " >&6; }
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1738 if ac_fn_c_try_compile "$LINENO"; then :
1739 ac_header_compiler=yes
1741 ac_header_compiler=no
1743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1745 $as_echo "$ac_header_compiler" >&6; }
1747 # Is the header present?
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1749 $as_echo_n "checking $2 presence... " >&6; }
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1754 if ac_fn_c_try_cpp "$LINENO"; then :
1755 ac_header_preproc=yes
1757 ac_header_preproc=no
1759 rm -f conftest.err conftest.i conftest.$ac_ext
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1761 $as_echo "$ac_header_preproc" >&6; }
1763 # So? What about this header?
1764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1767 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1769 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1773 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1775 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1777 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1779 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1781 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1789 eval "$3=\$ac_header_compiler"
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 $as_echo "$ac_res" >&6; }
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 } # ac_fn_c_check_header_mongrel
1799 # ac_fn_c_try_run LINENO
1800 # ----------------------
1801 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1802 # that executables *can* be run.
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if { { ac_try="$ac_link"
1808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1809 *) ac_try_echo
=$ac_try;;
1811 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_link") 2>&5
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1817 { { case "(($ac_try" in
1818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_try") 2>&5
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; }; }; then :
1829 $as_echo "$as_me: program exited with status $ac_status" >&5
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1833 ac_retval=$ac_status
1835 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1841 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1842 # -------------------------------------------------------
1843 # Tests whether HEADER exists and can be compiled using the include files in
1844 # INCLUDES, setting the cache variable VAR accordingly.
1845 ac_fn_c_check_header_compile ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849 $as_echo_n "checking for $2... " >&6; }
1850 if eval \${$3+:} false; then :
1851 $as_echo_n "(cached) " >&6
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1858 if ac_fn_c_try_compile "$LINENO"; then :
1863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 } # ac_fn_c_check_header_compile
1872 # ac_fn_c_check_func LINENO FUNC VAR
1873 # ----------------------------------
1874 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1875 ac_fn_c_check_func ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if eval \${$3+:} false; then :
1881 $as_echo_n "(cached) " >&6
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1885 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1887 #define $2 innocuous_$2
1889 /* System header to define __stub macros and hopefully few prototypes,
1890 which can conflict with char $2 (); below.
1891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1892 <limits.h> exists even on freestanding compilers. */
1895 # include <limits.h>
1897 # include <assert.h>
1902 /* Override any GCC internal prototype to avoid an error.
1903 Use char because int might match the return type of a GCC
1904 builtin and then its argument prototype would still apply. */
1909 /* The GNU C library defines this for functions which it implements
1910 to always fail with ENOSYS. Some functions are actually named
1911 something starting with __ and the normal name is an alias. */
1912 #if defined __stub_$2 || defined __stub___$2
1924 if ac_fn_c_try_link "$LINENO"; then :
1929 rm -f core conftest.err conftest.$ac_objext \
1930 conftest$ac_exeext conftest.$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937 } # ac_fn_c_check_func
1939 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1940 # ---------------------------------------------
1941 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1943 ac_fn_c_check_decl ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1947 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1949 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1950 if eval \${$3+:} false; then :
1951 $as_echo_n "(cached) " >&6
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1959 #ifndef $as_decl_name
1961 (void) $as_decl_use;
1963 (void) $as_decl_name;
1971 if ac_fn_c_try_compile "$LINENO"; then :
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 } # ac_fn_c_check_decl
1985 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1986 # --------------------------------------------
1987 # Tries to find the compile-time value of EXPR in a program that includes
1988 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1990 ac_fn_c_compute_int ()
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 if test "$cross_compiling" = yes; then
1994 # Depending upon the size, compute the lo and hi bounds.
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
2001 static int test_array [1 - 2 * !(($2) >= 0)];
2003 return test_array [0];
2009 if ac_fn_c_try_compile "$LINENO"; then :
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2018 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2020 return test_array [0];
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027 ac_hi=$ac_mid; break
2029 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2030 if test $ac_lo -le $ac_mid; then
2034 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2045 static int test_array [1 - 2 * !(($2) < 0)];
2047 return test_array [0];
2053 if ac_fn_c_try_compile "$LINENO"; then :
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2062 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2064 return test_array [0];
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071 ac_lo=$ac_mid; break
2073 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2074 if test $ac_mid -le $ac_hi; then
2078 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088 # Binary search between lo and hi bounds.
2089 while test "x$ac_lo" != "x$ac_hi"; do
2090 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2097 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2099 return test_array [0];
2105 if ac_fn_c_try_compile "$LINENO"; then :
2108 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2120 static long int longval () { return $2; }
2121 static unsigned long int ulongval () { return $2; }
2128 FILE *f = fopen ("conftest.val", "w");
2133 long int i = longval ();
2136 fprintf (f, "%ld", i);
2140 unsigned long int i = ulongval ();
2143 fprintf (f, "%lu", i);
2145 /* Do not output a trailing newline, as this causes \r\n confusion
2146 on some platforms. */
2147 return ferror (f) || fclose (f) != 0;
2153 if ac_fn_c_try_run "$LINENO"; then :
2154 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2159 conftest.$ac_objext conftest.beam conftest.$ac_ext
2163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2164 as_fn_set_status $ac_retval
2166 } # ac_fn_c_compute_int
2168 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2169 # -------------------------------------------
2170 # Tests whether TYPE exists after having included INCLUDES, setting cache
2171 # variable VAR accordingly.
2172 ac_fn_c_check_type ()
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2176 $as_echo_n "checking for $2... " >&6; }
2177 if eval \${$3+:} false; then :
2178 $as_echo_n "(cached) " >&6
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2206 if ac_fn_c_try_compile "$LINENO"; then :
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217 $as_echo "$ac_res" >&6; }
2218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2220 } # ac_fn_c_check_type
2221 cat >config.log <<_ACEOF
2222 This file contains any messages produced by compilers while
2223 running configure, to aid debugging if configure makes a mistake.
2225 It was created by binutils $as_me 2.33.50, which was
2226 generated by GNU Autoconf 2.69. Invocation command line was
2238 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2239 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2240 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2241 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2242 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2244 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2245 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2247 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2248 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2249 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2250 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2251 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2252 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2253 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 test -z "$as_dir" && as_dir=.
2262 $as_echo "PATH: $as_dir"
2278 # Keep a trace of the command line.
2279 # Strip out --no-create and --no-recursion so they do not pile up.
2280 # Strip out --silent because we don't want to record it for future runs.
2281 # Also quote any args containing shell meta-characters.
2282 # Make two passes to allow for proper duplicate-argument suppression.
2286 ac_must_keep_next=false
2292 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2294 | -silent | --silent | --silen | --sile | --sil)
2297 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2300 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2302 as_fn_append ac_configure_args1 " '$ac_arg'"
2303 if test $ac_must_keep_next = true; then
2304 ac_must_keep_next=false # Got value, back to normal.
2307 *=* | --config-cache | -C | -disable-* | --disable-* \
2308 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2309 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2310 | -with-* | --with-* | -without-* | --without-* | --x)
2311 case "$ac_configure_args0 " in
2312 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2315 -* ) ac_must_keep_next=true ;;
2318 as_fn_append ac_configure_args " '$ac_arg'"
2323 { ac_configure_args0=; unset ac_configure_args0;}
2324 { ac_configure_args1=; unset ac_configure_args1;}
2326 # When interrupted or exit'd, cleanup temporary files, and complete
2327 # config.log. We remove comments because anyway the quotes in there
2328 # would cause problems or look ugly.
2329 # WARNING: Use '\'' to represent an apostrophe within the trap.
2330 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2331 trap 'exit_status=$?
2332 # Save into config.log some information that might help in debugging.
2336 $as_echo "## ---------------- ##
2337 ## Cache variables. ##
2338 ## ---------------- ##"
2340 # The following way of writing the cache mishandles newlines in values,
2342 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2343 eval ac_val=\$$ac_var
2347 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2348 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2351 _ | IFS | as_nl) ;; #(
2352 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2353 *) { eval $ac_var=; unset $ac_var;} ;;
2358 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2359 *${as_nl}ac_space=\ *)
2361 "s/'\''/'\''\\\\'\'''\''/g;
2362 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2365 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2372 $as_echo "## ----------------- ##
2373 ## Output variables. ##
2374 ## ----------------- ##"
2376 for ac_var in $ac_subst_vars
2378 eval ac_val=\$$ac_var
2380 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2382 $as_echo "$ac_var='\''$ac_val'\''"
2386 if test -n "$ac_subst_files"; then
2387 $as_echo "## ------------------- ##
2388 ## File substitutions. ##
2389 ## ------------------- ##"
2391 for ac_var in $ac_subst_files
2393 eval ac_val=\$$ac_var
2395 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2397 $as_echo "$ac_var='\''$ac_val'\''"
2402 if test -s confdefs.h; then
2403 $as_echo "## ----------- ##
2410 test "$ac_signal" != 0 &&
2411 $as_echo "$as_me: caught signal $ac_signal"
2412 $as_echo "$as_me: exit $exit_status"
2414 rm -f core *.core core.conftest.* &&
2415 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2418 for ac_signal in 1 2 13 15; do
2419 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2423 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2424 rm -f -r conftest* confdefs.h
2426 $as_echo "/* confdefs.h */" > confdefs.h
2428 # Predefined preprocessor variables.
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_NAME "$PACKAGE_NAME"
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE_STRING "$PACKAGE_STRING"
2446 cat >>confdefs.h <<_ACEOF
2447 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE_URL "$PACKAGE_URL"
2455 # Let the site file select an alternate cache file if it wants to.
2456 # Prefer an explicitly selected file to automatically selected ones.
2459 if test -n "$CONFIG_SITE"; then
2460 # We do not want a PATH search for config.site.
2461 case $CONFIG_SITE in #((
2462 -*) ac_site_file1=./$CONFIG_SITE;;
2463 */*) ac_site_file1=$CONFIG_SITE;;
2464 *) ac_site_file1=./$CONFIG_SITE;;
2466 elif test "x$prefix" != xNONE; then
2467 ac_site_file1=$prefix/share/config.site
2468 ac_site_file2=$prefix/etc/config.site
2470 ac_site_file1=$ac_default_prefix/share/config.site
2471 ac_site_file2=$ac_default_prefix/etc/config.site
2473 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2475 test "x$ac_site_file" = xNONE && continue
2476 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2478 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2479 sed 's/^/| /' "$ac_site_file" >&5
2481 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2483 as_fn_error $? "failed to load site
script $ac_site_file
2484 See \
`config.log' for more details" "$LINENO" 5; }
2488 if test -r "$cache_file"; then
2489 # Some versions of bash will fail to source /dev/null (special files
2490 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2491 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2493 $as_echo "$as_me: loading cache $cache_file" >&6;}
2495 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2496 *) . "./$cache_file";;
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2501 $as_echo "$as_me: creating cache $cache_file" >&6;}
2505 as_fn_append ac_header_list " stdlib.h"
2506 as_fn_append ac_header_list " unistd.h"
2507 as_fn_append ac_header_list " sys/param.h"
2508 # Check that the precious variables saved in the cache have kept the same
2510 ac_cache_corrupted=false
2511 for ac_var in $ac_precious_vars; do
2512 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2513 eval ac_new_set=\$ac_env_${ac_var}_set
2514 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2515 eval ac_new_val=\$ac_env_${ac_var}_value
2516 case $ac_old_set,$ac_new_set in
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2519 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2520 ac_cache_corrupted=: ;;
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2523 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2524 ac_cache_corrupted=: ;;
2527 if test "x$ac_old_val" != "x$ac_new_val"; then
2528 # differences in whitespace do not lead to failure.
2529 ac_old_val_w=`echo x
$ac_old_val`
2530 ac_new_val_w=`echo x
$ac_new_val`
2531 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2533 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2534 ac_cache_corrupted=:
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2537 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2538 eval $ac_var=\$ac_old_val
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2541 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2543 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2546 # Pass precious variables to config.status.
2547 if test "$ac_new_set" = set; then
2549 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2550 *) ac_arg=$ac_var=$ac_new_val ;;
2552 case " $ac_configure_args " in
2553 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2554 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2558 if $ac_cache_corrupted; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2562 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2563 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2565 ## -------------------- ##
2566 ## Main body of script. ##
2567 ## -------------------- ##
2570 ac_cpp='$CPP $CPPFLAGS'
2571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2583 if test -f "$ac_dir/install-sh"; then
2585 ac_install_sh="$ac_aux_dir/install-sh -c"
2587 elif test -f "$ac_dir/install.sh"; then
2589 ac_install_sh="$ac_aux_dir/install.sh -c"
2591 elif test -f "$ac_dir/shtool"; then
2593 ac_install_sh="$ac_aux_dir/shtool install -c"
2597 if test -z "$ac_aux_dir"; then
2598 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2601 # These three variables are undocumented and unsupported,
2602 # and are intended to be withdrawn in a future Autoconf release.
2603 # They can cause serious problems if a builder's source tree is in a directory
2604 # whose full name contains unusual characters.
2605 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2606 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2607 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2610 # Make sure we can run config.sub.
2611 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2612 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2615 $as_echo_n "checking build system type... " >&6; }
2616 if ${ac_cv_build+:} false; then :
2617 $as_echo_n "(cached) " >&6
2619 ac_build_alias=$build_alias
2620 test "x$ac_build_alias" = x &&
2621 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2622 test "x$ac_build_alias" = x &&
2623 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2624 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2625 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2629 $as_echo "$ac_cv_build" >&6; }
2630 case $ac_cv_build in
2632 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2635 ac_save_IFS=$IFS; IFS='-'
2641 # Remember, the first character of IFS is used to create $*,
2642 # except with old shells:
2645 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2649 $as_echo_n "checking host system type... " >&6; }
2650 if ${ac_cv_host+:} false; then :
2651 $as_echo_n "(cached) " >&6
2653 if test "x$host_alias" = x; then
2654 ac_cv_host=$ac_cv_build
2656 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2657 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2662 $as_echo "$ac_cv_host" >&6; }
2665 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2668 ac_save_IFS=$IFS; IFS='-'
2674 # Remember, the first character of IFS is used to create $*,
2675 # except with old shells:
2678 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2682 $as_echo_n "checking target system type... " >&6; }
2683 if ${ac_cv_target+:} false; then :
2684 $as_echo_n "(cached) " >&6
2686 if test "x$target_alias" = x; then
2687 ac_cv_target=$ac_cv_host
2689 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2690 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2695 $as_echo "$ac_cv_target" >&6; }
2696 case $ac_cv_target in
2698 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2700 target=$ac_cv_target
2701 ac_save_IFS=$IFS; IFS='-'
2707 # Remember, the first character of IFS is used to create $*,
2708 # except with old shells:
2711 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2714 # The aliases save the names the user supplied, while $host etc.
2715 # will get canonicalized.
2716 test -n "$target_alias" &&
2717 test "$program_prefix$program_suffix$program_transform_name" = \
2719 program_prefix=${target_alias}-
2720 # Expand $ac_aux_dir to an absolute path.
2721 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2724 ac_cpp='$CPP $CPPFLAGS'
2725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2728 if test -n "$ac_tool_prefix"; then
2729 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2730 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732 $as_echo_n "checking for $ac_word... " >&6; }
2733 if ${ac_cv_prog_CC+:} false; then :
2734 $as_echo_n "(cached) " >&6
2736 if test -n "$CC"; then
2737 ac_cv_prog_CC="$CC" # Let the user override the test.
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 if test -n "$CC"; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2759 $as_echo "$CC" >&6; }
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762 $as_echo "no" >&6; }
2767 if test -z "$ac_cv_prog_CC"; then
2769 # Extract the first word of "gcc", so it can be a program name with args.
2770 set dummy gcc; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2774 $as_echo_n "(cached) " >&6
2776 if test -n "$ac_ct_CC"; then
2777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786 ac_cv_prog_ac_ct_CC="gcc"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2797 if test -n "$ac_ct_CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2799 $as_echo "$ac_ct_CC" >&6; }
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2805 if test "x$ac_ct_CC" = x; then
2808 case $cross_compiling:$ac_tool_warned in
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2812 ac_tool_warned=yes ;;
2820 if test -z "$CC"; then
2821 if test -n "$ac_tool_prefix"; then
2822 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2823 set dummy ${ac_tool_prefix}cc; ac_word=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if ${ac_cv_prog_CC+:} false; then :
2827 $as_echo_n "(cached) " >&6
2829 if test -n "$CC"; then
2830 ac_cv_prog_CC="$CC" # Let the user override the test.
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839 ac_cv_prog_CC="${ac_tool_prefix}cc"
2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 if test -n "$CC"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2852 $as_echo "$CC" >&6; }
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2861 if test -z "$CC"; then
2862 # Extract the first word of "cc", so it can be a program name with args.
2863 set dummy cc; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if ${ac_cv_prog_CC+:} false; then :
2867 $as_echo_n "(cached) " >&6
2869 if test -n "$CC"; then
2870 ac_cv_prog_CC="$CC" # Let the user override the test.
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2880 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2881 ac_prog_rejected=yes
2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 if test $ac_prog_rejected = yes; then
2893 # We found a bogon in the path, so make sure we never use it.
2894 set dummy $ac_cv_prog_CC
2896 if test $# != 0; then
2897 # We chose a different compiler from the bogus one.
2898 # However, it has the same basename, so the bogon will be chosen
2899 # first if we set CC to just the basename; use the full file name.
2901 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2907 if test -n "$CC"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2909 $as_echo "$CC" >&6; }
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2917 if test -z "$CC"; then
2918 if test -n "$ac_tool_prefix"; then
2919 for ac_prog in cl.exe
2921 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2922 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if ${ac_cv_prog_CC+:} false; then :
2926 $as_echo_n "(cached) " >&6
2928 if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 if test -n "$CC"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2951 $as_echo "$CC" >&6; }
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2958 test -n "$CC" && break
2961 if test -z "$CC"; then
2963 for ac_prog in cl.exe
2965 # Extract the first word of "$ac_prog", so it can be a program name with args.
2966 set dummy $ac_prog; ac_word=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2970 $as_echo_n "(cached) " >&6
2972 if test -n "$ac_ct_CC"; then
2973 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2982 ac_cv_prog_ac_ct_CC="$ac_prog"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2993 if test -n "$ac_ct_CC"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2995 $as_echo "$ac_ct_CC" >&6; }
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
3002 test -n "$ac_ct_CC" && break
3005 if test "x$ac_ct_CC" = x; then
3008 case $cross_compiling:$ac_tool_warned in
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3012 ac_tool_warned=yes ;;
3021 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3023 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3024 See \
`config.log' for more details" "$LINENO" 5; }
3026 # Provide some information about the compiler.
3027 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3030 for ac_option in --version -v -V -qversion; do
3031 { { ac_try="$ac_compiler $ac_option >&5"
3033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3034 *) ac_try_echo
=$ac_try;;
3036 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3037 $as_echo "$ac_try_echo"; } >&5
3038 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3040 if test -s conftest.err
; then
3042 ... rest of stderr output deleted ...
3043 10q' conftest.err
>conftest.er1
3044 cat conftest.er1
>&5
3046 rm -f conftest.er1 conftest.err
3047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3048 test $ac_status = 0; }
3051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3052 /* end confdefs.h. */
3062 ac_clean_files_save
=$ac_clean_files
3063 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3064 # Try to create an executable without -o first, disregard a.out.
3065 # It will help us diagnose broken compilers, and finding out an intuition
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3068 $as_echo_n "checking whether the C compiler works... " >&6; }
3069 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3071 # The possible output files:
3072 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3075 for ac_file
in $ac_files
3078 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3079 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3084 if { { ac_try
="$ac_link_default"
3086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090 $as_echo "$ac_try_echo"; } >&5
3091 (eval "$ac_link_default") 2>&5
3093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094 test $ac_status = 0; }; then :
3095 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3096 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3097 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3098 # so that the user can short-circuit this test for compilers unknown to
3100 for ac_file in $ac_files ''
3102 test -f "$ac_file" || continue
3104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3107 # We found the default executable, but exeext='' is most
3111 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3113 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3115 # We set ac_cv_exeext here because the later test for it is not
3116 # safe: cross compilers may not add the suffix if given an `-o'
3117 # argument, so we may need to know it at that point already.
3118 # Even if this section looks crufty: it has the advantage of
3125 test "$ac_cv_exeext" = no && ac_cv_exeext=
3130 if test -z "$ac_file"; then :
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132 $as_echo "no" >&6; }
3133 $as_echo "$as_me: failed program was:" >&5
3134 sed 's
/^
/|
/' conftest.$ac_ext >&5
3136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3138 as_fn_error 77 "C compiler cannot create executables
3139 See \`config.log
' for more details" "$LINENO" 5; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3142 $as_echo "yes" >&6; }
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3145 $as_echo_n "checking for C compiler default output file name... " >&6; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3147 $as_echo "$ac_file" >&6; }
3148 ac_exeext=$ac_cv_exeext
3150 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3151 ac_clean_files=$ac_clean_files_save
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3153 $as_echo_n "checking for suffix of executables... " >&6; }
3154 if { { ac_try="$ac_link"
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160 $as_echo "$ac_try_echo"; } >&5
3161 (eval "$ac_link") 2>&5
3163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164 test $ac_status = 0; }; then :
3165 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3166 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3167 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3169 for ac_file
in conftest.exe conftest conftest.
*; do
3170 test -f "$ac_file" ||
continue
3172 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3173 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3181 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3182 See \`config.log' for more details" "$LINENO" 5; }
3184 rm -f conftest conftest
$ac_cv_exeext
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3186 $as_echo "$ac_cv_exeext" >&6; }
3188 rm -f conftest.
$ac_ext
3189 EXEEXT
=$ac_cv_exeext
3191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3197 FILE *f = fopen ("conftest.out", "w");
3198 return ferror (f) || fclose (f) != 0;
3204 ac_clean_files
="$ac_clean_files conftest.out"
3205 # Check that the compiler produces executables we can run. If not, either
3206 # the compiler is broken, or we cross compile.
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3208 $as_echo_n "checking whether we are cross compiling... " >&6; }
3209 if test "$cross_compiling" != yes; then
3210 { { ac_try
="$ac_link"
3212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_link") 2>&5
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }
3221 if { ac_try='./conftest$ac_cv_exeext'
3222 { { case "(($ac_try" in
3223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3224 *) ac_try_echo
=$ac_try;;
3226 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3227 $as_echo "$ac_try_echo"; } >&5
3228 (eval "$ac_try") 2>&5
3230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3231 test $ac_status = 0; }; }; then
3234 if test "$cross_compiling" = maybe
; then
3237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error $?
"cannot run C compiled programs.
3240 If you meant to cross compile, use \`--host'.
3241 See \`config.log' for more details" "$LINENO" 5; }
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3246 $as_echo "$cross_compiling" >&6; }
3248 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3249 ac_clean_files
=$ac_clean_files_save
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3251 $as_echo_n "checking for suffix of object files... " >&6; }
3252 if ${ac_cv_objext+:} false
; then :
3253 $as_echo_n "(cached) " >&6
3255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3256 /* end confdefs.h. */
3266 rm -f conftest.o conftest.obj
3267 if { { ac_try
="$ac_compile"
3269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273 $as_echo "$ac_try_echo"; } >&5
3274 (eval "$ac_compile") 2>&5
3276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277 test $ac_status = 0; }; then :
3278 for ac_file in conftest.o conftest.obj conftest.*; do
3279 test -f "$ac_file" || continue;
3281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3282 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3287 $as_echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3293 See \
`config.log' for more details" "$LINENO" 5; }
3295 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3298 $as_echo "$ac_cv_objext" >&6; }
3299 OBJEXT=$ac_cv_objext
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3302 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3303 if ${ac_cv_c_compiler_gnu+:} false; then :
3304 $as_echo_n "(cached) " >&6
3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h. */
3320 if ac_fn_c_try_compile "$LINENO"; then :
3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3330 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3331 if test $ac_compiler_gnu = yes; then
3336 ac_test_CFLAGS=${CFLAGS+set}
3337 ac_save_CFLAGS=$CFLAGS
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3339 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3340 if ${ac_cv_prog_cc_g+:} false; then :
3341 $as_echo_n "(cached) " >&6
3343 ac_save_c_werror_flag=$ac_c_werror_flag
3344 ac_c_werror_flag=yes
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3358 if ac_fn_c_try_compile "$LINENO"; then :
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3373 if ac_fn_c_try_compile "$LINENO"; then :
3376 ac_c_werror_flag=$ac_save_c_werror_flag
3378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379 /* end confdefs.h. */
3389 if ac_fn_c_try_compile "$LINENO"; then :
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397 ac_c_werror_flag=$ac_save_c_werror_flag
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3400 $as_echo "$ac_cv_prog_cc_g" >&6; }
3401 if test "$ac_test_CFLAGS" = set; then
3402 CFLAGS=$ac_save_CFLAGS
3403 elif test $ac_cv_prog_cc_g = yes; then
3404 if test "$GCC" = yes; then
3410 if test "$GCC" = yes; then
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3417 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3418 if ${ac_cv_prog_cc_c89+:} false; then :
3419 $as_echo_n "(cached) " >&6
3421 ac_cv_prog_cc_c89=no
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h. */
3428 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3429 struct buf { int x; };
3430 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3431 static char *e (p, i)
3437 static char *f (char * (*g) (char **, int), char **p, ...)
3442 s = g (p, va_arg (v,int));
3447 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3448 function prototypes and stuff, but not '\xHH' hex character constants.
3449 These don't provoke an error unfortunately, instead are silently treated
3450 as 'x'. The following induces an error, until -std is added to get
3451 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3452 array size at least. It's necessary to write '\x00'==0 to get something
3453 that's true only with -std. */
3454 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3456 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3457 inside strings and character constants. */
3459 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3461 int test (int i, double x);
3462 struct s1 {int (*f) (int a);};
3463 struct s2 {int (*f) (double a);};
3464 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3470 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3475 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3476 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3478 CC="$ac_save_CC $ac_arg"
3479 if ac_fn_c_try_compile "$LINENO"; then :
3480 ac_cv_prog_cc_c89=$ac_arg
3482 rm -f core conftest.err conftest.$ac_objext
3483 test "x$ac_cv_prog_cc_c89" != "xno" && break
3485 rm -f conftest.$ac_ext
3490 case "x$ac_cv_prog_cc_c89" in
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3493 $as_echo "none needed" >&6; } ;;
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3496 $as_echo "unsupported" >&6; } ;;
3498 CC="$CC $ac_cv_prog_cc_c89"
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3500 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3502 if test "x$ac_cv_prog_cc_c89" != xno; then :
3507 ac_cpp='$CPP $CPPFLAGS'
3508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3513 ac_cpp='$CPP $CPPFLAGS'
3514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3518 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3519 if ${am_cv_prog_cc_c_o+:} false; then :
3520 $as_echo_n "(cached) " >&6
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3533 # Make sure it works both with $CC and with simple cc.
3534 # Following AC_PROG_CC_C_O, we do the test twice because some
3535 # compilers refuse to overwrite an existing .o file with -o,
3536 # though they will create one.
3537 am_cv_prog_cc_c_o=yes
3539 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3540 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } \
3544 && test -f conftest2.$ac_objext; then
3547 am_cv_prog_cc_c_o=no
3551 rm -f core conftest*
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3555 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3556 if test "$am_cv_prog_cc_c_o" != yes; then
3557 # Losing compiler, so override with the script.
3558 # FIXME: It is wrong to rewrite CC.
3559 # But if we don't then we get into trouble of one sort or another.
3560 # A longer-term fix would be to have automake use am__CC in this case,
3561 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3562 CC="$am_aux_dir/compile $CC"
3565 ac_cpp='$CPP $CPPFLAGS'
3566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3573 $as_echo_n "checking for library containing strerror... " >&6; }
3574 if ${ac_cv_search_strerror+:} false; then :
3575 $as_echo_n "(cached) " >&6
3577 ac_func_search_save_LIBS=$LIBS
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3581 /* Override any GCC internal prototype to avoid an error.
3582 Use char because int might match the return type of a GCC
3583 builtin and then its argument prototype would still apply. */
3596 for ac_lib in '' cposix; do
3597 if test -z "$ac_lib"; then
3598 ac_res="none required"
3601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3603 if ac_fn_c_try_link "$LINENO"; then :
3604 ac_cv_search_strerror=$ac_res
3606 rm -f core conftest.err conftest.$ac_objext \
3608 if ${ac_cv_search_strerror+:} false; then :
3612 if ${ac_cv_search_strerror+:} false; then :
3615 ac_cv_search_strerror=no
3618 LIBS=$ac_func_search_save_LIBS
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3621 $as_echo "$ac_cv_search_strerror" >&6; }
3622 ac_res=$ac_cv_search_strerror
3623 if test "$ac_res" != no; then :
3624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3629 am__api_version='1.15'
3631 # Find a good install program. We prefer a C program (faster),
3632 # so one script is as good as another. But avoid the broken or
3633 # incompatible versions:
3634 # SysV /etc/install, /usr/sbin/install
3635 # SunOS /usr/etc/install
3636 # IRIX /sbin/install
3638 # AmigaOS /C/install, which installs bootblocks on floppy discs
3639 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3640 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3641 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3642 # OS/2's system install, which has a completely different semantic
3643 # ./install, which can be erroneously created by make from ./install.sh.
3644 # Reject install programs that cannot install multiple files.
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3646 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3647 if test -z "$INSTALL"; then
3648 if ${ac_cv_path_install+:} false; then :
3649 $as_echo_n "(cached) " >&6
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 test -z "$as_dir" && as_dir=.
3656 # Account for people who put trailing slashes in PATH elements.
3657 case $as_dir/ in #((
3658 ./ | .// | /[cC]/* | \
3659 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3660 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3663 # OSF1 and SCO ODT 3.0 have their own names for install.
3664 # Don't use installbsd from OSF since it installs stuff as root
3666 for ac_prog in ginstall scoinst install; do
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3669 if test $ac_prog = install &&
3670 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3671 # AIX install. It has an incompatible calling convention.
3673 elif test $ac_prog = install &&
3674 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3675 # program-specific install script used by HP pwplus--don't use.
3678 rm -rf conftest.one conftest.two conftest.dir
3679 echo one > conftest.one
3680 echo two > conftest.two
3682 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3683 test -s conftest.one && test -s conftest.two &&
3684 test -s conftest.dir/conftest.one &&
3685 test -s conftest.dir/conftest.two
3687 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3700 rm -rf conftest.one conftest.two conftest.dir
3703 if test "${ac_cv_path_install+set}" = set; then
3704 INSTALL=$ac_cv_path_install
3706 # As a last resort, use the slow shell script. Don't cache a
3707 # value for INSTALL within a source directory, because that will
3708 # break other packages using the cache if that directory is
3709 # removed, or if the value is a relative name.
3710 INSTALL=$ac_install_sh
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3714 $as_echo "$INSTALL" >&6; }
3716 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3717 # It thinks the first close brace ends the variable substitution.
3718 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3720 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3722 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3725 $as_echo_n "checking whether build environment is sane... " >&6; }
3726 # Reject unsafe characters in $srcdir or the absolute working directory
3727 # name. Accept space and tab only in the latter.
3731 *[\\\"\#\$\&\'\`$am_lf]*)
3732 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
3735 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3736 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3739 # Do 'set' in a subshell so we don't clobber the current shell's
3740 # arguments. Must try -L first in case configure is actually a
3741 # symlink; some systems play weird games with the mod time of symlinks
3742 # (eg FreeBSD returns the mod time of the symlink's containing
3746 for am_try
in 1 2; do
3747 echo "timestamp, slept: $am_has_slept" > conftest.
file
3748 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3749 if test "$*" = "X"; then
3751 set X
`ls -t "$srcdir/configure" conftest.file`
3753 if test "$*" != "X $srcdir/configure conftest.file" \
3754 && test "$*" != "X conftest.file $srcdir/configure"; then
3756 # If neither matched, then we have a broken ls. This can happen
3757 # if, for instance, CONFIG_SHELL is bash and it inherits a
3758 # broken ls alias from the environment. This has actually
3759 # happened. Such a system could not be considered "sane".
3760 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3761 alias in your environment" "$LINENO" 5
3763 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3770 test "$2" = conftest.
file
3776 as_fn_error $?
"newly created file is older than distributed files!
3777 Check your system clock" "$LINENO" 5
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3780 $as_echo "yes" >&6; }
3781 # If we didn't sleep, we still need to ensure time stamps of config.status and
3782 # generated files are strictly newer.
3784 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3791 test "$program_prefix" != NONE
&&
3792 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3793 # Use a double $ so make ignores it.
3794 test "$program_suffix" != NONE
&&
3795 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3796 # Double any \ or $.
3797 # By default was `s,x,x', remove it if useless.
3798 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3799 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3801 if test x
"${MISSING+set}" != xset
; then
3804 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3806 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3809 # Use eval to expand $SHELL
3810 if eval "$MISSING --is-lightweight"; then
3811 am_missing_run
="$MISSING "
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3815 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3818 if test x
"${install_sh+set}" != xset
; then
3821 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3823 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3827 # Installed binaries are usually stripped using 'strip' when the user
3828 # run "make install-strip". However 'strip' might not be the right
3829 # tool to use in cross-compilation environments, therefore Automake
3830 # will honor the 'STRIP' environment variable to overrule this program.
3831 if test "$cross_compiling" != no
; then
3832 if test -n "$ac_tool_prefix"; then
3833 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3834 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if ${ac_cv_prog_STRIP+:} false
; then :
3838 $as_echo_n "(cached) " >&6
3840 if test -n "$STRIP"; then
3841 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3847 test -z "$as_dir" && as_dir
=.
3848 for ac_exec_ext
in '' $ac_executable_extensions; do
3849 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3850 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 STRIP
=$ac_cv_prog_STRIP
3861 if test -n "$STRIP"; then
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3863 $as_echo "$STRIP" >&6; }
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 $as_echo "no" >&6; }
3871 if test -z "$ac_cv_prog_STRIP"; then
3873 # Extract the first word of "strip", so it can be a program name with args.
3874 set dummy strip
; ac_word
=$2
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876 $as_echo_n "checking for $ac_word... " >&6; }
3877 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3878 $as_echo_n "(cached) " >&6
3880 if test -n "$ac_ct_STRIP"; then
3881 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3883 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3887 test -z "$as_dir" && as_dir
=.
3888 for ac_exec_ext
in '' $ac_executable_extensions; do
3889 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3890 ac_cv_prog_ac_ct_STRIP
="strip"
3891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3901 if test -n "$ac_ct_STRIP"; then
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3903 $as_echo "$ac_ct_STRIP" >&6; }
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906 $as_echo "no" >&6; }
3909 if test "x$ac_ct_STRIP" = x
; then
3912 case $cross_compiling:$ac_tool_warned in
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3916 ac_tool_warned
=yes ;;
3921 STRIP
="$ac_cv_prog_STRIP"
3925 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3928 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3929 if test -z "$MKDIR_P"; then
3930 if ${ac_cv_path_mkdir+:} false
; then :
3931 $as_echo_n "(cached) " >&6
3933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3934 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3937 test -z "$as_dir" && as_dir
=.
3938 for ac_prog
in mkdir gmkdir
; do
3939 for ac_exec_ext
in '' $ac_executable_extensions; do
3940 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3941 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3942 'mkdir (GNU coreutils) '* | \
3943 'mkdir (coreutils) '* | \
3944 'mkdir (fileutils) '4.1*)
3945 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3955 test -d .
/--version && rmdir .
/--version
3956 if test "${ac_cv_path_mkdir+set}" = set; then
3957 MKDIR_P
="$ac_cv_path_mkdir -p"
3959 # As a last resort, use the slow shell script. Don't cache a
3960 # value for MKDIR_P within a source directory, because that will
3961 # break other packages using the cache if that directory is
3962 # removed, or if the value is a relative name.
3963 MKDIR_P
="$ac_install_sh -d"
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3967 $as_echo "$MKDIR_P" >&6; }
3969 for ac_prog
in gawk mawk nawk
awk
3971 # Extract the first word of "$ac_prog", so it can be a program name with args.
3972 set dummy
$ac_prog; ac_word
=$2
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3974 $as_echo_n "checking for $ac_word... " >&6; }
3975 if ${ac_cv_prog_AWK+:} false
; then :
3976 $as_echo_n "(cached) " >&6
3978 if test -n "$AWK"; then
3979 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3985 test -z "$as_dir" && as_dir
=.
3986 for ac_exec_ext
in '' $ac_executable_extensions; do
3987 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3988 ac_cv_prog_AWK
="$ac_prog"
3989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 if test -n "$AWK"; then
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4001 $as_echo "$AWK" >&6; }
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004 $as_echo "no" >&6; }
4008 test -n "$AWK" && break
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4012 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4014 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4015 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
4016 $as_echo_n "(cached) " >&6
4018 cat >conftest.
make <<\_ACEOF
4021 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4023 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4024 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4026 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4028 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4032 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4034 $as_echo "yes" >&6; }
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038 $as_echo "no" >&6; }
4039 SET_MAKE
="MAKE=${MAKE-make}"
4042 rm -rf .tst
2>/dev
/null
4043 mkdir .tst
2>/dev
/null
4044 if test -d .tst
; then
4049 rmdir .tst
2>/dev
/null
4051 DEPDIR
="${am__leading_dot}deps"
4053 ac_config_commands
="$ac_config_commands depfiles"
4056 am_make
=${MAKE-make}
4057 cat > confinc
<< 'END'
4059 @
echo this is the am__doit target
4062 # If we don't find an include directive, just comment out the code.
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4064 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4068 # First try GNU make style include.
4069 echo "include confinc" > confmf
4070 # Ignore all kinds of additional output from 'make'.
4071 case `$am_make -s -f confmf 2> /dev/null` in #(
4072 *the\ am__doit\ target
*)
4078 # Now try BSD make style include.
4079 if test "$am__include" = "#"; then
4080 echo '.include "confinc"' > confmf
4081 case `$am_make -s -f confmf 2> /dev/null` in #(
4082 *the\ am__doit\ target
*)
4083 am__include
=.include
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4092 $as_echo "$_am_result" >&6; }
4093 rm -f confinc confmf
4095 # Check whether --enable-dependency-tracking was given.
4096 if test "${enable_dependency_tracking+set}" = set; then :
4097 enableval
=$enable_dependency_tracking;
4100 if test "x$enable_dependency_tracking" != xno
; then
4101 am_depcomp
="$ac_aux_dir/depcomp"
4105 if test "x$enable_dependency_tracking" != xno; then
4114 # Check whether --enable-silent-rules was given.
4115 if test "${enable_silent_rules+set}" = set; then :
4116 enableval
=$enable_silent_rules;
4119 case $enable_silent_rules in # (((
4120 yes) AM_DEFAULT_VERBOSITY
=0;;
4121 no
) AM_DEFAULT_VERBOSITY
=1;;
4122 *) AM_DEFAULT_VERBOSITY
=1;;
4124 am_make
=${MAKE-make}
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4126 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4127 if ${am_cv_make_support_nested_variables+:} false
; then :
4128 $as_echo_n "(cached) " >&6
4130 if $as_echo 'TRUE=$(BAR$(V))
4136 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
4137 am_cv_make_support_nested_variables
=yes
4139 am_cv_make_support_nested_variables
=no
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4143 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4144 if test $am_cv_make_support_nested_variables = yes; then
4146 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
4148 AM_V
=$AM_DEFAULT_VERBOSITY
4149 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
4153 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4154 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4155 # is not polluted with repeated "-I."
4156 am__isrc
=' -I$(srcdir)'
4157 # test to see if srcdir already configured
4158 if test -f $srcdir/config.status
; then
4159 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4163 # test whether we have cygpath
4164 if test -z "$CYGPATH_W"; then
4165 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
4166 CYGPATH_W
='cygpath -w'
4173 # Define the identity of the package.
4178 cat >>confdefs.h
<<_ACEOF
4179 #define PACKAGE "$PACKAGE"
4183 cat >>confdefs.h
<<_ACEOF
4184 #define VERSION "$VERSION"
4187 # Some tools Automake needs.
4189 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4192 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
4195 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4198 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
4201 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
4203 # For better backward compatibility. To be removed once Automake 1.9.x
4204 # dies out for good. For more background, see:
4205 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4206 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4207 mkdir_p
='$(MKDIR_P)'
4209 # We need awk for the "check" target (and possibly the TAP driver). The
4210 # system "awk" is bad on some platforms.
4211 # Always define AMTAR for backward compatibility. Yes, it's still used
4212 # in the wild :-( We should find a proper way to deprecate it ...
4216 # We'll loop over all known methods to create a tar archive until one works.
4217 _am_tools
='gnutar pax cpio none'
4219 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
4225 depcc
="$CC" am_compiler_list
=
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4228 $as_echo_n "checking dependency style of $depcc... " >&6; }
4229 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
4230 $as_echo_n "(cached) " >&6
4232 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4233 # We make a subdir and do the tests there. Otherwise we can end up
4234 # making bogus files that we don't know about and never remove. For
4235 # instance it was reported that on HP-UX the gcc test will end up
4236 # making a dummy file named 'D' -- because '-MD' means "put the output
4240 # Copy depcomp to subdir because otherwise we won't find it if we're
4241 # using a relative directory.
4242 cp "$am_depcomp" conftest.dir
4244 # We will build objects and dependencies in a subdirectory because
4245 # it helps to detect inapplicable dependency modes. For instance
4246 # both Tru64's cc and ICC support -MD to output dependencies as a
4247 # side effect of compilation, but ICC will put the dependencies in
4248 # the current directory while Tru64 will put them in the object
4252 am_cv_CC_dependencies_compiler_type
=none
4253 if test "$am_compiler_list" = ""; then
4254 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4257 case " $depcc " in #(
4258 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4261 for depmode
in $am_compiler_list; do
4262 # Setup a source with many dependencies, because some compilers
4263 # like to wrap large dependency lists on column 80 (with \), and
4264 # we should not choose a depcomp mode which is confused by this.
4266 # We need to recreate these files for each test, as the compiler may
4267 # overwrite some of them when testing with obscure command lines.
4268 # This happens at least with the AIX C compiler.
4270 for i
in 1 2 3 4 5 6; do
4271 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4272 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4273 # Solaris 10 /bin/sh.
4274 echo '/* dummy */' > sub
/conftst
$i.h
4276 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4278 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4279 # mode. It turns out that the SunPro C++ compiler does not properly
4280 # handle '-M -o', and we need to detect this. Also, some Intel
4281 # versions had trouble with output in subdirs.
4282 am__obj
=sub
/conftest.
${OBJEXT-o}
4283 am__minus_obj
="-o $am__obj"
4286 # This depmode causes a compiler race in universal mode.
4287 test "$am__universal" = false ||
continue
4290 # After this tag, mechanisms are not by side-effect, so they'll
4291 # only be used when explicitly requested.
4292 if test "x$enable_dependency_tracking" = xyes
; then
4298 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4299 # This compiler won't grok '-c -o', but also, the minuso test has
4300 # not run yet. These depmodes are late enough in the game, and
4301 # so weak that their functioning should not be impacted.
4302 am__obj
=conftest.
${OBJEXT-o}
4307 if depmode
=$depmode \
4308 source=sub
/conftest.c object
=$am__obj \
4309 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4310 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4311 >/dev
/null
2>conftest.err
&&
4312 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4313 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4314 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4315 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4316 # icc doesn't choke on unknown options, it will just issue warnings
4317 # or remarks (even with -Werror). So we grep stderr for any message
4318 # that says an option was ignored or not supported.
4319 # When given -MP, icc 7.0 and 7.1 complain thusly:
4320 # icc: Command line warning: ignoring option '-M'; no argument required
4321 # The diagnosis changed in icc 8.0:
4322 # icc: Command line remark: option '-MP' not supported
4323 if (grep 'ignoring option' conftest.err ||
4324 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4325 am_cv_CC_dependencies_compiler_type
=$depmode
4334 am_cv_CC_dependencies_compiler_type
=none
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4339 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4340 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4343 test "x$enable_dependency_tracking" != xno \
4344 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4346 am__fastdepCC_FALSE
='#'
4348 am__fastdepCC_TRUE
='#'
4349 am__fastdepCC_FALSE
=
4354 # POSIX will say in a future version that running "rm -f" with no argument
4355 # is OK; and we want to be able to make that assumption in our Makefile
4356 # recipes. So use an aggressive probe to check that the usage we want is
4357 # actually supported "in the wild" to an acceptable degree.
4358 # See automake bug#10828.
4359 # To make any issue more visible, cause the running configure to be aborted
4360 # by default if the 'rm' program in use doesn't match our expectations; the
4361 # user can still override this though.
4362 if rm -f && rm -fr && rm -rf; then : OK
; else
4366 Your 'rm' program seems unable to run without file operands specified
4367 on the command line, even when the '-f' option is present. This is contrary
4368 to the behaviour of most rm programs out there, and not conforming with
4369 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4371 Please tell bug-automake@gnu.org about your system, including the value
4372 of your $PATH and any error possibly output before this message. This
4373 can help us improve future automake versions.
4376 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
4377 echo 'Configuration will proceed anyway, since you have set the' >&2
4378 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4382 Aborting the configuration process, to ensure you take notice of the issue.
4384 You can download and install GNU coreutils to get an 'rm' implementation
4385 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4387 If you want to complete the configuration process using your problematic
4388 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4389 to "yes", and re-run configure.
4392 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
4398 ac_cpp
='$CPP $CPPFLAGS'
4399 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4400 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4401 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4402 if test -n "$ac_tool_prefix"; then
4403 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4404 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if ${ac_cv_prog_CC+:} false
; then :
4408 $as_echo_n "(cached) " >&6
4410 if test -n "$CC"; then
4411 ac_cv_prog_CC
="$CC" # Let the user override the test.
4413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4417 test -z "$as_dir" && as_dir
=.
4418 for ac_exec_ext
in '' $ac_executable_extensions; do
4419 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4420 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 if test -n "$CC"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4433 $as_echo "$CC" >&6; }
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4441 if test -z "$ac_cv_prog_CC"; then
4443 # Extract the first word of "gcc", so it can be a program name with args.
4444 set dummy gcc
; ac_word
=$2
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446 $as_echo_n "checking for $ac_word... " >&6; }
4447 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4448 $as_echo_n "(cached) " >&6
4450 if test -n "$ac_ct_CC"; then
4451 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4453 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4457 test -z "$as_dir" && as_dir
=.
4458 for ac_exec_ext
in '' $ac_executable_extensions; do
4459 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4460 ac_cv_prog_ac_ct_CC
="gcc"
4461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4471 if test -n "$ac_ct_CC"; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4473 $as_echo "$ac_ct_CC" >&6; }
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 $as_echo "no" >&6; }
4479 if test "x$ac_ct_CC" = x
; then
4482 case $cross_compiling:$ac_tool_warned in
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4486 ac_tool_warned
=yes ;;
4494 if test -z "$CC"; then
4495 if test -n "$ac_tool_prefix"; then
4496 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4497 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499 $as_echo_n "checking for $ac_word... " >&6; }
4500 if ${ac_cv_prog_CC+:} false
; then :
4501 $as_echo_n "(cached) " >&6
4503 if test -n "$CC"; then
4504 ac_cv_prog_CC
="$CC" # Let the user override the test.
4506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4510 test -z "$as_dir" && as_dir
=.
4511 for ac_exec_ext
in '' $ac_executable_extensions; do
4512 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4513 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 if test -n "$CC"; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4526 $as_echo "$CC" >&6; }
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4535 if test -z "$CC"; then
4536 # Extract the first word of "cc", so it can be a program name with args.
4537 set dummy cc
; ac_word
=$2
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539 $as_echo_n "checking for $ac_word... " >&6; }
4540 if ${ac_cv_prog_CC+:} false
; then :
4541 $as_echo_n "(cached) " >&6
4543 if test -n "$CC"; then
4544 ac_cv_prog_CC
="$CC" # Let the user override the test.
4547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4551 test -z "$as_dir" && as_dir
=.
4552 for ac_exec_ext
in '' $ac_executable_extensions; do
4553 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4554 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4555 ac_prog_rejected
=yes
4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 if test $ac_prog_rejected = yes; then
4567 # We found a bogon in the path, so make sure we never use it.
4568 set dummy
$ac_cv_prog_CC
4570 if test $# != 0; then
4571 # We chose a different compiler from the bogus one.
4572 # However, it has the same basename, so the bogon will be chosen
4573 # first if we set CC to just the basename; use the full file name.
4575 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4581 if test -n "$CC"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4583 $as_echo "$CC" >&6; }
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4591 if test -z "$CC"; then
4592 if test -n "$ac_tool_prefix"; then
4593 for ac_prog
in cl.exe
4595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4596 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598 $as_echo_n "checking for $ac_word... " >&6; }
4599 if ${ac_cv_prog_CC+:} false
; then :
4600 $as_echo_n "(cached) " >&6
4602 if test -n "$CC"; then
4603 ac_cv_prog_CC
="$CC" # Let the user override the test.
4605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4609 test -z "$as_dir" && as_dir
=.
4610 for ac_exec_ext
in '' $ac_executable_extensions; do
4611 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4612 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 if test -n "$CC"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4625 $as_echo "$CC" >&6; }
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4632 test -n "$CC" && break
4635 if test -z "$CC"; then
4637 for ac_prog
in cl.exe
4639 # Extract the first word of "$ac_prog", so it can be a program name with args.
4640 set dummy
$ac_prog; ac_word
=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4644 $as_echo_n "(cached) " >&6
4646 if test -n "$ac_ct_CC"; then
4647 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4653 test -z "$as_dir" && as_dir
=.
4654 for ac_exec_ext
in '' $ac_executable_extensions; do
4655 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4656 ac_cv_prog_ac_ct_CC
="$ac_prog"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4667 if test -n "$ac_ct_CC"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4669 $as_echo "$ac_ct_CC" >&6; }
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4676 test -n "$ac_ct_CC" && break
4679 if test "x$ac_ct_CC" = x
; then
4682 case $cross_compiling:$ac_tool_warned in
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686 ac_tool_warned
=yes ;;
4695 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4697 as_fn_error $?
"no acceptable C compiler found in \$PATH
4698 See \`config.log' for more details" "$LINENO" 5; }
4700 # Provide some information about the compiler.
4701 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4704 for ac_option
in --version -v -V -qversion; do
4705 { { ac_try
="$ac_compiler $ac_option >&5"
4707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4711 $as_echo "$ac_try_echo"; } >&5
4712 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4714 if test -s conftest.err; then
4716 ... rest of stderr output deleted ...
4717 10q' conftest.err >conftest.er1
4718 cat conftest.er1 >&5
4720 rm -f conftest.er1 conftest.err
4721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4722 test $ac_status = 0; }
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4726 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4727 if ${ac_cv_c_compiler_gnu+:} false; then :
4728 $as_echo_n "(cached) " >&6
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4744 if ac_fn_c_try_compile "$LINENO"; then :
4749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4754 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4755 if test $ac_compiler_gnu = yes; then
4760 ac_test_CFLAGS=${CFLAGS+set}
4761 ac_save_CFLAGS=$CFLAGS
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4763 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4764 if ${ac_cv_prog_cc_g+:} false; then :
4765 $as_echo_n "(cached) " >&6
4767 ac_save_c_werror_flag=$ac_c_werror_flag
4768 ac_c_werror_flag=yes
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4782 if ac_fn_c_try_compile "$LINENO"; then :
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4797 if ac_fn_c_try_compile "$LINENO"; then :
4800 ac_c_werror_flag=$ac_save_c_werror_flag
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4813 if ac_fn_c_try_compile "$LINENO"; then :
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821 ac_c_werror_flag=$ac_save_c_werror_flag
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4824 $as_echo "$ac_cv_prog_cc_g" >&6; }
4825 if test "$ac_test_CFLAGS" = set; then
4826 CFLAGS=$ac_save_CFLAGS
4827 elif test $ac_cv_prog_cc_g = yes; then
4828 if test "$GCC" = yes; then
4834 if test "$GCC" = yes; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4841 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4842 if ${ac_cv_prog_cc_c89+:} false; then :
4843 $as_echo_n "(cached) " >&6
4845 ac_cv_prog_cc_c89=no
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4852 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4853 struct buf { int x; };
4854 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4855 static char *e (p, i)
4861 static char *f (char * (*g) (char **, int), char **p, ...)
4866 s = g (p, va_arg (v,int));
4871 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4872 function prototypes and stuff, but not '\xHH' hex character constants.
4873 These don't provoke an error unfortunately, instead are silently treated
4874 as 'x'. The following induces an error, until -std is added to get
4875 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4876 array size at least. It's necessary to write '\x00'==0 to get something
4877 that's true only with -std. */
4878 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4880 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4881 inside strings and character constants. */
4883 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4885 int test (int i, double x);
4886 struct s1 {int (*f) (int a);};
4887 struct s2 {int (*f) (double a);};
4888 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4894 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4899 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4900 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4902 CC="$ac_save_CC $ac_arg"
4903 if ac_fn_c_try_compile "$LINENO"; then :
4904 ac_cv_prog_cc_c89=$ac_arg
4906 rm -f core conftest.err conftest.$ac_objext
4907 test "x$ac_cv_prog_cc_c89" != "xno" && break
4909 rm -f conftest.$ac_ext
4914 case "x$ac_cv_prog_cc_c89" in
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4917 $as_echo "none needed" >&6; } ;;
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4920 $as_echo "unsupported" >&6; } ;;
4922 CC="$CC $ac_cv_prog_cc_c89"
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4924 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4926 if test "x$ac_cv_prog_cc_c89" != xno; then :
4931 ac_cpp='$CPP $CPPFLAGS'
4932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4937 ac_cpp='$CPP $CPPFLAGS'
4938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4942 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4943 if ${am_cv_prog_cc_c_o+:} false; then :
4944 $as_echo_n "(cached) " >&6
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4957 # Make sure it works both with $CC and with simple cc.
4958 # Following AC_PROG_CC_C_O, we do the test twice because some
4959 # compilers refuse to overwrite an existing .o file with -o,
4960 # though they will create one.
4961 am_cv_prog_cc_c_o=yes
4963 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4964 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } \
4968 && test -f conftest2.$ac_objext; then
4971 am_cv_prog_cc_c_o=no
4975 rm -f core conftest*
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4979 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4980 if test "$am_cv_prog_cc_c_o" != yes; then
4981 # Losing compiler, so override with the script.
4982 # FIXME: It is wrong to rewrite CC.
4983 # But if we don't then we get into trouble of one sort or another.
4984 # A longer-term fix would be to have automake use am__CC in this case,
4985 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4986 CC="$am_aux_dir/compile $CC"
4989 ac_cpp='$CPP $CPPFLAGS'
4990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4996 ac_cpp='$CPP $CPPFLAGS'
4997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5001 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5002 # On Suns, sometimes $CPP names a directory.
5003 if test -n "$CPP" && test -d "$CPP"; then
5006 if test -z "$CPP"; then
5007 if ${ac_cv_prog_CPP+:} false; then :
5008 $as_echo_n "(cached) " >&6
5010 # Double quotes because CPP needs to be expanded
5011 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5014 for ac_c_preproc_warn_flag in '' yes
5016 # Use a header file that comes with gcc, so configuring glibc
5017 # with a fresh cross-compiler works.
5018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5019 # <limits.h> exists even on freestanding compilers.
5020 # On the NeXT, cc -E runs the code through the compiler's parser,
5021 # not just through cpp. "Syntax error" is here to catch this case.
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5025 # include <limits.h>
5027 # include <assert.h>
5031 if ac_fn_c_try_cpp "$LINENO"; then :
5034 # Broken: fails on valid input.
5037 rm -f conftest.err conftest.i conftest.$ac_ext
5039 # OK, works on sane cases. Now check whether nonexistent headers
5040 # can be detected and how.
5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042 /* end confdefs.h. */
5043 #include <ac_nonexistent.h>
5045 if ac_fn_c_try_cpp "$LINENO"; then :
5046 # Broken: success on invalid input.
5049 # Passes both tests.
5053 rm -f conftest.err conftest.i conftest.$ac_ext
5056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5057 rm -f conftest.i conftest.err conftest.
$ac_ext
5058 if $ac_preproc_ok; then :
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5071 $as_echo "$CPP" >&6; }
5073 for ac_c_preproc_warn_flag
in '' yes
5075 # Use a header file that comes with gcc, so configuring glibc
5076 # with a fresh cross-compiler works.
5077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5078 # <limits.h> exists even on freestanding compilers.
5079 # On the NeXT, cc -E runs the code through the compiler's parser,
5080 # not just through cpp. "Syntax error" is here to catch this case.
5081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5084 # include <limits.h>
5086 # include <assert.h>
5090 if ac_fn_c_try_cpp
"$LINENO"; then :
5093 # Broken: fails on valid input.
5096 rm -f conftest.err conftest.i conftest.
$ac_ext
5098 # OK, works on sane cases. Now check whether nonexistent headers
5099 # can be detected and how.
5100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102 #include <ac_nonexistent.h>
5104 if ac_fn_c_try_cpp
"$LINENO"; then :
5105 # Broken: success on invalid input.
5108 # Passes both tests.
5112 rm -f conftest.err conftest.i conftest.
$ac_ext
5115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5116 rm -f conftest.i conftest.err conftest.
$ac_ext
5117 if $ac_preproc_ok; then :
5120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5122 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5123 See \`config.log' for more details" "$LINENO" 5; }
5127 ac_cpp
='$CPP $CPPFLAGS'
5128 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5129 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5130 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5134 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5135 if ${ac_cv_path_GREP+:} false
; then :
5136 $as_echo_n "(cached) " >&6
5138 if test -z "$GREP"; then
5139 ac_path_GREP_found
=false
5140 # Loop through the user's path and test for each of PROGNAME-LIST
5141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5142 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5145 test -z "$as_dir" && as_dir
=.
5146 for ac_prog
in grep ggrep
; do
5147 for ac_exec_ext
in '' $ac_executable_extensions; do
5148 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5149 as_fn_executable_p
"$ac_path_GREP" ||
continue
5150 # Check for GNU ac_path_GREP and select it if it is found.
5151 # Check for GNU $ac_path_GREP
5152 case `"$ac_path_GREP" --version 2>&1` in
5154 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5157 $as_echo_n 0123456789 >"conftest.in"
5160 cat "conftest.in" "conftest.in" >"conftest.tmp"
5161 mv "conftest.tmp" "conftest.in"
5162 cp "conftest.in" "conftest.nl"
5163 $as_echo 'GREP' >> "conftest.nl"
5164 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5165 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5166 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5167 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5168 # Best one so far, save it but keep looking for a better one
5169 ac_cv_path_GREP
="$ac_path_GREP"
5170 ac_path_GREP_max
=$ac_count
5172 # 10*(2^10) chars as input seems more than enough
5173 test $ac_count -gt 10 && break
5175 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5178 $ac_path_GREP_found && break 3
5183 if test -z "$ac_cv_path_GREP"; then
5184 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5187 ac_cv_path_GREP
=$GREP
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5192 $as_echo "$ac_cv_path_GREP" >&6; }
5193 GREP
="$ac_cv_path_GREP"
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5197 $as_echo_n "checking for egrep... " >&6; }
5198 if ${ac_cv_path_EGREP+:} false
; then :
5199 $as_echo_n "(cached) " >&6
5201 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5202 then ac_cv_path_EGREP
="$GREP -E"
5204 if test -z "$EGREP"; then
5205 ac_path_EGREP_found
=false
5206 # Loop through the user's path and test for each of PROGNAME-LIST
5207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5208 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5211 test -z "$as_dir" && as_dir
=.
5212 for ac_prog
in egrep; do
5213 for ac_exec_ext
in '' $ac_executable_extensions; do
5214 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5215 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5216 # Check for GNU ac_path_EGREP and select it if it is found.
5217 # Check for GNU $ac_path_EGREP
5218 case `"$ac_path_EGREP" --version 2>&1` in
5220 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5223 $as_echo_n 0123456789 >"conftest.in"
5226 cat "conftest.in" "conftest.in" >"conftest.tmp"
5227 mv "conftest.tmp" "conftest.in"
5228 cp "conftest.in" "conftest.nl"
5229 $as_echo 'EGREP' >> "conftest.nl"
5230 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5231 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5232 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5233 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5234 # Best one so far, save it but keep looking for a better one
5235 ac_cv_path_EGREP
="$ac_path_EGREP"
5236 ac_path_EGREP_max
=$ac_count
5238 # 10*(2^10) chars as input seems more than enough
5239 test $ac_count -gt 10 && break
5241 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5244 $ac_path_EGREP_found && break 3
5249 if test -z "$ac_cv_path_EGREP"; then
5250 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5253 ac_cv_path_EGREP
=$EGREP
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5259 $as_echo "$ac_cv_path_EGREP" >&6; }
5260 EGREP
="$ac_cv_path_EGREP"
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5264 $as_echo_n "checking for ANSI C header files... " >&6; }
5265 if ${ac_cv_header_stdc+:} false
; then :
5266 $as_echo_n "(cached) " >&6
5268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5283 if ac_fn_c_try_compile
"$LINENO"; then :
5284 ac_cv_header_stdc
=yes
5286 ac_cv_header_stdc
=no
5288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5290 if test $ac_cv_header_stdc = yes; then
5291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5293 /* end confdefs.h. */
5297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5298 $EGREP "memchr" >/dev
/null
2>&1; then :
5301 ac_cv_header_stdc
=no
5307 if test $ac_cv_header_stdc = yes; then
5308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5315 $EGREP "free" >/dev
/null
2>&1; then :
5318 ac_cv_header_stdc
=no
5324 if test $ac_cv_header_stdc = yes; then
5325 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5326 if test "$cross_compiling" = yes; then :
5329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5333 #if ((' ' & 0x0FF) == 0x020)
5334 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5335 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5337 # define ISLOWER(c) \
5338 (('a' <= (c) && (c) <= 'i') \
5339 || ('j' <= (c) && (c) <= 'r') \
5340 || ('s' <= (c) && (c) <= 'z'))
5341 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5344 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5349 for (i = 0; i < 256; i++)
5350 if (XOR (islower (i), ISLOWER (i))
5351 || toupper (i) != TOUPPER (i))
5356 if ac_fn_c_try_run
"$LINENO"; then :
5359 ac_cv_header_stdc
=no
5361 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5362 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5368 $as_echo "$ac_cv_header_stdc" >&6; }
5369 if test $ac_cv_header_stdc = yes; then
5371 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5375 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5376 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5377 inttypes.h stdint.h unistd.h
5379 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5380 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5382 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5383 cat >>confdefs.h
<<_ACEOF
5384 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5393 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5394 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5401 if test "$MINIX" = yes; then
5403 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5406 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5409 $as_echo "#define _MINIX 1" >>confdefs.h
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5415 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5416 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5417 $as_echo_n "(cached) " >&6
5419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5422 # define __EXTENSIONS__ 1
5423 $ac_includes_default
5432 if ac_fn_c_try_compile
"$LINENO"; then :
5433 ac_cv_safe_to_define___extensions__
=yes
5435 ac_cv_safe_to_define___extensions__
=no
5437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5440 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5441 test $ac_cv_safe_to_define___extensions__ = yes &&
5442 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5444 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5446 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5448 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5450 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5459 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5464 macro_version
='2.2.7a'
5465 macro_revision
='1.3134'
5479 ltmain
="$ac_aux_dir/ltmain.sh"
5481 # Backslashify metacharacters that are still active within
5482 # double-quoted strings.
5483 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5485 # Same as above, but do not quote variable references.
5486 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5488 # Sed substitution to delay expansion of an escaped shell variable in a
5489 # double_quote_subst'ed string.
5490 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5492 # Sed substitution to delay expansion of an escaped single quote.
5493 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5495 # Sed substitution to avoid accidental globbing in evaled expressions
5496 no_glob_subst
='s/\*/\\\*/g'
5498 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5499 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5500 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5503 $as_echo_n "checking how to print strings... " >&6; }
5504 # Test print first, because it will be a builtin if present.
5505 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5506 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5508 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5511 # Use this function as a fallback that always works.
5512 func_fallback_echo ()
5514 eval 'cat <<_LTECHO_EOF
5518 ECHO='func_fallback_echo
'
5521 # func_echo_all arg...
5522 # Invoke $ECHO with all args, space-separated.
5529 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5530 $as_echo "printf" >&6; } ;;
5531 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5532 $as_echo "print -r" >&6; } ;;
5533 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5534 $as_echo "cat" >&6; } ;;
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5551 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5552 if ${ac_cv_path_SED+:} false; then :
5553 $as_echo_n "(cached) " >&6
5555 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5556 for ac_i in 1 2 3 4 5 6 7; do
5557 ac_script="$ac_script$as_nl$ac_script"
5559 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5560 { ac_script=; unset ac_script;}
5561 if test -z "$SED"; then
5562 ac_path_SED_found=false
5563 # Loop through the user's path and
test for each of PROGNAME-LIST
5564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5568 test -z "$as_dir" && as_dir
=.
5569 for ac_prog
in sed gsed
; do
5570 for ac_exec_ext
in '' $ac_executable_extensions; do
5571 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5572 as_fn_executable_p
"$ac_path_SED" ||
continue
5573 # Check for GNU ac_path_SED and select it if it is found.
5574 # Check for GNU $ac_path_SED
5575 case `"$ac_path_SED" --version 2>&1` in
5577 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5580 $as_echo_n 0123456789 >"conftest.in"
5583 cat "conftest.in" "conftest.in" >"conftest.tmp"
5584 mv "conftest.tmp" "conftest.in"
5585 cp "conftest.in" "conftest.nl"
5586 $as_echo '' >> "conftest.nl"
5587 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5588 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5589 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5590 if test $ac_count -gt ${ac_path_SED_max-0}; then
5591 # Best one so far, save it but keep looking for a better one
5592 ac_cv_path_SED
="$ac_path_SED"
5593 ac_path_SED_max
=$ac_count
5595 # 10*(2^10) chars as input seems more than enough
5596 test $ac_count -gt 10 && break
5598 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5601 $ac_path_SED_found && break 3
5606 if test -z "$ac_cv_path_SED"; then
5607 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5615 $as_echo "$ac_cv_path_SED" >&6; }
5616 SED
="$ac_cv_path_SED"
5619 test -z "$SED" && SED
=sed
5620 Xsed
="$SED -e 1s/^X//"
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5633 $as_echo_n "checking for fgrep... " >&6; }
5634 if ${ac_cv_path_FGREP+:} false
; then :
5635 $as_echo_n "(cached) " >&6
5637 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5638 then ac_cv_path_FGREP
="$GREP -F"
5640 if test -z "$FGREP"; then
5641 ac_path_FGREP_found
=false
5642 # Loop through the user's path and test for each of PROGNAME-LIST
5643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5644 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5647 test -z "$as_dir" && as_dir
=.
5648 for ac_prog
in fgrep
; do
5649 for ac_exec_ext
in '' $ac_executable_extensions; do
5650 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5651 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5652 # Check for GNU ac_path_FGREP and select it if it is found.
5653 # Check for GNU $ac_path_FGREP
5654 case `"$ac_path_FGREP" --version 2>&1` in
5656 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5659 $as_echo_n 0123456789 >"conftest.in"
5662 cat "conftest.in" "conftest.in" >"conftest.tmp"
5663 mv "conftest.tmp" "conftest.in"
5664 cp "conftest.in" "conftest.nl"
5665 $as_echo 'FGREP' >> "conftest.nl"
5666 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5667 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5668 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5669 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5670 # Best one so far, save it but keep looking for a better one
5671 ac_cv_path_FGREP
="$ac_path_FGREP"
5672 ac_path_FGREP_max
=$ac_count
5674 # 10*(2^10) chars as input seems more than enough
5675 test $ac_count -gt 10 && break
5677 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5680 $ac_path_FGREP_found && break 3
5685 if test -z "$ac_cv_path_FGREP"; then
5686 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5689 ac_cv_path_FGREP
=$FGREP
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5695 $as_echo "$ac_cv_path_FGREP" >&6; }
5696 FGREP
="$ac_cv_path_FGREP"
5699 test -z "$GREP" && GREP
=grep
5719 # Check whether --with-gnu-ld was given.
5720 if test "${with_gnu_ld+set}" = set; then :
5721 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5727 if test "$GCC" = yes; then
5728 # Check if gcc -print-prog-name=ld gives a path.
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5730 $as_echo_n "checking for ld used by $CC... " >&6; }
5733 # gcc leaves a trailing carriage return which upsets mingw
5734 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5736 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5739 # Accept absolute paths.
5741 re_direlt
='/[^/][^/]*/\.\./'
5742 # Canonicalize the pathname of ld
5743 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5744 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5745 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5747 test -z "$LD" && LD
="$ac_prog"
5750 # If it fails, then pretend we aren't using GCC.
5754 # If it is relative, then search for the first ld in PATH.
5758 elif test "$with_gnu_ld" = yes; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5760 $as_echo_n "checking for GNU ld... " >&6; }
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5763 $as_echo_n "checking for non-GNU ld... " >&6; }
5765 if ${lt_cv_path_LD+:} false
; then :
5766 $as_echo_n "(cached) " >&6
5768 if test -z "$LD"; then
5769 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5770 for ac_dir
in $PATH; do
5772 test -z "$ac_dir" && ac_dir
=.
5773 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5774 lt_cv_path_LD
="$ac_dir/$ac_prog"
5775 # Check to see if the program is GNU ld. I'd rather use --version,
5776 # but apparently some variants of GNU ld only accept -v.
5777 # Break only if it was the GNU/non-GNU ld that we prefer.
5778 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5779 *GNU
* |
*'with BFD'*)
5780 test "$with_gnu_ld" != no
&& break
5783 test "$with_gnu_ld" != yes && break
5790 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5795 if test -n "$LD"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5797 $as_echo "$LD" >&6; }
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5802 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5804 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5805 if ${lt_cv_prog_gnu_ld+:} false
; then :
5806 $as_echo_n "(cached) " >&6
5808 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5809 case `$LD -v 2>&1 </dev/null` in
5810 *GNU
* |
*'with BFD'*)
5811 lt_cv_prog_gnu_ld
=yes
5814 lt_cv_prog_gnu_ld
=no
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5819 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5820 with_gnu_ld
=$lt_cv_prog_gnu_ld
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5831 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5832 if ${lt_cv_path_NM+:} false
; then :
5833 $as_echo_n "(cached) " >&6
5835 if test -n "$NM"; then
5836 # Let the user override the test.
5839 lt_nm_to_check
="${ac_tool_prefix}nm"
5840 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5841 lt_nm_to_check
="$lt_nm_to_check nm"
5843 for lt_tmp_nm
in $lt_nm_to_check; do
5844 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5845 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5847 test -z "$ac_dir" && ac_dir
=.
5848 tmp_nm
="$ac_dir/$lt_tmp_nm"
5849 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
5850 # Check to see if the nm accepts a BSD-compat flag.
5851 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5852 # nm: unknown option "B" ignored
5853 # Tru64's nm complains that /dev/null is an invalid object file
5854 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5855 */dev
/null
* |
*'Invalid file or object type'*)
5856 lt_cv_path_NM
="$tmp_nm -B"
5860 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5862 lt_cv_path_NM
="$tmp_nm -p"
5866 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5867 continue # so that we can try to find one that supports BSD flags
5876 : ${lt_cv_path_NM=no}
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5880 $as_echo "$lt_cv_path_NM" >&6; }
5881 if test "$lt_cv_path_NM" != "no"; then
5884 # Didn't find any BSD compatible name lister, look for dumpbin.
5885 if test -n "$DUMPBIN"; then :
5886 # Let the user override the test.
5888 if test -n "$ac_tool_prefix"; then
5889 for ac_prog
in dumpbin
"link -dump"
5891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5892 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894 $as_echo_n "checking for $ac_word... " >&6; }
5895 if ${ac_cv_prog_DUMPBIN+:} false
; then :
5896 $as_echo_n "(cached) " >&6
5898 if test -n "$DUMPBIN"; then
5899 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5905 test -z "$as_dir" && as_dir
=.
5906 for ac_exec_ext
in '' $ac_executable_extensions; do
5907 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5908 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 DUMPBIN
=$ac_cv_prog_DUMPBIN
5919 if test -n "$DUMPBIN"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5921 $as_echo "$DUMPBIN" >&6; }
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 $as_echo "no" >&6; }
5928 test -n "$DUMPBIN" && break
5931 if test -z "$DUMPBIN"; then
5932 ac_ct_DUMPBIN
=$DUMPBIN
5933 for ac_prog
in dumpbin
"link -dump"
5935 # Extract the first word of "$ac_prog", so it can be a program name with args.
5936 set dummy
$ac_prog; ac_word
=$2
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5938 $as_echo_n "checking for $ac_word... " >&6; }
5939 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
5940 $as_echo_n "(cached) " >&6
5942 if test -n "$ac_ct_DUMPBIN"; then
5943 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5949 test -z "$as_dir" && as_dir
=.
5950 for ac_exec_ext
in '' $ac_executable_extensions; do
5951 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5952 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5963 if test -n "$ac_ct_DUMPBIN"; then
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5965 $as_echo "$ac_ct_DUMPBIN" >&6; }
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5968 $as_echo "no" >&6; }
5972 test -n "$ac_ct_DUMPBIN" && break
5975 if test "x$ac_ct_DUMPBIN" = x
; then
5978 case $cross_compiling:$ac_tool_warned in
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5982 ac_tool_warned
=yes ;;
5984 DUMPBIN
=$ac_ct_DUMPBIN
5988 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5990 DUMPBIN
="$DUMPBIN -symbols"
5998 if test "$DUMPBIN" != ":"; then
6002 test -z "$NM" && NM
=nm
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6010 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6011 if ${lt_cv_nm_interface+:} false
; then :
6012 $as_echo_n "(cached) " >&6
6014 lt_cv_nm_interface
="BSD nm"
6015 echo "int some_variable = 0;" > conftest.
$ac_ext
6016 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6017 (eval "$ac_compile" 2>conftest.err
)
6018 cat conftest.err
>&5
6019 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6020 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6021 cat conftest.err
>&5
6022 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6023 cat conftest.out
>&5
6024 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6025 lt_cv_nm_interface
="MS dumpbin"
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6030 $as_echo "$lt_cv_nm_interface" >&6; }
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6033 $as_echo_n "checking whether ln -s works... " >&6; }
6035 if test "$LN_S" = "ln -s"; then
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6037 $as_echo "yes" >&6; }
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6040 $as_echo "no, using $LN_S" >&6; }
6043 # find the maximum length of command line arguments
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6045 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6046 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6047 $as_echo_n "(cached) " >&6
6054 # On DJGPP, this test can blow up pretty badly due to problems in libc
6055 # (any single argument exceeding 2000 bytes causes a buffer overrun
6056 # during glob expansion). Even if it were fixed, the result of this
6057 # check would be larger than it should be.
6058 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6062 # Under GNU Hurd, this test is not required because there is
6063 # no limit to the length of command line arguments.
6064 # Libtool will interpret -1 as no limit whatsoever
6065 lt_cv_sys_max_cmd_len
=-1;
6068 cygwin
* | mingw
* | cegcc
*)
6069 # On Win9x/ME, this test blows up -- it succeeds, but takes
6070 # about 5 minutes as the teststring grows exponentially.
6071 # Worse, since 9x/ME are not pre-emptively multitasking,
6072 # you end up with a "frozen" computer, even though with patience
6073 # the test eventually succeeds (with a max line length of 256k).
6074 # Instead, let's just punt: use the minimum linelength reported by
6075 # all of the supported platforms: 8192 (on NT/2K/XP).
6076 lt_cv_sys_max_cmd_len
=8192;
6080 # On MiNT this can take a long time and run out of memory.
6081 lt_cv_sys_max_cmd_len
=8192;
6085 # On AmigaOS with pdksh, this test takes hours, literally.
6086 # So we just punt and use a minimum line length of 8192.
6087 lt_cv_sys_max_cmd_len
=8192;
6090 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6091 # This has been around since 386BSD, at least. Likely further.
6092 if test -x /sbin
/sysctl
; then
6093 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6094 elif test -x /usr
/sbin
/sysctl
; then
6095 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6097 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6099 # And add a safety zone
6100 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6101 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6105 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6106 lt_cv_sys_max_cmd_len
=196608
6110 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6111 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6112 # nice to cause kernel panics so lets avoid the loop below.
6113 # First set a reasonable default.
6114 lt_cv_sys_max_cmd_len
=16384
6116 if test -x /sbin
/sysconfig
; then
6117 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6118 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6123 lt_cv_sys_max_cmd_len
=102400
6125 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6126 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6127 if test -n "$kargmax"; then
6128 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6130 lt_cv_sys_max_cmd_len
=32768
6134 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6135 if test -n "$lt_cv_sys_max_cmd_len"; then
6136 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6137 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6139 # Make teststring a little bigger before we do anything with it.
6140 # a 1K string should be a reasonable start.
6141 for i
in 1 2 3 4 5 6 7 8 ; do
6142 teststring
=$teststring$teststring
6144 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6145 # If test is not a shell built-in, we'll probably end up computing a
6146 # maximum length that is only half of the actual maximum length, but
6148 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6149 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6150 test $i != 17 # 1/2 MB should be enough
6153 teststring
=$teststring$teststring
6155 # Only check the string length outside the loop.
6156 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6158 # Add a significant safety factor because C++ compilers can tack on
6159 # massive amounts of additional arguments before passing them to the
6160 # linker. It appears as though 1/2 is a usable value.
6161 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6168 if test -n $lt_cv_sys_max_cmd_len ; then
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6170 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6173 $as_echo "none" >&6; }
6175 max_cmd_len
=$lt_cv_sys_max_cmd_len
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6187 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6188 # Try some XSI features
6191 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6193 && eval 'test $(( 1 + 1 )) -eq 2 \
6194 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6197 $as_echo "$xsi_shell" >&6; }
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6201 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6203 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6205 && lt_shell_append=yes
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6207 $as_echo "$lt_shell_append" >&6; }
6210 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6220 # test EBCDIC or ASCII
6221 case `echo X|tr X '\101'` in
6222 A) # ASCII based system
6223 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6224 lt_SP2NL='tr \040 \012'
6225 lt_NL2SP='tr \015\012 \040\040'
6227 *) # EBCDIC based system
6228 lt_SP2NL='tr \100 \n'
6229 lt_NL2SP='tr \r\n \100\100'
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6242 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6243 if ${lt_cv_ld_reload_flag+:} false; then :
6244 $as_echo_n "(cached
) " >&6
6246 lt_cv_ld_reload_flag='-r'
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6249 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6250 reload_flag=$lt_cv_ld_reload_flag
6251 case $reload_flag in
6253 *) reload_flag=" $reload_flag" ;;
6255 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6258 if test "$GCC" = yes; then
6259 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6261 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6274 if test -n "$ac_tool_prefix"; then
6275 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6276 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6278 $as_echo_n "checking
for $ac_word...
" >&6; }
6279 if ${ac_cv_prog_OBJDUMP+:} false; then :
6280 $as_echo_n "(cached
) " >&6
6282 if test -n "$OBJDUMP"; then
6283 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6292 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6293 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6302 OBJDUMP=$ac_cv_prog_OBJDUMP
6303 if test -n "$OBJDUMP"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6305 $as_echo "$OBJDUMP" >&6; }
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6308 $as_echo "no
" >&6; }
6313 if test -z "$ac_cv_prog_OBJDUMP"; then
6314 ac_ct_OBJDUMP=$OBJDUMP
6315 # Extract the first word of "objdump
", so it can be a program name with args.
6316 set dummy objdump; ac_word=$2
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6318 $as_echo_n "checking
for $ac_word...
" >&6; }
6319 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6320 $as_echo_n "(cached
) " >&6
6322 if test -n "$ac_ct_OBJDUMP"; then
6323 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 test -z "$as_dir" && as_dir=.
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6332 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6333 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6342 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6343 if test -n "$ac_ct_OBJDUMP"; then
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6345 $as_echo "$ac_ct_OBJDUMP" >&6; }
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6348 $as_echo "no
" >&6; }
6351 if test "x
$ac_ct_OBJDUMP" = x; then
6354 case $cross_compiling:$ac_tool_warned in
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6357 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6358 ac_tool_warned=yes ;;
6360 OBJDUMP=$ac_ct_OBJDUMP
6363 OBJDUMP="$ac_cv_prog_OBJDUMP"
6366 test -z "$OBJDUMP" && OBJDUMP=objdump
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6377 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6378 if ${lt_cv_deplibs_check_method+:} false; then :
6379 $as_echo_n "(cached
) " >&6
6381 lt_cv_file_magic_cmd='$MAGIC_CMD'
6382 lt_cv_file_magic_test_file=
6383 lt_cv_deplibs_check_method='unknown'
6384 # Need to set the preceding variable on all platforms that support
6385 # interlibrary dependencies.
6386 # 'none' -- dependencies not supported.
6387 # `unknown' -- same as none, but documents that we really don't know.
6388 # 'pass_all' -- all dependencies passed with no checks.
6389 # 'test_compile' -- check by making test program.
6390 # 'file_magic [[regex]]' -- check by looking for files in library path
6391 # which responds to the $file_magic_cmd with a given extended regex.
6392 # If you have `file' or equivalent on your system and you're not sure
6393 # whether `pass_all' will *always* work, you probably want this one.
6397 lt_cv_deplibs_check_method=pass_all
6401 lt_cv_deplibs_check_method=pass_all
6405 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6406 lt_cv_file_magic_cmd='/usr/bin/file -L'
6407 lt_cv_file_magic_test_file=/shlib/libc.so
6411 # func_win32_libid is a shell function defined in ltmain.sh
6412 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6413 lt_cv_file_magic_cmd='func_win32_libid'
6417 # Base MSYS/MinGW do not provide the 'file' command needed by
6418 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6419 # unless we find 'file', for example because we are cross-compiling.
6420 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6421 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6422 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6423 lt_cv_file_magic_cmd='func_win32_libid'
6425 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6426 lt_cv_file_magic_cmd='$OBJDUMP -f'
6431 # use the weaker test based on 'objdump'. See mingw*.
6432 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6433 lt_cv_file_magic_cmd='$OBJDUMP -f'
6436 darwin* | rhapsody*)
6437 lt_cv_deplibs_check_method=pass_all
6440 freebsd* | dragonfly*)
6441 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6444 # Not sure whether the presence of OpenBSD here was a mistake.
6445 # Let's accept both of them until this is cleared up.
6446 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6447 lt_cv_file_magic_cmd=/usr/bin/file
6448 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6452 lt_cv_deplibs_check_method=pass_all
6457 lt_cv_deplibs_check_method=pass_all
6461 lt_cv_deplibs_check_method=pass_all
6464 hpux10.20* | hpux11*)
6465 lt_cv_file_magic_cmd=/usr/bin/file
6468 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6469 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6472 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6473 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6476 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6477 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6483 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6487 irix5* | irix6* | nonstopux*)
6489 *-32|*"-32 ") libmagic=32-bit;;
6490 *-n32|*"-n32 ") libmagic=N32;;
6491 *-64|*"-64 ") libmagic=64-bit;;
6492 *) libmagic=never-match;;
6494 lt_cv_deplibs_check_method=pass_all
6497 # This must be Linux ELF.
6498 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6499 lt_cv_deplibs_check_method=pass_all
6503 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6504 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6506 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6511 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6512 lt_cv_file_magic_cmd=/usr/bin/file
6513 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6517 lt_cv_deplibs_check_method=pass_all
6521 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6528 osf3* | osf4* | osf5*)
6529 lt_cv_deplibs_check_method=pass_all
6533 lt_cv_deplibs_check_method=pass_all
6537 lt_cv_deplibs_check_method=pass_all
6540 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6541 lt_cv_deplibs_check_method=pass_all
6545 case $host_vendor in
6547 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]'
6548 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6551 lt_cv_deplibs_check_method=pass_all
6554 lt_cv_file_magic_cmd='/bin/file'
6555 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6558 lt_cv_file_magic_cmd='/bin/file'
6559 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6560 lt_cv_file_magic_test_file=/lib/libc.so
6563 lt_cv_deplibs_check_method=pass_all
6566 lt_cv_deplibs_check_method=pass_all
6572 lt_cv_deplibs_check_method=pass_all
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6578 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6579 file_magic_cmd=$lt_cv_file_magic_cmd
6580 deplibs_check_method=$lt_cv_deplibs_check_method
6581 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6594 if test -n "$ac_tool_prefix"; then
6595 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6596 set dummy ${ac_tool_prefix}ar; ac_word=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6598 $as_echo_n "checking
for $ac_word...
" >&6; }
6599 if ${ac_cv_prog_AR+:} false; then :
6600 $as_echo_n "(cached
) " >&6
6602 if test -n "$AR"; then
6603 ac_cv_prog_AR="$AR" # Let the user override the test.
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6612 ac_cv_prog_AR="${ac_tool_prefix}ar"
6613 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6623 if test -n "$AR"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6625 $as_echo "$AR" >&6; }
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6628 $as_echo "no
" >&6; }
6633 if test -z "$ac_cv_prog_AR"; then
6635 # Extract the first word of "ar", so it can be a program name with args.
6636 set dummy ar; ac_word=$2
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6638 $as_echo_n "checking
for $ac_word...
" >&6; }
6639 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6640 $as_echo_n "(cached
) " >&6
6642 if test -n "$ac_ct_AR"; then
6643 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 test -z "$as_dir" && as_dir=.
6650 for ac_exec_ext in '' $ac_executable_extensions; do
6651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6652 ac_cv_prog_ac_ct_AR="ar"
6653 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6662 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6663 if test -n "$ac_ct_AR"; then
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6665 $as_echo "$ac_ct_AR" >&6; }
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6668 $as_echo "no
" >&6; }
6671 if test "x
$ac_ct_AR" = x; then
6674 case $cross_compiling:$ac_tool_warned in
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6677 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6678 ac_tool_warned=yes ;;
6686 test -z "$AR" && AR=ar
6687 test -z "$AR_FLAGS" && AR_FLAGS=cru
6699 if test -n "$ac_tool_prefix"; then
6700 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6701 set dummy ${ac_tool_prefix}strip; ac_word=$2
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6703 $as_echo_n "checking
for $ac_word...
" >&6; }
6704 if ${ac_cv_prog_STRIP+:} false; then :
6705 $as_echo_n "(cached
) " >&6
6707 if test -n "$STRIP"; then
6708 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6717 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6718 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6727 STRIP=$ac_cv_prog_STRIP
6728 if test -n "$STRIP"; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6730 $as_echo "$STRIP" >&6; }
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6733 $as_echo "no
" >&6; }
6738 if test -z "$ac_cv_prog_STRIP"; then
6740 # Extract the first word of "strip
", so it can be a program name with args.
6741 set dummy strip; ac_word=$2
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6743 $as_echo_n "checking
for $ac_word...
" >&6; }
6744 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6745 $as_echo_n "(cached
) " >&6
6747 if test -n "$ac_ct_STRIP"; then
6748 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6757 ac_cv_prog_ac_ct_STRIP="strip
"
6758 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6767 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6768 if test -n "$ac_ct_STRIP"; then
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6770 $as_echo "$ac_ct_STRIP" >&6; }
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6773 $as_echo "no
" >&6; }
6776 if test "x
$ac_ct_STRIP" = x; then
6779 case $cross_compiling:$ac_tool_warned in
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6782 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6783 ac_tool_warned=yes ;;
6788 STRIP="$ac_cv_prog_STRIP"
6791 test -z "$STRIP" && STRIP=:
6798 if test -n "$ac_tool_prefix"; then
6799 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6800 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6802 $as_echo_n "checking
for $ac_word...
" >&6; }
6803 if ${ac_cv_prog_RANLIB+:} false; then :
6804 $as_echo_n "(cached
) " >&6
6806 if test -n "$RANLIB"; then
6807 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6816 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6817 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6826 RANLIB=$ac_cv_prog_RANLIB
6827 if test -n "$RANLIB"; then
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6829 $as_echo "$RANLIB" >&6; }
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6832 $as_echo "no
" >&6; }
6837 if test -z "$ac_cv_prog_RANLIB"; then
6838 ac_ct_RANLIB=$RANLIB
6839 # Extract the first word of "ranlib
", so it can be a program name with args.
6840 set dummy ranlib; ac_word=$2
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6842 $as_echo_n "checking
for $ac_word...
" >&6; }
6843 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6844 $as_echo_n "(cached
) " >&6
6846 if test -n "$ac_ct_RANLIB"; then
6847 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6856 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6857 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6866 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6867 if test -n "$ac_ct_RANLIB"; then
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6869 $as_echo "$ac_ct_RANLIB" >&6; }
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6872 $as_echo "no
" >&6; }
6875 if test "x
$ac_ct_RANLIB" = x; then
6878 case $cross_compiling:$ac_tool_warned in
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6881 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6882 ac_tool_warned=yes ;;
6884 RANLIB=$ac_ct_RANLIB
6887 RANLIB="$ac_cv_prog_RANLIB"
6890 test -z "$RANLIB" && RANLIB=:
6897 # Determine commands to create old-style static archives.
6898 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6899 old_postinstall_cmds='chmod 644 $oldlib'
6900 old_postuninstall_cmds=
6902 if test -n "$RANLIB"; then
6905 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6908 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6911 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6916 lock_old_archive_extraction=yes ;;
6918 lock_old_archive_extraction=no ;;
6959 # If no C compiler was specified, use CC.
6962 # If no C compiler flags were specified, use CFLAGS.
6963 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6965 # Allow CC to be a program name with arguments.
6969 # Check for command to grab the raw symbol name followed by C symbol from nm.
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6971 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6972 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6973 $as_echo_n "(cached
) " >&6
6976 # These are sane defaults that work on at least a few old systems.
6977 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6979 # Character class describing NM global symbol codes.
6980 symcode='[BCDEGRST]'
6982 # Regexp to match symbols that can be accessed directly from C.
6983 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6985 # Define system-specific variables.
6990 cygwin* | mingw* | pw32* | cegcc*)
6991 symcode='[ABCDGISTW]'
6994 if test "$host_cpu" = ia64; then
6995 symcode='[ABCDEGRST]'
6999 symcode='[BCDEGRST]'
7002 symcode='[BCDEGQRST]'
7013 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7021 # If we're using GNU nm, then use its standard symbol codes.
7022 case `$NM -V 2>&1` in
7023 *GNU* | *'with BFD'*)
7024 symcode='[ABCDGIRSTW]' ;;
7027 # Transform an extracted symbol line into a proper C declaration.
7028 # Some systems (esp. on ia64) link data and code symbols differently,
7029 # so use this general approach.
7030 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7032 # Transform an extracted symbol line into symbol name and symbol address
7033 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7034 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'"
7036 # Handle CRLF in mingw tool chain
7040 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7044 # Try without a prefix underscore, then with it.
7045 for ac_symprfx in "" "_
"; do
7047 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7048 symxfrm="\\1 $ac_symprfx\\2 \\2"
7050 # Write the raw and C identifiers.
7051 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7052 # Fake it for dumpbin and say T for any non-static function
7053 # and D for any global variable.
7054 # Also find C++ and __fastcall symbols from MSVC++,
7055 # which start with @ or ?.
7056 lt_cv_sys_global_symbol_pipe="$AWK '"\
7057 " {last_section=section; section=\$ 3};"\
7058 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7059 " \$ 0!~/External *\|/{next};"\
7060 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7061 " {if(hide[section]) next};"\
7062 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7063 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7064 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7065 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7066 " ' prfx
=^
$ac_symprfx"
7068 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7071 # Check to see that the pipe works correctly.
7075 cat > conftest.$ac_ext <<_LT_EOF
7080 void nm_test_func(void);
7081 void nm_test_func(void){}
7085 int main(){nm_test_var='a';nm_test_func();return(0);}
7088 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7089 (eval $ac_compile) 2>&5
7091 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7092 test $ac_status = 0; }; then
7093 # Now try to grab the symbols.
7095 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7096 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7098 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7099 test $ac_status = 0; } && test -s "$nlist"; then
7100 # Try sorting and uniquifying the output.
7101 if sort "$nlist" | uniq > "$nlist"T; then
7102 mv -f "$nlist"T "$nlist"
7107 # Make sure that we snagged all the symbols we need.
7108 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7109 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7110 cat <<_LT_EOF > conftest.$ac_ext
7116 # Now generate the symbol file.
7117 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7119 cat <<_LT_EOF >> conftest.$ac_ext
7121 /* The mapping between symbol names and symbols. */
7126 lt__PROGRAM__LTX_preloaded_symbols[] =
7128 { "@PROGRAM@
", (void *) 0 },
7130 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7131 cat <<\_LT_EOF >> conftest.$ac_ext
7135 /* This works around a problem in FreeBSD linker */
7136 #ifdef FREEBSD_WORKAROUND
7137 static const void *lt_preloaded_setup() {
7138 return lt__PROGRAM__LTX_preloaded_symbols;
7146 # Now try linking the two files.
7147 mv conftest.$ac_objext conftstm.$ac_objext
7148 lt_save_LIBS="$LIBS"
7149 lt_save_CFLAGS="$CFLAGS"
7150 LIBS="conftstm.
$ac_objext"
7151 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7152 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7153 (eval $ac_link) 2>&5
7155 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7156 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7159 LIBS="$lt_save_LIBS"
7160 CFLAGS="$lt_save_CFLAGS"
7162 echo "cannot
find nm_test_func
in $nlist" >&5
7165 echo "cannot
find nm_test_var
in $nlist" >&5
7168 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7171 echo "$progname: failed program was
:" >&5
7172 cat conftest.$ac_ext >&5
7174 rm -rf conftest* conftst*
7176 # Do not use the global_symbol_pipe unless it works.
7177 if test "$pipe_works" = yes; then
7180 lt_cv_sys_global_symbol_pipe=
7186 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7187 lt_cv_sys_global_symbol_to_cdecl=
7189 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7191 $as_echo "failed
" >&6; }
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7194 $as_echo "ok
" >&6; }
7218 # Check whether --enable-libtool-lock was given.
7219 if test "${enable_libtool_lock+set}" = set; then :
7220 enableval=$enable_libtool_lock;
7223 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7225 # Some flags need to be propagated to the compiler or linker for good
7229 # Find out which ABI we are using.
7230 echo 'int i;' > conftest.$ac_ext
7231 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7232 (eval $ac_compile) 2>&5
7234 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7235 test $ac_status = 0; }; then
7236 case `/usr/bin/file conftest.$ac_objext` in
7248 # Find out which ABI we are using.
7249 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7250 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7251 (eval $ac_compile) 2>&5
7253 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7254 test $ac_status = 0; }; then
7255 if test "$lt_cv_prog_gnu_ld" = yes; then
7256 case `/usr/bin/file conftest.$ac_objext` in
7258 LD="${LD-ld} -melf32bsmip"
7261 LD="${LD-ld} -melf32bmipn32"
7264 LD="${LD-ld} -melf64bmip"
7268 case `/usr/bin/file conftest.$ac_objext` in
7284 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7285 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7286 # Find out which ABI we are using.
7287 echo 'int i;' > conftest.$ac_ext
7288 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7289 (eval $ac_compile) 2>&5
7291 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7292 test $ac_status = 0; }; then
7293 case `/usr/bin/file conftest.o` in
7296 x86_64-*kfreebsd*-gnu)
7297 LD="${LD-ld} -m elf_i386_fbsd
"
7300 case `/usr/bin/file conftest.o` in
7302 LD="${LD-ld} -m elf32_x86_64
"
7305 LD="${LD-ld} -m elf_i386
"
7309 powerpc64le-*linux*)
7310 LD="${LD-ld} -m elf32lppclinux
"
7313 LD="${LD-ld} -m elf32ppclinux
"
7316 LD="${LD-ld} -m elf_s390
"
7319 LD="${LD-ld} -m elf32_sparc
"
7325 x86_64-*kfreebsd*-gnu)
7326 LD="${LD-ld} -m elf_x86_64_fbsd
"
7329 LD="${LD-ld} -m elf_x86_64
"
7332 LD="${LD-ld} -m elf64lppc
"
7335 LD="${LD-ld} -m elf64ppc
"
7337 s390*-*linux*|s390*-*tpf*)
7338 LD="${LD-ld} -m elf64_s390
"
7341 LD="${LD-ld} -m elf64_sparc
"
7351 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7352 SAVE_CFLAGS="$CFLAGS"
7353 CFLAGS="$CFLAGS -belf"
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7355 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7356 if ${lt_cv_cc_needs_belf+:} false; then :
7357 $as_echo_n "(cached
) " >&6
7360 ac_cpp='$CPP $CPPFLAGS'
7361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7376 if ac_fn_c_try_link "$LINENO"; then :
7377 lt_cv_cc_needs_belf=yes
7379 lt_cv_cc_needs_belf=no
7381 rm -f core conftest.err conftest.$ac_objext \
7382 conftest$ac_exeext conftest.$ac_ext
7384 ac_cpp='$CPP $CPPFLAGS'
7385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7391 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7392 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7393 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7394 CFLAGS="$SAVE_CFLAGS"
7398 # Find out which ABI we are using.
7399 echo 'int i;' > conftest.$ac_ext
7400 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7401 (eval $ac_compile) 2>&5
7403 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7404 test $ac_status = 0; }; then
7405 case `/usr/bin/file conftest.o` in
7407 case $lt_cv_prog_gnu_ld in
7408 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7410 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7422 need_locks="$enable_libtool_lock"
7426 rhapsody* | darwin*)
7427 if test -n "$ac_tool_prefix"; then
7428 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7429 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7431 $as_echo_n "checking
for $ac_word...
" >&6; }
7432 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7433 $as_echo_n "(cached
) " >&6
7435 if test -n "$DSYMUTIL"; then
7436 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7446 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7455 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7456 if test -n "$DSYMUTIL"; then
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7458 $as_echo "$DSYMUTIL" >&6; }
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7461 $as_echo "no
" >&6; }
7466 if test -z "$ac_cv_prog_DSYMUTIL"; then
7467 ac_ct_DSYMUTIL=$DSYMUTIL
7468 # Extract the first word of "dsymutil
", so it can be a program name with args.
7469 set dummy dsymutil; ac_word=$2
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7471 $as_echo_n "checking
for $ac_word...
" >&6; }
7472 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7473 $as_echo_n "(cached
) " >&6
7475 if test -n "$ac_ct_DSYMUTIL"; then
7476 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7485 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7486 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7495 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7496 if test -n "$ac_ct_DSYMUTIL"; then
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7498 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7501 $as_echo "no
" >&6; }
7504 if test "x
$ac_ct_DSYMUTIL" = x; then
7507 case $cross_compiling:$ac_tool_warned in
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7510 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7511 ac_tool_warned=yes ;;
7513 DSYMUTIL=$ac_ct_DSYMUTIL
7516 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7519 if test -n "$ac_tool_prefix"; then
7520 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7521 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7523 $as_echo_n "checking
for $ac_word...
" >&6; }
7524 if ${ac_cv_prog_NMEDIT+:} false; then :
7525 $as_echo_n "(cached
) " >&6
7527 if test -n "$NMEDIT"; then
7528 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534 test -z "$as_dir" && as_dir=.
7535 for ac_exec_ext in '' $ac_executable_extensions; do
7536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7537 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7538 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7547 NMEDIT=$ac_cv_prog_NMEDIT
7548 if test -n "$NMEDIT"; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7550 $as_echo "$NMEDIT" >&6; }
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7553 $as_echo "no
" >&6; }
7558 if test -z "$ac_cv_prog_NMEDIT"; then
7559 ac_ct_NMEDIT=$NMEDIT
7560 # Extract the first word of "nmedit
", so it can be a program name with args.
7561 set dummy nmedit; ac_word=$2
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7563 $as_echo_n "checking
for $ac_word...
" >&6; }
7564 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7565 $as_echo_n "(cached
) " >&6
7567 if test -n "$ac_ct_NMEDIT"; then
7568 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574 test -z "$as_dir" && as_dir=.
7575 for ac_exec_ext in '' $ac_executable_extensions; do
7576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7577 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7578 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7587 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7588 if test -n "$ac_ct_NMEDIT"; then
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7590 $as_echo "$ac_ct_NMEDIT" >&6; }
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7593 $as_echo "no
" >&6; }
7596 if test "x
$ac_ct_NMEDIT" = x; then
7599 case $cross_compiling:$ac_tool_warned in
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7602 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7603 ac_tool_warned=yes ;;
7605 NMEDIT=$ac_ct_NMEDIT
7608 NMEDIT="$ac_cv_prog_NMEDIT"
7611 if test -n "$ac_tool_prefix"; then
7612 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7613 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7615 $as_echo_n "checking
for $ac_word...
" >&6; }
7616 if ${ac_cv_prog_LIPO+:} false; then :
7617 $as_echo_n "(cached
) " >&6
7619 if test -n "$LIPO"; then
7620 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7629 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7630 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7639 LIPO=$ac_cv_prog_LIPO
7640 if test -n "$LIPO"; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7642 $as_echo "$LIPO" >&6; }
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7645 $as_echo "no
" >&6; }
7650 if test -z "$ac_cv_prog_LIPO"; then
7652 # Extract the first word of "lipo
", so it can be a program name with args.
7653 set dummy lipo; ac_word=$2
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7655 $as_echo_n "checking
for $ac_word...
" >&6; }
7656 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7657 $as_echo_n "(cached
) " >&6
7659 if test -n "$ac_ct_LIPO"; then
7660 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 test -z "$as_dir" && as_dir=.
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7669 ac_cv_prog_ac_ct_LIPO="lipo
"
7670 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7679 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7680 if test -n "$ac_ct_LIPO"; then
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7682 $as_echo "$ac_ct_LIPO" >&6; }
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7685 $as_echo "no
" >&6; }
7688 if test "x
$ac_ct_LIPO" = x; then
7691 case $cross_compiling:$ac_tool_warned in
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7694 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7695 ac_tool_warned=yes ;;
7700 LIPO="$ac_cv_prog_LIPO"
7703 if test -n "$ac_tool_prefix"; then
7704 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7705 set dummy ${ac_tool_prefix}otool; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7707 $as_echo_n "checking
for $ac_word...
" >&6; }
7708 if ${ac_cv_prog_OTOOL+:} false; then :
7709 $as_echo_n "(cached
) " >&6
7711 if test -n "$OTOOL"; then
7712 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7721 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7731 OTOOL=$ac_cv_prog_OTOOL
7732 if test -n "$OTOOL"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7734 $as_echo "$OTOOL" >&6; }
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7737 $as_echo "no
" >&6; }
7742 if test -z "$ac_cv_prog_OTOOL"; then
7744 # Extract the first word of "otool
", so it can be a program name with args.
7745 set dummy otool; ac_word=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7747 $as_echo_n "checking
for $ac_word...
" >&6; }
7748 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7749 $as_echo_n "(cached
) " >&6
7751 if test -n "$ac_ct_OTOOL"; then
7752 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7761 ac_cv_prog_ac_ct_OTOOL="otool
"
7762 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7771 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7772 if test -n "$ac_ct_OTOOL"; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7774 $as_echo "$ac_ct_OTOOL" >&6; }
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7777 $as_echo "no
" >&6; }
7780 if test "x
$ac_ct_OTOOL" = x; then
7783 case $cross_compiling:$ac_tool_warned in
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7786 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7787 ac_tool_warned=yes ;;
7792 OTOOL="$ac_cv_prog_OTOOL"
7795 if test -n "$ac_tool_prefix"; then
7796 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7797 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7799 $as_echo_n "checking
for $ac_word...
" >&6; }
7800 if ${ac_cv_prog_OTOOL64+:} false; then :
7801 $as_echo_n "(cached
) " >&6
7803 if test -n "$OTOOL64"; then
7804 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7813 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7814 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7823 OTOOL64=$ac_cv_prog_OTOOL64
7824 if test -n "$OTOOL64"; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7826 $as_echo "$OTOOL64" >&6; }
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7829 $as_echo "no
" >&6; }
7834 if test -z "$ac_cv_prog_OTOOL64"; then
7835 ac_ct_OTOOL64=$OTOOL64
7836 # Extract the first word of "otool64
", so it can be a program name with args.
7837 set dummy otool64; ac_word=$2
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7839 $as_echo_n "checking
for $ac_word...
" >&6; }
7840 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7841 $as_echo_n "(cached
) " >&6
7843 if test -n "$ac_ct_OTOOL64"; then
7844 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 test -z "$as_dir" && as_dir=.
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7853 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7854 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7863 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7864 if test -n "$ac_ct_OTOOL64"; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7866 $as_echo "$ac_ct_OTOOL64" >&6; }
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7869 $as_echo "no
" >&6; }
7872 if test "x
$ac_ct_OTOOL64" = x; then
7875 case $cross_compiling:$ac_tool_warned in
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7878 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7879 ac_tool_warned=yes ;;
7881 OTOOL64=$ac_ct_OTOOL64
7884 OTOOL64="$ac_cv_prog_OTOOL64"
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7914 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7915 if ${lt_cv_apple_cc_single_mod+:} false; then :
7916 $as_echo_n "(cached
) " >&6
7918 lt_cv_apple_cc_single_mod=no
7919 if test -z "${LT_MULTI_MODULE}"; then
7920 # By default we will add the -single_module flag. You can override
7921 # by either setting the environment variable LT_MULTI_MODULE
7922 # non-empty at configure time, or by adding -multi_module to the
7924 rm -rf libconftest.dylib*
7925 echo "int foo
(void
){return 1;}" > conftest.c
7926 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7927 -dynamiclib -Wl,-single_module conftest.c
" >&5
7928 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7929 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7931 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7932 lt_cv_apple_cc_single_mod=yes
7934 cat conftest.err >&5
7936 rm -rf libconftest.dylib*
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7941 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7943 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7944 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7945 $as_echo_n "(cached
) " >&6
7947 lt_cv_ld_exported_symbols_list=no
7948 save_LDFLAGS=$LDFLAGS
7949 echo "_main
" > conftest.sym
7950 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h. */
7962 if ac_fn_c_try_link "$LINENO"; then :
7963 lt_cv_ld_exported_symbols_list=yes
7965 lt_cv_ld_exported_symbols_list=no
7967 rm -f core conftest.err conftest.$ac_objext \
7968 conftest$ac_exeext conftest.$ac_ext
7969 LDFLAGS="$save_LDFLAGS"
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7973 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7975 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7976 if ${lt_cv_ld_force_load+:} false; then :
7977 $as_echo_n "(cached
) " >&6
7979 lt_cv_ld_force_load=no
7980 cat > conftest.c << _LT_EOF
7981 int forced_loaded() { return 2;}
7983 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7984 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7985 echo "$AR cru libconftest.a conftest.o
" >&5
7986 $AR cru libconftest.a conftest.o 2>&5
7987 cat > conftest.c << _LT_EOF
7988 int main() { return 0;}
7990 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7991 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7993 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7994 lt_cv_ld_force_load=yes
7996 cat conftest.err >&5
7998 rm -f conftest.err libconftest.a conftest conftest.c
7999 rm -rf conftest.dSYM
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
8003 $as_echo "$lt_cv_ld_force_load" >&6; }
8005 rhapsody* | darwin1.[012])
8006 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8008 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8009 darwin*) # darwin 5.x on
8010 # if running on 10.5 or later, the deployment target defaults
8011 # to the OS version, if on x86, and 10.4, the deployment
8012 # target defaults to 10.4. Don't you love it?
8013 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8014 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8015 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8017 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8019 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8023 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8024 _lt_dar_single_mod='$single_module'
8026 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8027 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8029 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8031 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
8032 _lt_dsymutil='~$DSYMUTIL $lib || :'
8039 for ac_header in dlfcn.h
8041 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
8043 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
8044 cat >>confdefs.h <<_ACEOF
8045 #define HAVE_DLFCN_H 1
8066 # Check whether --enable-shared was given.
8067 if test "${enable_shared+set}" = set; then :
8068 enableval=$enable_shared; p=${PACKAGE-default}
8070 yes) enable_shared=yes ;;
8071 no) enable_shared=no ;;
8074 # Look at the argument we got. We use all the common list separators.
8075 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8076 for pkg in $enableval; do
8078 if test "X
$pkg" = "X
$p"; then
8097 # Check whether --enable-static was given.
8098 if test "${enable_static+set}" = set; then :
8099 enableval=$enable_static; p=${PACKAGE-default}
8101 yes) enable_static=yes ;;
8102 no) enable_static=no ;;
8105 # Look at the argument we got. We use all the common list separators.
8106 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8107 for pkg in $enableval; do
8109 if test "X
$pkg" = "X
$p"; then
8129 # Check whether --with-pic was given.
8130 if test "${with_pic+set}" = set; then :
8131 withval=$with_pic; pic_mode="$withval"
8137 test -z "$pic_mode" && pic_mode=default
8145 # Check whether --enable-fast-install was given.
8146 if test "${enable_fast_install+set}" = set; then :
8147 enableval=$enable_fast_install; p=${PACKAGE-default}
8149 yes) enable_fast_install=yes ;;
8150 no) enable_fast_install=no ;;
8152 enable_fast_install=no
8153 # Look at the argument we got. We use all the common list separators.
8154 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8155 for pkg in $enableval; do
8157 if test "X
$pkg" = "X
$p"; then
8158 enable_fast_install=yes
8165 enable_fast_install=yes
8178 # This can be used to rebuild libtool when needed
8179 LIBTOOL_DEPS="$ltmain"
8181 # Always use our own libtool.
8182 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8209 test -z "$LN_S" && LN_S="ln -s"
8224 if test -n "${ZSH_VERSION+set}" ; then
8225 setopt NO_GLOB_SUBST
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
8229 $as_echo_n "checking
for objdir...
" >&6; }
8230 if ${lt_cv_objdir+:} false; then :
8231 $as_echo_n "(cached
) " >&6
8233 rm -f .libs 2>/dev/null
8234 mkdir .libs 2>/dev/null
8235 if test -d .libs; then
8238 # MS-DOS does not allow filenames that begin with a dot.
8241 rmdir .libs 2>/dev/null
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
8244 $as_echo "$lt_cv_objdir" >&6; }
8245 objdir=$lt_cv_objdir
8251 cat >>confdefs.h <<_ACEOF
8252 #define LT_OBJDIR "$lt_cv_objdir/"
8260 # AIX sometimes has problems with the GCC collect2 program. For some
8261 # reason, if we set the COLLECT_NAMES environment variable, the problems
8262 # vanish in a puff of smoke.
8263 if test "X
${COLLECT_NAMES+set}" != Xset; then
8265 export COLLECT_NAMES
8272 can_build_shared=yes
8274 # All known linkers require a `.a' archive for static linking (except MSVC,
8275 # which needs '.lib').
8278 with_gnu_ld="$lt_cv_prog_gnu_ld"
8281 old_CFLAGS="$CFLAGS"
8283 # Set sane defaults for various variables
8284 test -z "$CC" && CC=cc
8285 test -z "$LTCC" && LTCC=$CC
8286 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8287 test -z "$LD" && LD=ld
8288 test -z "$ac_objext" && ac_objext=o
8290 for cc_temp in $compiler""; do
8292 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8293 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8298 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
8301 # Only perform the check for file, if the check method requires it
8302 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8303 case $deplibs_check_method in
8305 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
8307 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
8308 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8309 $as_echo_n "(cached
) " >&6
8313 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8316 lt_save_MAGIC_CMD="$MAGIC_CMD"
8317 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8318 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8319 for ac_dir in $ac_dummy; do
8321 test -z "$ac_dir" && ac_dir=.
8322 if test -f $ac_dir/${ac_tool_prefix}file; then
8323 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8324 if test -n "$file_magic_test_file"; then
8325 case $deplibs_check_method in
8327 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8328 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8329 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8330 $EGREP "$file_magic_regex" > /dev/null; then
8335 *** Warning: the command libtool uses to detect shared libraries,
8336 *** $file_magic_cmd, produces output that libtool cannot recognize.
8337 *** The result is that libtool may fail to recognize shared libraries
8338 *** as such. This will affect the creation of libtool libraries that
8339 *** depend on shared libraries, but programs linked with such libtool
8340 *** libraries will work regardless of this problem. Nevertheless, you
8341 *** may want to report the problem to your system manager and/or to
8342 *** bug-libtool@gnu.org
8352 MAGIC_CMD="$lt_save_MAGIC_CMD"
8357 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8358 if test -n "$MAGIC_CMD"; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8360 $as_echo "$MAGIC_CMD" >&6; }
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8363 $as_echo "no
" >&6; }
8370 if test -z "$lt_cv_path_MAGIC_CMD"; then
8371 if test -n "$ac_tool_prefix"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
8373 $as_echo_n "checking
for file...
" >&6; }
8374 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8375 $as_echo_n "(cached
) " >&6
8379 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8382 lt_save_MAGIC_CMD="$MAGIC_CMD"
8383 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8384 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8385 for ac_dir in $ac_dummy; do
8387 test -z "$ac_dir" && ac_dir=.
8388 if test -f $ac_dir/file; then
8389 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8390 if test -n "$file_magic_test_file"; then
8391 case $deplibs_check_method in
8393 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8394 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8395 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8396 $EGREP "$file_magic_regex" > /dev/null; then
8401 *** Warning: the command libtool uses to detect shared libraries,
8402 *** $file_magic_cmd, produces output that libtool cannot recognize.
8403 *** The result is that libtool may fail to recognize shared libraries
8404 *** as such. This will affect the creation of libtool libraries that
8405 *** depend on shared libraries, but programs linked with such libtool
8406 *** libraries will work regardless of this problem. Nevertheless, you
8407 *** may want to report the problem to your system manager and/or to
8408 *** bug-libtool@gnu.org
8418 MAGIC_CMD="$lt_save_MAGIC_CMD"
8423 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8424 if test -n "$MAGIC_CMD"; then
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8426 $as_echo "$MAGIC_CMD" >&6; }
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8429 $as_echo "no
" >&6; }
8442 # Use C for the default configuration in the libtool script
8446 ac_cpp='$CPP $CPPFLAGS'
8447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8452 # Source file extension for C test sources.
8455 # Object file extension for compiled C test sources.
8459 # Code to be used in simple compile tests
8460 lt_simple_compile_test_code="int some_variable
= 0;"
8462 # Code to be used in simple link tests
8463 lt_simple_link_test_code='int main(){return(0);}'
8471 # If no C compiler was specified, use CC.
8474 # If no C compiler flags were specified, use CFLAGS.
8475 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8477 # Allow CC to be a program name with arguments.
8480 # Save the default compiler, since it gets overwritten when the other
8481 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8482 compiler_DEFAULT=$CC
8484 # save warnings/boilerplate of simple test code
8485 ac_outfile=conftest.$ac_objext
8486 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8487 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8488 _lt_compiler_boilerplate=`cat conftest.err`
8491 ac_outfile=conftest.$ac_objext
8492 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8493 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8494 _lt_linker_boilerplate=`cat conftest.err`
8499 ## There is no encapsulation within the following macros, do not change
8500 ## the running order or otherwise move them around unless you know exactly
8501 ## what you are doing...
8502 if test -n "$compiler"; then
8504 lt_prog_compiler_no_builtin_flag=
8506 if test "$GCC" = yes; then
8507 case $cc_basename in
8509 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8511 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
8515 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
8516 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8517 $as_echo_n "(cached
) " >&6
8519 lt_cv_prog_compiler_rtti_exceptions=no
8520 ac_outfile=conftest.$ac_objext
8521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8522 lt_compiler_flag="-fno-rtti -fno-exceptions"
8523 # Insert the option either (1) after the last *FLAGS variable, or
8524 # (2) before a word containing "conftest.
", or (3) at the end.
8525 # Note that $ac_compile itself does not contain backslashes and begins
8526 # with a dollar sign (not a hyphen), so the echo should work correctly.
8527 # The option is referenced via a variable to avoid confusing sed.
8528 lt_compile=`echo "$ac_compile" | $SED \
8529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8531 -e 's:$: $lt_compiler_flag:'`
8532 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8533 (eval "$lt_compile" 2>conftest.err)
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8537 if (exit $ac_status) && test -s "$ac_outfile"; then
8538 # The compiler can only warn and ignore the option if not recognized
8539 # So say no if there are warnings other than the usual output.
8540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8543 lt_cv_prog_compiler_rtti_exceptions=yes
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
8550 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8552 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8553 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8565 lt_prog_compiler_wl=
8566 lt_prog_compiler_pic=
8567 lt_prog_compiler_static=
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
8570 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
8572 if test "$GCC" = yes; then
8573 lt_prog_compiler_wl='-Wl,'
8574 lt_prog_compiler_static='-static'
8578 # All AIX code is PIC.
8579 if test "$host_cpu" = ia64; then
8580 # AIX 5 now supports IA64 processor
8581 lt_prog_compiler_static='-Bstatic'
8583 lt_prog_compiler_pic='-fPIC'
8589 # see comment about AmigaOS4 .so support
8590 lt_prog_compiler_pic='-fPIC'
8593 # FIXME: we need at least 68020 code to build shared libraries, but
8594 # adding the `-m68020' flag to GCC prevents building anything better,
8596 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8601 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8602 # PIC is the default for these OSes.
8605 mingw* | cygwin* | pw32* | os2* | cegcc*)
8606 # This hack is so that the source file can tell whether it is being
8607 # built for inclusion in a dll (and should export symbols for example).
8608 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8609 # (--disable-auto-import) libraries
8610 lt_prog_compiler_pic='-DDLL_EXPORT'
8613 darwin* | rhapsody*)
8614 # PIC is the default on this platform
8615 # Common symbols not allowed in MH_DYLIB files
8616 lt_prog_compiler_pic='-fno-common'
8620 # PIC is the default for Haiku.
8621 # The "-static" flag exists, but is broken.
8622 lt_prog_compiler_static=
8626 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8627 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8628 # sets the default TLS model and affects inlining.
8634 lt_prog_compiler_pic='-fPIC'
8640 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8641 # Instead, we relocate shared libraries at runtime.
8645 # Just because we use GCC doesn't mean we suddenly get shared libraries
8646 # on systems that don't support them.
8647 lt_prog_compiler_can_build_shared=no
8652 # QNX uses GNU C++, but need to define -shared option too, otherwise
8654 lt_prog_compiler_pic='-fPIC -shared'
8658 if test -d /usr/nec; then
8659 lt_prog_compiler_pic=-Kconform_pic
8664 lt_prog_compiler_pic='-fPIC'
8668 case $cc_basename in
8669 nvcc*) # Cuda Compiler Driver 2.2
8670 lt_prog_compiler_wl='-Xlinker '
8671 lt_prog_compiler_pic='-Xcompiler -fPIC'
8675 # PORTME Check for flag to pass linker flags through the system compiler.
8678 lt_prog_compiler_wl='-Wl,'
8679 if test "$host_cpu" = ia64; then
8680 # AIX 5 now supports IA64 processor
8681 lt_prog_compiler_static='-Bstatic'
8683 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8687 mingw* | cygwin* | pw32* | os2* | cegcc*)
8688 # This hack is so that the source file can tell whether it is being
8689 # built for inclusion in a dll (and should export symbols for example).
8690 lt_prog_compiler_pic='-DDLL_EXPORT'
8693 hpux9* | hpux10* | hpux11*)
8694 lt_prog_compiler_wl='-Wl,'
8695 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8702 lt_prog_compiler_pic='+Z'
8705 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8706 lt_prog_compiler_static='${wl}-a ${wl}archive'
8709 irix5* | irix6* | nonstopux*)
8710 lt_prog_compiler_wl='-Wl,'
8711 # PIC (with -KPIC) is the default.
8712 lt_prog_compiler_static='-non_shared'
8715 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8716 case $cc_basename in
8717 # old Intel for x86_64 which still supported -KPIC.
8719 lt_prog_compiler_wl='-Wl,'
8720 lt_prog_compiler_pic='-KPIC'
8721 lt_prog_compiler_static='-static'
8723 # icc used to be incompatible with GCC.
8724 # ICC 10 doesn't accept -KPIC any more.
8726 lt_prog_compiler_wl='-Wl,'
8727 lt_prog_compiler_pic='-fPIC'
8728 lt_prog_compiler_static='-static'
8730 # Lahey Fortran 8.1.
8732 lt_prog_compiler_wl='-Wl,'
8733 lt_prog_compiler_pic='--shared'
8734 lt_prog_compiler_static='--static'
8736 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8737 # Portland Group compilers (*not* the Pentium gcc compiler,
8738 # which looks to be a dead project)
8739 lt_prog_compiler_wl='-Wl,'
8740 lt_prog_compiler_pic='-fpic'
8741 lt_prog_compiler_static='-Bstatic'
8744 lt_prog_compiler_wl='-Wl,'
8745 # All Alpha code is PIC.
8746 lt_prog_compiler_static='-non_shared'
8748 xl* | bgxl* | bgf* | mpixl*)
8749 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8750 lt_prog_compiler_wl='-Wl,'
8751 lt_prog_compiler_pic='-qpic'
8752 lt_prog_compiler_static='-qstaticlink'
8755 case `$CC -V 2>&1 | sed 5q` in
8756 *Sun\ F* | *Sun*Fortran*)
8757 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8758 lt_prog_compiler_pic='-KPIC'
8759 lt_prog_compiler_static='-Bstatic'
8760 lt_prog_compiler_wl=''
8764 lt_prog_compiler_pic='-KPIC'
8765 lt_prog_compiler_static='-Bstatic'
8766 lt_prog_compiler_wl='-Wl,'
8774 lt_prog_compiler_pic='-KPIC'
8775 lt_prog_compiler_static='-Bstatic'
8779 # QNX uses GNU C++, but need to define -shared option too, otherwise
8781 lt_prog_compiler_pic='-fPIC -shared'
8784 osf3* | osf4* | osf5*)
8785 lt_prog_compiler_wl='-Wl,'
8786 # All OSF/1 code is PIC.
8787 lt_prog_compiler_static='-non_shared'
8791 lt_prog_compiler_static='-non_shared'
8795 lt_prog_compiler_pic='-KPIC'
8796 lt_prog_compiler_static='-Bstatic'
8797 case $cc_basename in
8799 lt_prog_compiler_wl='-Qoption ld ';;
8801 lt_prog_compiler_wl='-Wl,';;
8806 lt_prog_compiler_wl='-Qoption ld '
8807 lt_prog_compiler_pic='-PIC'
8808 lt_prog_compiler_static='-Bstatic'
8811 sysv4 | sysv4.2uw2* | sysv4.3*)
8812 lt_prog_compiler_wl='-Wl,'
8813 lt_prog_compiler_pic='-KPIC'
8814 lt_prog_compiler_static='-Bstatic'
8818 if test -d /usr/nec ;then
8819 lt_prog_compiler_pic='-Kconform_pic'
8820 lt_prog_compiler_static='-Bstatic'
8824 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8825 lt_prog_compiler_wl='-Wl,'
8826 lt_prog_compiler_pic='-KPIC'
8827 lt_prog_compiler_static='-Bstatic'
8831 lt_prog_compiler_wl='-Wl,'
8832 lt_prog_compiler_can_build_shared=no
8836 lt_prog_compiler_pic='-pic'
8837 lt_prog_compiler_static='-Bstatic'
8841 lt_prog_compiler_can_build_shared=no
8847 # For platforms which do not support PIC, -DPIC is meaningless:
8849 lt_prog_compiler_pic=
8852 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
8856 $as_echo "$lt_prog_compiler_pic" >&6; }
8864 # Check to make sure the PIC flag actually works.
8866 if test -n "$lt_prog_compiler_pic"; then
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
8868 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
8869 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8870 $as_echo_n "(cached
) " >&6
8872 lt_cv_prog_compiler_pic_works=no
8873 ac_outfile=conftest.$ac_objext
8874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8875 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8876 # Insert the option either (1) after the last *FLAGS variable, or
8877 # (2) before a word containing "conftest.
", or (3) at the end.
8878 # Note that $ac_compile itself does not contain backslashes and begins
8879 # with a dollar sign (not a hyphen), so the echo should work correctly.
8880 # The option is referenced via a variable to avoid confusing sed.
8881 lt_compile=`echo "$ac_compile" | $SED \
8882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8884 -e 's:$: $lt_compiler_flag:'`
8885 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8886 (eval "$lt_compile" 2>conftest.err)
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8890 if (exit $ac_status) && test -s "$ac_outfile"; then
8891 # The compiler can only warn and ignore the option if not recognized
8892 # So say no if there are warnings other than the usual output.
8893 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8894 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8895 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8896 lt_cv_prog_compiler_pic_works=yes
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
8903 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8905 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8906 case $lt_prog_compiler_pic in
8908 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8911 lt_prog_compiler_pic=
8912 lt_prog_compiler_can_build_shared=no
8923 # Check to make sure the static flag actually works.
8925 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
8927 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
8928 if ${lt_cv_prog_compiler_static_works+:} false; then :
8929 $as_echo_n "(cached
) " >&6
8931 lt_cv_prog_compiler_static_works=no
8932 save_LDFLAGS="$LDFLAGS"
8933 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8934 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8935 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8936 # The linker can only warn and ignore the option if not recognized
8937 # So say no if there are warnings
8938 if test -s conftest.err; then
8939 # Append any errors to the config.log.
8940 cat conftest.err 1>&5
8941 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8942 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8943 if diff conftest.exp conftest.er2 >/dev/null; then
8944 lt_cv_prog_compiler_static_works=yes
8947 lt_cv_prog_compiler_static_works=yes
8951 LDFLAGS="$save_LDFLAGS"
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
8955 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8957 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8960 lt_prog_compiler_static=
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
8970 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
8971 if ${lt_cv_prog_compiler_c_o+:} false; then :
8972 $as_echo_n "(cached
) " >&6
8974 lt_cv_prog_compiler_c_o=no
8975 $RM -r conftest 2>/dev/null
8979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8981 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
8982 # Insert the option either (1) after the last *FLAGS variable, or
8983 # (2) before a word containing "conftest.
", or (3) at the end.
8984 # Note that $ac_compile itself does not contain backslashes and begins
8985 # with a dollar sign (not a hyphen), so the echo should work correctly.
8986 lt_compile=`echo "$ac_compile" | $SED \
8987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8989 -e 's:$: $lt_compiler_flag:'`
8990 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8991 (eval "$lt_compile" 2>out/conftest.err)
8993 cat out/conftest.err >&5
8994 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8995 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8997 # The compiler can only warn and ignore the option if not recognized
8998 # So say no if there are warnings
8999 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9000 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9001 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9002 lt_cv_prog_compiler_c_o=yes
9007 # SGI C++ compiler will create directory out/ii_files/ for
9008 # template instantiation
9009 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9010 $RM out/* && rmdir out
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9017 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9025 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9026 if ${lt_cv_prog_compiler_c_o+:} false; then :
9027 $as_echo_n "(cached
) " >&6
9029 lt_cv_prog_compiler_c_o=no
9030 $RM -r conftest 2>/dev/null
9034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9036 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9037 # Insert the option either (1) after the last *FLAGS variable, or
9038 # (2) before a word containing "conftest.
", or (3) at the end.
9039 # Note that $ac_compile itself does not contain backslashes and begins
9040 # with a dollar sign (not a hyphen), so the echo should work correctly.
9041 lt_compile=`echo "$ac_compile" | $SED \
9042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9044 -e 's:$: $lt_compiler_flag:'`
9045 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9046 (eval "$lt_compile" 2>out/conftest.err)
9048 cat out/conftest.err >&5
9049 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9050 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9052 # The compiler can only warn and ignore the option if not recognized
9053 # So say no if there are warnings
9054 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9055 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9056 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9057 lt_cv_prog_compiler_c_o=yes
9062 # SGI C++ compiler will create directory out/ii_files/ for
9063 # template instantiation
9064 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9065 $RM out/* && rmdir out
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9072 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9077 hard_links="nottested
"
9078 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9079 # do not overwrite the value of need_locks provided by the user
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
9081 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
9084 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9086 ln conftest.a conftest.b 2>&5 || hard_links=no
9087 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
9089 $as_echo "$hard_links" >&6; }
9090 if test "$hard_links" = no; then
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
9092 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
9105 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
9108 allow_undefined_flag=
9109 always_export_symbols=no
9111 archive_expsym_cmds=
9112 compiler_needs_object=no
9113 enable_shared_with_static_runtimes=no
9114 export_dynamic_flag_spec=
9115 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9116 hardcode_automatic=no
9118 hardcode_direct_absolute=no
9119 hardcode_libdir_flag_spec=
9120 hardcode_libdir_flag_spec_ld=
9121 hardcode_libdir_separator=
9123 hardcode_shlibpath_var=unsupported
9125 link_all_deplibs=unknown
9128 old_archive_from_new_cmds=
9129 old_archive_from_expsyms_cmds=
9130 thread_safe_flag_spec=
9131 whole_archive_flag_spec=
9132 # include_expsyms should be a list of space-separated symbols to be *always*
9133 # included in the symbol list
9135 # exclude_expsyms can be an extended regexp of symbols to exclude
9136 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9137 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9138 # as well as any symbol that contains `d'.
9139 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9140 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9141 # platforms (ab)use it in PIC code, but their linkers get confused if
9142 # the symbol is explicitly referenced. Since portable code cannot
9143 # rely on this symbol name, it's probably fine to never include it in
9144 # preloaded symbol tables.
9145 # Exclude shared library initialization/finalization symbols.
9146 extract_expsyms_cmds=
9149 cygwin* | mingw* | pw32* | cegcc*)
9150 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9151 # When not using gcc, we currently assume that we are using
9152 # Microsoft Visual C++.
9153 if test "$GCC" != yes; then
9158 # we just hope/assume this is gcc and not c89 (= MSVC++)
9168 # On some targets, GNU ld is compatible enough with the native linker
9169 # that we're better off using the native interface for both.
9170 lt_use_gnu_ld_interface=no
9171 if test "$with_gnu_ld" = yes; then
9174 # The AIX port of GNU ld has always aspired to compatibility
9175 # with the native linker. However, as the warning in the GNU ld
9176 # block says, versions before 2.19.5* couldn't really create working
9177 # shared libraries, regardless of the interface used.
9178 case `$LD -v 2>&1` in
9179 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9180 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9181 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9183 lt_use_gnu_ld_interface=yes
9188 lt_use_gnu_ld_interface=yes
9193 if test "$lt_use_gnu_ld_interface" = yes; then
9194 # If archive_cmds runs LD, not CC, wlarc should be empty
9197 # Set some defaults for GNU ld with shared library support. These
9198 # are reset later if shared libraries are not supported. Putting them
9199 # here allows them to be overridden if necessary.
9200 runpath_var=LD_RUN_PATH
9201 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9202 export_dynamic_flag_spec='${wl}--export-dynamic'
9203 # ancient GNU ld didn't support --whole-archive et. al.
9204 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9205 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9207 whole_archive_flag_spec=
9209 supports_anon_versioning=no
9210 case `$LD -v 2>&1` in
9211 *GNU\ gold*) supports_anon_versioning=yes ;;
9212 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9213 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9214 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9215 *\ 2.11.*) ;; # other 2.11 versions
9216 *) supports_anon_versioning=yes ;;
9219 # See if GNU ld supports shared libraries.
9222 # On AIX/PPC, the GNU linker is very broken
9223 if test "$host_cpu" != ia64; then
9227 *** Warning: the GNU linker, at least up to release 2.19, is reported
9228 *** to be unable to reliably create shared libraries on AIX.
9229 *** Therefore, libtool is disabling shared libraries support. If you
9230 *** really care for shared libraries, you may want to install binutils
9231 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9232 *** You will then need to restart the configuration process.
9241 # see comment about AmigaOS4 .so support
9242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9243 archive_expsym_cmds=''
9246 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)'
9247 hardcode_libdir_flag_spec
='-L$libdir'
9248 hardcode_minus_L
=yes
9254 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9255 allow_undefined_flag
=unsupported
9256 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9257 # support --undefined. This deserves some investigation. FIXME
9258 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9264 cygwin
* | mingw
* | pw32
* | cegcc
*)
9265 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9266 # as there is no search path for DLLs.
9267 hardcode_libdir_flag_spec
='-L$libdir'
9268 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9269 allow_undefined_flag
=unsupported
9270 always_export_symbols
=no
9271 enable_shared_with_static_runtimes
=yes
9272 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9274 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9275 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9276 # If the export-symbols file already is a .def file (1st line
9277 # is EXPORTS), use it as is; otherwise, prepend...
9278 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9279 cp $export_symbols $output_objdir/$soname.def;
9281 echo EXPORTS > $output_objdir/$soname.def;
9282 cat $export_symbols >> $output_objdir/$soname.def;
9284 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9291 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9292 link_all_deplibs
=yes
9297 hardcode_shlibpath_var
=no
9298 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9299 export_dynamic_flag_spec
='${wl}-E'
9300 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9301 # Instead, shared libraries are loaded at an image base (0x10000000 by
9302 # default) and relocated if they conflict, which is a slow very memory
9303 # consuming and fragmenting process. To avoid this, we pick a random,
9304 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9305 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9306 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9307 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'
9310 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9312 if test "$host_os" = linux-dietlibc
; then
9313 case $cc_basename in
9314 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9317 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9318 && test "$tmp_diet" = no
9320 tmp_addflag
=' $pic_flag'
9321 tmp_sharedflag
='-shared'
9322 case $cc_basename,$host_cpu in
9323 pgcc
*) # Portland Group C compiler
9324 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9325 tmp_addflag
=' $pic_flag'
9327 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9328 # Portland Group f77 and f90 compilers
9329 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9330 tmp_addflag
=' $pic_flag -Mnomain' ;;
9331 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9332 tmp_addflag
=' -i_dynamic' ;;
9333 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9334 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9335 ifc
* | ifort
*) # Intel Fortran compiler
9336 tmp_addflag
=' -nofor_main' ;;
9337 lf95
*) # Lahey Fortran 8.1
9338 whole_archive_flag_spec
=
9339 tmp_sharedflag
='--shared' ;;
9340 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9341 tmp_sharedflag
='-qmkshrobj'
9343 nvcc
*) # Cuda Compiler Driver 2.2
9344 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9345 compiler_needs_object
=yes
9348 case `$CC -V 2>&1 | sed 5q` in
9349 *Sun\ C
*) # Sun C 5.9
9350 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9351 compiler_needs_object
=yes
9352 tmp_sharedflag
='-G' ;;
9353 *Sun\ F
*) # Sun Fortran 8.3
9354 tmp_sharedflag
='-G' ;;
9356 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358 if test "x$supports_anon_versioning" = xyes
; then
9359 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9360 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9361 echo "local: *; };" >> $output_objdir/$libname.ver~
9362 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9365 case $cc_basename in
9366 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9367 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9368 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9369 hardcode_libdir_flag_spec
=
9370 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9371 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9372 if test "x$supports_anon_versioning" = xyes
; then
9373 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9374 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9375 echo "local: *; };" >> $output_objdir/$libname.ver~
9376 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9386 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9387 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9390 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9391 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9396 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9400 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9401 *** create shared libraries on Solaris systems. Therefore, libtool
9402 *** is disabling shared libraries support. We urge you to upgrade GNU
9403 *** binutils to release 2.9.1 or newer. Another option is to modify
9404 *** your PATH or compiler configuration so that the native linker is
9405 *** used, and then restart.
9408 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9409 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9410 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9416 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9417 case `$LD -v 2>&1` in
9418 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9422 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9423 *** reliably create shared libraries on SCO systems. Therefore, libtool
9424 *** is disabling shared libraries support. We urge you to upgrade GNU
9425 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9426 *** your PATH or compiler configuration so that the native linker is
9427 *** used, and then restart.
9432 # For security reasons, it is highly recommended that you always
9433 # use absolute paths for naming shared libraries, and exclude the
9434 # DT_RUNPATH tag from executables and libraries. But doing so
9435 # requires that you compile everything twice, which is a pain.
9436 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9437 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9438 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9439 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9448 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9451 hardcode_shlibpath_var
=no
9455 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9456 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9457 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9464 if test "$ld_shlibs" = no
; then
9466 hardcode_libdir_flag_spec
=
9467 export_dynamic_flag_spec
=
9468 whole_archive_flag_spec
=
9471 # PORTME fill in a description of your system's linker (not GNU ld)
9474 allow_undefined_flag
=unsupported
9475 always_export_symbols
=yes
9476 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'
9477 # Note: this linker hardcodes the directories in LIBPATH if there
9478 # are no directories specified by -L.
9479 hardcode_minus_L
=yes
9480 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9481 # Neither direct hardcoding nor static linking is supported with a
9483 hardcode_direct
=unsupported
9488 if test "$host_cpu" = ia64
; then
9489 # On IA64, the linker does run time linking by default, so we don't
9490 # have to do anything special.
9491 aix_use_runtimelinking
=no
9492 exp_sym_flag
='-Bexport'
9495 # If we're using GNU nm, then we don't want the "-C" option.
9496 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9497 # Also, AIX nm treats weak defined symbols like other global
9498 # defined symbols, whereas GNU nm marks them as "W".
9499 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9500 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9502 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9504 aix_use_runtimelinking
=no
9506 # Test if we are trying to use run time linking or normal
9507 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9508 # need to do runtime linking.
9509 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9510 for ld_flag
in $LDFLAGS; do
9511 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9512 aix_use_runtimelinking
=yes
9519 exp_sym_flag
='-bexport'
9520 no_entry_flag
='-bnoentry'
9523 # When large executables or shared objects are built, AIX ld can
9524 # have problems creating the table of contents. If linking a library
9525 # or program results in "error TOC overflow" add -mminimal-toc to
9526 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9527 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9531 hardcode_direct_absolute
=yes
9532 hardcode_libdir_separator
=':'
9533 link_all_deplibs
=yes
9534 file_list_spec
='${wl}-f,'
9536 if test "$GCC" = yes; then
9537 case $host_os in aix4.
[012]|aix4.
[012].
*)
9538 # We only want to do this on AIX 4.2 and lower, the check
9539 # below for broken collect2 doesn't work under 4.3+
9540 collect2name
=`${CC} -print-prog-name=collect2`
9541 if test -f "$collect2name" &&
9542 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9544 # We have reworked collect2
9547 # We have old collect2
9548 hardcode_direct
=unsupported
9549 # It fails to find uninstalled libraries when the uninstalled
9550 # path is not listed in the libpath. Setting hardcode_minus_L
9551 # to unsupported forces relinking
9552 hardcode_minus_L
=yes
9553 hardcode_libdir_flag_spec
='-L$libdir'
9554 hardcode_libdir_separator
=
9558 shared_flag
='-shared'
9559 if test "$aix_use_runtimelinking" = yes; then
9560 shared_flag
="$shared_flag "'${wl}-G'
9564 if test "$host_cpu" = ia64
; then
9565 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9566 # chokes on -Wl,-G. The following line is correct:
9569 if test "$aix_use_runtimelinking" = yes; then
9570 shared_flag
='${wl}-G'
9572 shared_flag
='${wl}-bM:SRE'
9577 export_dynamic_flag_spec
='${wl}-bexpall'
9578 # It seems that -bexpall does not export symbols beginning with
9579 # underscore (_), so it is better to generate a list of symbols to export.
9580 always_export_symbols
=yes
9581 if test "$aix_use_runtimelinking" = yes; then
9582 # Warning - without using the other runtime loading flags (-brtl),
9583 # -berok will link without error, but may produce a broken library.
9584 allow_undefined_flag
='-berok'
9585 # Determine the default libpath from the value encoded in an
9587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h. */
9598 if ac_fn_c_try_link
"$LINENO"; then :
9600 lt_aix_libpath_sed
='
9601 /Import File Strings/,/^$/ {
9607 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9608 # Check for a 64-bit object if we didn't find anything.
9609 if test -z "$aix_libpath"; then
9610 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9613 rm -f core conftest.err conftest.
$ac_objext \
9614 conftest
$ac_exeext conftest.
$ac_ext
9615 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9617 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9618 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9620 if test "$host_cpu" = ia64
; then
9621 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9622 allow_undefined_flag
="-z nodefs"
9623 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"
9625 # Determine the default libpath from the value encoded in an
9627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9628 /* end confdefs.h. */
9638 if ac_fn_c_try_link
"$LINENO"; then :
9640 lt_aix_libpath_sed
='
9641 /Import File Strings/,/^$/ {
9647 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9648 # Check for a 64-bit object if we didn't find anything.
9649 if test -z "$aix_libpath"; then
9650 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9653 rm -f core conftest.err conftest.
$ac_objext \
9654 conftest
$ac_exeext conftest.
$ac_ext
9655 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9657 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9658 # Warning - without using the other run time loading flags,
9659 # -berok will link without error, but may produce a broken library.
9660 no_undefined_flag
=' ${wl}-bernotok'
9661 allow_undefined_flag
=' ${wl}-berok'
9662 if test "$with_gnu_ld" = yes; then
9663 # We only use this code for GNU lds that support --whole-archive.
9664 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9666 # Exported symbols can be pulled into shared objects from archives
9667 whole_archive_flag_spec
='$convenience'
9669 archive_cmds_need_lc
=yes
9670 # This is similar to how AIX traditionally builds its shared libraries.
9671 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'
9679 # see comment about AmigaOS4 .so support
9680 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9681 archive_expsym_cmds
=''
9684 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)'
9685 hardcode_libdir_flag_spec
='-L$libdir'
9686 hardcode_minus_L
=yes
9692 export_dynamic_flag_spec
=-rdynamic
9695 cygwin
* | mingw
* | pw32
* | cegcc
*)
9696 # When not using gcc, we currently assume that we are using
9697 # Microsoft Visual C++.
9698 # hardcode_libdir_flag_spec is actually meaningless, as there is
9699 # no search path for DLLs.
9700 hardcode_libdir_flag_spec
=' '
9701 allow_undefined_flag
=unsupported
9702 # Tell ltmain to make .lib files, not .a files.
9704 # Tell ltmain to make .dll files, not .so files.
9706 # FIXME: Setting linknames here is a bad hack.
9707 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9708 # The linker will automatically build a .lib file if we build a DLL.
9709 old_archive_from_new_cmds
='true'
9710 # FIXME: Should let the user specify the lib program.
9711 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9712 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9713 enable_shared_with_static_runtimes
=yes
9716 darwin
* | rhapsody
*)
9719 archive_cmds_need_lc
=no
9721 hardcode_automatic
=yes
9722 hardcode_shlibpath_var
=unsupported
9723 if test "$lt_cv_ld_force_load" = "yes"; then
9724 whole_archive_flag_spec
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9726 whole_archive_flag_spec
=''
9728 link_all_deplibs
=yes
9729 allow_undefined_flag
="$_lt_dar_allow_undefined"
9730 case $cc_basename in
9731 ifort
*) _lt_dar_can_shared
=yes ;;
9732 *) _lt_dar_can_shared
=$GCC ;;
9734 if test "$_lt_dar_can_shared" = "yes"; then
9735 output_verbose_link_cmd
=func_echo_all
9736 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9737 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9738 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}"
9739 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}"
9748 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9749 hardcode_libdir_flag_spec
='-L$libdir'
9750 hardcode_shlibpath_var
=no
9753 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9754 # support. Future versions do this automatically, but an explicit c++rt0.o
9755 # does not break anything, and helps significantly (at the cost of a little
9758 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9759 hardcode_libdir_flag_spec
='-R$libdir'
9761 hardcode_shlibpath_var
=no
9764 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9766 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9768 hardcode_minus_L
=yes
9769 hardcode_shlibpath_var
=no
9772 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9773 freebsd
* | dragonfly
*)
9774 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9775 hardcode_libdir_flag_spec
='-R$libdir'
9777 hardcode_shlibpath_var
=no
9781 if test "$GCC" = yes; then
9782 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'
9784 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'
9786 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9787 hardcode_libdir_separator
=:
9790 # hardcode_minus_L: Not really in the search PATH,
9791 # but as the default location of the library.
9792 hardcode_minus_L
=yes
9793 export_dynamic_flag_spec
='${wl}-E'
9797 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9798 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9800 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9802 if test "$with_gnu_ld" = no
; then
9803 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9804 hardcode_libdir_flag_spec_ld
='+b $libdir'
9805 hardcode_libdir_separator
=:
9807 hardcode_direct_absolute
=yes
9808 export_dynamic_flag_spec
='${wl}-E'
9809 # hardcode_minus_L: Not really in the search PATH,
9810 # but as the default location of the library.
9811 hardcode_minus_L
=yes
9816 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9819 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9822 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9825 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9831 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9834 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9838 # Older versions of the 11.00 compiler do not understand -b yet
9839 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9841 $as_echo_n "checking if $CC understands -b... " >&6; }
9842 if ${lt_cv_prog_compiler__b+:} false
; then :
9843 $as_echo_n "(cached) " >&6
9845 lt_cv_prog_compiler__b
=no
9846 save_LDFLAGS
="$LDFLAGS"
9847 LDFLAGS
="$LDFLAGS -b"
9848 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9849 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9850 # The linker can only warn and ignore the option if not recognized
9851 # So say no if there are warnings
9852 if test -s conftest.err
; then
9853 # Append any errors to the config.log.
9854 cat conftest.err
1>&5
9855 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9856 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9857 if diff conftest.exp conftest.er2
>/dev
/null
; then
9858 lt_cv_prog_compiler__b
=yes
9861 lt_cv_prog_compiler__b
=yes
9865 LDFLAGS
="$save_LDFLAGS"
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9869 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9871 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9872 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9874 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9880 if test "$with_gnu_ld" = no
; then
9881 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9882 hardcode_libdir_separator
=:
9887 hardcode_shlibpath_var
=no
9891 hardcode_direct_absolute
=yes
9892 export_dynamic_flag_spec
='${wl}-E'
9894 # hardcode_minus_L: Not really in the search PATH,
9895 # but as the default location of the library.
9896 hardcode_minus_L
=yes
9902 irix5
* | irix6
* | nonstopux
*)
9903 if test "$GCC" = yes; then
9904 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9905 # Try to use the -exported_symbol ld option, if it does not
9906 # work, assume that -exports_file does not work either and
9907 # implicitly export all symbols.
9908 save_LDFLAGS
="$LDFLAGS"
9909 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9911 /* end confdefs.h. */
9914 if ac_fn_c_try_link
"$LINENO"; then :
9915 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9918 rm -f core conftest.err conftest.
$ac_objext \
9919 conftest
$ac_exeext conftest.
$ac_ext
9920 LDFLAGS
="$save_LDFLAGS"
9922 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9923 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9925 archive_cmds_need_lc
='no'
9926 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9927 hardcode_libdir_separator
=:
9929 link_all_deplibs
=yes
9933 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9934 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9936 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9938 hardcode_libdir_flag_spec
='-R$libdir'
9940 hardcode_shlibpath_var
=no
9944 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9946 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9947 hardcode_libdir_separator
=:
9948 hardcode_shlibpath_var
=no
9955 if test -f /usr
/libexec
/ld.so
; then
9957 hardcode_shlibpath_var
=no
9958 hardcode_direct_absolute
=yes
9959 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9960 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9961 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9962 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9963 export_dynamic_flag_spec
='${wl}-E'
9966 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9967 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9968 hardcode_libdir_flag_spec
='-R$libdir'
9971 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9972 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9982 hardcode_libdir_flag_spec
='-L$libdir'
9983 hardcode_minus_L
=yes
9984 allow_undefined_flag
=unsupported
9985 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'
9986 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9990 if test "$GCC" = yes; then
9991 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9992 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9994 allow_undefined_flag
=' -expect_unresolved \*'
9995 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9997 archive_cmds_need_lc
='no'
9998 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9999 hardcode_libdir_separator
=:
10002 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10003 if test "$GCC" = yes; then
10004 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10005 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10006 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10008 allow_undefined_flag
=' -expect_unresolved \*'
10009 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10010 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~
10011 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10013 # Both c and cxx compiler support -rpath directly
10014 hardcode_libdir_flag_spec
='-rpath $libdir'
10016 archive_cmds_need_lc
='no'
10017 hardcode_libdir_separator
=:
10021 no_undefined_flag
=' -z defs'
10022 if test "$GCC" = yes; then
10024 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10025 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10026 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10028 case `$CC -V 2>&1` in
10031 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10032 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10033 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10037 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10038 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10039 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10043 hardcode_libdir_flag_spec
='-R$libdir'
10044 hardcode_shlibpath_var
=no
10046 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10048 # The compiler driver will combine and reorder linker options,
10049 # but understands `-z linker_flag'. GCC discards it without `$wl',
10050 # but is careful enough not to reorder.
10051 # Supported since Solaris 2.6 (maybe 2.5.1?)
10052 if test "$GCC" = yes; then
10053 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10055 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10059 link_all_deplibs
=yes
10063 if test "x$host_vendor" = xsequent
; then
10064 # Use $CC to link under sequent, because it throws in some extra .o
10065 # files that make .init and .fini sections work.
10066 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10068 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10070 hardcode_libdir_flag_spec
='-L$libdir'
10071 hardcode_direct
=yes
10072 hardcode_minus_L
=yes
10073 hardcode_shlibpath_var
=no
10077 case $host_vendor in
10079 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10080 hardcode_direct
=yes # is this really true???
10083 ## LD is ld it makes a PLAMLIB
10084 ## CC just makes a GrossModule.
10085 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10086 reload_cmds
='$CC -r -o $output$reload_objs'
10090 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10091 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10094 runpath_var
='LD_RUN_PATH'
10095 hardcode_shlibpath_var
=no
10099 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10100 hardcode_shlibpath_var
=no
10101 export_dynamic_flag_spec
='-Bexport'
10105 if test -d /usr
/nec
; then
10106 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10107 hardcode_shlibpath_var
=no
10108 runpath_var
=LD_RUN_PATH
10109 hardcode_runpath_var
=yes
10114 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10115 no_undefined_flag
='${wl}-z,text'
10116 archive_cmds_need_lc
=no
10117 hardcode_shlibpath_var
=no
10118 runpath_var
='LD_RUN_PATH'
10120 if test "$GCC" = yes; then
10121 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10122 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10124 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10125 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10129 sysv5
* | sco3.2v5
* | sco5v6
*)
10130 # Note: We can NOT use -z defs as we might desire, because we do not
10131 # link with -lc, and that would cause any symbols used from libc to
10132 # always be unresolved, which means just about no library would
10133 # ever link correctly. If we're not using GNU ld we use -z text
10134 # though, which does catch some bad symbols but isn't as heavy-handed
10136 no_undefined_flag
='${wl}-z,text'
10137 allow_undefined_flag
='${wl}-z,nodefs'
10138 archive_cmds_need_lc
=no
10139 hardcode_shlibpath_var
=no
10140 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10141 hardcode_libdir_separator
=':'
10142 link_all_deplibs
=yes
10143 export_dynamic_flag_spec
='${wl}-Bexport'
10144 runpath_var
='LD_RUN_PATH'
10146 if test "$GCC" = yes; then
10147 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10148 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10150 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10151 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10156 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10157 hardcode_libdir_flag_spec
='-L$libdir'
10158 hardcode_shlibpath_var
=no
10166 if test x
$host_vendor = xsni
; then
10168 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10169 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10176 $as_echo "$ld_shlibs" >&6; }
10177 test "$ld_shlibs" = no
&& can_build_shared
=no
10179 with_gnu_ld
=$with_gnu_ld
10196 # Do we need to explicitly link libc?
10198 case "x$archive_cmds_need_lc" in
10200 # Assume -lc should be added
10201 archive_cmds_need_lc
=yes
10203 if test "$enable_shared" = yes && test "$GCC" = yes; then
10204 case $archive_cmds in
10206 # FIXME: we may have to deal with multi-command sequences.
10209 # Test whether the compiler implicitly links with -lc since on some
10210 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10211 # to ld, don't add -lc before -lgcc.
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10213 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10214 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10215 $as_echo_n "(cached) " >&6
10218 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10221 (eval $ac_compile) 2>&5
10223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10224 test $ac_status = 0; } 2>conftest.err
; then
10227 libobjs
=conftest.
$ac_objext
10229 wl
=$lt_prog_compiler_wl
10230 pic_flag
=$lt_prog_compiler_pic
10236 lt_save_allow_undefined_flag
=$allow_undefined_flag
10237 allow_undefined_flag
=
10238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10239 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10242 test $ac_status = 0; }
10244 lt_cv_archive_cmds_need_lc
=no
10246 lt_cv_archive_cmds_need_lc
=yes
10248 allow_undefined_flag
=$lt_save_allow_undefined_flag
10250 cat conftest.err
1>&5
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10256 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10257 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10421 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10423 if test "$GCC" = yes; then
10425 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10426 *) lt_awk_arg
="/^libraries:/" ;;
10429 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10430 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10432 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10433 case $lt_search_path_spec in
10435 # if the path contains ";" then we assume it to be the separator
10436 # otherwise default to the standard path separator (i.e. ":") - it is
10437 # assumed that no part of a normal pathname contains ";" but that should
10438 # okay in the real world where ";" in dirpaths is itself problematic.
10439 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10442 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10445 # Ok, now we have the path, separated by spaces, we can step through it
10446 # and add multilib dir if necessary.
10447 lt_tmp_lt_search_path_spec
=
10448 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10449 for lt_sys_path
in $lt_search_path_spec; do
10450 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10451 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10453 test -d "$lt_sys_path" && \
10454 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10457 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10458 BEGIN {RS=" "; FS="/|\n";} {
10461 for (lt_i = NF; lt_i > 0; lt_i--) {
10462 if ($lt_i != "" && $lt_i != ".") {
10463 if ($lt_i == "..") {
10466 if (lt_count == 0) {
10467 lt_foo="/" $lt_i lt_foo;
10474 if (lt_foo != "") { lt_freq[lt_foo]++; }
10475 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10477 # AWK program above erroneously prepends '/' to C:/dos/paths
10480 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10481 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10483 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10485 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10487 library_names_spec
=
10488 libname_spec
='lib$name'
10492 postuninstall_cmds
=
10496 shlibpath_overrides_runpath
=unknown
10498 dynamic_linker
="$host_os ld.so"
10499 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10500 need_lib_prefix
=unknown
10501 hardcode_into_libs
=no
10503 # when you set need_version to no, make sure it does not cause -set_version
10504 # flags to be left without arguments
10505 need_version
=unknown
10510 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10511 shlibpath_var
=LIBPATH
10513 # AIX 3 has no versioning support, so we append a major version to the name.
10514 soname_spec
='${libname}${release}${shared_ext}$major'
10521 hardcode_into_libs
=yes
10522 if test "$host_cpu" = ia64
; then
10523 # AIX 5 supports IA64
10524 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10525 shlibpath_var
=LD_LIBRARY_PATH
10527 # With GCC up to 2.95.x, collect2 would create an import file
10528 # for dependence libraries. The import file would start with
10529 # the line `#! .'. This would cause the generated library to
10530 # depend on `.', always an invalid library. This was fixed in
10531 # development snapshots of GCC prior to 3.0.
10533 aix4 | aix4.
[01] | aix4.
[01].
*)
10534 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10536 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10539 can_build_shared
=no
10543 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10544 # soname into executable. Probably we can add versioning support to
10545 # collect2, so additional links can be useful in future.
10546 if test "$aix_use_runtimelinking" = yes; then
10547 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10548 # instead of lib<name>.a to let people know that these are not
10549 # typical AIX shared libraries.
10550 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10552 # We preserve .a as extension for shared libraries through AIX4.2
10553 # and later when we are not doing run time linking.
10554 library_names_spec
='${libname}${release}.a $libname.a'
10555 soname_spec
='${libname}${release}${shared_ext}$major'
10557 shlibpath_var
=LIBPATH
10564 # Since July 2007 AmigaOS4 officially supports .so libraries.
10565 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10566 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10569 library_names_spec
='$libname.ixlibrary $libname.a'
10570 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10571 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10577 library_names_spec
='${libname}${shared_ext}'
10578 dynamic_linker
="$host_os ld.so"
10579 shlibpath_var
=LIBRARY_PATH
10585 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10586 soname_spec
='${libname}${release}${shared_ext}$major'
10587 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10588 shlibpath_var
=LD_LIBRARY_PATH
10589 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10590 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10591 # the default ld.so.conf also contains /usr/contrib/lib and
10592 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10593 # libtool to hard-code these into programs
10596 cygwin
* | mingw
* | pw32
* | cegcc
*)
10597 version_type
=windows
10602 case $GCC,$host_os in
10603 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10604 library_names_spec
='$libname.dll.a'
10605 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10606 postinstall_cmds
='base_file=`basename \${file}`~
10607 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10608 dldir=$destdir/`dirname \$dlpath`~
10609 test -d \$dldir || mkdir -p \$dldir~
10610 $install_prog $dir/$dlname \$dldir/$dlname~
10611 chmod a+x \$dldir/$dlname~
10612 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10613 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10615 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10616 dlpath=$dir/\$dldll~
10618 shlibpath_overrides_runpath
=yes
10622 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10623 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10625 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10628 # MinGW DLLs use traditional 'lib' prefix
10629 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10632 # pw32 DLLs use 'pw' prefix rather than 'lib'
10633 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10639 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10642 dynamic_linker
='Win32 ld.exe'
10643 # FIXME: first we should search . and the directory the executable is in
10647 darwin
* | rhapsody
*)
10648 dynamic_linker
="$host_os dyld"
10649 version_type
=darwin
10652 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10653 soname_spec
='${libname}${release}${major}$shared_ext'
10654 shlibpath_overrides_runpath
=yes
10655 shlibpath_var
=DYLD_LIBRARY_PATH
10656 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10658 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10659 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10666 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10667 soname_spec
='${libname}${release}${shared_ext}$major'
10668 shlibpath_var
=LD_LIBRARY_PATH
10671 freebsd
* | dragonfly
*)
10672 # DragonFly does not have aout. When/if they implement a new
10673 # versioning mechanism, adjust this.
10674 if test -x /usr
/bin
/objformat
; then
10675 objformat
=`/usr/bin/objformat`
10678 freebsd
[23].
*) objformat
=aout
;;
10679 *) objformat
=elf
;;
10682 version_type
=freebsd-
$objformat
10683 case $version_type in
10685 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10690 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10694 shlibpath_var
=LD_LIBRARY_PATH
10697 shlibpath_overrides_runpath
=yes
10699 freebsd3.
[01]* | freebsdelf3.
[01]*)
10700 shlibpath_overrides_runpath
=yes
10701 hardcode_into_libs
=yes
10703 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10704 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10705 shlibpath_overrides_runpath
=no
10706 hardcode_into_libs
=yes
10708 *) # from 4.6 on, and DragonFly
10709 shlibpath_overrides_runpath
=yes
10710 hardcode_into_libs
=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 hardcode_into_libs
=yes
10729 dynamic_linker
="$host_os runtime_loader"
10730 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10731 soname_spec
='${libname}${release}${shared_ext}$major'
10732 shlibpath_var
=LIBRARY_PATH
10733 shlibpath_overrides_runpath
=yes
10734 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10735 hardcode_into_libs
=yes
10738 hpux9
* | hpux10
* | hpux11
*)
10739 # Give a soname corresponding to the major version so that dld.sl refuses to
10740 # link against other versions.
10747 hardcode_into_libs
=yes
10748 dynamic_linker
="$host_os dld.so"
10749 shlibpath_var
=LD_LIBRARY_PATH
10750 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10751 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10752 soname_spec
='${libname}${release}${shared_ext}$major'
10753 if test "X$HPUX_IA64_MODE" = X32
; then
10754 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10756 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10758 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10762 hardcode_into_libs
=yes
10763 dynamic_linker
="$host_os dld.sl"
10764 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10765 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10766 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767 soname_spec
='${libname}${release}${shared_ext}$major'
10768 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10769 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10773 dynamic_linker
="$host_os dld.sl"
10774 shlibpath_var
=SHLIB_PATH
10775 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10776 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10777 soname_spec
='${libname}${release}${shared_ext}$major'
10780 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10781 postinstall_cmds
='chmod 555 $lib'
10782 # or fails outright, so override atomically:
10783 install_override_mode
=555
10790 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10791 soname_spec
='${libname}${release}${shared_ext}$major'
10792 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10793 shlibpath_var
=LD_LIBRARY_PATH
10794 shlibpath_overrides_runpath
=no
10795 hardcode_into_libs
=yes
10798 irix5
* | irix6
* | nonstopux
*)
10800 nonstopux
*) version_type
=nonstopux
;;
10802 if test "$lt_cv_prog_gnu_ld" = yes; then
10810 soname_spec
='${libname}${release}${shared_ext}$major'
10811 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10813 irix5
* | nonstopux
*)
10814 libsuff
= shlibsuff
=
10817 case $LD in # libtool.m4 will add one of these switches to LD
10818 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10819 libsuff
= shlibsuff
= libmagic
=32-bit;;
10820 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10821 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10822 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10823 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10824 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10828 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10829 shlibpath_overrides_runpath
=no
10830 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10831 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10832 hardcode_into_libs
=yes
10835 # No shared lib support for Linux oldld, aout, or coff.
10836 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10840 # This must be Linux ELF.
10841 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10845 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10846 soname_spec
='${libname}${release}${shared_ext}$major'
10847 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10848 shlibpath_var
=LD_LIBRARY_PATH
10849 shlibpath_overrides_runpath
=no
10851 # Some binutils ld are patched to set DT_RUNPATH
10852 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10853 $as_echo_n "(cached) " >&6
10855 lt_cv_shlibpath_overrides_runpath
=no
10856 save_LDFLAGS
=$LDFLAGS
10857 save_libdir
=$libdir
10858 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10859 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10861 /* end confdefs.h. */
10871 if ac_fn_c_try_link
"$LINENO"; then :
10872 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10873 lt_cv_shlibpath_overrides_runpath
=yes
10876 rm -f core conftest.err conftest.
$ac_objext \
10877 conftest
$ac_exeext conftest.
$ac_ext
10878 LDFLAGS
=$save_LDFLAGS
10879 libdir
=$save_libdir
10883 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10885 # This implies no fast_install, which is unacceptable.
10886 # Some rework will be needed to allow for fast_install
10887 # before this can be enabled.
10888 hardcode_into_libs
=yes
10890 # Append ld.so.conf contents to the search path
10891 if test -f /etc
/ld.so.conf
; then
10892 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10893 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10896 # We used to test for /lib/ld.so.1 and disable shared libraries on
10897 # powerpc, because MkLinux only supported shared libraries with the
10898 # GNU dynamic linker. Since this was broken with cross compilers,
10899 # most powerpc-linux boxes support dynamic linking these days and
10900 # people can always --disable-shared, the test was removed, and we
10901 # assume the GNU/Linux dynamic linker is in use.
10902 dynamic_linker
='GNU/Linux ld.so'
10909 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10910 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10911 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10912 dynamic_linker
='NetBSD (a.out) ld.so'
10914 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10915 soname_spec
='${libname}${release}${shared_ext}$major'
10916 dynamic_linker
='NetBSD ld.elf_so'
10918 shlibpath_var
=LD_LIBRARY_PATH
10919 shlibpath_overrides_runpath
=yes
10920 hardcode_into_libs
=yes
10925 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10926 shlibpath_var
=LD_LIBRARY_PATH
10927 shlibpath_overrides_runpath
=yes
10934 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10935 soname_spec
='${libname}${release}${shared_ext}$major'
10936 shlibpath_var
=LD_LIBRARY_PATH
10937 shlibpath_overrides_runpath
=no
10938 hardcode_into_libs
=yes
10939 dynamic_linker
='ldqnx.so'
10944 sys_lib_dlsearch_path_spec
="/usr/lib"
10946 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10948 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10949 *) need_version
=no
;;
10951 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10952 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10953 shlibpath_var
=LD_LIBRARY_PATH
10954 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10956 openbsd2.
[89] | openbsd2.
[89].
*)
10957 shlibpath_overrides_runpath
=no
10960 shlibpath_overrides_runpath
=yes
10964 shlibpath_overrides_runpath
=yes
10969 libname_spec
='$name'
10972 library_names_spec
='$libname${shared_ext} $libname.a'
10973 dynamic_linker
='OS/2 ld.exe'
10974 shlibpath_var
=LIBPATH
10977 osf3
* | osf4
* | osf5
*)
10981 soname_spec
='${libname}${release}${shared_ext}$major'
10982 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983 shlibpath_var
=LD_LIBRARY_PATH
10984 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10985 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10996 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10997 soname_spec
='${libname}${release}${shared_ext}$major'
10998 shlibpath_var
=LD_LIBRARY_PATH
10999 shlibpath_overrides_runpath
=yes
11000 hardcode_into_libs
=yes
11001 # ldd complains unless libraries are executable
11002 postinstall_cmds
='chmod +x $lib'
11007 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11008 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11009 shlibpath_var
=LD_LIBRARY_PATH
11010 shlibpath_overrides_runpath
=yes
11011 if test "$with_gnu_ld" = yes; then
11019 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11020 soname_spec
='${libname}${release}${shared_ext}$major'
11021 shlibpath_var
=LD_LIBRARY_PATH
11022 case $host_vendor in
11024 shlibpath_overrides_runpath
=no
11026 runpath_var
=LD_RUN_PATH
11034 shlibpath_overrides_runpath
=no
11035 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11041 if test -d /usr
/nec
;then
11043 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11044 soname_spec
='$libname${shared_ext}.$major'
11045 shlibpath_var
=LD_LIBRARY_PATH
11049 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11050 version_type
=freebsd-elf
11053 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11054 soname_spec
='${libname}${release}${shared_ext}$major'
11055 shlibpath_var
=LD_LIBRARY_PATH
11056 shlibpath_overrides_runpath
=yes
11057 hardcode_into_libs
=yes
11058 if test "$with_gnu_ld" = yes; then
11059 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11061 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11064 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11068 sys_lib_dlsearch_path_spec
='/usr/lib'
11072 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11076 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11077 shlibpath_var
=LD_LIBRARY_PATH
11078 shlibpath_overrides_runpath
=no
11079 hardcode_into_libs
=yes
11084 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11085 soname_spec
='${libname}${release}${shared_ext}$major'
11086 shlibpath_var
=LD_LIBRARY_PATH
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11094 $as_echo "$dynamic_linker" >&6; }
11095 test "$dynamic_linker" = no
&& can_build_shared
=no
11097 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11098 if test "$GCC" = yes; then
11099 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11102 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11103 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11105 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11106 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11201 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11203 if test -n "$hardcode_libdir_flag_spec" ||
11204 test -n "$runpath_var" ||
11205 test "X$hardcode_automatic" = "Xyes" ; then
11207 # We can hardcode non-existent directories.
11208 if test "$hardcode_direct" != no
&&
11209 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11210 # have to relink, otherwise we might link with an installed library
11211 # when we should be linking with a yet-to-be-installed one
11212 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11213 test "$hardcode_minus_L" != no
; then
11214 # Linking always hardcodes the temporary library directory.
11215 hardcode_action
=relink
11217 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11218 hardcode_action
=immediate
11221 # We cannot hardcode anything, or else we can only hardcode existing
11223 hardcode_action
=unsupported
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11226 $as_echo "$hardcode_action" >&6; }
11228 if test "$hardcode_action" = relink ||
11229 test "$inherit_rpath" = yes; then
11230 # Fast installation is not supported
11231 enable_fast_install
=no
11232 elif test "$shlibpath_overrides_runpath" = yes ||
11233 test "$enable_shared" = no
; then
11234 # Fast installation is not necessary
11235 enable_fast_install
=needless
11243 if test "x$enable_dlopen" != xyes
; then
11244 enable_dlopen
=unknown
11245 enable_dlopen_self
=unknown
11246 enable_dlopen_self_static
=unknown
11253 lt_cv_dlopen
="load_add_on"
11255 lt_cv_dlopen_self
=yes
11258 mingw
* | pw32
* | cegcc
*)
11259 lt_cv_dlopen
="LoadLibrary"
11264 lt_cv_dlopen
="dlopen"
11269 # if libdl is installed we need to link against it
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11271 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11272 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11273 $as_echo_n "(cached) " >&6
11275 ac_check_lib_save_LIBS
=$LIBS
11277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11280 /* Override any GCC internal prototype to avoid an error.
11281 Use char because int might match the return type of a GCC
11282 builtin and then its argument prototype would still apply. */
11295 if ac_fn_c_try_link
"$LINENO"; then :
11296 ac_cv_lib_dl_dlopen
=yes
11298 ac_cv_lib_dl_dlopen
=no
11300 rm -f core conftest.err conftest.
$ac_objext \
11301 conftest
$ac_exeext conftest.
$ac_ext
11302 LIBS
=$ac_check_lib_save_LIBS
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11305 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11306 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11307 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11310 lt_cv_dlopen
="dyld"
11312 lt_cv_dlopen_self
=yes
11319 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11320 if test "x$ac_cv_func_shl_load" = xyes
; then :
11321 lt_cv_dlopen
="shl_load"
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11324 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11325 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11326 $as_echo_n "(cached) " >&6
11328 ac_check_lib_save_LIBS
=$LIBS
11330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h. */
11333 /* Override any GCC internal prototype to avoid an error.
11334 Use char because int might match the return type of a GCC
11335 builtin and then its argument prototype would still apply. */
11343 return shl_load ();
11348 if ac_fn_c_try_link
"$LINENO"; then :
11349 ac_cv_lib_dld_shl_load
=yes
11351 ac_cv_lib_dld_shl_load
=no
11353 rm -f core conftest.err conftest.
$ac_objext \
11354 conftest
$ac_exeext conftest.
$ac_ext
11355 LIBS
=$ac_check_lib_save_LIBS
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11358 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11359 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11360 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11362 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11363 if test "x$ac_cv_func_dlopen" = xyes
; then :
11364 lt_cv_dlopen
="dlopen"
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11367 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11368 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11369 $as_echo_n "(cached) " >&6
11371 ac_check_lib_save_LIBS
=$LIBS
11373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11374 /* end confdefs.h. */
11376 /* Override any GCC internal prototype to avoid an error.
11377 Use char because int might match the return type of a GCC
11378 builtin and then its argument prototype would still apply. */
11391 if ac_fn_c_try_link
"$LINENO"; then :
11392 ac_cv_lib_dl_dlopen
=yes
11394 ac_cv_lib_dl_dlopen
=no
11396 rm -f core conftest.err conftest.
$ac_objext \
11397 conftest
$ac_exeext conftest.
$ac_ext
11398 LIBS
=$ac_check_lib_save_LIBS
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11401 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11402 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11403 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11406 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11407 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11408 $as_echo_n "(cached) " >&6
11410 ac_check_lib_save_LIBS
=$LIBS
11411 LIBS
="-lsvld $LIBS"
11412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11413 /* end confdefs.h. */
11415 /* Override any GCC internal prototype to avoid an error.
11416 Use char because int might match the return type of a GCC
11417 builtin and then its argument prototype would still apply. */
11430 if ac_fn_c_try_link
"$LINENO"; then :
11431 ac_cv_lib_svld_dlopen
=yes
11433 ac_cv_lib_svld_dlopen
=no
11435 rm -f core conftest.err conftest.
$ac_objext \
11436 conftest
$ac_exeext conftest.
$ac_ext
11437 LIBS
=$ac_check_lib_save_LIBS
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11440 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11441 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11442 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11445 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11446 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11447 $as_echo_n "(cached) " >&6
11449 ac_check_lib_save_LIBS
=$LIBS
11451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11452 /* end confdefs.h. */
11454 /* Override any GCC internal prototype to avoid an error.
11455 Use char because int might match the return type of a GCC
11456 builtin and then its argument prototype would still apply. */
11464 return dld_link ();
11469 if ac_fn_c_try_link
"$LINENO"; then :
11470 ac_cv_lib_dld_dld_link
=yes
11472 ac_cv_lib_dld_dld_link
=no
11474 rm -f core conftest.err conftest.
$ac_objext \
11475 conftest
$ac_exeext conftest.
$ac_ext
11476 LIBS
=$ac_check_lib_save_LIBS
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11479 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11480 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11481 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11502 if test "x$lt_cv_dlopen" != xno
; then
11508 case $lt_cv_dlopen in
11510 save_CPPFLAGS
="$CPPFLAGS"
11511 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11513 save_LDFLAGS
="$LDFLAGS"
11514 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11517 LIBS
="$lt_cv_dlopen_libs $LIBS"
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11520 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11521 if ${lt_cv_dlopen_self+:} false
; then :
11522 $as_echo_n "(cached) " >&6
11524 if test "$cross_compiling" = yes; then :
11525 lt_cv_dlopen_self
=cross
11527 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11528 lt_status
=$lt_dlunknown
11529 cat > conftest.
$ac_ext <<_LT_EOF
11530 #line 11530 "configure"
11531 #include "confdefs.h"
11540 # define LT_DLGLOBAL RTLD_GLOBAL
11543 # define LT_DLGLOBAL DL_GLOBAL
11545 # define LT_DLGLOBAL 0
11549 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11550 find out it does not work in some platform. */
11551 #ifndef LT_DLLAZY_OR_NOW
11553 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11556 # define LT_DLLAZY_OR_NOW DL_LAZY
11559 # define LT_DLLAZY_OR_NOW RTLD_NOW
11562 # define LT_DLLAZY_OR_NOW DL_NOW
11564 # define LT_DLLAZY_OR_NOW 0
11571 /* When -fvisbility=hidden is used, assume the code has been annotated
11572 correspondingly for the symbols needed. */
11573 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11574 void fnord () __attribute__((visibility("default")));
11577 void fnord () { int i=42; }
11580 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11581 int status = $lt_dlunknown;
11585 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11588 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11589 else puts (dlerror ());
11591 /* dlclose (self); */
11599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11600 (eval $ac_link) 2>&5
11602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11603 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11604 (.
/conftest
; exit; ) >&5 2>/dev
/null
11606 case x
$lt_status in
11607 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11608 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11609 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11612 # compilation failed
11613 lt_cv_dlopen_self
=no
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11621 $as_echo "$lt_cv_dlopen_self" >&6; }
11623 if test "x$lt_cv_dlopen_self" = xyes
; then
11624 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11626 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11627 if ${lt_cv_dlopen_self_static+:} false
; then :
11628 $as_echo_n "(cached) " >&6
11630 if test "$cross_compiling" = yes; then :
11631 lt_cv_dlopen_self_static
=cross
11633 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11634 lt_status
=$lt_dlunknown
11635 cat > conftest.
$ac_ext <<_LT_EOF
11636 #line 11636 "configure"
11637 #include "confdefs.h"
11646 # define LT_DLGLOBAL RTLD_GLOBAL
11649 # define LT_DLGLOBAL DL_GLOBAL
11651 # define LT_DLGLOBAL 0
11655 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11656 find out it does not work in some platform. */
11657 #ifndef LT_DLLAZY_OR_NOW
11659 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11662 # define LT_DLLAZY_OR_NOW DL_LAZY
11665 # define LT_DLLAZY_OR_NOW RTLD_NOW
11668 # define LT_DLLAZY_OR_NOW DL_NOW
11670 # define LT_DLLAZY_OR_NOW 0
11677 /* When -fvisbility=hidden is used, assume the code has been annotated
11678 correspondingly for the symbols needed. */
11679 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11680 void fnord () __attribute__((visibility("default")));
11683 void fnord () { int i=42; }
11686 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11687 int status = $lt_dlunknown;
11691 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11694 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11695 else puts (dlerror ());
11697 /* dlclose (self); */
11705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11706 (eval $ac_link) 2>&5
11708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11709 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11710 (.
/conftest
; exit; ) >&5 2>/dev
/null
11712 case x
$lt_status in
11713 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11714 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11715 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11718 # compilation failed
11719 lt_cv_dlopen_self_static
=no
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11727 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11730 CPPFLAGS
="$save_CPPFLAGS"
11731 LDFLAGS
="$save_LDFLAGS"
11736 case $lt_cv_dlopen_self in
11737 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11738 *) enable_dlopen_self
=unknown
;;
11741 case $lt_cv_dlopen_self_static in
11742 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11743 *) enable_dlopen_self_static
=unknown
;;
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11766 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11767 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11768 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11769 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11771 $as_echo "yes" >&6; }
11773 # FIXME - insert some real tests, host_os isn't really good enough
11776 if test -n "$STRIP" ; then
11777 striplib
="$STRIP -x"
11778 old_striplib
="$STRIP -S"
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11780 $as_echo "yes" >&6; }
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11783 $as_echo "no" >&6; }
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11788 $as_echo "no" >&6; }
11804 # Report which library types will actually be built
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11806 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11808 $as_echo "$can_build_shared" >&6; }
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11811 $as_echo_n "checking whether to build shared libraries... " >&6; }
11812 test "$can_build_shared" = "no" && enable_shared
=no
11814 # On AIX, shared libraries and static libraries use the same namespace, and
11815 # are all built from PIC.
11818 test "$enable_shared" = yes && enable_static
=no
11819 if test -n "$RANLIB"; then
11820 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11821 postinstall_cmds
='$RANLIB $lib'
11826 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11827 test "$enable_shared" = yes && enable_static
=no
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11832 $as_echo "$enable_shared" >&6; }
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11835 $as_echo_n "checking whether to build static libraries... " >&6; }
11836 # Make sure either enable_shared or enable_static is yes.
11837 test "$enable_shared" = yes || enable_static
=yes
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11839 $as_echo "$enable_static" >&6; }
11846 ac_cpp
='$CPP $CPPFLAGS'
11847 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11848 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11849 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11865 ac_config_commands
="$ac_config_commands libtool"
11870 # Only expand once:
11874 # The tests for host and target for $enable_largefile require
11879 # As the $enable_largefile decision depends on --enable-plugins we must set it
11880 # even in directories otherwise not depending on the $plugins option.
11884 for ac_header
in dlfcn.h
11886 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11888 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
11889 cat >>confdefs.h
<<_ACEOF
11890 #define HAVE_DLFCN_H 1
11897 for ac_header
in windows.h
11899 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11901 if test "x$ac_cv_header_windows_h" = xyes
; then :
11902 cat >>confdefs.h
<<_ACEOF
11903 #define HAVE_WINDOWS_H 1
11911 # Check whether --enable-plugins was given.
11912 if test "${enable_plugins+set}" = set; then :
11913 enableval
=$enable_plugins; case "${enableval}" in
11916 if test "$maybe_plugins" != "yes" ; then
11917 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11921 plugins
=$maybe_plugins
11925 if test "$plugins" = "yes"; then
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11927 $as_echo_n "checking for library containing dlsym... " >&6; }
11928 if ${ac_cv_search_dlsym+:} false
; then :
11929 $as_echo_n "(cached) " >&6
11931 ac_func_search_save_LIBS
=$LIBS
11932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11933 /* end confdefs.h. */
11935 /* Override any GCC internal prototype to avoid an error.
11936 Use char because int might match the return type of a GCC
11937 builtin and then its argument prototype would still apply. */
11950 for ac_lib
in '' dl
; do
11951 if test -z "$ac_lib"; then
11952 ac_res
="none required"
11955 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11957 if ac_fn_c_try_link
"$LINENO"; then :
11958 ac_cv_search_dlsym
=$ac_res
11960 rm -f core conftest.err conftest.
$ac_objext \
11962 if ${ac_cv_search_dlsym+:} false
; then :
11966 if ${ac_cv_search_dlsym+:} false
; then :
11969 ac_cv_search_dlsym
=no
11971 rm conftest.
$ac_ext
11972 LIBS
=$ac_func_search_save_LIBS
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11975 $as_echo "$ac_cv_search_dlsym" >&6; }
11976 ac_res
=$ac_cv_search_dlsym
11977 if test "$ac_res" != no
; then :
11978 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11986 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
11987 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11988 # are mutually exclusive; and without procfs support, the bfd/ elf module
11989 # cannot provide certain routines such as elfcore_write_prpsinfo
11990 # or elfcore_write_prstatus. So unless the user explicitly requested
11991 # large-file support through the --enable-largefile switch, disable
11992 # large-file support in favor of procfs support.
11993 test "${target}" = "${host}" -a "x$plugins" = xno \
11994 && : ${enable_largefile="no"}
11998 # Check whether --enable-largefile was given.
11999 if test "${enable_largefile+set}" = set; then :
12000 enableval
=$enable_largefile;
12003 if test "$enable_largefile" != no
; then
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12006 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12007 if ${ac_cv_sys_largefile_CC+:} false
; then :
12008 $as_echo_n "(cached) " >&6
12010 ac_cv_sys_largefile_CC
=no
12011 if test "$GCC" != yes; then
12014 # IRIX 6.2 and later do not support large files by default,
12015 # so use the C compiler's -n32 option if that helps.
12016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12018 #include <sys/types.h>
12019 /* Check that off_t can represent 2**63 - 1 correctly.
12020 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12021 since some C++ compilers masquerading as C compilers
12022 incorrectly reject 9223372036854775807. */
12023 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12024 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12025 && LARGE_OFF_T % 2147483647 == 1)
12035 if ac_fn_c_try_compile
"$LINENO"; then :
12038 rm -f core conftest.err conftest.
$ac_objext
12040 if ac_fn_c_try_compile
"$LINENO"; then :
12041 ac_cv_sys_largefile_CC
=' -n32'; break
12043 rm -f core conftest.err conftest.
$ac_objext
12047 rm -f conftest.
$ac_ext
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12051 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12052 if test "$ac_cv_sys_largefile_CC" != no
; then
12053 CC
=$CC$ac_cv_sys_largefile_CC
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12057 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12058 if ${ac_cv_sys_file_offset_bits+:} false
; then :
12059 $as_echo_n "(cached) " >&6
12062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12063 /* end confdefs.h. */
12064 #include <sys/types.h>
12065 /* Check that off_t can represent 2**63 - 1 correctly.
12066 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12067 since some C++ compilers masquerading as C compilers
12068 incorrectly reject 9223372036854775807. */
12069 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12070 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12071 && LARGE_OFF_T % 2147483647 == 1)
12081 if ac_fn_c_try_compile
"$LINENO"; then :
12082 ac_cv_sys_file_offset_bits
=no
; break
12084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12086 /* end confdefs.h. */
12087 #define _FILE_OFFSET_BITS 64
12088 #include <sys/types.h>
12089 /* Check that off_t can represent 2**63 - 1 correctly.
12090 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12091 since some C++ compilers masquerading as C compilers
12092 incorrectly reject 9223372036854775807. */
12093 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12094 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12095 && LARGE_OFF_T % 2147483647 == 1)
12105 if ac_fn_c_try_compile
"$LINENO"; then :
12106 ac_cv_sys_file_offset_bits
=64; break
12108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12109 ac_cv_sys_file_offset_bits
=unknown
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12114 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12115 case $ac_cv_sys_file_offset_bits in #(
12118 cat >>confdefs.h
<<_ACEOF
12119 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12124 if test $ac_cv_sys_file_offset_bits = unknown
; then
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12126 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12127 if ${ac_cv_sys_large_files+:} false
; then :
12128 $as_echo_n "(cached) " >&6
12131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h. */
12133 #include <sys/types.h>
12134 /* Check that off_t can represent 2**63 - 1 correctly.
12135 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12136 since some C++ compilers masquerading as C compilers
12137 incorrectly reject 9223372036854775807. */
12138 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12139 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12140 && LARGE_OFF_T % 2147483647 == 1)
12150 if ac_fn_c_try_compile
"$LINENO"; then :
12151 ac_cv_sys_large_files
=no
; break
12153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h. */
12156 #define _LARGE_FILES 1
12157 #include <sys/types.h>
12158 /* Check that off_t can represent 2**63 - 1 correctly.
12159 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12160 since some C++ compilers masquerading as C compilers
12161 incorrectly reject 9223372036854775807. */
12162 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12163 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12164 && LARGE_OFF_T % 2147483647 == 1)
12174 if ac_fn_c_try_compile
"$LINENO"; then :
12175 ac_cv_sys_large_files
=1; break
12177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12178 ac_cv_sys_large_files
=unknown
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12183 $as_echo "$ac_cv_sys_large_files" >&6; }
12184 case $ac_cv_sys_large_files in #(
12187 cat >>confdefs.h
<<_ACEOF
12188 #define _LARGE_FILES $ac_cv_sys_large_files
12200 # Check whether --enable-targets was given.
12201 if test "${enable_targets+set}" = set; then :
12202 enableval
=$enable_targets; case "${enableval}" in
12203 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
12205 no
) enable_targets
= ;;
12206 *) enable_targets
=$enableval ;;
12210 # Check whether --enable-deterministic-archives was given.
12211 if test "${enable_deterministic_archives+set}" = set; then :
12212 enableval
=$enable_deterministic_archives;
12213 if test "${enableval}" = no
; then
12214 default_ar_deterministic
=0
12216 default_ar_deterministic
=1
12219 default_ar_deterministic
=0
12224 cat >>confdefs.h
<<_ACEOF
12225 #define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
12229 # Check whether --enable-default-strings-all was given.
12230 if test "${enable_default_strings_all+set}" = set; then :
12231 enableval
=$enable_default_strings_all;
12232 if test "${enableval}" = no
; then
12233 default_strings_all
=0
12235 default_strings_all
=1
12238 default_strings_all
=1
12243 # Enable debuginfod
12245 # Check whether --with-debuginfod was given.
12246 if test "${with_debuginfod+set}" = set; then :
12247 withval
=$with_debuginfod;
12249 with_debuginfod
=auto
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
12253 $as_echo_n "checking whether to use debuginfod... " >&6; }
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
12255 $as_echo "$with_debuginfod" >&6; }
12257 if test "${with_debuginfod}" = no
; then
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
12259 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debuginfod_begin in -ldebuginfod" >&5
12262 $as_echo_n "checking for debuginfod_begin in -ldebuginfod... " >&6; }
12263 if ${ac_cv_lib_debuginfod_debuginfod_begin+:} false
; then :
12264 $as_echo_n "(cached) " >&6
12266 ac_check_lib_save_LIBS
=$LIBS
12267 LIBS
="-ldebuginfod $LIBS"
12268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h. */
12271 /* Override any GCC internal prototype to avoid an error.
12272 Use char because int might match the return type of a GCC
12273 builtin and then its argument prototype would still apply. */
12277 char debuginfod_begin ();
12281 return debuginfod_begin ();
12286 if ac_fn_c_try_link
"$LINENO"; then :
12287 ac_cv_lib_debuginfod_debuginfod_begin
=yes
12289 ac_cv_lib_debuginfod_debuginfod_begin
=no
12291 rm -f core conftest.err conftest.
$ac_objext \
12292 conftest
$ac_exeext conftest.
$ac_ext
12293 LIBS
=$ac_check_lib_save_LIBS
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_debuginfod_debuginfod_begin" >&5
12296 $as_echo "$ac_cv_lib_debuginfod_debuginfod_begin" >&6; }
12297 if test "x$ac_cv_lib_debuginfod_debuginfod_begin" = xyes
; then :
12298 have_debuginfod_lib
=yes
12301 ac_fn_c_check_decl
"$LINENO" "debuginfod_begin" "ac_cv_have_decl_debuginfod_begin" "#include <elfutils/debuginfod.h>
12303 if test "x$ac_cv_have_decl_debuginfod_begin" = xyes
; then :
12304 have_debuginfod_h
=yes
12307 if test "x$have_debuginfod_lib" = "xyes" -a \
12308 "x$have_debuginfod_h" = "xyes"; then
12310 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
12312 LIBDEBUGINFOD
="-ldebuginfod"
12316 if test "$with_debuginfod" = yes; then
12317 as_fn_error $?
"debuginfod is missing or unusable" "$LINENO" 5
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod is missing or unusable; some features may be unavailable." >&5
12320 $as_echo "$as_me: WARNING: debuginfod is missing or unusable; some features may be unavailable." >&2;}
12327 cat >>confdefs.h
<<_ACEOF
12328 #define DEFAULT_STRINGS_ALL $default_strings_all
12333 # Set the 'development' global.
12334 .
$srcdir/..
/bfd
/development.sh
12336 # Set acp_cpp_for_build variable
12337 ac_cpp_for_build
="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12339 # Default set of GCC warnings to enable.
12340 GCC_WARN_CFLAGS
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12341 GCC_WARN_CFLAGS_FOR_BUILD
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12343 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h. */
12348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12349 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
12352 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wshadow"
12357 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12359 /* end confdefs.h. */
12362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12363 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev
/null
2>&1; then :
12366 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12371 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12372 WARN_WRITE_STRINGS
=""
12373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12378 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
12381 WARN_WRITE_STRINGS
="-Wwrite-strings"
12386 # Verify CC_FOR_BUILD to be compatible with warning flags
12388 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h. */
12393 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12394 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
12397 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12402 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h. */
12407 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12408 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev
/null
2>&1; then :
12411 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12416 # Check whether --enable-werror was given.
12417 if test "${enable_werror+set}" = set; then :
12418 enableval
=$enable_werror; case "${enableval}" in
12419 yes | y
) ERROR_ON_WARNING
="yes" ;;
12420 no | n
) ERROR_ON_WARNING
="no" ;;
12421 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12426 # Disable -Wformat by default when using gcc on mingw
12429 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12430 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wno-format"
12431 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
12437 # Enable -Werror by default when using gcc. Turn it off for releases.
12438 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true
; then
12439 ERROR_ON_WARNING
=yes
12443 if test "${ERROR_ON_WARNING}" = yes ; then
12444 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Werror"
12445 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
12446 NO_WERROR
="-Wno-error"
12449 if test "${GCC}" = yes ; then
12450 WARN_CFLAGS
="${GCC_WARN_CFLAGS}"
12451 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD}"
12454 # Check whether --enable-build-warnings was given.
12455 if test "${enable_build_warnings+set}" = set; then :
12456 enableval
=$enable_build_warnings; case "${enableval}" in
12457 yes) WARN_CFLAGS
="${GCC_WARN_CFLAGS}"
12458 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD}";;
12459 no
) if test "${GCC}" = yes ; then
12461 WARN_CFLAGS_FOR_BUILD
="-w"
12463 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12464 WARN_CFLAGS
="${GCC_WARN_CFLAGS} ${t}"
12465 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
12466 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
12467 WARN_CFLAGS
="${t} ${GCC_WARN_CFLAGS}"
12468 WARN_CFLAGS_FOR_BUILD
="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12469 *) WARN_CFLAGS
=`echo "${enableval}" | sed -e "s/,/ /g"`
12470 WARN_CFLAGS_FOR_BUILD
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12475 if test x
"$silent" != x
"yes" && test x
"$WARN_CFLAGS" != x
""; then
12476 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12485 ac_config_headers
="$ac_config_headers config.h:config.in"
12490 if test -z "$target" ; then
12491 as_fn_error $?
"Unrecognized target system type; please check config.sub." "$LINENO" 5
12493 if test -z "$host" ; then
12494 as_fn_error $?
"Unrecognized host system type; please check config.sub." "$LINENO" 5
12497 for ac_prog
in 'bison -y' byacc
12499 # Extract the first word of "$ac_prog", so it can be a program name with args.
12500 set dummy
$ac_prog; ac_word
=$2
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12502 $as_echo_n "checking for $ac_word... " >&6; }
12503 if ${ac_cv_prog_YACC+:} false
; then :
12504 $as_echo_n "(cached) " >&6
12506 if test -n "$YACC"; then
12507 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
12509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12510 for as_dir
in $PATH
12513 test -z "$as_dir" && as_dir
=.
12514 for ac_exec_ext
in '' $ac_executable_extensions; do
12515 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12516 ac_cv_prog_YACC
="$ac_prog"
12517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12526 YACC
=$ac_cv_prog_YACC
12527 if test -n "$YACC"; then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12529 $as_echo "$YACC" >&6; }
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12532 $as_echo "no" >&6; }
12536 test -n "$YACC" && break
12538 test -n "$YACC" || YACC
="yacc"
12540 for ac_prog
in flex
lex
12542 # Extract the first word of "$ac_prog", so it can be a program name with args.
12543 set dummy
$ac_prog; ac_word
=$2
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12545 $as_echo_n "checking for $ac_word... " >&6; }
12546 if ${ac_cv_prog_LEX+:} false
; then :
12547 $as_echo_n "(cached) " >&6
12549 if test -n "$LEX"; then
12550 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
12552 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12553 for as_dir
in $PATH
12556 test -z "$as_dir" && as_dir
=.
12557 for ac_exec_ext
in '' $ac_executable_extensions; do
12558 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12559 ac_cv_prog_LEX
="$ac_prog"
12560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12569 LEX
=$ac_cv_prog_LEX
12570 if test -n "$LEX"; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12572 $as_echo "$LEX" >&6; }
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 $as_echo "no" >&6; }
12579 test -n "$LEX" && break
12581 test -n "$LEX" || LEX
=":"
12585 *) cat >conftest.l
<<_ACEOF
12591 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12592 yyless ((input () != 0)); }
12593 f { unput (yytext[0]); }
12594 . { BEGIN INITIAL; }
12596 #ifdef YYTEXT_POINTER
12597 extern char *yytext;
12602 return ! yylex () + ! yywrap ();
12605 { { ac_try
="$LEX conftest.l"
12606 case "(($ac_try" in
12607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12608 *) ac_try_echo=$ac_try;;
12610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12611 $as_echo "$ac_try_echo"; } >&5
12612 (eval "$LEX conftest.l") 2>&5
12614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12615 test $ac_status = 0; }
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12617 $as_echo_n "checking lex output file root... " >&6; }
12618 if ${ac_cv_prog_lex_root+:} false; then :
12619 $as_echo_n "(cached) " >&6
12622 if test -f lex.yy.c; then
12623 ac_cv_prog_lex_root=lex.yy
12624 elif test -f lexyy.c; then
12625 ac_cv_prog_lex_root=lexyy
12627 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12631 $as_echo "$ac_cv_prog_lex_root" >&6; }
12632 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12634 if test -z "${LEXLIB+set}"; then
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12636 $as_echo_n "checking lex library... " >&6; }
12637 if ${ac_cv_lib_lex+:} false; then :
12638 $as_echo_n "(cached) " >&6
12642 ac_cv_lib_lex='none needed'
12643 for ac_lib in '' -lfl -ll; do
12644 LIBS="$ac_lib $ac_save_LIBS"
12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12647 `cat $LEX_OUTPUT_ROOT.c
`
12649 if ac_fn_c_try_link "$LINENO"; then :
12650 ac_cv_lib_lex=$ac_lib
12652 rm -f core conftest.err conftest.$ac_objext \
12653 conftest$ac_exeext conftest.$ac_ext
12654 test "$ac_cv_lib_lex" != 'none needed' && break
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12660 $as_echo "$ac_cv_lib_lex" >&6; }
12661 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12666 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12667 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12668 $as_echo_n "(cached) " >&6
12670 # POSIX says lex can declare yytext either as a pointer or an array; the
12671 # default is implementation-dependent. Figure out which it is, since
12672 # not all implementations provide the %pointer and %array declarations.
12673 ac_cv_prog_lex_yytext_pointer=no
12675 LIBS="$LEXLIB $ac_save_LIBS"
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12679 #define YYTEXT_POINTER 1
12680 `cat $LEX_OUTPUT_ROOT.c
`
12682 if ac_fn_c_try_link "$LINENO"; then :
12683 ac_cv_prog_lex_yytext_pointer=yes
12685 rm -f core conftest.err conftest.$ac_objext \
12686 conftest$ac_exeext conftest.$ac_ext
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12691 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12692 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12694 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12697 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12700 if test "$LEX" = :; then
12701 LEX=${am_missing_run}flex
12704 ALL_LINGUAS="bg ca da es fi fr hr id it ja pt ro ru rw sk sr sv tr uk vi zh_CN zh_TW"
12705 # If we haven't got the data from the intl directory,
12706 # assume NLS is disabled.
12715 if test -f ../intl/config.intl; then
12716 . ../intl/config.intl
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12719 $as_echo_n "checking whether NLS is requested... " >&6; }
12720 if test x"$USE_NLS" != xyes; then
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722 $as_echo "no" >&6; }
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12725 $as_echo "yes" >&6; }
12727 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12731 $as_echo_n "checking for catalogs to be installed... " >&6; }
12732 # Look for .po and .gmo files in the source directory.
12735 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12736 # If there aren't any .gmo files the shell will give us the
12737 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12739 case "$cat" in *\**)
12742 # The quadruple backslash is collapsed to a double backslash
12743 # by the backticks, then collapsed again by the double quotes,
12744 # leaving us with one backslash in the sed expression (right
12745 # before the dot that mustn't act as a wildcard).
12746 cat=`echo $cat |
sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12747 lang=`echo $cat |
sed -e "s!\\\\.gmo!!"`
12748 # The user is allowed to set LINGUAS to a list of languages to
12749 # install catalogs for. If it's empty that means "all of them."
12750 if test "x$LINGUAS" = x; then
12751 CATALOGS="$CATALOGS $cat"
12752 XLINGUAS="$XLINGUAS $lang"
12754 case "$LINGUAS" in *$lang*)
12755 CATALOGS="$CATALOGS $cat"
12756 XLINGUAS="$XLINGUAS $lang"
12761 LINGUAS="$XLINGUAS"
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12763 $as_echo "$LINGUAS" >&6; }
12777 if test -n "$ac_aux_dir"; then
12778 case "$ac_aux_dir" in
12779 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12780 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12783 if test -z "$MKINSTALLDIRS"; then
12784 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12790 $as_echo_n "checking whether NLS is requested... " >&6; }
12791 # Check whether --enable-nls was given.
12792 if test "${enable_nls+set}" = set; then :
12793 enableval=$enable_nls; USE_NLS=$enableval
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12799 $as_echo "$USE_NLS" >&6; }
12806 # Prepare PATH_SEPARATOR.
12807 # The user is always right.
12808 if test "${PATH_SEPARATOR+set}" != set; then
12809 echo "#! /bin/sh" >conf$$.sh
12810 echo "exit 0" >>conf$$.sh
12812 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12820 # Find out how to test for executable files. Don't use a zero-byte file,
12821 # as systems may use methods other than mode bits to determine executability.
12822 cat >conf$$.file <<_ASEOF
12826 chmod +x conf$$.file
12827 if test -x conf$$.file >/dev/null 2>&1; then
12828 ac_executable_p="test -x"
12830 ac_executable_p="test -f"
12834 # Extract the first word of "msgfmt", so it can be a program name with args.
12835 set dummy msgfmt; ac_word=$2
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12837 $as_echo_n "checking for $ac_word... " >&6; }
12838 if ${ac_cv_path_MSGFMT+:} false; then :
12839 $as_echo_n "(cached) " >&6
12843 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12846 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12847 for ac_dir in $PATH; do
12849 test -z "$ac_dir" && ac_dir=.
12850 for ac_exec_ext in '' $ac_executable_extensions; do
12851 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12852 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12853 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12854 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12861 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12865 MSGFMT="$ac_cv_path_MSGFMT"
12866 if test "$MSGFMT" != ":"; then
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12868 $as_echo "$MSGFMT" >&6; }
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12871 $as_echo "no" >&6; }
12874 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12875 set dummy gmsgfmt; ac_word=$2
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12877 $as_echo_n "checking for $ac_word... " >&6; }
12878 if ${ac_cv_path_GMSGFMT+:} false; then :
12879 $as_echo_n "(cached) " >&6
12883 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12887 for as_dir in $PATH
12890 test -z "$as_dir" && as_dir=.
12891 for ac_exec_ext in '' $ac_executable_extensions; do
12892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12893 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12901 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12905 GMSGFMT=$ac_cv_path_GMSGFMT
12906 if test -n "$GMSGFMT"; then
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12908 $as_echo "$GMSGFMT" >&6; }
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911 $as_echo "no" >&6; }
12917 # Prepare PATH_SEPARATOR.
12918 # The user is always right.
12919 if test "${PATH_SEPARATOR+set}" != set; then
12920 echo "#! /bin/sh" >conf$$.sh
12921 echo "exit 0" >>conf$$.sh
12923 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12931 # Find out how to test for executable files. Don't use a zero-byte file,
12932 # as systems may use methods other than mode bits to determine executability.
12933 cat >conf$$.file <<_ASEOF
12937 chmod +x conf$$.file
12938 if test -x conf$$.file >/dev/null 2>&1; then
12939 ac_executable_p="test -x"
12941 ac_executable_p="test -f"
12945 # Extract the first word of "xgettext", so it can be a program name with args.
12946 set dummy xgettext; ac_word=$2
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12948 $as_echo_n "checking for $ac_word... " >&6; }
12949 if ${ac_cv_path_XGETTEXT+:} false; then :
12950 $as_echo_n "(cached) " >&6
12952 case "$XGETTEXT" in
12954 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12957 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12958 for ac_dir in $PATH; do
12960 test -z "$ac_dir" && ac_dir=.
12961 for ac_exec_ext in '' $ac_executable_extensions; do
12962 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12963 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12964 (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
12965 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12972 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12976 XGETTEXT="$ac_cv_path_XGETTEXT"
12977 if test "$XGETTEXT" != ":"; then
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12979 $as_echo "$XGETTEXT" >&6; }
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12982 $as_echo "no" >&6; }
12988 # Prepare PATH_SEPARATOR.
12989 # The user is always right.
12990 if test "${PATH_SEPARATOR+set}" != set; then
12991 echo "#! /bin/sh" >conf$$.sh
12992 echo "exit 0" >>conf$$.sh
12994 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13002 # Find out how to test for executable files. Don't use a zero-byte file,
13003 # as systems may use methods other than mode bits to determine executability.
13004 cat >conf$$.file <<_ASEOF
13008 chmod +x conf$$.file
13009 if test -x conf$$.file >/dev/null 2>&1; then
13010 ac_executable_p="test -x"
13012 ac_executable_p="test -f"
13016 # Extract the first word of "msgmerge", so it can be a program name with args.
13017 set dummy msgmerge; ac_word=$2
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13019 $as_echo_n "checking for $ac_word... " >&6; }
13020 if ${ac_cv_path_MSGMERGE+:} false; then :
13021 $as_echo_n "(cached) " >&6
13023 case "$MSGMERGE" in
13025 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13028 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13029 for ac_dir in $PATH; do
13031 test -z "$ac_dir" && ac_dir=.
13032 for ac_exec_ext in '' $ac_executable_extensions; do
13033 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13034 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13035 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13042 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13046 MSGMERGE="$ac_cv_path_MSGMERGE"
13047 if test "$MSGMERGE" != ":"; then
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13049 $as_echo "$MSGMERGE" >&6; }
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052 $as_echo "no" >&6; }
13056 if test "$GMSGFMT" != ":"; then
13057 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13058 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13061 GMSGFMT=`echo "$GMSGFMT" |
sed -e 's,^.*/,,'`
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13063 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13068 if test "$XGETTEXT" != ":"; then
13069 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13070 (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
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13074 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13080 ac_config_commands="$ac_config_commands default-1"
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13086 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13087 # Check whether --enable-maintainer-mode was given.
13088 if test "${enable_maintainer_mode+set}" = set; then :
13089 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13091 USE_MAINTAINER_MODE=no
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13095 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13096 if test $USE_MAINTAINER_MODE = yes; then
13097 MAINTAINER_MODE_TRUE=
13098 MAINTAINER_MODE_FALSE='#'
13100 MAINTAINER_MODE_TRUE='#'
13101 MAINTAINER_MODE_FALSE=
13104 MAINT=$MAINTAINER_MODE_TRUE
13108 GENINSRC_NEVER_TRUE=
13109 GENINSRC_NEVER_FALSE='#'
13111 GENINSRC_NEVER_TRUE='#'
13112 GENINSRC_NEVER_FALSE=
13116 if test -n "$EXEEXT"; then
13118 $as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
13122 cat >>confdefs.h <<_ACEOF
13123 #define EXECUTABLE_SUFFIX "${EXEEXT}"
13127 # host-specific stuff:
13131 . ${srcdir}/../bfd/configure.host
13136 if test -n "$ac_tool_prefix"; then
13137 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13138 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13140 $as_echo_n "checking for $ac_word... " >&6; }
13141 if ${ac_cv_prog_RANLIB+:} false; then :
13142 $as_echo_n "(cached) " >&6
13144 if test -n "$RANLIB"; then
13145 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13148 for as_dir in $PATH
13151 test -z "$as_dir" && as_dir=.
13152 for ac_exec_ext in '' $ac_executable_extensions; do
13153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13154 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13164 RANLIB=$ac_cv_prog_RANLIB
13165 if test -n "$RANLIB"; then
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13167 $as_echo "$RANLIB" >&6; }
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170 $as_echo "no" >&6; }
13175 if test -z "$ac_cv_prog_RANLIB"; then
13176 ac_ct_RANLIB=$RANLIB
13177 # Extract the first word of "ranlib", so it can be a program name with args.
13178 set dummy ranlib; ac_word=$2
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13180 $as_echo_n "checking for $ac_word... " >&6; }
13181 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13182 $as_echo_n "(cached) " >&6
13184 if test -n "$ac_ct_RANLIB"; then
13185 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13188 for as_dir in $PATH
13191 test -z "$as_dir" && as_dir=.
13192 for ac_exec_ext in '' $ac_executable_extensions; do
13193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13194 ac_cv_prog_ac_ct_RANLIB="ranlib"
13195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13204 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13205 if test -n "$ac_ct_RANLIB"; then
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13207 $as_echo "$ac_ct_RANLIB" >&6; }
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13210 $as_echo "no" >&6; }
13213 if test "x$ac_ct_RANLIB" = x; then
13216 case $cross_compiling:$ac_tool_warned in
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13220 ac_tool_warned=yes ;;
13222 RANLIB=$ac_ct_RANLIB
13225 RANLIB="$ac_cv_prog_RANLIB"
13230 # Put a plausible default for CC_FOR_BUILD in Makefile.
13231 if test -z "$CC_FOR_BUILD"; then
13232 if test "x$cross_compiling" = "xno"; then
13233 CC_FOR_BUILD='$(CC)'
13239 # Also set EXEEXT_FOR_BUILD.
13240 if test "x$cross_compiling" = "xno"; then
13241 EXEEXT_FOR_BUILD='$(EXEEXT)'
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
13244 $as_echo_n "checking for build system executable suffix... " >&6; }
13245 if ${bfd_cv_build_exeext+:} false; then :
13246 $as_echo_n "(cached) " >&6
13249 echo 'int main () { return 0; }' > conftest.c
13250 bfd_cv_build_exeext=
13251 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13252 for file in conftest.*; do
13254 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13255 *) bfd_cv_build_exeext=`echo $file |
sed -e s
/conftest
//` ;;
13259 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
13262 $as_echo "$bfd_cv_build_exeext" >&6; }
13263 EXEEXT_FOR_BUILD=""
13264 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13268 DEMANGLER_NAME=c++filt
13270 *-*-go32* | *-*-msdos*)
13271 DEMANGLER_NAME=cxxfilt
13275 # The cast to long int works around a bug in the HP C Compiler
13276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13277 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
13278 # This bug is HP SR number 8606223364.
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13280 $as_echo_n "checking size of long... " >&6; }
13281 if ${ac_cv_sizeof_long+:} false; then :
13282 $as_echo_n "(cached) " >&6
13284 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13287 if test "$ac_cv_type_long" = yes; then
13288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13289 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
13290 as_fn_error 77 "cannot compute sizeof (long)
13291 See \`config.log
' for more details" "$LINENO" 5; }
13293 ac_cv_sizeof_long=0
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13299 $as_echo "$ac_cv_sizeof_long" >&6; }
13303 cat >>confdefs.h <<_ACEOF
13304 #define SIZEOF_LONG $ac_cv_sizeof_long
13308 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13309 if test "x$ac_cv_type_long_long" = xyes; then :
13311 cat >>confdefs.h <<_ACEOF
13312 #define HAVE_LONG_LONG 1
13315 # The cast to long int works around a bug in the HP C Compiler
13316 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13317 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13318 # This bug is HP SR number 8606223364.
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13320 $as_echo_n "checking size of long long... " >&6; }
13321 if ${ac_cv_sizeof_long_long+:} false
; then :
13322 $as_echo_n "(cached) " >&6
13324 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
13327 if test "$ac_cv_type_long_long" = yes; then
13328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13330 as_fn_error
77 "cannot compute sizeof (long long)
13331 See \`config.log' for more details" "$LINENO" 5; }
13333 ac_cv_sizeof_long_long
=0
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13339 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13343 cat >>confdefs.h
<<_ACEOF
13344 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13351 for ac_header
in string.h
strings.h stdlib.h unistd.h fcntl.h sys
/file.h limits.h locale.h sys
/param.h wchar.h
13353 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13354 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13355 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13356 cat >>confdefs.h
<<_ACEOF
13357 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13365 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13366 if ${ac_cv_header_sys_wait_h+:} false
; then :
13367 $as_echo_n "(cached) " >&6
13369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13370 /* end confdefs.h. */
13371 #include <sys/types.h>
13372 #include <sys/wait.h>
13373 #ifndef WEXITSTATUS
13374 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13377 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13385 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13390 if ac_fn_c_try_compile
"$LINENO"; then :
13391 ac_cv_header_sys_wait_h
=yes
13393 ac_cv_header_sys_wait_h
=no
13395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13398 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13399 if test $ac_cv_header_sys_wait_h = yes; then
13401 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13406 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13407 if ${gcc_cv_header_string+:} false
; then :
13408 $as_echo_n "(cached) " >&6
13410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13412 #include <string.h>
13413 #include <strings.h>
13422 if ac_fn_c_try_compile
"$LINENO"; then :
13423 gcc_cv_header_string
=yes
13425 gcc_cv_header_string
=no
13427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13430 $as_echo "$gcc_cv_header_string" >&6; }
13431 if test $gcc_cv_header_string = yes; then
13433 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13437 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13438 if test "x$ac_cv_type_size_t" = xyes
; then :
13442 cat >>confdefs.h
<<_ACEOF
13443 #define size_t unsigned int
13448 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13449 # for constant arguments. Useless!
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13451 $as_echo_n "checking for working alloca.h... " >&6; }
13452 if ${ac_cv_working_alloca_h+:} false
; then :
13453 $as_echo_n "(cached) " >&6
13455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13456 /* end confdefs.h. */
13457 #include <alloca.h>
13461 char *p = (char *) alloca (2 * sizeof (int));
13467 if ac_fn_c_try_link
"$LINENO"; then :
13468 ac_cv_working_alloca_h
=yes
13470 ac_cv_working_alloca_h
=no
13472 rm -f core conftest.err conftest.
$ac_objext \
13473 conftest
$ac_exeext conftest.
$ac_ext
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13476 $as_echo "$ac_cv_working_alloca_h" >&6; }
13477 if test $ac_cv_working_alloca_h = yes; then
13479 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13484 $as_echo_n "checking for alloca... " >&6; }
13485 if ${ac_cv_func_alloca_works+:} false
; then :
13486 $as_echo_n "(cached) " >&6
13488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13489 /* end confdefs.h. */
13491 # define alloca __builtin_alloca
13494 # include <malloc.h>
13495 # define alloca _alloca
13497 # ifdef HAVE_ALLOCA_H
13498 # include <alloca.h>
13503 # ifndef alloca /* predefined by HP cc +Olibcalls */
13504 void *alloca (size_t);
13514 char *p = (char *) alloca (1);
13520 if ac_fn_c_try_link
"$LINENO"; then :
13521 ac_cv_func_alloca_works
=yes
13523 ac_cv_func_alloca_works
=no
13525 rm -f core conftest.err conftest.
$ac_objext \
13526 conftest
$ac_exeext conftest.
$ac_ext
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13529 $as_echo "$ac_cv_func_alloca_works" >&6; }
13531 if test $ac_cv_func_alloca_works = yes; then
13533 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13536 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13537 # that cause trouble. Some versions do not even contain alloca or
13538 # contain a buggy version. If you still want to use their alloca,
13539 # use ar to extract alloca.o from them instead of compiling alloca.c.
13541 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13543 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13547 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13548 if ${ac_cv_os_cray+:} false
; then :
13549 $as_echo_n "(cached) " >&6
13551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13553 #if defined CRAY && ! defined CRAY2
13560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13561 $EGREP "webecray" >/dev
/null
2>&1; then :
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13570 $as_echo "$ac_cv_os_cray" >&6; }
13571 if test $ac_cv_os_cray = yes; then
13572 for ac_func
in _getb67 GETB67 getb67
; do
13573 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13574 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13575 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13577 cat >>confdefs.h
<<_ACEOF
13578 #define CRAY_STACKSEG_END $ac_func
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13588 $as_echo_n "checking stack direction for C alloca... " >&6; }
13589 if ${ac_cv_c_stack_direction+:} false
; then :
13590 $as_echo_n "(cached) " >&6
13592 if test "$cross_compiling" = yes; then :
13593 ac_cv_c_stack_direction
=0
13595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13596 /* end confdefs.h. */
13597 $ac_includes_default
13599 find_stack_direction (int *addr, int depth)
13601 int dir, dummy = 0;
13604 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13605 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13606 return dir + dummy;
13610 main (int argc, char **argv)
13612 return find_stack_direction (0, argc + !argv + 20) < 0;
13615 if ac_fn_c_try_run
"$LINENO"; then :
13616 ac_cv_c_stack_direction
=1
13618 ac_cv_c_stack_direction
=-1
13620 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13621 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13626 $as_echo "$ac_cv_c_stack_direction" >&6; }
13627 cat >>confdefs.h
<<_ACEOF
13628 #define STACK_DIRECTION $ac_cv_c_stack_direction
13637 for ac_header
in $ac_header_list
13639 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13640 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13642 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13643 cat >>confdefs.h
<<_ACEOF
13644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13658 for ac_func
in getpagesize
13660 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13661 if test "x$ac_cv_func_getpagesize" = xyes
; then :
13662 cat >>confdefs.h
<<_ACEOF
13663 #define HAVE_GETPAGESIZE 1
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13670 $as_echo_n "checking for working mmap... " >&6; }
13671 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
13672 $as_echo_n "(cached) " >&6
13674 if test "$cross_compiling" = yes; then :
13675 ac_cv_func_mmap_fixed_mapped
=no
13677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13678 /* end confdefs.h. */
13679 $ac_includes_default
13680 /* malloc might have been renamed as rpl_malloc. */
13683 /* Thanks to Mike Haertel and Jim Avera for this test.
13684 Here is a matrix of mmap possibilities:
13685 mmap private not fixed
13686 mmap private fixed at somewhere currently unmapped
13687 mmap private fixed at somewhere already mapped
13688 mmap shared not fixed
13689 mmap shared fixed at somewhere currently unmapped
13690 mmap shared fixed at somewhere already mapped
13691 For private mappings, we should verify that changes cannot be read()
13692 back from the file, nor mmap's back from the file at a different
13693 address. (There have been systems where private was not correctly
13694 implemented like the infamous i386 svr4.0, and systems where the
13695 VM page cache was not coherent with the file system buffer cache
13696 like early versions of FreeBSD and possibly contemporary NetBSD.)
13697 For shared mappings, we should conversely verify that changes get
13698 propagated back to all the places they're supposed to be.
13700 Grep wants private fixed already mapped.
13701 The main things grep needs to know about mmap are:
13702 * does it exist and is it safe to write into the mmap'd area
13703 * how to use it (BSD variants) */
13706 #include <sys/mman.h>
13708 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13712 /* This mess was copied from the GNU getpagesize.h. */
13713 #ifndef HAVE_GETPAGESIZE
13714 # ifdef _SC_PAGESIZE
13715 # define getpagesize() sysconf(_SC_PAGESIZE)
13716 # else /* no _SC_PAGESIZE */
13717 # ifdef HAVE_SYS_PARAM_H
13718 # include <sys/param.h>
13719 # ifdef EXEC_PAGESIZE
13720 # define getpagesize() EXEC_PAGESIZE
13721 # else /* no EXEC_PAGESIZE */
13723 # define getpagesize() NBPG * CLSIZE
13726 # endif /* no CLSIZE */
13727 # else /* no NBPG */
13729 # define getpagesize() NBPC
13730 # else /* no NBPC */
13732 # define getpagesize() PAGESIZE
13733 # endif /* PAGESIZE */
13734 # endif /* no NBPC */
13735 # endif /* no NBPG */
13736 # endif /* no EXEC_PAGESIZE */
13737 # else /* no HAVE_SYS_PARAM_H */
13738 # define getpagesize() 8192 /* punt totally */
13739 # endif /* no HAVE_SYS_PARAM_H */
13740 # endif /* no _SC_PAGESIZE */
13742 #endif /* no HAVE_GETPAGESIZE */
13747 char *data, *data2, *data3;
13748 const char *cdata2;
13752 pagesize = getpagesize ();
13754 /* First, make a file with some known garbage in it. */
13755 data = (char *) malloc (pagesize);
13758 for (i = 0; i < pagesize; ++i)
13759 *(data + i) = rand ();
13761 fd = creat ("conftest.mmap", 0600);
13764 if (write (fd, data, pagesize) != pagesize)
13768 /* Next, check that the tail of a page is zero-filled. File must have
13769 non-zero length, otherwise we risk SIGBUS for entire page. */
13770 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13774 if (write (fd2, cdata2, 1) != 1)
13776 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13777 if (data2 == MAP_FAILED)
13779 for (i = 0; i < pagesize; ++i)
13783 if (munmap (data2, pagesize))
13786 /* Next, try to mmap the file at a fixed address which already has
13787 something else allocated at it. If we can, also make sure that
13788 we see the same garbage. */
13789 fd = open ("conftest.mmap", O_RDWR);
13792 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13793 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13795 for (i = 0; i < pagesize; ++i)
13796 if (*(data + i) != *(data2 + i))
13799 /* Finally, make sure that changes to the mapped area do not
13800 percolate back to the file as seen by read(). (This is a bug on
13801 some variants of i386 svr4.0.) */
13802 for (i = 0; i < pagesize; ++i)
13803 *(data2 + i) = *(data2 + i) + 1;
13804 data3 = (char *) malloc (pagesize);
13807 if (read (fd, data3, pagesize) != pagesize)
13809 for (i = 0; i < pagesize; ++i)
13810 if (*(data + i) != *(data3 + i))
13816 if ac_fn_c_try_run
"$LINENO"; then :
13817 ac_cv_func_mmap_fixed_mapped
=yes
13819 ac_cv_func_mmap_fixed_mapped
=no
13821 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13822 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13827 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13828 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13830 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13833 rm -f conftest.mmap conftest.txt
13835 for ac_func
in sbrk utimes setmode getc_unlocked strcoll setlocale
13837 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13838 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13839 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13840 cat >>confdefs.h
<<_ACEOF
13841 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13847 ac_fn_c_check_func
"$LINENO" "mkstemp" "ac_cv_func_mkstemp"
13848 if test "x$ac_cv_func_mkstemp" = xyes
; then :
13850 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
13854 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
13855 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
13857 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13862 $as_echo_n "checking for mbstate_t... " >&6; }
13863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13864 /* end confdefs.h. */
13869 mbstate_t teststate;
13874 if ac_fn_c_try_compile
"$LINENO"; then :
13879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
13881 $as_echo "$have_mbstate_t" >&6; }
13882 if test x
"$have_mbstate_t" = xyes
; then
13884 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13888 # Some systems have frexp only in -lm, not in -lc.
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
13890 $as_echo_n "checking for library containing frexp... " >&6; }
13891 if ${ac_cv_search_frexp+:} false
; then :
13892 $as_echo_n "(cached) " >&6
13894 ac_func_search_save_LIBS
=$LIBS
13895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13896 /* end confdefs.h. */
13898 /* Override any GCC internal prototype to avoid an error.
13899 Use char because int might match the return type of a GCC
13900 builtin and then its argument prototype would still apply. */
13913 for ac_lib
in '' m
; do
13914 if test -z "$ac_lib"; then
13915 ac_res
="none required"
13918 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13920 if ac_fn_c_try_link
"$LINENO"; then :
13921 ac_cv_search_frexp
=$ac_res
13923 rm -f core conftest.err conftest.
$ac_objext \
13925 if ${ac_cv_search_frexp+:} false
; then :
13929 if ${ac_cv_search_frexp+:} false
; then :
13932 ac_cv_search_frexp
=no
13934 rm conftest.
$ac_ext
13935 LIBS
=$ac_func_search_save_LIBS
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
13938 $as_echo "$ac_cv_search_frexp" >&6; }
13939 ac_res
=$ac_cv_search_frexp
13940 if test "$ac_res" != no
; then :
13941 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13948 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13949 if ${am_cv_val_LC_MESSAGES+:} false
; then :
13950 $as_echo_n "(cached) " >&6
13952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13953 /* end confdefs.h. */
13954 #include <locale.h>
13963 if ac_fn_c_try_link
"$LINENO"; then :
13964 am_cv_val_LC_MESSAGES
=yes
13966 am_cv_val_LC_MESSAGES
=no
13968 rm -f core conftest.err conftest.
$ac_objext \
13969 conftest
$ac_exeext conftest.
$ac_ext
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13972 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13973 if test $am_cv_val_LC_MESSAGES = yes; then
13975 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in time.h" >&5
13981 $as_echo_n "checking for time_t in time.h... " >&6; }
13982 if ${bu_cv_decl_time_t_time_h+:} false
; then :
13983 $as_echo_n "(cached) " >&6
13985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13986 /* end confdefs.h. */
13996 if ac_fn_c_try_compile
"$LINENO"; then :
13997 bu_cv_decl_time_t_time_h
=yes
13999 bu_cv_decl_time_t_time_h
=no
14001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_time_h" >&5
14005 $as_echo "$bu_cv_decl_time_t_time_h" >&6; }
14006 if test $bu_cv_decl_time_t_time_h = yes; then
14008 $as_echo "#define HAVE_TIME_T_IN_TIME_H 1" >>confdefs.h
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in sys/types.h" >&5
14013 $as_echo_n "checking for time_t in sys/types.h... " >&6; }
14014 if ${bu_cv_decl_time_t_types_h+:} false
; then :
14015 $as_echo_n "(cached) " >&6
14017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14018 /* end confdefs.h. */
14019 #include <sys/types.h>
14028 if ac_fn_c_try_compile
"$LINENO"; then :
14029 bu_cv_decl_time_t_types_h
=yes
14031 bu_cv_decl_time_t_types_h
=no
14033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_types_h" >&5
14037 $as_echo "$bu_cv_decl_time_t_types_h" >&6; }
14038 if test $bu_cv_decl_time_t_types_h = yes; then
14040 $as_echo "#define HAVE_TIME_T_IN_TYPES_H 1" >>confdefs.h
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
14045 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
14046 if ${bu_cv_decl_getopt_unistd_h+:} false
; then :
14047 $as_echo_n "(cached) " >&6
14049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14050 /* end confdefs.h. */
14051 #include <unistd.h>
14055 extern int getopt (int, char *const*, const char *);
14060 if ac_fn_c_try_compile
"$LINENO"; then :
14061 bu_cv_decl_getopt_unistd_h
=yes
14063 bu_cv_decl_getopt_unistd_h
=no
14065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
14069 $as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
14070 if test $bu_cv_decl_getopt_unistd_h = yes; then
14072 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
14076 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
14079 $as_echo_n "checking for utime.h... " >&6; }
14080 if ${bu_cv_header_utime_h+:} false
; then :
14081 $as_echo_n "(cached) " >&6
14083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14084 /* end confdefs.h. */
14085 #include <sys/types.h>
14098 if ac_fn_c_try_compile
"$LINENO"; then :
14099 bu_cv_header_utime_h
=yes
14101 bu_cv_header_utime_h
=no
14103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
14107 $as_echo "$bu_cv_header_utime_h" >&6; }
14108 if test $bu_cv_header_utime_h = yes; then
14110 $as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
14114 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14115 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
14121 cat >>confdefs.h
<<_ACEOF
14122 #define HAVE_DECL_ASPRINTF $ac_have_decl
14124 ac_fn_c_check_decl
"$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
14125 if test "x$ac_cv_have_decl_environ" = xyes
; then :
14131 cat >>confdefs.h
<<_ACEOF
14132 #define HAVE_DECL_ENVIRON $ac_have_decl
14134 ac_fn_c_check_decl
"$LINENO" "fprintf" "ac_cv_have_decl_fprintf" "$ac_includes_default"
14135 if test "x$ac_cv_have_decl_fprintf" = xyes
; then :
14141 cat >>confdefs.h
<<_ACEOF
14142 #define HAVE_DECL_FPRINTF $ac_have_decl
14144 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
14145 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
14151 cat >>confdefs.h
<<_ACEOF
14152 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
14154 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14155 if test "x$ac_cv_have_decl_getenv" = xyes
; then :
14161 cat >>confdefs.h
<<_ACEOF
14162 #define HAVE_DECL_GETENV $ac_have_decl
14164 ac_fn_c_check_decl
"$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
14165 if test "x$ac_cv_have_decl_sbrk" = xyes
; then :
14171 cat >>confdefs.h
<<_ACEOF
14172 #define HAVE_DECL_SBRK $ac_have_decl
14174 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
14175 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
14181 cat >>confdefs.h
<<_ACEOF
14182 #define HAVE_DECL_SNPRINTF $ac_have_decl
14184 ac_fn_c_check_decl
"$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14185 if test "x$ac_cv_have_decl_stpcpy" = xyes
; then :
14191 cat >>confdefs.h
<<_ACEOF
14192 #define HAVE_DECL_STPCPY $ac_have_decl
14194 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
14195 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
14201 cat >>confdefs.h
<<_ACEOF
14202 #define HAVE_DECL_STRNLEN $ac_have_decl
14204 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
14205 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
14211 cat >>confdefs.h
<<_ACEOF
14212 #define HAVE_DECL_STRSTR $ac_have_decl
14214 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14215 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
14221 cat >>confdefs.h
<<_ACEOF
14222 #define HAVE_DECL_VSNPRINTF $ac_have_decl
14226 # Link in zlib if we can. This allows us to read compressed debug
14227 # sections. This is used only by readelf.c (objdump uses bfd for
14228 # reading compressed sections).
14230 # Use the system's zlib library.
14231 zlibdir
="-L\$(top_builddir)/../zlib"
14232 zlibinc
="-I\$(top_srcdir)/../zlib"
14234 # Check whether --with-system-zlib was given.
14235 if test "${with_system_zlib+set}" = set; then :
14236 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
14249 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
14251 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
14255 # target-specific stuff:
14257 # Canonicalize the secondary target names.
14258 if test -n "$enable_targets"; then
14259 for targ
in `echo $enable_targets | sed 's/,/ /g'`
14261 result
=`$ac_config_sub $targ 2>/dev/null`
14262 if test -n "$result"; then
14263 canon_targets
="$canon_targets $result"
14265 # Allow targets that config.sub doesn't recognize, like "all".
14266 canon_targets
="$canon_targets $targ"
14271 ac_fn_c_check_header_mongrel
"$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
14272 if test "x$ac_cv_header_iconv_h" = xyes
; then :
14278 if test "X$prefix" = "XNONE"; then
14279 acl_final_prefix
="$ac_default_prefix"
14281 acl_final_prefix
="$prefix"
14283 if test "X$exec_prefix" = "XNONE"; then
14284 acl_final_exec_prefix
='${prefix}'
14286 acl_final_exec_prefix
="$exec_prefix"
14288 acl_save_prefix
="$prefix"
14289 prefix
="$acl_final_prefix"
14290 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
14291 prefix
="$acl_save_prefix"
14294 # Check whether --with-gnu-ld was given.
14295 if test "${with_gnu_ld+set}" = set; then :
14296 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
14301 # Prepare PATH_SEPARATOR.
14302 # The user is always right.
14303 if test "${PATH_SEPARATOR+set}" != set; then
14304 echo "#! /bin/sh" >conf$$.sh
14305 echo "exit 0" >>conf$$.sh
14307 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
14315 if test "$GCC" = yes; then
14316 # Check if gcc -print-prog-name=ld gives a path.
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14318 $as_echo_n "checking for ld used by GCC... " >&6; }
14321 # gcc leaves a trailing carriage return which upsets mingw
14322 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14324 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
14327 # Accept absolute paths.
14328 [\\/]* |
[A-Za-z
]:[\\/]*)
14329 re_direlt
='/[^/][^/]*/\.\./'
14330 # Canonicalize the path of ld
14331 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
14332 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
14333 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
14335 test -z "$LD" && LD
="$ac_prog"
14338 # If it fails, then pretend we aren't using GCC.
14342 # If it is relative, then search for the first ld in PATH.
14343 with_gnu_ld
=unknown
14346 elif test "$with_gnu_ld" = yes; then
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14348 $as_echo_n "checking for GNU ld... " >&6; }
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14351 $as_echo_n "checking for non-GNU ld... " >&6; }
14353 if ${acl_cv_path_LD+:} false
; then :
14354 $as_echo_n "(cached) " >&6
14356 if test -z "$LD"; then
14357 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14358 for ac_dir
in $PATH; do
14359 test -z "$ac_dir" && ac_dir
=.
14360 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
14361 acl_cv_path_LD
="$ac_dir/$ac_prog"
14362 # Check to see if the program is GNU ld. I'd rather use --version,
14363 # but apparently some GNU ld's only accept -v.
14364 # Break only if it was the GNU/non-GNU ld that we prefer.
14365 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
14366 test "$with_gnu_ld" != no
&& break
14368 test "$with_gnu_ld" != yes && break
14374 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
14378 LD
="$acl_cv_path_LD"
14379 if test -n "$LD"; then
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14381 $as_echo "$LD" >&6; }
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14384 $as_echo "no" >&6; }
14386 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14388 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14389 if ${acl_cv_prog_gnu_ld+:} false
; then :
14390 $as_echo_n "(cached) " >&6
14392 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14393 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
14394 acl_cv_prog_gnu_ld
=yes
14396 acl_cv_prog_gnu_ld
=no
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14400 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14401 with_gnu_ld
=$acl_cv_prog_gnu_ld
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14406 $as_echo_n "checking for shared library run path origin... " >&6; }
14407 if ${acl_cv_rpath+:} false
; then :
14408 $as_echo_n "(cached) " >&6
14411 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
14412 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14414 rm -f .
/conftest.sh
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14419 $as_echo "$acl_cv_rpath" >&6; }
14421 libext
="$acl_cv_libext"
14422 shlibext
="$acl_cv_shlibext"
14423 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
14424 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
14425 hardcode_direct
="$acl_cv_hardcode_direct"
14426 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
14427 # Check whether --enable-rpath was given.
14428 if test "${enable_rpath+set}" = set; then :
14429 enableval
=$enable_rpath; :
14443 acl_save_prefix
="$prefix"
14444 prefix
="$acl_final_prefix"
14445 acl_save_exec_prefix
="$exec_prefix"
14446 exec_prefix
="$acl_final_exec_prefix"
14448 eval additional_includedir
=\"$includedir\"
14449 eval additional_libdir
=\"$libdir\"
14451 exec_prefix
="$acl_save_exec_prefix"
14452 prefix
="$acl_save_prefix"
14455 # Check whether --with-libiconv-prefix was given.
14456 if test "${with_libiconv_prefix+set}" = set; then :
14457 withval
=$with_libiconv_prefix;
14458 if test "X$withval" = "Xno"; then
14461 if test "X$withval" = "X"; then
14463 acl_save_prefix
="$prefix"
14464 prefix
="$acl_final_prefix"
14465 acl_save_exec_prefix
="$exec_prefix"
14466 exec_prefix
="$acl_final_exec_prefix"
14468 eval additional_includedir
=\"$includedir\"
14469 eval additional_libdir
=\"$libdir\"
14471 exec_prefix
="$acl_save_exec_prefix"
14472 prefix
="$acl_save_prefix"
14475 additional_includedir
="$withval/include"
14476 additional_libdir
="$withval/lib"
14487 names_already_handled
=
14488 names_next_round
='iconv '
14489 while test -n "$names_next_round"; do
14490 names_this_round
="$names_next_round"
14492 for name
in $names_this_round; do
14494 for n
in $names_already_handled; do
14495 if test "$n" = "$name"; then
14496 already_handled
=yes
14500 if test -z "$already_handled"; then
14501 names_already_handled
="$names_already_handled $name"
14502 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14503 eval value
=\"\
$HAVE_LIB$uppername\"
14504 if test -n "$value"; then
14505 if test "$value" = yes; then
14506 eval value
=\"\
$LIB$uppername\"
14507 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
14508 eval value
=\"\
$LTLIB$uppername\"
14509 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
14518 if test $use_additional = yes; then
14519 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14520 found_dir
="$additional_libdir"
14521 found_so
="$additional_libdir/lib$name.$shlibext"
14522 if test -f "$additional_libdir/lib$name.la"; then
14523 found_la
="$additional_libdir/lib$name.la"
14526 if test -f "$additional_libdir/lib$name.$libext"; then
14527 found_dir
="$additional_libdir"
14528 found_a
="$additional_libdir/lib$name.$libext"
14529 if test -f "$additional_libdir/lib$name.la"; then
14530 found_la
="$additional_libdir/lib$name.la"
14535 if test "X$found_dir" = "X"; then
14536 for x
in $LDFLAGS $LTLIBICONV; do
14538 acl_save_prefix
="$prefix"
14539 prefix
="$acl_final_prefix"
14540 acl_save_exec_prefix
="$exec_prefix"
14541 exec_prefix
="$acl_final_exec_prefix"
14543 exec_prefix
="$acl_save_exec_prefix"
14544 prefix
="$acl_save_prefix"
14548 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14549 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14551 found_so
="$dir/lib$name.$shlibext"
14552 if test -f "$dir/lib$name.la"; then
14553 found_la
="$dir/lib$name.la"
14556 if test -f "$dir/lib$name.$libext"; then
14558 found_a
="$dir/lib$name.$libext"
14559 if test -f "$dir/lib$name.la"; then
14560 found_la
="$dir/lib$name.la"
14566 if test "X$found_dir" != "X"; then
14571 if test "X$found_dir" != "X"; then
14572 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14573 if test "X$found_so" != "X"; then
14574 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14575 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
14578 for x
in $ltrpathdirs; do
14579 if test "X$x" = "X$found_dir"; then
14584 if test -z "$haveit"; then
14585 ltrpathdirs
="$ltrpathdirs $found_dir"
14587 if test "$hardcode_direct" = yes; then
14588 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
14590 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14591 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
14593 for x
in $rpathdirs; do
14594 if test "X$x" = "X$found_dir"; then
14599 if test -z "$haveit"; then
14600 rpathdirs
="$rpathdirs $found_dir"
14604 for x
in $LDFLAGS $LIBICONV; do
14606 acl_save_prefix
="$prefix"
14607 prefix
="$acl_final_prefix"
14608 acl_save_exec_prefix
="$exec_prefix"
14609 exec_prefix
="$acl_final_exec_prefix"
14611 exec_prefix
="$acl_save_exec_prefix"
14612 prefix
="$acl_save_prefix"
14614 if test "X$x" = "X-L$found_dir"; then
14619 if test -z "$haveit"; then
14620 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14622 if test "$hardcode_minus_L" != no
; then
14623 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
14625 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
14631 if test "X$found_a" != "X"; then
14632 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
14634 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14637 additional_includedir
=
14638 case "$found_dir" in
14640 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14641 additional_includedir
="$basedir/include"
14644 if test "X$additional_includedir" != "X"; then
14645 if test "X$additional_includedir" != "X/usr/include"; then
14647 if test "X$additional_includedir" = "X/usr/local/include"; then
14648 if test -n "$GCC"; then
14650 linux
*) haveit
=yes;;
14654 if test -z "$haveit"; then
14655 for x
in $CPPFLAGS $INCICONV; do
14657 acl_save_prefix
="$prefix"
14658 prefix
="$acl_final_prefix"
14659 acl_save_exec_prefix
="$exec_prefix"
14660 exec_prefix
="$acl_final_exec_prefix"
14662 exec_prefix
="$acl_save_exec_prefix"
14663 prefix
="$acl_save_prefix"
14665 if test "X$x" = "X-I$additional_includedir"; then
14670 if test -z "$haveit"; then
14671 if test -d "$additional_includedir"; then
14672 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14678 if test -n "$found_la"; then
14679 save_libdir
="$libdir"
14680 case "$found_la" in
14681 */* |
*\\*) .
"$found_la" ;;
14682 *) .
"./$found_la" ;;
14684 libdir
="$save_libdir"
14685 for dep
in $dependency_libs; do
14688 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14689 if test "X$additional_libdir" != "X/usr/lib"; then
14691 if test "X$additional_libdir" = "X/usr/local/lib"; then
14692 if test -n "$GCC"; then
14694 linux
*) haveit
=yes;;
14698 if test -z "$haveit"; then
14700 for x
in $LDFLAGS $LIBICONV; do
14702 acl_save_prefix
="$prefix"
14703 prefix
="$acl_final_prefix"
14704 acl_save_exec_prefix
="$exec_prefix"
14705 exec_prefix
="$acl_final_exec_prefix"
14707 exec_prefix
="$acl_save_exec_prefix"
14708 prefix
="$acl_save_prefix"
14710 if test "X$x" = "X-L$additional_libdir"; then
14715 if test -z "$haveit"; then
14716 if test -d "$additional_libdir"; then
14717 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14721 for x
in $LDFLAGS $LTLIBICONV; do
14723 acl_save_prefix
="$prefix"
14724 prefix
="$acl_final_prefix"
14725 acl_save_exec_prefix
="$exec_prefix"
14726 exec_prefix
="$acl_final_exec_prefix"
14728 exec_prefix
="$acl_save_exec_prefix"
14729 prefix
="$acl_save_prefix"
14731 if test "X$x" = "X-L$additional_libdir"; then
14736 if test -z "$haveit"; then
14737 if test -d "$additional_libdir"; then
14738 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14745 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14746 if test "$enable_rpath" != no
; then
14748 for x
in $rpathdirs; do
14749 if test "X$x" = "X$dir"; then
14754 if test -z "$haveit"; then
14755 rpathdirs
="$rpathdirs $dir"
14758 for x
in $ltrpathdirs; do
14759 if test "X$x" = "X$dir"; then
14764 if test -z "$haveit"; then
14765 ltrpathdirs
="$ltrpathdirs $dir"
14770 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14773 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14776 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
14777 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14783 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
14784 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14790 if test "X$rpathdirs" != "X"; then
14791 if test -n "$hardcode_libdir_separator"; then
14793 for found_dir
in $rpathdirs; do
14794 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14796 acl_save_libdir
="$libdir"
14798 eval flag
=\"$hardcode_libdir_flag_spec\"
14799 libdir
="$acl_save_libdir"
14800 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
14802 for found_dir
in $rpathdirs; do
14803 acl_save_libdir
="$libdir"
14804 libdir
="$found_dir"
14805 eval flag
=\"$hardcode_libdir_flag_spec\"
14806 libdir
="$acl_save_libdir"
14807 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
14811 if test "X$ltrpathdirs" != "X"; then
14812 for found_dir
in $ltrpathdirs; do
14813 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14824 $as_echo_n "checking for iconv... " >&6; }
14825 if ${am_cv_func_iconv+:} false
; then :
14826 $as_echo_n "(cached) " >&6
14829 am_cv_func_iconv
="no, consider installing GNU libiconv"
14831 am_save_CPPFLAGS
="$CPPFLAGS"
14832 CPPFLAGS
="$CPPFLAGS $INCICONV"
14833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14834 /* end confdefs.h. */
14835 #include <stdlib.h>
14840 iconv_t cd = iconv_open("","");
14841 iconv(cd,NULL,NULL,NULL,NULL);
14847 if ac_fn_c_try_link
"$LINENO"; then :
14848 am_cv_func_iconv
=yes
14850 rm -f core conftest.err conftest.
$ac_objext \
14851 conftest
$ac_exeext conftest.
$ac_ext
14852 CPPFLAGS
="$am_save_CPPFLAGS"
14854 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
14855 for _libs
in .libs _libs
; do
14856 am_save_CPPFLAGS
="$CPPFLAGS"
14857 am_save_LIBS
="$LIBS"
14858 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
14859 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
14860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14861 /* end confdefs.h. */
14862 #include <stdlib.h>
14867 iconv_t cd = iconv_open("","");
14868 iconv(cd,NULL,NULL,NULL,NULL);
14874 if ac_fn_c_try_link
"$LINENO"; then :
14875 INCICONV
="-I../libiconv/include"
14876 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
14877 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
14878 am_cv_lib_iconv
=yes
14879 am_cv_func_iconv
=yes
14881 rm -f core conftest.err conftest.
$ac_objext \
14882 conftest
$ac_exeext conftest.
$ac_ext
14883 CPPFLAGS
="$am_save_CPPFLAGS"
14884 LIBS
="$am_save_LIBS"
14885 if test "$am_cv_func_iconv" = "yes"; then
14891 if test "$am_cv_func_iconv" != yes; then
14892 am_save_CPPFLAGS
="$CPPFLAGS"
14893 am_save_LIBS
="$LIBS"
14894 CPPFLAGS
="$CPPFLAGS $INCICONV"
14895 LIBS
="$LIBS $LIBICONV"
14896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14897 /* end confdefs.h. */
14898 #include <stdlib.h>
14903 iconv_t cd = iconv_open("","");
14904 iconv(cd,NULL,NULL,NULL,NULL);
14910 if ac_fn_c_try_link
"$LINENO"; then :
14911 am_cv_lib_iconv
=yes
14912 am_cv_func_iconv
=yes
14914 rm -f core conftest.err conftest.
$ac_objext \
14915 conftest
$ac_exeext conftest.
$ac_ext
14916 CPPFLAGS
="$am_save_CPPFLAGS"
14917 LIBS
="$am_save_LIBS"
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14922 $as_echo "$am_cv_func_iconv" >&6; }
14923 if test "$am_cv_func_iconv" = yes; then
14925 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14928 if test "$am_cv_lib_iconv" = yes; then
14930 for element
in $INCICONV; do
14932 for x
in $CPPFLAGS; do
14934 acl_save_prefix
="$prefix"
14935 prefix
="$acl_final_prefix"
14936 acl_save_exec_prefix
="$exec_prefix"
14937 exec_prefix
="$acl_final_exec_prefix"
14939 exec_prefix
="$acl_save_exec_prefix"
14940 prefix
="$acl_save_prefix"
14942 if test "X$x" = "X$element"; then
14947 if test -z "$haveit"; then
14948 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14953 $as_echo_n "checking how to link with libiconv... " >&6; }
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14955 $as_echo "$LIBICONV" >&6; }
14963 if test "$am_cv_func_iconv" = yes; then
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14965 $as_echo_n "checking for iconv declaration... " >&6; }
14966 if ${am_cv_proto_iconv+:} false
; then :
14967 $as_echo_n "(cached) " >&6
14970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14971 /* end confdefs.h. */
14973 #include <stdlib.h>
14979 #if defined(__STDC__) || defined(__cplusplus)
14980 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14993 if ac_fn_c_try_compile
"$LINENO"; then :
14994 am_cv_proto_iconv_arg1
=""
14996 am_cv_proto_iconv_arg1
="const"
14998 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14999 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
15002 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
15004 }$am_cv_proto_iconv" >&5
15006 }$am_cv_proto_iconv" >&6; }
15008 cat >>confdefs.h
<<_ACEOF
15009 #define ICONV_CONST $am_cv_proto_iconv_arg1
15024 BUILD_INSTALL_MISC
=
15026 OBJDUMP_PRIVATE_VECTORS
=
15027 OBJDUMP_PRIVATE_OFILES
=
15030 for targ
in $target $canon_targets
15032 if test "x$targ" = "xall"; then
15034 BUILD_SRCONV
='$(SRCONV_PROG)'
15035 BUILD_MISC
="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
15036 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
15037 BUILD_WINDMC
='$(WINDMC_PROG)$(EXEEXT)'
15038 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
15039 if test -z "$DLLTOOL_DEFAULT"; then
15040 DLLTOOL_DEFAULT
="-DDLLTOOL_DEFAULT_I386"
15042 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_I386"
15043 BUILD_DLLWRAP
='$(DLLWRAP_PROG)$(EXEEXT)'
15044 od_vectors
="$od_vectors objdump_private_desc_xcoff"
15047 *-*-hms*) BUILD_SRCONV
='$(SRCONV_PROG)' ;;
15051 arm-wince-pe
* | arm-
*-wince | arm
*-*-cegcc* | arm
*-*-mingw32ce*)
15052 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
15053 if test -z "$DLLTOOL_DEFAULT"; then
15054 DLLTOOL_DEFAULT
="-DDLLTOOL_DEFAULT_ARM_WINCE"
15056 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
15057 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
15058 BUILD_WINDMC
='$(WINDMC_PROG)$(EXEEXT)'
15061 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
15062 if test -z "$DLLTOOL_DEFAULT"; then
15063 DLLTOOL_DEFAULT
="-DDLLTOOL_DEFAULT_ARM"
15065 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM"
15066 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
15067 BUILD_WINDMC
='$(WINDMC_PROG)$(EXEEXT)'
15069 x86_64-
*-mingw* | x86_64-
*-cygwin*)
15070 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
15071 if test -z "$DLLTOOL_DEFAULT"; then
15072 DLLTOOL_DEFAULT
="-DDLLTOOL_DEFAULT_MX86_64"
15074 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
15075 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
15076 BUILD_WINDMC
='$(WINDMC_PROG)$(EXEEXT)'
15077 BUILD_DLLWRAP
='$(DLLWRAP_PROG)$(EXEEXT)'
15079 i
[3-7]86-*-pe* | i
[3-7]86-*-cygwin* | i
[3-7]86-*-mingw32** | i
[3-7]86-*-netbsdpe*)
15080 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
15081 if test -z "$DLLTOOL_DEFAULT"; then
15082 DLLTOOL_DEFAULT
="-DDLLTOOL_DEFAULT_I386"
15084 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_I386"
15085 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
15086 BUILD_WINDMC
='$(WINDMC_PROG)$(EXEEXT)'
15087 BUILD_DLLWRAP
='$(DLLWRAP_PROG)$(EXEEXT)'
15089 i
[3-7]86-*-interix)
15090 BUILD_DLLTOOL
='$(DLLTOOL_PROG)'
15091 if test -z "$DLLTOOL_DEFAULT"; then
15092 DLLTOOL_DEFAULT
="-DDLLTOOL_DEFAULT_I386"
15094 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_I386"
15096 powerpc
*-aix5.
[01])
15098 powerpc
*-aix[5-9].
*)
15099 OBJDUMP_DEFS
="-DAIX_WEAK_SUPPORT"
15101 powerpc
*-*-pe* | powerpc
*-*-cygwin*)
15102 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
15103 if test -z "$DLLTOOL_DEFAULT"; then
15104 DLLTOOL_DEFAULT
="-DDLLTOOL_DEFAULT_PPC"
15106 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_PPC"
15107 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
15108 BUILD_WINDMC
='$(WINDMC_PROG)$(EXEEXT)'
15110 powerpc
*-*-linux* | powerpc
*-*-elf* | powerpc
*-*-eabi*)
15111 case "$BUILD_INSTALL_MISC" in
15113 *) BUILD_INSTALL_MISC
="${BUILD_INSTALL_MISC} embedspu"
15117 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
15118 if test -z "$DLLTOOL_DEFAULT"; then
15119 DLLTOOL_DEFAULT
="-DDLLTOOL_DEFAULT_SH"
15121 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_SH"
15122 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
15123 BUILD_WINDMC
='$(WINDMC_PROG)$(EXEEXT)'
15126 BUILD_MISC
="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
15129 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
15130 if test -z "$DLLTOOL_DEFAULT"; then
15131 DLLTOOL_DEFAULT
="-DDLLTOOL_DEFAULT_MIPS"
15133 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
15134 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
15135 BUILD_WINDMC
='$(WINDMC_PROG)$(EXEEXT)'
15138 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
15139 if test -z "$DLLTOOL_DEFAULT"; then
15140 DLLTOOL_DEFAULT
="-DDLLTOOL_DEFAULT_MCORE"
15142 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
15143 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
15144 BUILD_WINDMC
='$(WINDMC_PROG)$(EXEEXT)'
15147 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
15148 if test -z "$DLLTOOL_DEFAULT"; then
15149 DLLTOOL_DEFAULT
="-DDLLTOOL_DEFAULT_MCORE_ELF"
15151 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
15154 OBJDUMP_DEFS
="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
15158 # Add objdump private vectors.
15161 od_vectors
="$od_vectors objdump_private_desc_elf32_avr"
15163 powerpc
*-*-aix* | rs6000-
*-aix*)
15164 od_vectors
="$od_vectors objdump_private_desc_xcoff"
15167 od_vectors
="$od_vectors objdump_private_desc_mach_o"
15173 # Uniq objdump private vector, build objdump target ofiles.
15176 for i
in $od_vectors ; do
15181 OBJDUMP_PRIVATE_VECTORS
="$OBJDUMP_PRIVATE_VECTORS &$i,"
15183 objdump_private_desc_elf32_avr
)
15184 od_files
="$od_files od-elf32_avr" ;;
15185 objdump_private_desc_xcoff
)
15186 od_files
="$od_files od-xcoff" ;;
15187 objdump_private_desc_mach_o
)
15188 od_files
="$od_files od-macho" ;;
15189 *) as_fn_error $?
"*** unknown private vector $i" "$LINENO" 5 ;;
15195 # Uniq objdump target ofiles
15197 for i
in $od_files ; do
15202 OBJDUMP_PRIVATE_OFILES
="$OBJDUMP_PRIVATE_OFILES $i.$objext"
15207 DLLTOOL_DEFS
="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
15209 if test "${with_windres+set}" = set; then
15210 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
15213 if test "${with_windmc+set}" = set; then
15214 BUILD_WINDMC
='$(WINDMC_PROG)$(EXEEXT)'
15217 OBJDUMP_DEFS
="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
15231 cat >>confdefs.h
<<_ACEOF
15232 #define TARGET "${target}"
15237 .
$srcdir/..
/bfd
/config.bfd
15238 if test "x$targ_underscore" = "xyes"; then
15244 cat >>confdefs.h
<<_ACEOF
15245 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
15251 .
${srcdir}/configure.tgt
15252 EMULATION
=$targ_emul
15253 EMULATION_VECTOR
=$targ_emul_vector
15258 # Required for html and install-html
15264 ac_config_files
="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
15266 cat >confcache
<<\_ACEOF
15267 # This file is a shell script that caches the results of configure
15268 # tests run on this system so they can be shared between configure
15269 # scripts and configure runs, see configure's option --config-cache.
15270 # It is not useful on other systems. If it contains results you don't
15271 # want to keep, you may remove or edit it.
15273 # config.status only pays attention to the cache file if you give it
15274 # the --recheck option to rerun configure.
15276 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15277 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15278 # following values.
15282 # The following way of writing the cache mishandles newlines in values,
15283 # but we know of no workaround that is simple, portable, and efficient.
15284 # So, we kill variables containing newlines.
15285 # Ultrix sh set writes to stderr and can't be redirected directly,
15286 # and sets the high bit in the cache file unless we assign to the vars.
15288 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15289 eval ac_val
=\$
$ac_var
15293 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15294 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15297 _ | IFS | as_nl
) ;; #(
15298 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15299 *) { eval $ac_var=; unset $ac_var;} ;;
15305 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15306 *${as_nl}ac_space
=\
*)
15307 # `set' does not quote correctly, so add quotes: double-quote
15308 # substitution turns \\\\ into \\, and sed turns \\ into \.
15311 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15314 # `set' quotes correctly as required by POSIX, so do not add quotes.
15315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15324 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15326 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15328 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15329 if test -w "$cache_file"; then
15330 if test "x$cache_file" != "x/dev/null"; then
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15332 $as_echo "$as_me: updating cache $cache_file" >&6;}
15333 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15334 cat confcache
>"$cache_file"
15336 case $cache_file in #(
15338 mv -f confcache
"$cache_file"$$
&&
15339 mv -f "$cache_file"$$
"$cache_file" ;; #(
15341 mv -f confcache
"$cache_file" ;;
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15347 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15352 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15353 # Let make expand exec_prefix.
15354 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15356 DEFS
=-DHAVE_CONFIG_H
15361 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15362 # 1. Remove the extension, and $U if already installed.
15363 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15364 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15365 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15366 # will be set to the directory where LIBOBJS objects are built.
15367 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15368 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15370 LIBOBJS
=$ac_libobjs
15372 LTLIBOBJS
=$ac_ltlibobjs
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15376 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15377 if test -n "$am_sleep_pid"; then
15378 # Hide warnings about reused PIDs.
15379 wait $am_sleep_pid 2>/dev
/null
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15382 $as_echo "done" >&6; }
15383 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15384 as_fn_error $?
"conditional \"AMDEP\" was never defined.
15385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15387 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15388 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
15389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15391 if test -n "$EXEEXT"; then
15393 am__EXEEXT_FALSE
='#'
15395 am__EXEEXT_TRUE
='#'
15399 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15400 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
15401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15403 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15404 as_fn_error $?
"conditional \"GENINSRC_NEVER\" was never defined.
15405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15408 : "${CONFIG_STATUS=./config.status}"
15410 ac_clean_files_save
=$ac_clean_files
15411 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15413 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15415 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15417 # Generated by $as_me.
15418 # Run this file to recreate the current configuration.
15419 # Compiler output produced by configure, useful for debugging
15420 # configure, is in config.log if it exists.
15423 ac_cs_recheck=false
15426 SHELL=\${CONFIG_SHELL-$SHELL}
15429 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15430 ## -------------------- ##
15431 ## M4sh Initialization. ##
15432 ## -------------------- ##
15434 # Be more Bourne compatible
15435 DUALCASE
=1; export DUALCASE
# for MKS sh
15436 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15439 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15440 # is contrary to our usage. Disable this feature.
15441 alias -g '${1+"$@"}'='"$@"'
15442 setopt NO_GLOB_SUBST
15444 case `(set -o) 2>/dev/null` in #(
15456 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15457 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15458 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15459 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15460 # Prefer a ksh shell builtin over an external printf program on Solaris,
15461 # but without wasting forks for bash or zsh.
15462 if test -z "$BASH_VERSION$ZSH_VERSION" \
15463 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15464 as_echo='print
-r --'
15465 as_echo_n='print
-rn --'
15466 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15467 as_echo='printf %s
\n'
15468 as_echo_n='printf %s
'
15470 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15471 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15472 as_echo_n='/usr
/ucb
/echo -n'
15474 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15475 as_echo_n_body='eval
15479 expr "X$arg" : "X\\(.*\\)$as_nl";
15480 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15482 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15484 export as_echo_n_body
15485 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15487 export as_echo_body
15488 as_echo='sh
-c $as_echo_body as_echo
'
15491 # The user is always right.
15492 if test "${PATH_SEPARATOR+set}" != set; then
15494 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15495 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15502 # We need space, tab and new line, in precisely that order. Quoting is
15503 # there to prevent editors from complaining about space-tab.
15504 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15505 # splitting by setting IFS to empty value.)
15508 # Find who we are. Look in the path if we contain no directory separator.
15511 *[\\/]* ) as_myself=$0 ;;
15512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15513 for as_dir in $PATH
15516 test -z "$as_dir" && as_dir=.
15517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15523 # We did not find ourselves, most probably we were run as `sh COMMAND'
15524 # in which case we are not to be found in the path.
15525 if test "x$as_myself" = x
; then
15528 if test ! -f "$as_myself"; then
15529 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15533 # Unset variables that we do not need and which cause bugs (e.g. in
15534 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15535 # suppresses any "Segmentation fault" message there. '((' could
15536 # trigger a bug in pdksh 5.2.14.
15537 for as_var
in BASH_ENV ENV MAIL MAILPATH
15538 do eval test x\
${$as_var+set} = xset \
15539 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15552 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15555 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15556 # ----------------------------------------
15557 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15558 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15559 # script with STATUS, using 1 if that was 0.
15562 as_status
=$1; test $as_status -eq 0 && as_status
=1
15564 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15565 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15567 $as_echo "$as_me: error: $2" >&2
15568 as_fn_exit
$as_status
15572 # as_fn_set_status STATUS
15573 # -----------------------
15574 # Set $? to STATUS, without forking.
15575 as_fn_set_status
()
15578 } # as_fn_set_status
15580 # as_fn_exit STATUS
15581 # -----------------
15582 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15586 as_fn_set_status
$1
15592 # Portably unset VAR.
15595 { eval $1=; unset $1;}
15597 as_unset
=as_fn_unset
15598 # as_fn_append VAR VALUE
15599 # ----------------------
15600 # Append the text in VALUE to the end of the definition contained in VAR. Take
15601 # advantage of any shell optimizations that allow amortized linear growth over
15602 # repeated appends, instead of the typical quadratic growth present in naive
15604 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15605 eval 'as_fn_append ()
15616 # as_fn_arith ARG...
15617 # ------------------
15618 # Perform arithmetic evaluation on the ARGs, and store the result in the
15619 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15620 # must be portable across $(()) and expr.
15621 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15622 eval 'as_fn_arith ()
15629 as_val
=`expr "$@" || test $? -eq 1`
15634 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15635 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15641 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15642 as_basename
=basename
15647 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15653 as_me
=`$as_basename -- "$0" ||
15654 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15655 X"$0" : 'X\(//\)$' \| \
15656 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15658 sed '/^.*\/\([^/][^/]*\)\/*$/{
15672 # Avoid depending upon Character Ranges.
15673 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15674 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15675 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15676 as_cr_digits
='0123456789'
15677 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15679 ECHO_C
= ECHO_N
= ECHO_T
=
15680 case `echo -n x` in #(((((
15682 case `echo 'xy\c'` in
15683 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15685 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15692 rm -f conf$$ conf$$.exe conf$$.
file
15693 if test -d conf$$.dir
; then
15694 rm -f conf$$.dir
/conf$$.
file
15697 mkdir conf$$.dir
2>/dev
/null
15699 if (echo >conf$$.
file) 2>/dev
/null
; then
15700 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15702 # ... but there are two gotchas:
15703 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15704 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15705 # In both cases, we have to default to `cp -pR'.
15706 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15708 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15716 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15717 rmdir conf$$.dir
2>/dev
/null
15722 # Create "$as_dir" as a directory, including parents if necessary.
15727 -*) as_dir
=.
/$as_dir;;
15729 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15733 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15734 *) as_qdir
=$as_dir;;
15736 as_dirs
="'$as_qdir' $as_dirs"
15737 as_dir
=`$as_dirname -- "$as_dir" ||
15738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15739 X"$as_dir" : 'X\(//\)[^/]' \| \
15740 X"$as_dir" : 'X\(//\)$' \| \
15741 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15742 $as_echo X"$as_dir" |
15743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15747 /^X\(\/\/\)[^/].*/{
15760 test -d "$as_dir" && break
15762 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15763 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15767 if mkdir
-p .
2>/dev
/null
; then
15768 as_mkdir_p
='mkdir -p "$as_dir"'
15770 test -d .
/-p && rmdir .
/-p
15775 # as_fn_executable_p FILE
15776 # -----------------------
15777 # Test if FILE is an executable regular file.
15778 as_fn_executable_p
()
15780 test -f "$1" && test -x "$1"
15781 } # as_fn_executable_p
15782 as_test_x
='test -x'
15783 as_executable_p
=as_fn_executable_p
15785 # Sed expression to map a string onto a valid CPP name.
15786 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15788 # Sed expression to map a string onto a valid variable name.
15789 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15793 ## ----------------------------------- ##
15794 ## Main body of $CONFIG_STATUS script. ##
15795 ## ----------------------------------- ##
15797 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15800 # Save the log message, to keep $0 and so on meaningful, and to
15801 # report actual input values of CONFIG_FILES etc. instead of their
15802 # values after options handling.
15804 This file was extended by binutils $as_me 2.33.50, which was
15805 generated by GNU Autoconf 2.69. Invocation command line was
15807 CONFIG_FILES = $CONFIG_FILES
15808 CONFIG_HEADERS = $CONFIG_HEADERS
15809 CONFIG_LINKS = $CONFIG_LINKS
15810 CONFIG_COMMANDS = $CONFIG_COMMANDS
15813 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15818 case $ac_config_files in *"
15819 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15822 case $ac_config_headers in *"
15823 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15828 # Files that config.status was made for.
15829 config_files="$ac_config_files"
15830 config_headers="$ac_config_headers"
15831 config_commands="$ac_config_commands"
15835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15837 \`$as_me' instantiates files and other configuration actions
15838 from templates according to the current configuration. Unless the files
15839 and actions are specified as TAGs, all are instantiated by default.
15841 Usage: $0 [OPTION]... [TAG]...
15843 -h, --help print this help, then exit
15844 -V, --version print version number and configuration settings, then exit
15845 --config print configuration, then exit
15846 -q, --quiet, --silent
15847 do not print progress messages
15848 -d, --debug don't remove temporary files
15849 --recheck update $as_me by reconfiguring in the same conditions
15850 --file=FILE[:TEMPLATE]
15851 instantiate the configuration file FILE
15852 --header=FILE[:TEMPLATE]
15853 instantiate the configuration header FILE
15855 Configuration files:
15858 Configuration headers:
15861 Configuration commands:
15864 Report bugs to the package provider."
15867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15868 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15870 binutils config.status 2.33.50
15871 configured by $0, generated by GNU Autoconf 2.69,
15872 with options \\"\$ac_cs_config\\"
15874 Copyright (C) 2012 Free Software Foundation, Inc.
15875 This config.status script is free software; the Free Software Foundation
15876 gives unlimited permission to copy, distribute and modify it."
15883 test -n "\$AWK" || AWK=awk
15886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15887 # The default lists apply if the user does not specify any file.
15893 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15894 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15898 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15910 # Handling of the options.
15911 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15913 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15914 $as_echo "$ac_cs_version"; exit ;;
15915 --config |
--confi |
--conf |
--con |
--co |
--c )
15916 $as_echo "$ac_cs_config"; exit ;;
15917 --debug |
--debu |
--deb |
--de |
--d |
-d )
15919 --file |
--fil |
--fi |
--f )
15922 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15923 '') as_fn_error $?
"missing file argument" ;;
15925 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15926 ac_need_defaults
=false
;;
15927 --header |
--heade |
--head |
--hea )
15930 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15932 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15933 ac_need_defaults
=false
;;
15935 # Conflict between --help and --header
15936 as_fn_error $?
"ambiguous option: \`$1'
15937 Try \`$0 --help' for more information.";;
15938 --help |
--hel |
-h )
15939 $as_echo "$ac_cs_usage"; exit ;;
15940 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15941 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15944 # This is an error.
15945 -*) as_fn_error $?
"unrecognized option: \`$1'
15946 Try \`$0 --help' for more information." ;;
15948 *) as_fn_append ac_config_targets
" $1"
15949 ac_need_defaults
=false
;;
15955 ac_configure_extra_args
=
15957 if $ac_cs_silent; then
15959 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15964 if \$ac_cs_recheck; then
15965 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15967 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15968 CONFIG_SHELL='$SHELL'
15969 export CONFIG_SHELL
15974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15978 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15979 ## Running $as_me. ##
15985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15989 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15992 # The HP-UX ksh and POSIX shell print the target directory to stdout
15993 # if CDPATH is set.
15994 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15996 sed_quote_subst='$sed_quote_subst'
15997 double_quote_subst='$double_quote_subst'
15998 delay_variable_subst='$delay_variable_subst'
15999 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16000 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16001 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16002 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16003 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16004 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16005 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16006 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16007 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16008 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16009 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16010 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16011 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16012 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16013 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16014 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16015 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16016 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16017 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16018 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16019 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16020 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16021 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16022 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16023 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16024 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16025 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16026 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16027 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16028 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16029 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16030 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16031 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16032 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16033 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16034 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16035 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16036 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16037 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16038 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16039 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16040 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16041 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16042 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16043 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16044 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16045 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16046 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16047 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16048 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16049 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16050 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16051 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16052 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16053 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16054 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16055 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16056 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16057 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16058 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16059 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16060 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16061 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16062 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16063 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16064 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16065 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16066 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16067 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16068 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16069 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16070 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16071 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16072 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16073 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16074 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16075 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16076 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16077 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16078 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16079 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16080 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16081 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16082 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16083 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16084 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16085 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16086 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16087 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16088 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16089 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16090 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16091 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16092 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16093 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16094 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16095 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16096 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16097 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16098 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16099 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16100 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16101 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16102 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16103 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16104 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16105 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16106 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16107 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16108 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16109 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16110 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16111 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16112 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16113 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16114 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16115 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16116 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16117 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16118 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16121 LTCFLAGS='$LTCFLAGS'
16122 compiler='$compiler_DEFAULT'
16124 # A function that is used when there is no print builtin or printf.
16125 func_fallback_echo ()
16127 eval 'cat <<_LTECHO_EOF
16132 # Quote evaled strings.
16146 deplibs_check_method \
16155 lt_cv_sys_global_symbol_pipe \
16156 lt_cv_sys_global_symbol_to_cdecl \
16157 lt_cv_sys_global_symbol_to_c_name_address \
16158 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16159 lt_prog_compiler_no_builtin_flag \
16160 lt_prog_compiler_wl \
16161 lt_prog_compiler_pic \
16162 lt_prog_compiler_static \
16163 lt_cv_prog_compiler_c_o \
16171 export_dynamic_flag_spec \
16172 whole_archive_flag_spec \
16173 compiler_needs_object \
16175 allow_undefined_flag \
16176 no_undefined_flag \
16177 hardcode_libdir_flag_spec \
16178 hardcode_libdir_flag_spec_ld \
16179 hardcode_libdir_separator \
16184 variables_saved_for_relink \
16186 library_names_spec \
16188 install_override_mode \
16192 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16193 *[\\\\\\\`\\"\\\$]*)
16194 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16197 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16202 # Double-quote double-evaled strings.
16203 for var in reload_cmds \
16204 old_postinstall_cmds \
16205 old_postuninstall_cmds \
16207 extract_expsyms_cmds \
16208 old_archive_from_new_cmds \
16209 old_archive_from_expsyms_cmds \
16211 archive_expsym_cmds \
16213 module_expsym_cmds \
16214 export_symbols_cmds \
16217 postuninstall_cmds \
16219 sys_lib_search_path_spec \
16220 sys_lib_dlsearch_path_spec; do
16221 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16222 *[\\\\\\\`\\"\\\$]*)
16223 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16226 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16231 ac_aux_dir='$ac_aux_dir'
16232 xsi_shell='$xsi_shell'
16233 lt_shell_append='$lt_shell_append'
16235 # See if we are running on zsh, and set the options which allow our
16236 # commands through without removal of \ escapes INIT.
16237 if test -n "\${ZSH_VERSION+set}" ; then
16238 setopt NO_GLOB_SUBST
16244 TIMESTAMP='$TIMESTAMP'
16250 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16251 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16253 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16254 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16255 LINGUAS="${LINGUAS-%UNSET%}"
16260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16262 # Handling of arguments.
16263 for ac_config_target
in $ac_config_targets
16265 case $ac_config_target in
16266 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16267 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
16268 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
16269 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
16270 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16271 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
16272 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16274 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16279 # If the user did not use the arguments to specify the items to instantiate,
16280 # then the envvar interface is used. Set only those that are not.
16281 # We use the long form for the default assignment because of an extremely
16282 # bizarre bug on SunOS 4.1.3.
16283 if $ac_need_defaults; then
16284 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16285 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16286 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16289 # Have a temporary directory for convenience. Make it in the build tree
16290 # simply because there is no reason against having it here, and in addition,
16291 # creating and moving files from /tmp can sometimes cause problems.
16292 # Hook for its removal unless debugging.
16293 # Note that there is a small window in which the directory will not be cleaned:
16294 # after its creation but before its name has been assigned to `$tmp'.
16298 trap 'exit_status=$?
16299 : "${ac_tmp:=$tmp}"
16300 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16302 trap 'as_fn_exit 1' 1 2 13 15
16304 # Create a (secure) tmp directory for tmp files.
16307 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16311 tmp
=.
/conf$$
-$RANDOM
16312 (umask 077 && mkdir
"$tmp")
16313 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16316 # Set up the scripts for CONFIG_FILES section.
16317 # No need to generate them if there are no CONFIG_FILES.
16318 # This happens for instance with `./config.status config.h'.
16319 if test -n "$CONFIG_FILES"; then
16322 ac_cr
=`echo X | tr X '\015'`
16323 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16324 # But we know of no other shell where ac_cr would be empty at this
16325 # point, so we can use a bashism as a fallback.
16326 if test "x$ac_cr" = x
; then
16327 eval ac_cr
=\$
\'\\r
\'
16329 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16330 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16333 ac_cs_awk_cr
=$ac_cr
16336 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16341 echo "cat >conf$$subs.awk <<_ACEOF" &&
16342 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16344 } >conf$$subs.sh ||
16345 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16346 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16348 for ac_last_try in false false false false false :; do
16349 . ./conf$$subs.sh ||
16350 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16352 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16353 if test $ac_delim_n = $ac_delim_num; then
16355 elif $ac_last_try; then
16356 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16358 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16361 rm -f conf$$subs.sh
16363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16364 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16368 s/^/S["/; s
/!.
*/"]=/
16378 s/\(.\{148\}\)..*/\1/
16380 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16385 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16392 s/\(.\{148\}\)..*/\1/
16394 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16398 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16403 ' <conf$$subs.awk | sed '
16408 ' >>$CONFIG_STATUS || ac_write_fail=1
16409 rm -f conf$$subs.awk
16410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16412 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16413 for (key in S) S_is_set[key] = 1
16419 nfields = split(line, field, "@
")
16421 len = length(field[1])
16422 for (i = 2; i < nfields; i++) {
16424 keylen = length(key)
16425 if (S_is_set[key]) {
16427 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16428 len += length(value) + length(field[++i])
16439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16440 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16441 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16444 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16445 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16448 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16449 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16450 # trailing colons and then remove the whole line if VPATH becomes empty
16451 # (actually we leave an empty line to preserve line numbers).
16452 if test "x
$srcdir" = x.; then
16453 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16472 fi # test -n "$CONFIG_FILES"
16474 # Set up the scripts for CONFIG_HEADERS section.
16475 # No need to generate them if there are no CONFIG_HEADERS.
16476 # This happens for instance with `./config.status Makefile'.
16477 if test -n "$CONFIG_HEADERS"; then
16478 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16482 # Transform confdefs.h into an awk script `defines.awk', embedded as
16483 # here-document in config.status, that substitutes the proper values into
16484 # config.h.in to produce config.h.
16486 # Create a delimiter string that does not exist in confdefs.h, to ease
16487 # handling of long lines.
16489 for ac_last_try in false false :; do
16490 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16491 if test -z "$ac_tt"; then
16493 elif $ac_last_try; then
16494 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16496 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16500 # For the awk script, D is an array of macro values keyed by name,
16501 # likewise P contains macro parameters if any. Preserve backslash
16502 # newline sequences.
16504 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16506 s/.\{148\}/&'"$ac_delim"'/g
16509 s/^[ ]*#[ ]*define[ ][ ]*/ /
16516 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16518 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16522 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16523 D["\
1"]=" \
3\\\\\\n
"\\/p
16525 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16530 s/.\{148\}/&'"$ac_delim"'/g
16535 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16538 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16540 ' <confdefs.h | sed '
16541 s/'"$ac_delim"'/"\\\
16542 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16545 for (key in D) D_is_set[key] = 1
16548 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16550 split(line, arg, " ")
16551 if (arg[1] == "#") {
16555 defundef
= substr
(arg
[1], 2)
16558 split(mac1
, mac2
, "(") #)
16560 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16561 if (D_is_set
[macro
]) {
16562 # Preserve the white space surrounding the "#".
16563 print prefix
"define", macro P
[macro
] D
[macro
]
16566 # Replace #undef with comments. This is necessary, for example,
16567 # in the case of _POSIX_SOURCE, which is predefined and required
16568 # on some systems where configure will not decide to define it.
16569 if (defundef
== "undef") {
16570 print
"/*", prefix defundef
, macro
, "*/"
16578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16579 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16580 fi # test -n "$CONFIG_HEADERS"
16583 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16588 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16590 case $ac_mode$ac_tag in
16592 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16593 :[FH
]-) ac_tag
=-:-;;
16594 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16611 -) ac_f
="$ac_tmp/stdin";;
16612 *) # Look for the file first in the build tree, then in the source tree
16613 # (if the path is not absolute). The absolute path cannot be DOS-style,
16614 # because $ac_f cannot contain `:'.
16618 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16620 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16622 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16623 as_fn_append ac_file_inputs
" '$ac_f'"
16626 # Let's still pretend it is `configure' which instantiates (i.e., don't
16627 # use $as_me), people would be surprised to read:
16628 # /* config.h. Generated by config.status. */
16629 configure_input
='Generated from '`
16630 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16632 if test x
"$ac_file" != x-
; then
16633 configure_input
="$ac_file. $configure_input"
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16635 $as_echo "$as_me: creating $ac_file" >&6;}
16637 # Neutralize special characters interpreted by sed in replacement strings.
16638 case $configure_input in #(
16639 *\
&* |
*\|
* |
*\\* )
16640 ac_sed_conf_input
=`$as_echo "$configure_input" |
16641 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16642 *) ac_sed_conf_input
=$configure_input;;
16646 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16647 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16652 ac_dir
=`$as_dirname -- "$ac_file" ||
16653 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16654 X"$ac_file" : 'X\(//\)[^/]' \| \
16655 X"$ac_file" : 'X\(//\)$' \| \
16656 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16657 $as_echo X"$ac_file" |
16658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16662 /^X\(\/\/\)[^/].*/{
16675 as_dir
="$ac_dir"; as_fn_mkdir_p
16679 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16681 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16682 # A ".." for each directory in $ac_dir_suffix.
16683 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16684 case $ac_top_builddir_sub in
16685 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16686 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16689 ac_abs_top_builddir
=$ac_pwd
16690 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16691 # for backward compatibility:
16692 ac_top_builddir
=$ac_top_build_prefix
16695 .
) # We are building in place.
16697 ac_top_srcdir
=$ac_top_builddir_sub
16698 ac_abs_top_srcdir
=$ac_pwd ;;
16699 [\\/]* | ?
:[\\/]* ) # Absolute name.
16700 ac_srcdir
=$srcdir$ac_dir_suffix;
16701 ac_top_srcdir
=$srcdir
16702 ac_abs_top_srcdir
=$srcdir ;;
16703 *) # Relative name.
16704 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16705 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16706 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16708 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16718 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16719 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16721 ac_MKDIR_P
=$MKDIR_P
16723 [\\/$
]* | ?
:[\\/]* ) ;;
16724 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
16728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16729 # If the template does not know about datarootdir, expand it.
16730 # FIXME: This hack should be removed a few years after 2.60.
16731 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16742 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16743 *datarootdir
*) ac_datarootdir_seen
=yes;;
16744 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16746 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16749 ac_datarootdir_hack='
16750 s&@datadir@&$datadir&g
16751 s&@docdir@&$docdir&g
16752 s&@infodir@&$infodir&g
16753 s&@localedir@&$localedir&g
16754 s&@mandir@&$mandir&g
16755 s&\\\${datarootdir}&$datarootdir&g' ;;
16759 # Neutralize VPATH when `$srcdir' = `.'.
16760 # Shell code in configure.ac might set extrasub.
16761 # FIXME: do we really want to maintain this feature?
16762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16763 ac_sed_extra="$ac_vpsub
16766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16768 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16769 s|@configure_input@|
$ac_sed_conf_input|
;t t
16770 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16771 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16772 s
&@srcdir@
&$ac_srcdir&;t t
16773 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16774 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16775 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16776 s
&@builddir@
&$ac_builddir&;t t
16777 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16778 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16779 s
&@INSTALL@
&$ac_INSTALL&;t t
16780 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
16781 $ac_datarootdir_hack
16783 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16784 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16786 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16787 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16788 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16789 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16791 which seems to be undefined. Please make sure it is defined" >&5
16792 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16793 which seems to be undefined. Please make sure it is defined" >&2;}
16795 rm -f "$ac_tmp/stdin"
16797 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16798 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16800 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16806 if test x"$ac_file" != x-; then
16808 $as_echo "/* $configure_input */" \
16809 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16810 } >"$ac_tmp/config.h" \
16811 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16812 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16814 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16817 mv "$ac_tmp/config.h" "$ac_file" \
16818 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16821 $as_echo "/* $configure_input */" \
16822 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16823 || as_fn_error $? "could not create -" "$LINENO" 5
16825 # Compute "$ac_file"'s index
in $config_headers.
16828 for _am_header
in $config_headers :; do
16829 case $_am_header in
16830 $_am_arg |
$_am_arg:* )
16833 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
16836 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16837 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16838 X"$_am_arg" : 'X\(//\)[^/]' \| \
16839 X"$_am_arg" : 'X\(//\)$' \| \
16840 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16841 $as_echo X"$_am_arg" |
16842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16846 /^X\(\/\/\)[^/].*/{
16858 s/.*/./; q'`/stamp-h
$_am_stamp_count
16861 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16862 $as_echo "$as_me: executing $ac_file commands" >&6;}
16867 case $ac_file$ac_mode in
16868 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
16869 # Older Autoconf quotes --file arguments for eval, but not when files
16870 # are listed without --file. Let's play safe and only enable the eval
16871 # if we detect the quoting.
16872 case $CONFIG_FILES in
16873 *\'*) eval set x
"$CONFIG_FILES" ;;
16874 *) set x
$CONFIG_FILES ;;
16879 # Strip MF so we end up with the name of the file.
16880 mf
=`echo "$mf" | sed -e 's/:.*$//'`
16881 # Check whether this is an Automake generated Makefile or not.
16882 # We used to match only the files named 'Makefile.in', but
16883 # some people rename them; so instead we look at the file content.
16884 # Grep'ing the first line is not enough: some people post-process
16885 # each Makefile.in and add a new line on top of each file to say so.
16886 # Grep'ing the whole file is not good either: AIX grep has a line
16887 # limit of 2048, but all sed's we know have understand at least 4000.
16888 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
16889 dirpart
=`$as_dirname -- "$mf" ||
16890 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16891 X"$mf" : 'X\(//\)[^/]' \| \
16892 X"$mf" : 'X\(//\)$' \| \
16893 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16899 /^X\(\/\/\)[^/].*/{
16915 # Extract the definition of DEPDIR, am__include, and am__quote
16916 # from the Makefile without running 'make'.
16917 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
16918 test -z "$DEPDIR" && continue
16919 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
16920 test -z "$am__include" && continue
16921 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
16922 # Find all dependency output files, they are included files with
16923 # $(DEPDIR) in their names. We invoke sed twice because it is the
16924 # simplest approach to changing $(DEPDIR) to its actual value in the
16926 for file in `sed -n "
16927 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16928 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16929 # Make sure the directory exists.
16930 test -f "$dirpart/$file" && continue
16931 fdir
=`$as_dirname -- "$file" ||
16932 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16933 X"$file" : 'X\(//\)[^/]' \| \
16934 X"$file" : 'X\(//\)$' \| \
16935 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16936 $as_echo X"$file" |
16937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16941 /^X\(\/\/\)[^/].*/{
16954 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
16955 # echo "creating $dirpart/$file"
16956 echo '# dummy' > "$dirpart/$file"
16963 # See if we are running on zsh, and set the options which allow our
16964 # commands through without removal of \ escapes.
16965 if test -n "${ZSH_VERSION+set}" ; then
16966 setopt NO_GLOB_SUBST
16969 cfgfile
="${ofile}T"
16970 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16973 cat <<_LT_EOF >> "$cfgfile"
16976 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16977 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16978 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16979 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16981 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16982 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16983 # Written by Gordon Matzigkeit, 1996
16985 # This file is part of GNU Libtool.
16987 # GNU Libtool is free software; you can redistribute it and/or
16988 # modify it under the terms of the GNU General Public License as
16989 # published by the Free Software Foundation; either version 2 of
16990 # the License, or (at your option) any later version.
16992 # As a special exception to the GNU General Public License,
16993 # if you distribute this file as part of a program or library that
16994 # is built using GNU Libtool, you may include this file under the
16995 # same distribution terms that you use for the rest of that program.
16997 # GNU Libtool is distributed in the hope that it will be useful,
16998 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16999 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17000 # GNU General Public License for more details.
17002 # You should have received a copy of the GNU General Public License
17003 # along with GNU Libtool; see the file COPYING. If not, a copy
17004 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17005 # obtained by writing to the Free Software Foundation, Inc.,
17006 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17009 # The names of the tagged configurations supported by this script.
17012 # ### BEGIN LIBTOOL CONFIG
17014 # Which release of libtool.m4 was used?
17015 macro_version=$macro_version
17016 macro_revision=$macro_revision
17018 # Whether or not to build shared libraries.
17019 build_libtool_libs=$enable_shared
17021 # Whether or not to build static libraries.
17022 build_old_libs=$enable_static
17024 # What type of objects to build.
17027 # Whether or not to optimize for fast installation.
17028 fast_install=$enable_fast_install
17030 # Shell to use when invoking shell scripts.
17033 # An echo program that protects backslashes.
17037 host_alias=$host_alias
17041 # The build system.
17042 build_alias=$build_alias
17046 # A sed program that does not truncate output.
17049 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17050 Xsed="\$SED -e 1s/^X//"
17052 # A grep program that handles long lines.
17058 # A literal string matcher.
17061 # A BSD- or MS-compatible name lister.
17064 # Whether we need soft or hard links.
17067 # What is the maximum length of a command?
17068 max_cmd_len=$max_cmd_len
17070 # Object file suffix (normally "o").
17073 # Executable file suffix (normally "").
17076 # whether the shell understands "unset".
17079 # turn spaces into newlines.
17082 # turn newlines into spaces.
17085 # An object symbol dumper.
17086 OBJDUMP=$lt_OBJDUMP
17088 # Method to check whether dependent libraries are shared objects.
17089 deplibs_check_method=$lt_deplibs_check_method
17091 # Command to use when deplibs_check_method == "file_magic".
17092 file_magic_cmd=$lt_file_magic_cmd
17096 AR_FLAGS=$lt_AR_FLAGS
17098 # A symbol stripping program.
17101 # Commands used to install an old-style archive.
17103 old_postinstall_cmds=$lt_old_postinstall_cmds
17104 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17106 # Whether to use a lock for old archive extraction.
17107 lock_old_archive_extraction=$lock_old_archive_extraction
17112 # LTCC compiler flags.
17113 LTCFLAGS=$lt_CFLAGS
17115 # Take the output of nm and produce a listing of raw symbols and C names.
17116 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17118 # Transform the output of nm in a proper C declaration.
17119 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17121 # Transform the output of nm in a C name address pair.
17122 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17124 # Transform the output of nm in a C name address pair when lib prefix is needed.
17125 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17127 # The name of the directory that contains temporary libtool files.
17130 # Used to examine libraries when file_magic_cmd begins with "file".
17131 MAGIC_CMD=$MAGIC_CMD
17133 # Must we lock files when doing compilation?
17134 need_locks=$lt_need_locks
17136 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17137 DSYMUTIL=$lt_DSYMUTIL
17139 # Tool to change global to local symbols on Mac OS X.
17142 # Tool to manipulate fat objects and archives on Mac OS X.
17145 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17148 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17149 OTOOL64=$lt_OTOOL64
17151 # Old archive suffix (normally "a").
17154 # Shared library suffix (normally ".so").
17155 shrext_cmds=$lt_shrext_cmds
17157 # The commands to extract the exported symbol list from a shared archive.
17158 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17160 # Variables whose values should be saved in libtool wrapper scripts and
17161 # restored at link time.
17162 variables_saved_for_relink=$lt_variables_saved_for_relink
17164 # Do we need the "lib" prefix for modules?
17165 need_lib_prefix=$need_lib_prefix
17167 # Do we need a version for libraries?
17168 need_version=$need_version
17170 # Library versioning type.
17171 version_type=$version_type
17173 # Shared library runtime path variable.
17174 runpath_var=$runpath_var
17176 # Shared library path variable.
17177 shlibpath_var=$shlibpath_var
17179 # Is shlibpath searched before the hard-coded library search path?
17180 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17182 # Format of library name prefix.
17183 libname_spec=$lt_libname_spec
17185 # List of archive names. First name is the real one, the rest are links.
17186 # The last name is the one that the linker finds with -lNAME
17187 library_names_spec=$lt_library_names_spec
17189 # The coded name of the library, if different from the real name.
17190 soname_spec=$lt_soname_spec
17192 # Permission mode override for installation of shared libraries.
17193 install_override_mode=$lt_install_override_mode
17195 # Command to use after installation of a shared archive.
17196 postinstall_cmds=$lt_postinstall_cmds
17198 # Command to use after uninstallation of a shared archive.
17199 postuninstall_cmds=$lt_postuninstall_cmds
17201 # Commands used to finish a libtool library installation in a directory.
17202 finish_cmds=$lt_finish_cmds
17204 # As "finish_cmds", except a single script fragment to be evaled but
17206 finish_eval=$lt_finish_eval
17208 # Whether we should hardcode library paths into libraries.
17209 hardcode_into_libs=$hardcode_into_libs
17211 # Compile-time system search path for libraries.
17212 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17214 # Run-time system search path for libraries.
17215 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17217 # Whether dlopen is supported.
17218 dlopen_support=$enable_dlopen
17220 # Whether dlopen of programs is supported.
17221 dlopen_self=$enable_dlopen_self
17223 # Whether dlopen of statically linked programs is supported.
17224 dlopen_self_static=$enable_dlopen_self_static
17226 # Commands to strip libraries.
17227 old_striplib=$lt_old_striplib
17228 striplib=$lt_striplib
17231 # The linker used to build libraries.
17234 # How to create reloadable object files.
17235 reload_flag=$lt_reload_flag
17236 reload_cmds=$lt_reload_cmds
17238 # Commands used to build an old-style archive.
17239 old_archive_cmds=$lt_old_archive_cmds
17241 # A language specific compiler.
17244 # Is the compiler the GNU compiler?
17247 # Compiler flag to turn off builtin functions.
17248 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17250 # How to pass a linker flag through the compiler.
17251 wl=$lt_lt_prog_compiler_wl
17253 # Additional compiler flags for building library objects.
17254 pic_flag=$lt_lt_prog_compiler_pic
17256 # Compiler flag to prevent dynamic linking.
17257 link_static_flag=$lt_lt_prog_compiler_static
17259 # Does compiler simultaneously support -c and -o options?
17260 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17262 # Whether or not to add -lc for building shared libraries.
17263 build_libtool_need_lc=$archive_cmds_need_lc
17265 # Whether or not to disallow shared libs when runtime libs are static.
17266 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17268 # Compiler flag to allow reflexive dlopens.
17269 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17271 # Compiler flag to generate shared objects directly from archives.
17272 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17274 # Whether the compiler copes with passing no objects directly.
17275 compiler_needs_object=$lt_compiler_needs_object
17277 # Create an old-style archive from a shared archive.
17278 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17280 # Create a temporary old-style archive to link instead of a shared archive.
17281 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17283 # Commands used to build a shared archive.
17284 archive_cmds=$lt_archive_cmds
17285 archive_expsym_cmds=$lt_archive_expsym_cmds
17287 # Commands used to build a loadable module if different from building
17288 # a shared archive.
17289 module_cmds=$lt_module_cmds
17290 module_expsym_cmds=$lt_module_expsym_cmds
17292 # Whether we are building with GNU ld or not.
17293 with_gnu_ld=$lt_with_gnu_ld
17295 # Flag that allows shared libraries with undefined symbols to be built.
17296 allow_undefined_flag=$lt_allow_undefined_flag
17298 # Flag that enforces no undefined symbols.
17299 no_undefined_flag=$lt_no_undefined_flag
17301 # Flag to hardcode \$libdir into a binary during linking.
17302 # This must work even if \$libdir does not exist
17303 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17305 # If ld is used when linking, flag to hardcode \$libdir into a binary
17306 # during linking. This must work even if \$libdir does not exist.
17307 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17309 # Whether we need a single "-rpath" flag with a separated argument.
17310 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17312 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17313 # DIR into the resulting binary.
17314 hardcode_direct=$hardcode_direct
17316 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17317 # DIR into the resulting binary and the resulting library dependency is
17318 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17319 # library is relocated.
17320 hardcode_direct_absolute=$hardcode_direct_absolute
17322 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17323 # into the resulting binary.
17324 hardcode_minus_L=$hardcode_minus_L
17326 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17327 # into the resulting binary.
17328 hardcode_shlibpath_var=$hardcode_shlibpath_var
17330 # Set to "yes" if building a shared library automatically hardcodes DIR
17331 # into the library and all subsequent libraries and executables linked
17333 hardcode_automatic=$hardcode_automatic
17335 # Set to yes if linker adds runtime paths of dependent libraries
17336 # to runtime path list.
17337 inherit_rpath=$inherit_rpath
17339 # Whether libtool must link a program against all its dependency libraries.
17340 link_all_deplibs=$link_all_deplibs
17342 # Fix the shell variable \$srcfile for the compiler.
17343 fix_srcfile_path=$lt_fix_srcfile_path
17345 # Set to "yes" if exported symbols are required.
17346 always_export_symbols=$always_export_symbols
17348 # The commands to list exported symbols.
17349 export_symbols_cmds=$lt_export_symbols_cmds
17351 # Symbols that should not be listed in the preloaded symbols.
17352 exclude_expsyms=$lt_exclude_expsyms
17354 # Symbols that must always be exported.
17355 include_expsyms=$lt_include_expsyms
17357 # Commands necessary for linking programs (against libraries) with templates.
17358 prelink_cmds=$lt_prelink_cmds
17360 # Specify filename containing input files.
17361 file_list_spec=$lt_file_list_spec
17363 # How to hardcode a shared library path into an executable.
17364 hardcode_action=$hardcode_action
17366 # ### END LIBTOOL CONFIG
17372 cat <<\_LT_EOF
>> "$cfgfile"
17373 # AIX sometimes has problems with the GCC collect2 program. For some
17374 # reason, if we set the COLLECT_NAMES environment variable, the problems
17375 # vanish in a puff of smoke.
17376 if test "X${COLLECT_NAMES+set}" != Xset
; then
17378 export COLLECT_NAMES
17385 ltmain
="$ac_aux_dir/ltmain.sh"
17388 # We use sed instead of cat because bash on DJGPP gets confused if
17389 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17390 # text mode, it properly converts lines to CR/LF. This bash problem
17391 # is reportedly fixed, but why not run on old versions too?
17392 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17393 ||
(rm -f "$cfgfile"; exit 1)
17397 cat << \_LT_EOF
>> "$cfgfile"
17399 # func_dirname file append nondir_replacement
17400 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17401 # otherwise set result to NONDIR_REPLACEMENT.
17405 */*) func_dirname_result
="${1%/*}${2}" ;;
17406 * ) func_dirname_result
="${3}" ;;
17410 # func_basename file
17413 func_basename_result
="${1##*/}"
17416 # func_dirname_and_basename file append nondir_replacement
17417 # perform func_basename and func_dirname in a single function
17419 # dirname: Compute the dirname of FILE. If nonempty,
17420 # add APPEND to the result, otherwise set result
17421 # to NONDIR_REPLACEMENT.
17422 # value returned in "$func_dirname_result"
17423 # basename: Compute filename of FILE.
17424 # value retuned in "$func_basename_result"
17425 # Implementation must be kept synchronized with func_dirname
17426 # and func_basename. For efficiency, we do not delegate to
17427 # those functions but instead duplicate the functionality here.
17428 func_dirname_and_basename
()
17431 */*) func_dirname_result
="${1%/*}${2}" ;;
17432 * ) func_dirname_result
="${3}" ;;
17434 func_basename_result
="${1##*/}"
17437 # func_stripname prefix suffix name
17438 # strip PREFIX and SUFFIX off of NAME.
17439 # PREFIX and SUFFIX must not contain globbing or regex special
17440 # characters, hashes, percent signs, but SUFFIX may contain a leading
17441 # dot (in which case that matches only a dot).
17444 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17445 # positional parameters, so assign one to ordinary parameter first.
17446 func_stripname_result
=${3}
17447 func_stripname_result
=${func_stripname_result#"${1}"}
17448 func_stripname_result
=${func_stripname_result%"${2}"}
17454 func_opt_split_opt
=${1%%=*}
17455 func_opt_split_arg
=${1#*=}
17462 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
17463 *) func_lo2o_result
=${1} ;;
17467 # func_xform libobj-or-source
17470 func_xform_result
=${1%.*}.lo
17473 # func_arith arithmetic-term...
17476 func_arith_result
=$
(( $
* ))
17480 # STRING may not start with a hyphen.
17483 func_len_result
=${#1}
17488 *) # Bourne compatible functions.
17489 cat << \_LT_EOF
>> "$cfgfile"
17491 # func_dirname file append nondir_replacement
17492 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17493 # otherwise set result to NONDIR_REPLACEMENT.
17496 # Extract subdirectory from the argument.
17497 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
17498 if test "X$func_dirname_result" = "X${1}"; then
17499 func_dirname_result
="${3}"
17501 func_dirname_result
="$func_dirname_result${2}"
17505 # func_basename file
17508 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
17512 # func_stripname prefix suffix name
17513 # strip PREFIX and SUFFIX off of NAME.
17514 # PREFIX and SUFFIX must not contain globbing or regex special
17515 # characters, hashes, percent signs, but SUFFIX may contain a leading
17516 # dot (in which case that matches only a dot).
17517 # func_strip_suffix prefix name
17521 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17522 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17527 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
17528 my_sed_long_arg
='1s/^-[^=]*=//'
17533 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17534 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17540 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
17543 # func_xform libobj-or-source
17546 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17549 # func_arith arithmetic-term...
17552 func_arith_result
=`expr "$@"`
17556 # STRING may not start with a hyphen.
17559 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17565 case $lt_shell_append in
17567 cat << \_LT_EOF
>> "$cfgfile"
17569 # func_append var value
17570 # Append VALUE to the end of shell variable VAR.
17578 cat << \_LT_EOF
>> "$cfgfile"
17580 # func_append var value
17581 # Append VALUE to the end of shell variable VAR.
17592 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17593 ||
(rm -f "$cfgfile"; exit 1)
17595 mv -f "$cfgfile" "$ofile" ||
17596 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17601 for ac_file
in $CONFIG_FILES; do
17602 # Support "outfile[:infile[:infile...]]"
17604 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
17606 # PO directories have a Makefile.in generated from Makefile.in.in.
17607 case "$ac_file" in */Makefile.
in)
17608 # Adjust a relative srcdir.
17609 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17610 ac_dir_suffix
=/`echo "$ac_dir"|sed 's%^\./%%'`
17611 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17612 # In autoconf-2.13 it is called $ac_given_srcdir.
17613 # In autoconf-2.50 it is called $srcdir.
17614 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
17615 case "$ac_given_srcdir" in
17616 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
17617 /*) top_srcdir
="$ac_given_srcdir" ;;
17618 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
17620 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17621 rm -f "$ac_dir/POTFILES"
17622 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
17623 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17624 POMAKEFILEDEPS
="POTFILES.in"
17625 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17626 # on $ac_dir but don't depend on user-specified configuration
17628 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17629 # The LINGUAS file contains the set of available languages.
17630 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17631 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
17633 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17634 # Hide the ALL_LINGUAS assigment from automake.
17635 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17636 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
17638 # The set of available languages was given in configure.ac.
17639 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17641 case "$ac_given_srcdir" in
17643 *) srcdirpre
='$(srcdir)/' ;;
17649 for lang
in $ALL_LINGUAS; do
17650 POFILES
="$POFILES $srcdirpre$lang.po"
17651 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
17652 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
17653 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
17655 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17656 # environment variable.
17658 if test -n "$ALL_LINGUAS"; then
17659 for presentlang
in $ALL_LINGUAS; do
17661 if test "%UNSET%" != "$LINGUAS"; then
17662 desiredlanguages
="$LINGUAS"
17664 desiredlanguages
="$ALL_LINGUAS"
17666 for desiredlang
in $desiredlanguages; do
17667 # Use the presentlang catalog if desiredlang is
17668 # a. equal to presentlang, or
17669 # b. a variant of presentlang (because in this case,
17670 # presentlang can be used as a fallback for messages
17671 # which are not translated in the desiredlang catalog).
17672 case "$desiredlang" in
17673 "$presentlang"*) useit
=yes;;
17676 if test $useit = yes; then
17677 INST_LINGUAS
="$INST_LINGUAS $presentlang"
17682 if test -n "$INST_LINGUAS"; then
17683 for lang
in $INST_LINGUAS; do
17684 CATALOGS
="$CATALOGS $lang.gmo"
17687 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
17688 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"
17689 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
17690 if test -f "$f"; then
17692 *.orig |
*.bak |
*~
) ;;
17693 *) cat "$f" >> "$ac_dir/Makefile" ;;
17708 ac_clean_files
=$ac_clean_files_save
17710 test $ac_write_fail = 0 ||
17711 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17714 # configure is writing to config.log, and then calls config.status.
17715 # config.status does its own redirection, appending to config.log.
17716 # Unfortunately, on DOS this fails, as config.log is still kept open
17717 # by configure, so config.status won't be able to write to it; its
17718 # output is simply discarded. So we exec the FD to /dev/null,
17719 # effectively closing config.log, so it can be properly (re)opened and
17720 # appended to by config.status. When coming back to configure, we
17721 # need to make the FD available again.
17722 if test "$no_create" != yes; then
17724 ac_config_status_args
=
17725 test "$silent" = yes &&
17726 ac_config_status_args
="$ac_config_status_args --quiet"
17728 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17730 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17731 # would make configure fail if this is the last instruction.
17732 $ac_cs_success || as_fn_exit
1
17734 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17736 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}