2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gas 2.41.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.
589 PACKAGE_TARNAME
='gas'
590 PACKAGE_VERSION
='2.41.50'
591 PACKAGE_STRING
='gas 2.41.50'
595 ac_unique_file
="as.h"
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
648 MAINTAINER_MODE_FALSE
686 WARN_CFLAGS_FOR_BUILD
738 INSTALL_STRIP_PROGRAM
792 program_transform_name
805 enable_option_checking
807 enable_dependency_tracking
818 enable_compressed_debug_sections
819 enable_default_compressed_debug_sections_algorithm
820 enable_x86_relax_relocations
821 enable_elf_stt_common
822 enable_generate_build_notes
823 enable_mips_fix_loongson3_llsc
825 enable_default_riscv_attribute
827 enable_build_warnings
835 enable_maintainer_mode
839 ac_precious_vars
='build_alias
857 # Initialize some variables set by options.
859 ac_init_version
=false
860 ac_unrecognized_opts
=
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
871 program_transform_name
=s
,x
,x
,
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir
='${exec_prefix}/bin'
886 sbindir
='${exec_prefix}/sbin'
887 libexecdir
='${exec_prefix}/libexec'
888 datarootdir
='${prefix}/share'
889 datadir
='${datarootdir}'
890 sysconfdir
='${prefix}/etc'
891 sharedstatedir
='${prefix}/com'
892 localstatedir
='${prefix}/var'
893 includedir
='${prefix}/include'
894 oldincludedir
='/usr/include'
895 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
896 infodir
='${datarootdir}/info'
901 libdir
='${exec_prefix}/lib'
902 localedir
='${datarootdir}/locale'
903 mandir
='${datarootdir}/man'
909 # If the previous option needs an argument, assign it.
910 if test -n "$ac_prev"; then
911 eval $ac_prev=\
$ac_option
917 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
922 # Accept the important Cygnus configure options, so we can diagnose typos.
924 case $ac_dashdash$ac_option in
928 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
930 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
933 -build |
--build |
--buil |
--bui |
--bu)
934 ac_prev
=build_alias
;;
935 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
936 build_alias
=$ac_optarg ;;
938 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
939 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
940 ac_prev
=cache_file
;;
941 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
942 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
943 cache_file
=$ac_optarg ;;
946 cache_file
=config.cache
;;
948 -datadir |
--datadir |
--datadi |
--datad)
950 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
951 datadir
=$ac_optarg ;;
953 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
954 |
--dataroo |
--dataro |
--datar)
955 ac_prev
=datarootdir
;;
956 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
957 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
958 datarootdir
=$ac_optarg ;;
960 -disable-* |
--disable-*)
961 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
964 as_fn_error $?
"invalid feature name: $ac_useropt"
965 ac_useropt_orig
=$ac_useropt
966 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
971 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
972 ac_unrecognized_sep
=', ';;
974 eval enable_
$ac_useropt=no
;;
976 -docdir |
--docdir |
--docdi |
--doc |
--do)
978 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
981 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
983 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
986 -enable-* |
--enable-*)
987 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
990 as_fn_error $?
"invalid feature name: $ac_useropt"
991 ac_useropt_orig
=$ac_useropt
992 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
997 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
998 ac_unrecognized_sep
=', ';;
1000 eval enable_
$ac_useropt=\
$ac_optarg ;;
1002 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1003 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1004 |
--exec |
--exe |
--ex)
1005 ac_prev
=exec_prefix
;;
1006 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1007 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1008 |
--exec=* |
--exe=* |
--ex=*)
1009 exec_prefix
=$ac_optarg ;;
1011 -gas |
--gas |
--ga |
--g)
1012 # Obsolete; use --with-gas.
1015 -help |
--help |
--hel |
--he |
-h)
1016 ac_init_help
=long
;;
1017 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1018 ac_init_help
=recursive
;;
1019 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1020 ac_init_help
=short
;;
1022 -host |
--host |
--hos |
--ho)
1023 ac_prev
=host_alias
;;
1024 -host=* |
--host=* |
--hos=* |
--ho=*)
1025 host_alias
=$ac_optarg ;;
1027 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1029 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1031 htmldir
=$ac_optarg ;;
1033 -includedir |
--includedir |
--includedi |
--included |
--include \
1034 |
--includ |
--inclu |
--incl |
--inc)
1035 ac_prev
=includedir
;;
1036 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1037 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1038 includedir
=$ac_optarg ;;
1040 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1042 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1043 infodir
=$ac_optarg ;;
1045 -libdir |
--libdir |
--libdi |
--libd)
1047 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1048 libdir
=$ac_optarg ;;
1050 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1051 |
--libexe |
--libex |
--libe)
1052 ac_prev
=libexecdir
;;
1053 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1054 |
--libexe=* |
--libex=* |
--libe=*)
1055 libexecdir
=$ac_optarg ;;
1057 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1058 ac_prev
=localedir
;;
1059 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1060 localedir
=$ac_optarg ;;
1062 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1063 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1064 ac_prev
=localstatedir
;;
1065 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1066 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1067 localstatedir
=$ac_optarg ;;
1069 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1071 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1072 mandir
=$ac_optarg ;;
1074 -nfp |
--nfp |
--nf)
1075 # Obsolete; use --without-fp.
1078 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1079 |
--no-cr |
--no-c |
-n)
1082 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1083 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1086 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1087 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1088 |
--oldin |
--oldi |
--old |
--ol |
--o)
1089 ac_prev
=oldincludedir
;;
1090 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1091 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1092 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1093 oldincludedir
=$ac_optarg ;;
1095 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1097 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1098 prefix
=$ac_optarg ;;
1100 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1101 |
--program-pre |
--program-pr |
--program-p)
1102 ac_prev
=program_prefix
;;
1103 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1104 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1105 program_prefix
=$ac_optarg ;;
1107 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1108 |
--program-suf |
--program-su |
--program-s)
1109 ac_prev
=program_suffix
;;
1110 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1111 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1112 program_suffix
=$ac_optarg ;;
1114 -program-transform-name |
--program-transform-name \
1115 |
--program-transform-nam |
--program-transform-na \
1116 |
--program-transform-n |
--program-transform- \
1117 |
--program-transform |
--program-transfor \
1118 |
--program-transfo |
--program-transf \
1119 |
--program-trans |
--program-tran \
1120 |
--progr-tra |
--program-tr |
--program-t)
1121 ac_prev
=program_transform_name
;;
1122 -program-transform-name=* |
--program-transform-name=* \
1123 |
--program-transform-nam=* |
--program-transform-na=* \
1124 |
--program-transform-n=* |
--program-transform-=* \
1125 |
--program-transform=* |
--program-transfor=* \
1126 |
--program-transfo=* |
--program-transf=* \
1127 |
--program-trans=* |
--program-tran=* \
1128 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1129 program_transform_name
=$ac_optarg ;;
1131 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1133 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1134 pdfdir
=$ac_optarg ;;
1136 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1138 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1141 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1142 |
-silent |
--silent |
--silen |
--sile |
--sil)
1145 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1147 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1149 sbindir
=$ac_optarg ;;
1151 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1152 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1153 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1155 ac_prev
=sharedstatedir
;;
1156 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1157 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1158 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1160 sharedstatedir
=$ac_optarg ;;
1162 -site |
--site |
--sit)
1164 -site=* |
--site=* |
--sit=*)
1167 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1169 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1170 srcdir
=$ac_optarg ;;
1172 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1173 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1174 ac_prev
=sysconfdir
;;
1175 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1176 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1177 sysconfdir
=$ac_optarg ;;
1179 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1180 ac_prev
=target_alias
;;
1181 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1182 target_alias
=$ac_optarg ;;
1184 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1187 -version |
--version |
--versio |
--versi |
--vers |
-V)
1188 ac_init_version
=: ;;
1191 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1194 as_fn_error $?
"invalid package name: $ac_useropt"
1195 ac_useropt_orig
=$ac_useropt
1196 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1201 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1202 ac_unrecognized_sep
=', ';;
1204 eval with_
$ac_useropt=\
$ac_optarg ;;
1206 -without-* |
--without-*)
1207 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1210 as_fn_error $?
"invalid package name: $ac_useropt"
1211 ac_useropt_orig
=$ac_useropt
1212 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1217 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1218 ac_unrecognized_sep
=', ';;
1220 eval with_
$ac_useropt=no
;;
1223 # Obsolete; use --with-x.
1226 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1227 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1228 ac_prev
=x_includes
;;
1229 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1230 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1231 x_includes
=$ac_optarg ;;
1233 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1234 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1235 ac_prev
=x_libraries
;;
1236 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1237 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1238 x_libraries
=$ac_optarg ;;
1240 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1241 Try \`$0 --help' for more information"
1245 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1246 # Reject names that are not valid shell variable names.
1247 case $ac_envvar in #(
1248 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1249 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1251 eval $ac_envvar=\
$ac_optarg
1252 export $ac_envvar ;;
1255 # FIXME: should be removed in autoconf 3.0.
1256 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1258 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1259 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1265 if test -n "$ac_prev"; then
1266 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1267 as_fn_error $?
"missing argument to $ac_option"
1270 if test -n "$ac_unrecognized_opts"; then
1271 case $enable_option_checking in
1273 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1274 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278 # Check all directory arguments for consistency.
1279 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280 datadir sysconfdir sharedstatedir localstatedir includedir \
1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282 libdir localedir mandir
1284 eval ac_val
=\$
$ac_var
1285 # Remove trailing slashes.
1288 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1289 eval $ac_var=\
$ac_val;;
1291 # Be sure to have absolute directory names.
1293 [\\/$
]* | ?
:[\\/]* ) continue;;
1294 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1296 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1299 # There might be people who depend on the old broken behavior: `$host'
1300 # used to hold the argument of --host etc.
1301 # FIXME: To remove some day.
1304 target
=$target_alias
1306 # FIXME: To remove some day.
1307 if test "x$host_alias" != x
; then
1308 if test "x$build_alias" = x
; then
1309 cross_compiling
=maybe
1310 elif test "x$build_alias" != "x$host_alias"; then
1316 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1318 test "$silent" = yes && exec 6>/dev
/null
1321 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di
=`ls -di .` &&
1323 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1324 as_fn_error $?
"working directory cannot be determined"
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 as_fn_error $?
"pwd does not report name of working directory"
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted
=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir
=`$as_dirname -- "$as_myself" ||
1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$as_myself" : 'X\(//\)[^/]' \| \
1336 X"$as_myself" : 'X\(//\)$' \| \
1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338 $as_echo X"$as_myself" |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1361 ac_srcdir_defaulted
=no
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1365 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1367 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1379 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 for ac_var
in $ac_precious_vars; do
1382 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1384 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1389 # Report the --help message.
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1395 \`configure' configures gas 2.41.50 to adapt to many kinds of systems.
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1402 Defaults for the options are specified in brackets.
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking ...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1426 For better control, use the options below.
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1458 --build=BUILD configure
for building on BUILD
[guessed
]
1459 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1460 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1464 if test -n "$ac_init_help"; then
1465 case $ac_init_help in
1466 short | recursive
) echo "Configuration of gas 2.41.50:";;
1471 --disable-option-checking ignore unrecognized
--enable/--with options
1472 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1473 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1474 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1475 --disable-silent-rules verbose build output
(undo
: "make V=0")
1476 --enable-dependency-tracking
1477 do not reject slow dependency extractors
1478 --disable-dependency-tracking
1479 speeds up one-time build
1480 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1481 --enable-static[=PKGS
] build static libraries
[default
=yes]
1482 --enable-fast-install[=PKGS
]
1483 optimize
for fast installation
[default
=yes]
1484 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1485 --enable-plugins Enable support
for plugins
1486 --disable-largefile omit support
for large files
1487 --enable-targets alternative target configurations besides the primary
1488 --enable-checking enable run-time checks
1489 --enable-compressed-debug-sections={all
,gas
,none
}
1490 compress debug sections by default
1491 --enable-default-compressed-debug-sections-algorithm={zlib
,zstd
}
1492 Default compression algorithm
for
1493 --enable-compressed-debug-sections.
1494 --enable-x86-relax-relocations
1495 generate x86 relax relocations by default
1496 --enable-elf-stt-common generate ELF common symbols with STT_COMMON
type by
1498 --enable-generate-build-notes
1499 generate GNU Build notes
if none are provided by the
1501 --enable-mips-fix-loongson3-llsc
1502 enable MIPS fix Loongson3 LLSC errata
1503 --enable-x86-used-note generate GNU x86 used ISA and feature properties
1504 --enable-default-riscv-attribute
1505 generate RISC-V arch attribute by default
1506 --enable-werror treat compile warnings as errors
1507 --enable-build-warnings enable build-time compiler warnings
1508 --disable-nls do not use Native Language Support
1509 --disable-rpath do not hardcode runtime library paths
1510 --enable-maintainer-mode
1511 enable make rules and dependencies not useful
(and
1512 sometimes confusing
) to the casual installer
1515 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1516 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1517 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1519 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1520 --with-cpu=CPU default cpu variant is CPU
(currently only supported
1522 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1523 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1524 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1525 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1526 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1527 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1528 --with-libintl-type=TYPE
type of library to search
for (auto
/static
/shared
)
1529 --with-system-zlib use installed libz
1530 --with-zstd support zstd compressed debug sections
1533 Some influential environment variables
:
1534 CC C compiler
command
1535 CFLAGS C compiler flags
1536 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1537 nonstandard directory
<lib dir
>
1538 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1539 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1540 you have headers
in a nonstandard directory
<include dir
>
1542 YACC The
`Yet Another Compiler Compiler' implementation to use.
1543 Defaults to the first program found out of: `bison
-y', `byacc',
1545 YFLAGS The list of arguments that will be passed by default to $YACC.
1546 This script will default YFLAGS to the empty string to avoid a
1547 default value of `-d' given by some make applications.
1548 PKG_CONFIG path to pkg-config utility
1550 directories to add to pkg-config's search path
1552 path overriding pkg-config
's built-in search path
1553 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1554 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1556 Use these variables to override the choices made by `configure' or to
help
1557 it to
find libraries and programs with nonstandard names
/locations.
1559 Report bugs to the package provider.
1564 if test "$ac_init_help" = "recursive"; then
1565 # If there are subdirs, report their specific --help.
1566 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1567 test -d "$ac_dir" ||
1568 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1573 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1575 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1576 # A ".." for each directory in $ac_dir_suffix.
1577 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1578 case $ac_top_builddir_sub in
1579 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1580 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1583 ac_abs_top_builddir
=$ac_pwd
1584 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1585 # for backward compatibility:
1586 ac_top_builddir
=$ac_top_build_prefix
1589 .
) # We are building in place.
1591 ac_top_srcdir
=$ac_top_builddir_sub
1592 ac_abs_top_srcdir
=$ac_pwd ;;
1593 [\\/]* | ?
:[\\/]* ) # Absolute name.
1594 ac_srcdir
=$srcdir$ac_dir_suffix;
1595 ac_top_srcdir
=$srcdir
1596 ac_abs_top_srcdir
=$srcdir ;;
1598 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1600 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1602 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1604 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1605 # Check for guested configure.
1606 if test -f "$ac_srcdir/configure.gnu"; then
1608 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609 elif test -f "$ac_srcdir/configure"; then
1611 $SHELL "$ac_srcdir/configure" --help=recursive
1613 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1615 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1619 test -n "$ac_init_help" && exit $ac_status
1620 if $ac_init_version; then
1622 gas configure
2.41.50
1623 generated by GNU Autoconf
2.69
1625 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1626 This configure
script is free software
; the Free Software Foundation
1627 gives unlimited permission to copy
, distribute and modify it.
1632 ## ------------------------ ##
1633 ## Autoconf initialization. ##
1634 ## ------------------------ ##
1636 # ac_fn_c_try_compile LINENO
1637 # --------------------------
1638 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_compile
()
1641 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1642 rm -f conftest.
$ac_objext
1643 if { { ac_try
="$ac_compile"
1645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_compile") 2>conftest.err
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && {
1659 test -z "$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 } && test -s conftest.$ac_objext; then :
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1672 } # ac_fn_c_try_compile
1674 # ac_fn_c_try_cpp LINENO
1675 # ----------------------
1676 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_cpp conftest.$ac_ext"
1682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1683 *) ac_try_echo
=$ac_try;;
1685 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1689 if test -s conftest.err
; then
1690 grep -v '^ *+' conftest.err
>conftest.er1
1691 cat conftest.er1
>&5
1692 mv -f conftest.er1 conftest.err
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } > conftest.i
&& {
1696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.
$ac_ext >&5
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 as_fn_set_status
$ac_retval
1711 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1712 # -------------------------------------------------------
1713 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1714 # the include files in INCLUDES and setting the cache variable VAR
1716 ac_fn_c_check_header_mongrel
()
1718 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1719 if eval \
${$3+:} false
; then :
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if eval \
${$3+:} false
; then :
1723 $as_echo_n "(cached) " >&6
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1729 # Is the header compilable?
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1731 $as_echo_n "checking $2 usability... " >&6; }
1732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1737 if ac_fn_c_try_compile
"$LINENO"; then :
1738 ac_header_compiler
=yes
1740 ac_header_compiler
=no
1742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1744 $as_echo "$ac_header_compiler" >&6; }
1746 # Is the header present?
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1748 $as_echo_n "checking $2 presence... " >&6; }
1749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1753 if ac_fn_c_try_cpp
"$LINENO"; then :
1754 ac_header_preproc
=yes
1756 ac_header_preproc
=no
1758 rm -f conftest.err conftest.i conftest.
$ac_ext
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1760 $as_echo "$ac_header_preproc" >&6; }
1762 # So? What about this header?
1763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1766 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1772 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1774 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1776 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1778 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval \
${$3+:} false
; then :
1786 $as_echo_n "(cached) " >&6
1788 eval "$3=\$ac_header_compiler"
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 } # ac_fn_c_check_header_mongrel
1798 # ac_fn_c_try_run LINENO
1799 # ----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1801 # that executables *can* be run.
1804 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1805 if { { ac_try
="$ac_link"
1807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>&5
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1816 { { case "(($ac_try" in
1817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1818 *) ac_try_echo
=$ac_try;;
1820 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_try") 2>&5
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; }; }; then :
1828 $as_echo "$as_me: program exited with status $ac_status" >&5
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.
$ac_ext >&5
1832 ac_retval
=$ac_status
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status
$ac_retval
1840 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists and can be compiled using the include files in
1843 # INCLUDES, setting the cache variable VAR accordingly.
1844 ac_fn_c_check_header_compile
()
1846 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \
${$3+:} false
; then :
1850 $as_echo_n "(cached) " >&6
1852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1857 if ac_fn_c_try_compile
"$LINENO"; then :
1862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 } # ac_fn_c_check_header_compile
1871 # ac_fn_c_try_link LINENO
1872 # -----------------------
1873 # Try to link conftest.$ac_ext, and return whether this succeeded.
1876 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1877 rm -f conftest.
$ac_objext conftest
$ac_exeext
1878 if { { ac_try
="$ac_link"
1880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>conftest.err
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && {
1894 test -z "$ac_c_werror_flag" ||
1895 test ! -s conftest.err
1896 } && test -s conftest$ac_exeext && {
1897 test "$cross_compiling" = yes ||
1898 test -x conftest$ac_exeext
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1907 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1908 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1909 # interfere with the next link command; also delete a directory that is
1910 # left behind by Apple's compiler. We do this before executing the actions.
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1915 } # ac_fn_c_try_link
1917 # ac_fn_c_check_func LINENO FUNC VAR
1918 # ----------------------------------
1919 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1920 ac_fn_c_check_func ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval \${$3+:} false; then :
1926 $as_echo_n "(cached) " >&6
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1930 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1932 #define $2 innocuous_$2
1934 /* System header to define __stub macros and hopefully few prototypes,
1935 which can conflict with char $2 (); below.
1936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1937 <limits.h> exists even on freestanding compilers. */
1940 # include <limits.h>
1942 # include <assert.h>
1947 /* Override any GCC internal prototype to avoid an error.
1948 Use char because int might match the return type of a GCC
1949 builtin and then its argument prototype would still apply. */
1954 /* The GNU C library defines this for functions which it implements
1955 to always fail with ENOSYS. Some functions are actually named
1956 something starting with __ and the normal name is an alias. */
1957 #if defined __stub_$2 || defined __stub___$2
1969 if ac_fn_c_try_link "$LINENO"; then :
1974 rm -f core conftest.err conftest.$ac_objext \
1975 conftest$ac_exeext conftest.$ac_ext
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 } # ac_fn_c_check_func
1984 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1985 # ---------------------------------------------
1986 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1988 ac_fn_c_check_decl ()
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1992 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1994 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1995 if eval \${$3+:} false; then :
1996 $as_echo_n "(cached) " >&6
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2004 #ifndef $as_decl_name
2006 (void) $as_decl_use;
2008 (void) $as_decl_name;
2016 if ac_fn_c_try_compile "$LINENO"; then :
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028 } # ac_fn_c_check_decl
2029 cat >config.log <<_ACEOF
2030 This file contains any messages produced by compilers while
2031 running configure, to aid debugging if configure makes a mistake.
2033 It was created by gas $as_me 2.41.50, which was
2034 generated by GNU Autoconf 2.69. Invocation command line was
2046 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2047 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2048 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2049 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2050 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2052 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2053 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2055 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2056 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2057 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2058 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2059 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2060 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2061 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 test -z "$as_dir" && as_dir=.
2070 $as_echo "PATH: $as_dir"
2086 # Keep a trace of the command line.
2087 # Strip out --no-create and --no-recursion so they do not pile up.
2088 # Strip out --silent because we don't want to record it for future runs.
2089 # Also quote any args containing shell meta-characters.
2090 # Make two passes to allow for proper duplicate-argument suppression.
2094 ac_must_keep_next=false
2100 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2102 | -silent | --silent | --silen | --sile | --sil)
2105 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2108 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2110 as_fn_append ac_configure_args1 " '$ac_arg'"
2111 if test $ac_must_keep_next = true; then
2112 ac_must_keep_next=false # Got value, back to normal.
2115 *=* | --config-cache | -C | -disable-* | --disable-* \
2116 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2117 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2118 | -with-* | --with-* | -without-* | --without-* | --x)
2119 case "$ac_configure_args0 " in
2120 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2123 -* ) ac_must_keep_next=true ;;
2126 as_fn_append ac_configure_args " '$ac_arg'"
2131 { ac_configure_args0=; unset ac_configure_args0;}
2132 { ac_configure_args1=; unset ac_configure_args1;}
2134 # When interrupted or exit'd, cleanup temporary files, and complete
2135 # config.log. We remove comments because anyway the quotes in there
2136 # would cause problems or look ugly.
2137 # WARNING: Use '\'' to represent an apostrophe within the trap.
2138 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2139 trap 'exit_status=$?
2140 # Save into config.log some information that might help in debugging.
2144 $as_echo "## ---------------- ##
2145 ## Cache variables. ##
2146 ## ---------------- ##"
2148 # The following way of writing the cache mishandles newlines in values,
2150 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2151 eval ac_val=\$$ac_var
2155 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2156 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2159 _ | IFS | as_nl) ;; #(
2160 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2161 *) { eval $ac_var=; unset $ac_var;} ;;
2166 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2167 *${as_nl}ac_space=\ *)
2169 "s/'\''/'\''\\\\'\'''\''/g;
2170 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2173 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2180 $as_echo "## ----------------- ##
2181 ## Output variables. ##
2182 ## ----------------- ##"
2184 for ac_var in $ac_subst_vars
2186 eval ac_val=\$$ac_var
2188 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2190 $as_echo "$ac_var='\''$ac_val'\''"
2194 if test -n "$ac_subst_files"; then
2195 $as_echo "## ------------------- ##
2196 ## File substitutions. ##
2197 ## ------------------- ##"
2199 for ac_var in $ac_subst_files
2201 eval ac_val=\$$ac_var
2203 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2205 $as_echo "$ac_var='\''$ac_val'\''"
2210 if test -s confdefs.h; then
2211 $as_echo "## ----------- ##
2218 test "$ac_signal" != 0 &&
2219 $as_echo "$as_me: caught signal $ac_signal"
2220 $as_echo "$as_me: exit $exit_status"
2222 rm -f core *.core core.conftest.* &&
2223 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2226 for ac_signal in 1 2 13 15; do
2227 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2231 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2232 rm -f -r conftest* confdefs.h
2234 $as_echo "/* confdefs.h */" > confdefs.h
2236 # Predefined preprocessor variables.
2238 cat >>confdefs.h <<_ACEOF
2239 #define PACKAGE_NAME "$PACKAGE_NAME"
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_STRING "$PACKAGE_STRING"
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_URL "$PACKAGE_URL"
2263 # Let the site file select an alternate cache file if it wants to.
2264 # Prefer an explicitly selected file to automatically selected ones.
2267 if test -n "$CONFIG_SITE"; then
2268 # We do not want a PATH search for config.site.
2269 case $CONFIG_SITE in #((
2270 -*) ac_site_file1=./$CONFIG_SITE;;
2271 */*) ac_site_file1=$CONFIG_SITE;;
2272 *) ac_site_file1=./$CONFIG_SITE;;
2274 elif test "x$prefix" != xNONE; then
2275 ac_site_file1=$prefix/share/config.site
2276 ac_site_file2=$prefix/etc/config.site
2278 ac_site_file1=$ac_default_prefix/share/config.site
2279 ac_site_file2=$ac_default_prefix/etc/config.site
2281 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2283 test "x$ac_site_file" = xNONE && continue
2284 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2286 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2287 sed 's/^/| /' "$ac_site_file" >&5
2289 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2291 as_fn_error $? "failed to load site
script $ac_site_file
2292 See \
`config.log' for more details" "$LINENO" 5; }
2296 if test -r "$cache_file"; then
2297 # Some versions of bash will fail to source /dev/null (special files
2298 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2299 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2301 $as_echo "$as_me: loading cache $cache_file" >&6;}
2303 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2304 *) . "./$cache_file";;
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2309 $as_echo "$as_me: creating cache $cache_file" >&6;}
2313 gt_needs="$gt_needs "
2314 # Check that the precious variables saved in the cache have kept the same
2316 ac_cache_corrupted=false
2317 for ac_var in $ac_precious_vars; do
2318 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2319 eval ac_new_set=\$ac_env_${ac_var}_set
2320 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2321 eval ac_new_val=\$ac_env_${ac_var}_value
2322 case $ac_old_set,$ac_new_set in
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2325 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2326 ac_cache_corrupted=: ;;
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2329 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2330 ac_cache_corrupted=: ;;
2333 if test "x$ac_old_val" != "x$ac_new_val"; then
2334 # differences in whitespace do not lead to failure.
2335 ac_old_val_w=`echo x
$ac_old_val`
2336 ac_new_val_w=`echo x
$ac_new_val`
2337 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2339 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2340 ac_cache_corrupted=:
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2343 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2344 eval $ac_var=\$ac_old_val
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2347 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2349 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2352 # Pass precious variables to config.status.
2353 if test "$ac_new_set" = set; then
2355 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2356 *) ac_arg=$ac_var=$ac_new_val ;;
2358 case " $ac_configure_args " in
2359 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2360 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2364 if $ac_cache_corrupted; then
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2368 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2369 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2371 ## -------------------- ##
2372 ## Main body of script. ##
2373 ## -------------------- ##
2376 ac_cpp='$CPP $CPPFLAGS'
2377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2388 for ac_dir in .. "$srcdir"/..; do
2389 if test -f "$ac_dir/install-sh"; then
2391 ac_install_sh="$ac_aux_dir/install-sh -c"
2393 elif test -f "$ac_dir/install.sh"; then
2395 ac_install_sh="$ac_aux_dir/install.sh -c"
2397 elif test -f "$ac_dir/shtool"; then
2399 ac_install_sh="$ac_aux_dir/shtool install -c"
2403 if test -z "$ac_aux_dir"; then
2404 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2407 # These three variables are undocumented and unsupported,
2408 # and are intended to be withdrawn in a future Autoconf release.
2409 # They can cause serious problems if a builder's source tree is in a directory
2410 # whose full name contains unusual characters.
2411 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2412 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2413 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2416 # Make sure we can run config.sub.
2417 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2418 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2421 $as_echo_n "checking build system type... " >&6; }
2422 if ${ac_cv_build+:} false; then :
2423 $as_echo_n "(cached) " >&6
2425 ac_build_alias=$build_alias
2426 test "x$ac_build_alias" = x &&
2427 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2428 test "x$ac_build_alias" = x &&
2429 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2430 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2431 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2435 $as_echo "$ac_cv_build" >&6; }
2436 case $ac_cv_build in
2438 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2441 ac_save_IFS=$IFS; IFS='-'
2447 # Remember, the first character of IFS is used to create $*,
2448 # except with old shells:
2451 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2455 $as_echo_n "checking host system type... " >&6; }
2456 if ${ac_cv_host+:} false; then :
2457 $as_echo_n "(cached) " >&6
2459 if test "x$host_alias" = x; then
2460 ac_cv_host=$ac_cv_build
2462 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2463 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2468 $as_echo "$ac_cv_host" >&6; }
2471 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2474 ac_save_IFS=$IFS; IFS='-'
2480 # Remember, the first character of IFS is used to create $*,
2481 # except with old shells:
2484 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2488 $as_echo_n "checking target system type... " >&6; }
2489 if ${ac_cv_target+:} false; then :
2490 $as_echo_n "(cached) " >&6
2492 if test "x$target_alias" = x; then
2493 ac_cv_target=$ac_cv_host
2495 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2496 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2501 $as_echo "$ac_cv_target" >&6; }
2502 case $ac_cv_target in
2504 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2506 target=$ac_cv_target
2507 ac_save_IFS=$IFS; IFS='-'
2513 # Remember, the first character of IFS is used to create $*,
2514 # except with old shells:
2517 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2520 # The aliases save the names the user supplied, while $host etc.
2521 # will get canonicalized.
2522 test -n "$target_alias" &&
2523 test "$program_prefix$program_suffix$program_transform_name" = \
2525 program_prefix=${target_alias}-
2527 am__api_version='1.15'
2529 # Find a good install program. We prefer a C program (faster),
2530 # so one script is as good as another. But avoid the broken or
2531 # incompatible versions:
2532 # SysV /etc/install, /usr/sbin/install
2533 # SunOS /usr/etc/install
2534 # IRIX /sbin/install
2536 # AmigaOS /C/install, which installs bootblocks on floppy discs
2537 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2538 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2539 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2540 # OS/2's system install, which has a completely different semantic
2541 # ./install, which can be erroneously created by make from ./install.sh.
2542 # Reject install programs that cannot install multiple files.
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2544 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2545 if test -z "$INSTALL"; then
2546 if ${ac_cv_path_install+:} false; then :
2547 $as_echo_n "(cached) " >&6
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 test -z "$as_dir" && as_dir=.
2554 # Account for people who put trailing slashes in PATH elements.
2555 case $as_dir/ in #((
2556 ./ | .// | /[cC]/* | \
2557 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2558 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2561 # OSF1 and SCO ODT 3.0 have their own names for install.
2562 # Don't use installbsd from OSF since it installs stuff as root
2564 for ac_prog in ginstall scoinst install; do
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2567 if test $ac_prog = install &&
2568 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2569 # AIX install. It has an incompatible calling convention.
2571 elif test $ac_prog = install &&
2572 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2573 # program-specific install script used by HP pwplus--don't use.
2576 rm -rf conftest.one conftest.two conftest.dir
2577 echo one > conftest.one
2578 echo two > conftest.two
2580 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2581 test -s conftest.one && test -s conftest.two &&
2582 test -s conftest.dir/conftest.one &&
2583 test -s conftest.dir/conftest.two
2585 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2598 rm -rf conftest.one conftest.two conftest.dir
2601 if test "${ac_cv_path_install+set}" = set; then
2602 INSTALL=$ac_cv_path_install
2604 # As a last resort, use the slow shell script. Don't cache a
2605 # value for INSTALL within a source directory, because that will
2606 # break other packages using the cache if that directory is
2607 # removed, or if the value is a relative name.
2608 INSTALL=$ac_install_sh
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2612 $as_echo "$INSTALL" >&6; }
2614 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2615 # It thinks the first close brace ends the variable substitution.
2616 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2618 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2620 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2623 $as_echo_n "checking whether build environment is sane... " >&6; }
2624 # Reject unsafe characters in $srcdir or the absolute working directory
2625 # name. Accept space and tab only in the latter.
2629 *[\\\"\#\$\&\'\`$am_lf]*)
2630 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2633 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2634 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2637 # Do 'set' in a subshell so we don't clobber the current shell's
2638 # arguments. Must try -L first in case configure is actually a
2639 # symlink; some systems play weird games with the mod time of symlinks
2640 # (eg FreeBSD returns the mod time of the symlink's containing
2644 for am_try
in 1 2; do
2645 echo "timestamp, slept: $am_has_slept" > conftest.
file
2646 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2647 if test "$*" = "X"; then
2649 set X
`ls -t "$srcdir/configure" conftest.file`
2651 if test "$*" != "X $srcdir/configure conftest.file" \
2652 && test "$*" != "X conftest.file $srcdir/configure"; then
2654 # If neither matched, then we have a broken ls. This can happen
2655 # if, for instance, CONFIG_SHELL is bash and it inherits a
2656 # broken ls alias from the environment. This has actually
2657 # happened. Such a system could not be considered "sane".
2658 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2659 alias in your environment" "$LINENO" 5
2661 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2668 test "$2" = conftest.
file
2674 as_fn_error $?
"newly created file is older than distributed files!
2675 Check your system clock" "$LINENO" 5
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2678 $as_echo "yes" >&6; }
2679 # If we didn't sleep, we still need to ensure time stamps of config.status and
2680 # generated files are strictly newer.
2682 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2689 test "$program_prefix" != NONE
&&
2690 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2691 # Use a double $ so make ignores it.
2692 test "$program_suffix" != NONE
&&
2693 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2694 # Double any \ or $.
2695 # By default was `s,x,x', remove it if useless.
2696 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2697 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2699 # Expand $ac_aux_dir to an absolute path.
2700 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2702 if test x
"${MISSING+set}" != xset
; then
2705 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2707 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2710 # Use eval to expand $SHELL
2711 if eval "$MISSING --is-lightweight"; then
2712 am_missing_run
="$MISSING "
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2716 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2719 if test x
"${install_sh+set}" != xset
; then
2722 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2724 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2728 # Installed binaries are usually stripped using 'strip' when the user
2729 # run "make install-strip". However 'strip' might not be the right
2730 # tool to use in cross-compilation environments, therefore Automake
2731 # will honor the 'STRIP' environment variable to overrule this program.
2732 if test "$cross_compiling" != no
; then
2733 if test -n "$ac_tool_prefix"; then
2734 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2735 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737 $as_echo_n "checking for $ac_word... " >&6; }
2738 if ${ac_cv_prog_STRIP+:} false
; then :
2739 $as_echo_n "(cached) " >&6
2741 if test -n "$STRIP"; then
2742 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2744 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2748 test -z "$as_dir" && as_dir
=.
2749 for ac_exec_ext
in '' $ac_executable_extensions; do
2750 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 STRIP
=$ac_cv_prog_STRIP
2762 if test -n "$STRIP"; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2764 $as_echo "$STRIP" >&6; }
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2772 if test -z "$ac_cv_prog_STRIP"; then
2774 # Extract the first word of "strip", so it can be a program name with args.
2775 set dummy strip
; ac_word
=$2
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777 $as_echo_n "checking for $ac_word... " >&6; }
2778 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2779 $as_echo_n "(cached) " >&6
2781 if test -n "$ac_ct_STRIP"; then
2782 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2788 test -z "$as_dir" && as_dir
=.
2789 for ac_exec_ext
in '' $ac_executable_extensions; do
2790 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_ac_ct_STRIP
="strip"
2792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2802 if test -n "$ac_ct_STRIP"; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2804 $as_echo "$ac_ct_STRIP" >&6; }
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807 $as_echo "no" >&6; }
2810 if test "x$ac_ct_STRIP" = x
; then
2813 case $cross_compiling:$ac_tool_warned in
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2817 ac_tool_warned
=yes ;;
2822 STRIP
="$ac_cv_prog_STRIP"
2826 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2829 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2830 if test -z "$MKDIR_P"; then
2831 if ${ac_cv_path_mkdir+:} false
; then :
2832 $as_echo_n "(cached) " >&6
2834 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2835 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2838 test -z "$as_dir" && as_dir
=.
2839 for ac_prog
in mkdir gmkdir
; do
2840 for ac_exec_ext
in '' $ac_executable_extensions; do
2841 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
2842 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2843 'mkdir (GNU coreutils) '* | \
2844 'mkdir (coreutils) '* | \
2845 'mkdir (fileutils) '4.1*)
2846 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2856 test -d .
/--version && rmdir .
/--version
2857 if test "${ac_cv_path_mkdir+set}" = set; then
2858 MKDIR_P
="$ac_cv_path_mkdir -p"
2860 # As a last resort, use the slow shell script. Don't cache a
2861 # value for MKDIR_P within a source directory, because that will
2862 # break other packages using the cache if that directory is
2863 # removed, or if the value is a relative name.
2864 MKDIR_P
="$ac_install_sh -d"
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2868 $as_echo "$MKDIR_P" >&6; }
2870 for ac_prog
in gawk mawk nawk
awk
2872 # Extract the first word of "$ac_prog", so it can be a program name with args.
2873 set dummy
$ac_prog; ac_word
=$2
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875 $as_echo_n "checking for $ac_word... " >&6; }
2876 if ${ac_cv_prog_AWK+:} false
; then :
2877 $as_echo_n "(cached) " >&6
2879 if test -n "$AWK"; then
2880 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2886 test -z "$as_dir" && as_dir
=.
2887 for ac_exec_ext
in '' $ac_executable_extensions; do
2888 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_AWK
="$ac_prog"
2890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 if test -n "$AWK"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2902 $as_echo "$AWK" >&6; }
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905 $as_echo "no" >&6; }
2909 test -n "$AWK" && break
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2913 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2915 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2916 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2917 $as_echo_n "(cached) " >&6
2919 cat >conftest.
make <<\_ACEOF
2922 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2924 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2925 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2927 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2929 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2933 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2935 $as_echo "yes" >&6; }
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 $as_echo "no" >&6; }
2940 SET_MAKE
="MAKE=${MAKE-make}"
2943 rm -rf .tst
2>/dev
/null
2944 mkdir .tst
2>/dev
/null
2945 if test -d .tst
; then
2950 rmdir .tst
2>/dev
/null
2952 # Check whether --enable-silent-rules was given.
2953 if test "${enable_silent_rules+set}" = set; then :
2954 enableval
=$enable_silent_rules;
2957 case $enable_silent_rules in # (((
2958 yes) AM_DEFAULT_VERBOSITY
=0;;
2959 no
) AM_DEFAULT_VERBOSITY
=1;;
2960 *) AM_DEFAULT_VERBOSITY
=1;;
2962 am_make
=${MAKE-make}
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2964 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2965 if ${am_cv_make_support_nested_variables+:} false
; then :
2966 $as_echo_n "(cached) " >&6
2968 if $as_echo 'TRUE=$(BAR$(V))
2974 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
2975 am_cv_make_support_nested_variables
=yes
2977 am_cv_make_support_nested_variables
=no
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2981 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2982 if test $am_cv_make_support_nested_variables = yes; then
2984 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
2986 AM_V
=$AM_DEFAULT_VERBOSITY
2987 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
2991 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2992 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2993 # is not polluted with repeated "-I."
2994 am__isrc
=' -I$(srcdir)'
2995 # test to see if srcdir already configured
2996 if test -f $srcdir/config.status
; then
2997 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3001 # test whether we have cygpath
3002 if test -z "$CYGPATH_W"; then
3003 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3004 CYGPATH_W
='cygpath -w'
3011 # Define the identity of the package.
3016 cat >>confdefs.h
<<_ACEOF
3017 #define PACKAGE "$PACKAGE"
3021 cat >>confdefs.h
<<_ACEOF
3022 #define VERSION "$VERSION"
3025 # Some tools Automake needs.
3027 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3030 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3033 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3036 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3039 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3041 # For better backward compatibility. To be removed once Automake 1.9.x
3042 # dies out for good. For more background, see:
3043 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3044 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3045 mkdir_p
='$(MKDIR_P)'
3047 # We need awk for the "check" target (and possibly the TAP driver). The
3048 # system "awk" is bad on some platforms.
3049 # Always define AMTAR for backward compatibility. Yes, it's still used
3050 # in the wild :-( We should find a proper way to deprecate it ...
3054 # We'll loop over all known methods to create a tar archive until one works.
3055 _am_tools
='gnutar pax cpio none'
3057 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3064 # POSIX will say in a future version that running "rm -f" with no argument
3065 # is OK; and we want to be able to make that assumption in our Makefile
3066 # recipes. So use an aggressive probe to check that the usage we want is
3067 # actually supported "in the wild" to an acceptable degree.
3068 # See automake bug#10828.
3069 # To make any issue more visible, cause the running configure to be aborted
3070 # by default if the 'rm' program in use doesn't match our expectations; the
3071 # user can still override this though.
3072 if rm -f && rm -fr && rm -rf; then : OK
; else
3076 Your 'rm' program seems unable to run without file operands specified
3077 on the command line, even when the '-f' option is present. This is contrary
3078 to the behaviour of most rm programs out there, and not conforming with
3079 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3081 Please tell bug-automake@gnu.org about your system, including the value
3082 of your $PATH and any error possibly output before this message. This
3083 can help us improve future automake versions.
3086 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3087 echo 'Configuration will proceed anyway, since you have set the' >&2
3088 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3092 Aborting the configuration process, to ensure you take notice of the issue.
3094 You can download and install GNU coreutils to get an 'rm' implementation
3095 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3097 If you want to complete the configuration process using your problematic
3098 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3099 to "yes", and re-run configure.
3102 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3106 # Check whether --enable-silent-rules was given.
3107 if test "${enable_silent_rules+set}" = set; then :
3108 enableval
=$enable_silent_rules;
3111 case $enable_silent_rules in # (((
3112 yes) AM_DEFAULT_VERBOSITY
=0;;
3113 no
) AM_DEFAULT_VERBOSITY
=1;;
3114 *) AM_DEFAULT_VERBOSITY
=0;;
3116 am_make
=${MAKE-make}
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3118 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3119 if ${am_cv_make_support_nested_variables+:} false
; then :
3120 $as_echo_n "(cached) " >&6
3122 if $as_echo 'TRUE=$(BAR$(V))
3128 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3129 am_cv_make_support_nested_variables
=yes
3131 am_cv_make_support_nested_variables
=no
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3135 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3136 if test $am_cv_make_support_nested_variables = yes; then
3138 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3140 AM_V
=$AM_DEFAULT_VERBOSITY
3141 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3147 ac_cpp='$CPP $CPPFLAGS'
3148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3149 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151 if test -n "$ac_tool_prefix"; then
3152 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3153 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if ${ac_cv_prog_CC+:} false; then :
3157 $as_echo_n "(cached) " >&6
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3169 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 if test -n "$CC"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182 $as_echo "$CC" >&6; }
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3190 if test -z "$ac_cv_prog_CC"; then
3192 # Extract the first word of "gcc", so it can be a program name with args.
3193 set dummy gcc; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3197 $as_echo_n "(cached) " >&6
3199 if test -n "$ac_ct_CC"; then
3200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209 ac_cv_prog_ac_ct_CC="gcc"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3220 if test -n "$ac_ct_CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3222 $as_echo "$ac_ct_CC" >&6; }
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3228 if test "x$ac_ct_CC" = x; then
3231 case $cross_compiling:$ac_tool_warned in
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235 ac_tool_warned=yes ;;
3243 if test -z "$CC"; then
3244 if test -n "$ac_tool_prefix"; then
3245 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3246 set dummy ${ac_tool_prefix}cc; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if ${ac_cv_prog_CC+:} false; then :
3250 $as_echo_n "(cached) " >&6
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3262 ac_cv_prog_CC="${ac_tool_prefix}cc"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 if test -n "$CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275 $as_echo "$CC" >&6; }
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3284 if test -z "$CC"; then
3285 # Extract the first word of "cc", so it can be a program name with args.
3286 set dummy cc; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if ${ac_cv_prog_CC+:} false; then :
3290 $as_echo_n "(cached) " >&6
3292 if test -n "$CC"; then
3293 ac_cv_prog_CC="$CC" # Let the user override the test.
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 test -z "$as_dir" && as_dir=.
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3303 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3304 ac_prog_rejected=yes
3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 if test $ac_prog_rejected = yes; then
3316 # We found a bogon in the path, so make sure we never use it.
3317 set dummy $ac_cv_prog_CC
3319 if test $# != 0; then
3320 # We chose a different compiler from the bogus one.
3321 # However, it has the same basename, so the bogon will be chosen
3322 # first if we set CC to just the basename; use the full file name.
3324 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3330 if test -n "$CC"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3332 $as_echo "$CC" >&6; }
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3340 if test -z "$CC"; then
3341 if test -n "$ac_tool_prefix"; then
3342 for ac_prog in cl.exe
3344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if ${ac_cv_prog_CC+:} false; then :
3349 $as_echo_n "(cached) " >&6
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC="$CC" # Let the user override the test.
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 if test -n "$CC"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3374 $as_echo "$CC" >&6; }
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3381 test -n "$CC" && break
3384 if test -z "$CC"; then
3386 for ac_prog in cl.exe
3388 # Extract the first word of "$ac_prog", so it can be a program name with args.
3389 set dummy $ac_prog; ac_word=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3393 $as_echo_n "(cached) " >&6
3395 if test -n "$ac_ct_CC"; then
3396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 ac_cv_prog_ac_ct_CC="$ac_prog"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3416 if test -n "$ac_ct_CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3418 $as_echo "$ac_ct_CC" >&6; }
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3425 test -n "$ac_ct_CC" && break
3428 if test "x$ac_ct_CC" = x; then
3431 case $cross_compiling:$ac_tool_warned in
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3435 ac_tool_warned=yes ;;
3444 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3446 as_fn_error $? "no acceptable C compiler found in \$PATH
3447 See \`config.log
' for more details" "$LINENO" 5; }
3449 # Provide some information about the compiler.
3450 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3453 for ac_option in --version -v -V -qversion; do
3454 { { ac_try="$ac_compiler $ac_option >&5"
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 $as_echo "$ac_try_echo"; } >&5
3461 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3463 if test -s conftest.err; then
3465 ... rest of stderr output deleted ...
3466 10q
' conftest.err >conftest.er1
3467 cat conftest.er1 >&5
3469 rm -f conftest.er1 conftest.err
3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3485 ac_clean_files_save=$ac_clean_files
3486 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3487 # Try to create an executable without -o first, disregard a.out.
3488 # It will help us diagnose broken compilers, and finding out an intuition
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3491 $as_echo_n "checking whether the C compiler works... " >&6; }
3492 ac_link_default=`$as_echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
3494 # The possible output files:
3495 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3498 for ac_file in $ac_files
3501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3502 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3507 if { { ac_try="$ac_link_default"
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514 (eval "$ac_link_default") 2>&5
3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }; then :
3518 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3519 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3520 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3521 # so that the user can short-circuit this test for compilers unknown to
3523 for ac_file
in $ac_files ''
3525 test -f "$ac_file" ||
continue
3527 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3530 # We found the default executable, but exeext='' is most
3534 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3536 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3538 # We set ac_cv_exeext here because the later test for it is not
3539 # safe: cross compilers may not add the suffix if given an `-o'
3540 # argument, so we may need to know it at that point already.
3541 # Even if this section looks crufty: it has the advantage of
3548 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3553 if test -z "$ac_file"; then :
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3556 $as_echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.
$ac_ext >&5
3559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561 as_fn_error
77 "C compiler cannot create executables
3562 See \`config.log' for more details" "$LINENO" 5; }
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3565 $as_echo "yes" >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3568 $as_echo_n "checking for C compiler default output file name... " >&6; }
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3570 $as_echo "$ac_file" >&6; }
3571 ac_exeext
=$ac_cv_exeext
3573 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3574 ac_clean_files
=$ac_clean_files_save
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3576 $as_echo_n "checking for suffix of executables... " >&6; }
3577 if { { ac_try
="$ac_link"
3579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3583 $as_echo "$ac_try_echo"; } >&5
3584 (eval "$ac_link") 2>&5
3586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3587 test $ac_status = 0; }; then :
3588 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3589 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3590 # work properly (i.e., refer to `conftest.exe'), while it won't with
3592 for ac_file
in conftest.exe conftest conftest.
*; do
3593 test -f "$ac_file" ||
continue
3595 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3596 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3605 See \`config.log' for more details" "$LINENO" 5; }
3607 rm -f conftest conftest
$ac_cv_exeext
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3609 $as_echo "$ac_cv_exeext" >&6; }
3611 rm -f conftest.
$ac_ext
3612 EXEEXT
=$ac_cv_exeext
3614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3620 FILE *f = fopen ("conftest.out", "w");
3621 return ferror (f) || fclose (f) != 0;
3627 ac_clean_files
="$ac_clean_files conftest.out"
3628 # Check that the compiler produces executables we can run. If not, either
3629 # the compiler is broken, or we cross compile.
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3631 $as_echo_n "checking whether we are cross compiling... " >&6; }
3632 if test "$cross_compiling" != yes; then
3633 { { ac_try
="$ac_link"
3635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639 $as_echo "$ac_try_echo"; } >&5
3640 (eval "$ac_link") 2>&5
3642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3643 test $ac_status = 0; }
3644 if { ac_try='./conftest$ac_cv_exeext'
3645 { { case "(($ac_try" in
3646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3647 *) ac_try_echo
=$ac_try;;
3649 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650 $as_echo "$ac_try_echo"; } >&5
3651 (eval "$ac_try") 2>&5
3653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654 test $ac_status = 0; }; }; then
3657 if test "$cross_compiling" = maybe
; then
3660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662 as_fn_error $?
"cannot run C compiled programs.
3663 If you meant to cross compile, use \`--host'.
3664 See \`config.log' for more details" "$LINENO" 5; }
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3669 $as_echo "$cross_compiling" >&6; }
3671 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3672 ac_clean_files
=$ac_clean_files_save
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3674 $as_echo_n "checking for suffix of object files... " >&6; }
3675 if ${ac_cv_objext+:} false
; then :
3676 $as_echo_n "(cached) " >&6
3678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3689 rm -f conftest.o conftest.obj
3690 if { { ac_try
="$ac_compile"
3692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3696 $as_echo "$ac_try_echo"; } >&5
3697 (eval "$ac_compile") 2>&5
3699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3700 test $ac_status = 0; }; then :
3701 for ac_file in conftest.o conftest.obj conftest.*; do
3702 test -f "$ac_file" || continue;
3704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3705 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3710 $as_echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3716 See \
`config.log' for more details" "$LINENO" 5; }
3718 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3721 $as_echo "$ac_cv_objext" >&6; }
3722 OBJEXT=$ac_cv_objext
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3725 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3726 if ${ac_cv_c_compiler_gnu+:} false; then :
3727 $as_echo_n "(cached) " >&6
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3743 if ac_fn_c_try_compile "$LINENO"; then :
3748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3753 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3754 if test $ac_compiler_gnu = yes; then
3759 ac_test_CFLAGS=${CFLAGS+set}
3760 ac_save_CFLAGS=$CFLAGS
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3762 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3763 if ${ac_cv_prog_cc_g+:} false; then :
3764 $as_echo_n "(cached) " >&6
3766 ac_save_c_werror_flag=$ac_c_werror_flag
3767 ac_c_werror_flag=yes
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h. */
3781 if ac_fn_c_try_compile "$LINENO"; then :
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3796 if ac_fn_c_try_compile "$LINENO"; then :
3799 ac_c_werror_flag=$ac_save_c_werror_flag
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3812 if ac_fn_c_try_compile "$LINENO"; then :
3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 ac_c_werror_flag=$ac_save_c_werror_flag
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3823 $as_echo "$ac_cv_prog_cc_g" >&6; }
3824 if test "$ac_test_CFLAGS" = set; then
3825 CFLAGS=$ac_save_CFLAGS
3826 elif test $ac_cv_prog_cc_g = yes; then
3827 if test "$GCC" = yes; then
3833 if test "$GCC" = yes; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3840 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3841 if ${ac_cv_prog_cc_c89+:} false; then :
3842 $as_echo_n "(cached) " >&6
3844 ac_cv_prog_cc_c89=no
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3851 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3852 struct buf { int x; };
3853 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3854 static char *e (p, i)
3860 static char *f (char * (*g) (char **, int), char **p, ...)
3865 s = g (p, va_arg (v,int));
3870 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3871 function prototypes and stuff, but not '\xHH' hex character constants.
3872 These don't provoke an error unfortunately, instead are silently treated
3873 as 'x'. The following induces an error, until -std is added to get
3874 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3875 array size at least. It's necessary to write '\x00'==0 to get something
3876 that's true only with -std. */
3877 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3879 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3880 inside strings and character constants. */
3882 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3884 int test (int i, double x);
3885 struct s1 {int (*f) (int a);};
3886 struct s2 {int (*f) (double a);};
3887 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3893 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3898 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3899 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3901 CC="$ac_save_CC $ac_arg"
3902 if ac_fn_c_try_compile "$LINENO"; then :
3903 ac_cv_prog_cc_c89=$ac_arg
3905 rm -f core conftest.err conftest.$ac_objext
3906 test "x$ac_cv_prog_cc_c89" != "xno" && break
3908 rm -f conftest.$ac_ext
3913 case "x$ac_cv_prog_cc_c89" in
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3916 $as_echo "none needed" >&6; } ;;
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3919 $as_echo "unsupported" >&6; } ;;
3921 CC="$CC $ac_cv_prog_cc_c89"
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3923 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3925 if test "x$ac_cv_prog_cc_c89" != xno; then :
3930 ac_cpp='$CPP $CPPFLAGS'
3931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3936 ac_cpp='$CPP $CPPFLAGS'
3937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3941 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3942 if ${am_cv_prog_cc_c_o+:} false; then :
3943 $as_echo_n "(cached) " >&6
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3956 # Make sure it works both with $CC and with simple cc.
3957 # Following AC_PROG_CC_C_O, we do the test twice because some
3958 # compilers refuse to overwrite an existing .o file with -o,
3959 # though they will create one.
3960 am_cv_prog_cc_c_o=yes
3962 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3963 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); } \
3967 && test -f conftest2.$ac_objext; then
3970 am_cv_prog_cc_c_o=no
3974 rm -f core conftest*
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3978 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3979 if test "$am_cv_prog_cc_c_o" != yes; then
3980 # Losing compiler, so override with the script.
3981 # FIXME: It is wrong to rewrite CC.
3982 # But if we don't then we get into trouble of one sort or another.
3983 # A longer-term fix would be to have automake use am__CC in this case,
3984 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3985 CC="$am_aux_dir/compile $CC"
3988 ac_cpp='$CPP $CPPFLAGS'
3989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993 DEPDIR="${am__leading_dot}deps"
3995 ac_config_commands="$ac_config_commands depfiles"
3998 am_make=${MAKE-make}
3999 cat > confinc << 'END'
4001 @echo this is the am__doit target
4004 # If we don't find an include directive, just comment out the code.
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4006 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4010 # First try GNU make style include.
4011 echo "include confinc" > confmf
4012 # Ignore all kinds of additional output from 'make'.
4013 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4014 *the\ am__doit\ target*)
4020 # Now try BSD make style include.
4021 if test "$am__include" = "#"; then
4022 echo '.include "confinc"' > confmf
4023 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4024 *the\ am__doit\ target*)
4025 am__include=.include
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4034 $as_echo "$_am_result" >&6; }
4035 rm -f confinc confmf
4037 # Check whether --enable-dependency-tracking was given.
4038 if test "${enable_dependency_tracking+set}" = set; then :
4039 enableval=$enable_dependency_tracking;
4042 if test "x$enable_dependency_tracking" != xno; then
4043 am_depcomp="$ac_aux_dir/depcomp"
4047 if test "x$enable_dependency_tracking" != xno; then
4057 depcc="$CC" am_compiler_list=
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4060 $as_echo_n "checking dependency style of $depcc... " >&6; }
4061 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4062 $as_echo_n "(cached) " >&6
4064 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4065 # We make a subdir and do the tests there. Otherwise we can end up
4066 # making bogus files that we don't know about and never remove. For
4067 # instance it was reported that on HP-UX the gcc test will end up
4068 # making a dummy file named 'D' -- because '-MD' means "put the output
4072 # Copy depcomp to subdir because otherwise we won't find it if we're
4073 # using a relative directory.
4074 cp "$am_depcomp" conftest.dir
4076 # We will build objects and dependencies in a subdirectory because
4077 # it helps to detect inapplicable dependency modes. For instance
4078 # both Tru64's cc and ICC support -MD to output dependencies as a
4079 # side effect of compilation, but ICC will put the dependencies in
4080 # the current directory while Tru64 will put them in the object
4084 am_cv_CC_dependencies_compiler_type=none
4085 if test "$am_compiler_list" = ""; then
4086 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4089 case " $depcc " in #(
4090 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4093 for depmode in $am_compiler_list; do
4094 # Setup a source with many dependencies, because some compilers
4095 # like to wrap large dependency lists on column 80 (with \), and
4096 # we should not choose a depcomp mode which is confused by this.
4098 # We need to recreate these files for each test, as the compiler may
4099 # overwrite some of them when testing with obscure command lines.
4100 # This happens at least with the AIX C compiler.
4102 for i in 1 2 3 4 5 6; do
4103 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4104 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4105 # Solaris 10 /bin/sh.
4106 echo '/* dummy */' > sub/conftst$i.h
4108 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4110 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4111 # mode. It turns out that the SunPro C++ compiler does not properly
4112 # handle '-M -o', and we need to detect this. Also, some Intel
4113 # versions had trouble with output in subdirs.
4114 am__obj=sub/conftest.${OBJEXT-o}
4115 am__minus_obj="-o $am__obj"
4118 # This depmode causes a compiler race in universal mode.
4119 test "$am__universal" = false || continue
4122 # After this tag, mechanisms are not by side-effect, so they'll
4123 # only be used when explicitly requested.
4124 if test "x$enable_dependency_tracking" = xyes; then
4130 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4131 # This compiler won't grok '-c -o', but also, the minuso test has
4132 # not run yet. These depmodes are late enough in the game, and
4133 # so weak that their functioning should not be impacted.
4134 am__obj=conftest.${OBJEXT-o}
4139 if depmode=$depmode \
4140 source=sub/conftest.c object=$am__obj \
4141 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4142 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4143 >/dev/null 2>conftest.err &&
4144 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4145 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4146 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4147 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4148 # icc doesn't choke on unknown options, it will just issue warnings
4149 # or remarks (even with -Werror). So we grep stderr for any message
4150 # that says an option was ignored or not supported.
4151 # When given -MP, icc 7.0 and 7.1 complain thusly:
4152 # icc: Command line warning: ignoring option '-M'; no argument required
4153 # The diagnosis changed in icc 8.0:
4154 # icc: Command line remark: option '-MP' not supported
4155 if (grep 'ignoring option' conftest.err ||
4156 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4157 am_cv_CC_dependencies_compiler_type=$depmode
4166 am_cv_CC_dependencies_compiler_type=none
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4171 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4172 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4175 test "x$enable_dependency_tracking" != xno \
4176 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4178 am__fastdepCC_FALSE='#'
4180 am__fastdepCC_TRUE='#'
4181 am__fastdepCC_FALSE=
4187 ac_cpp='$CPP $CPPFLAGS'
4188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4192 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4193 # On Suns, sometimes $CPP names a directory.
4194 if test -n "$CPP" && test -d "$CPP"; then
4197 if test -z "$CPP"; then
4198 if ${ac_cv_prog_CPP+:} false; then :
4199 $as_echo_n "(cached) " >&6
4201 # Double quotes because CPP needs to be expanded
4202 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4205 for ac_c_preproc_warn_flag in '' yes
4207 # Use a header file that comes with gcc, so configuring glibc
4208 # with a fresh cross-compiler works.
4209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4210 # <limits.h> exists even on freestanding compilers.
4211 # On the NeXT, cc -E runs the code through the compiler's parser,
4212 # not just through cpp. "Syntax error" is here to catch this case.
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4216 # include <limits.h>
4218 # include <assert.h>
4222 if ac_fn_c_try_cpp "$LINENO"; then :
4225 # Broken: fails on valid input.
4228 rm -f conftest.err conftest.i conftest.$ac_ext
4230 # OK, works on sane cases. Now check whether nonexistent headers
4231 # can be detected and how.
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4234 #include <ac_nonexistent.h>
4236 if ac_fn_c_try_cpp "$LINENO"; then :
4237 # Broken: success on invalid input.
4240 # Passes both tests.
4244 rm -f conftest.err conftest.i conftest.$ac_ext
4247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4248 rm -f conftest.i conftest.err conftest.
$ac_ext
4249 if $ac_preproc_ok; then :
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4262 $as_echo "$CPP" >&6; }
4264 for ac_c_preproc_warn_flag
in '' yes
4266 # Use a header file that comes with gcc, so configuring glibc
4267 # with a fresh cross-compiler works.
4268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4269 # <limits.h> exists even on freestanding compilers.
4270 # On the NeXT, cc -E runs the code through the compiler's parser,
4271 # not just through cpp. "Syntax error" is here to catch this case.
4272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4275 # include <limits.h>
4277 # include <assert.h>
4281 if ac_fn_c_try_cpp
"$LINENO"; then :
4284 # Broken: fails on valid input.
4287 rm -f conftest.err conftest.i conftest.
$ac_ext
4289 # OK, works on sane cases. Now check whether nonexistent headers
4290 # can be detected and how.
4291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4293 #include <ac_nonexistent.h>
4295 if ac_fn_c_try_cpp
"$LINENO"; then :
4296 # Broken: success on invalid input.
4299 # Passes both tests.
4303 rm -f conftest.err conftest.i conftest.
$ac_ext
4306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4307 rm -f conftest.i conftest.err conftest.
$ac_ext
4308 if $ac_preproc_ok; then :
4311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4313 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4314 See \`config.log' for more details" "$LINENO" 5; }
4318 ac_cpp
='$CPP $CPPFLAGS'
4319 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4325 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4326 if ${ac_cv_path_GREP+:} false
; then :
4327 $as_echo_n "(cached) " >&6
4329 if test -z "$GREP"; then
4330 ac_path_GREP_found
=false
4331 # Loop through the user's path and test for each of PROGNAME-LIST
4332 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4333 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4336 test -z "$as_dir" && as_dir
=.
4337 for ac_prog
in grep ggrep
; do
4338 for ac_exec_ext
in '' $ac_executable_extensions; do
4339 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4340 as_fn_executable_p
"$ac_path_GREP" ||
continue
4341 # Check for GNU ac_path_GREP and select it if it is found.
4342 # Check for GNU $ac_path_GREP
4343 case `"$ac_path_GREP" --version 2>&1` in
4345 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4348 $as_echo_n 0123456789 >"conftest.in"
4351 cat "conftest.in" "conftest.in" >"conftest.tmp"
4352 mv "conftest.tmp" "conftest.in"
4353 cp "conftest.in" "conftest.nl"
4354 $as_echo 'GREP' >> "conftest.nl"
4355 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4356 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4357 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4358 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4359 # Best one so far, save it but keep looking for a better one
4360 ac_cv_path_GREP
="$ac_path_GREP"
4361 ac_path_GREP_max
=$ac_count
4363 # 10*(2^10) chars as input seems more than enough
4364 test $ac_count -gt 10 && break
4366 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4369 $ac_path_GREP_found && break 3
4374 if test -z "$ac_cv_path_GREP"; then
4375 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4378 ac_cv_path_GREP
=$GREP
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4383 $as_echo "$ac_cv_path_GREP" >&6; }
4384 GREP
="$ac_cv_path_GREP"
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4388 $as_echo_n "checking for egrep... " >&6; }
4389 if ${ac_cv_path_EGREP+:} false
; then :
4390 $as_echo_n "(cached) " >&6
4392 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4393 then ac_cv_path_EGREP
="$GREP -E"
4395 if test -z "$EGREP"; then
4396 ac_path_EGREP_found
=false
4397 # Loop through the user's path and test for each of PROGNAME-LIST
4398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4399 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4402 test -z "$as_dir" && as_dir
=.
4403 for ac_prog
in egrep; do
4404 for ac_exec_ext
in '' $ac_executable_extensions; do
4405 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4406 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4407 # Check for GNU ac_path_EGREP and select it if it is found.
4408 # Check for GNU $ac_path_EGREP
4409 case `"$ac_path_EGREP" --version 2>&1` in
4411 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4414 $as_echo_n 0123456789 >"conftest.in"
4417 cat "conftest.in" "conftest.in" >"conftest.tmp"
4418 mv "conftest.tmp" "conftest.in"
4419 cp "conftest.in" "conftest.nl"
4420 $as_echo 'EGREP' >> "conftest.nl"
4421 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4422 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4423 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4424 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4425 # Best one so far, save it but keep looking for a better one
4426 ac_cv_path_EGREP
="$ac_path_EGREP"
4427 ac_path_EGREP_max
=$ac_count
4429 # 10*(2^10) chars as input seems more than enough
4430 test $ac_count -gt 10 && break
4432 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4435 $ac_path_EGREP_found && break 3
4440 if test -z "$ac_cv_path_EGREP"; then
4441 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4444 ac_cv_path_EGREP
=$EGREP
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4450 $as_echo "$ac_cv_path_EGREP" >&6; }
4451 EGREP
="$ac_cv_path_EGREP"
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4455 $as_echo_n "checking for ANSI C header files... " >&6; }
4456 if ${ac_cv_header_stdc+:} false
; then :
4457 $as_echo_n "(cached) " >&6
4459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4474 if ac_fn_c_try_compile
"$LINENO"; then :
4475 ac_cv_header_stdc
=yes
4477 ac_cv_header_stdc
=no
4479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4481 if test $ac_cv_header_stdc = yes; then
4482 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4489 $EGREP "memchr" >/dev
/null
2>&1; then :
4492 ac_cv_header_stdc
=no
4498 if test $ac_cv_header_stdc = yes; then
4499 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h. */
4505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4506 $EGREP "free" >/dev
/null
2>&1; then :
4509 ac_cv_header_stdc
=no
4515 if test $ac_cv_header_stdc = yes; then
4516 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4517 if test "$cross_compiling" = yes; then :
4520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4524 #if ((' ' & 0x0FF) == 0x020)
4525 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4526 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4528 # define ISLOWER(c) \
4529 (('a' <= (c) && (c) <= 'i') \
4530 || ('j' <= (c) && (c) <= 'r') \
4531 || ('s' <= (c) && (c) <= 'z'))
4532 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4535 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4540 for (i = 0; i < 256; i++)
4541 if (XOR (islower (i), ISLOWER (i))
4542 || toupper (i) != TOUPPER (i))
4547 if ac_fn_c_try_run
"$LINENO"; then :
4550 ac_cv_header_stdc
=no
4552 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4553 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4559 $as_echo "$ac_cv_header_stdc" >&6; }
4560 if test $ac_cv_header_stdc = yes; then
4562 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4566 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4567 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4568 inttypes.h stdint.h unistd.h
4570 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4571 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4573 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4574 cat >>confdefs.h
<<_ACEOF
4575 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4584 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4585 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4592 if test "$MINIX" = yes; then
4594 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4597 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4600 $as_echo "#define _MINIX 1" >>confdefs.h
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4606 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4607 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4608 $as_echo_n "(cached) " >&6
4610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4613 # define __EXTENSIONS__ 1
4614 $ac_includes_default
4623 if ac_fn_c_try_compile
"$LINENO"; then :
4624 ac_cv_safe_to_define___extensions__
=yes
4626 ac_cv_safe_to_define___extensions__
=no
4628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4631 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4632 test $ac_cv_safe_to_define___extensions__ = yes &&
4633 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4635 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4637 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4639 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4641 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4650 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4655 macro_version
='2.2.7a'
4656 macro_revision
='1.3134'
4670 ltmain
="$ac_aux_dir/ltmain.sh"
4672 # Backslashify metacharacters that are still active within
4673 # double-quoted strings.
4674 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
4676 # Same as above, but do not quote variable references.
4677 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
4679 # Sed substitution to delay expansion of an escaped shell variable in a
4680 # double_quote_subst'ed string.
4681 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
4683 # Sed substitution to delay expansion of an escaped single quote.
4684 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
4686 # Sed substitution to avoid accidental globbing in evaled expressions
4687 no_glob_subst
='s/\*/\\\*/g'
4689 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4690 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4691 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4694 $as_echo_n "checking how to print strings... " >&6; }
4695 # Test print first, because it will be a builtin if present.
4696 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4697 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4699 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4702 # Use this function as a fallback that always works.
4703 func_fallback_echo ()
4705 eval 'cat <<_LTECHO_EOF
4709 ECHO='func_fallback_echo
'
4712 # func_echo_all arg...
4713 # Invoke $ECHO with all args, space-separated.
4720 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4721 $as_echo "printf" >&6; } ;;
4722 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4723 $as_echo "print -r" >&6; } ;;
4724 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4725 $as_echo "cat" >&6; } ;;
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4742 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4743 if ${ac_cv_path_SED+:} false; then :
4744 $as_echo_n "(cached) " >&6
4746 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4747 for ac_i in 1 2 3 4 5 6 7; do
4748 ac_script="$ac_script$as_nl$ac_script"
4750 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4751 { ac_script=; unset ac_script;}
4752 if test -z "$SED"; then
4753 ac_path_SED_found=false
4754 # Loop through the user's path and
test for each of PROGNAME-LIST
4755 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4759 test -z "$as_dir" && as_dir
=.
4760 for ac_prog
in sed gsed
; do
4761 for ac_exec_ext
in '' $ac_executable_extensions; do
4762 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4763 as_fn_executable_p
"$ac_path_SED" ||
continue
4764 # Check for GNU ac_path_SED and select it if it is found.
4765 # Check for GNU $ac_path_SED
4766 case `"$ac_path_SED" --version 2>&1` in
4768 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4771 $as_echo_n 0123456789 >"conftest.in"
4774 cat "conftest.in" "conftest.in" >"conftest.tmp"
4775 mv "conftest.tmp" "conftest.in"
4776 cp "conftest.in" "conftest.nl"
4777 $as_echo '' >> "conftest.nl"
4778 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4779 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4780 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4781 if test $ac_count -gt ${ac_path_SED_max-0}; then
4782 # Best one so far, save it but keep looking for a better one
4783 ac_cv_path_SED
="$ac_path_SED"
4784 ac_path_SED_max
=$ac_count
4786 # 10*(2^10) chars as input seems more than enough
4787 test $ac_count -gt 10 && break
4789 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4792 $ac_path_SED_found && break 3
4797 if test -z "$ac_cv_path_SED"; then
4798 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4806 $as_echo "$ac_cv_path_SED" >&6; }
4807 SED
="$ac_cv_path_SED"
4810 test -z "$SED" && SED
=sed
4811 Xsed
="$SED -e 1s/^X//"
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4824 $as_echo_n "checking for fgrep... " >&6; }
4825 if ${ac_cv_path_FGREP+:} false
; then :
4826 $as_echo_n "(cached) " >&6
4828 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4829 then ac_cv_path_FGREP
="$GREP -F"
4831 if test -z "$FGREP"; then
4832 ac_path_FGREP_found
=false
4833 # Loop through the user's path and test for each of PROGNAME-LIST
4834 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4835 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4838 test -z "$as_dir" && as_dir
=.
4839 for ac_prog
in fgrep
; do
4840 for ac_exec_ext
in '' $ac_executable_extensions; do
4841 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4842 as_fn_executable_p
"$ac_path_FGREP" ||
continue
4843 # Check for GNU ac_path_FGREP and select it if it is found.
4844 # Check for GNU $ac_path_FGREP
4845 case `"$ac_path_FGREP" --version 2>&1` in
4847 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4850 $as_echo_n 0123456789 >"conftest.in"
4853 cat "conftest.in" "conftest.in" >"conftest.tmp"
4854 mv "conftest.tmp" "conftest.in"
4855 cp "conftest.in" "conftest.nl"
4856 $as_echo 'FGREP' >> "conftest.nl"
4857 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4858 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4859 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4860 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4861 # Best one so far, save it but keep looking for a better one
4862 ac_cv_path_FGREP
="$ac_path_FGREP"
4863 ac_path_FGREP_max
=$ac_count
4865 # 10*(2^10) chars as input seems more than enough
4866 test $ac_count -gt 10 && break
4868 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4871 $ac_path_FGREP_found && break 3
4876 if test -z "$ac_cv_path_FGREP"; then
4877 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4880 ac_cv_path_FGREP
=$FGREP
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4886 $as_echo "$ac_cv_path_FGREP" >&6; }
4887 FGREP
="$ac_cv_path_FGREP"
4890 test -z "$GREP" && GREP
=grep
4910 # Check whether --with-gnu-ld was given.
4911 if test "${with_gnu_ld+set}" = set; then :
4912 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4918 if test "$GCC" = yes; then
4919 # Check if gcc -print-prog-name=ld gives a path.
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4921 $as_echo_n "checking for ld used by $CC... " >&6; }
4924 # gcc leaves a trailing carriage return which upsets mingw
4925 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4927 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4930 # Accept absolute paths.
4932 re_direlt
='/[^/][^/]*/\.\./'
4933 # Canonicalize the pathname of ld
4934 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4935 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4936 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4938 test -z "$LD" && LD
="$ac_prog"
4941 # If it fails, then pretend we aren't using GCC.
4945 # If it is relative, then search for the first ld in PATH.
4949 elif test "$with_gnu_ld" = yes; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4951 $as_echo_n "checking for GNU ld... " >&6; }
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4954 $as_echo_n "checking for non-GNU ld... " >&6; }
4956 if ${lt_cv_path_LD+:} false
; then :
4957 $as_echo_n "(cached) " >&6
4959 if test -z "$LD"; then
4960 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4961 for ac_dir
in $PATH; do
4963 test -z "$ac_dir" && ac_dir
=.
4964 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4965 lt_cv_path_LD
="$ac_dir/$ac_prog"
4966 # Check to see if the program is GNU ld. I'd rather use --version,
4967 # but apparently some variants of GNU ld only accept -v.
4968 # Break only if it was the GNU/non-GNU ld that we prefer.
4969 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4970 *GNU
* |
*'with BFD'*)
4971 test "$with_gnu_ld" != no
&& break
4974 test "$with_gnu_ld" != yes && break
4981 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4986 if test -n "$LD"; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4988 $as_echo "$LD" >&6; }
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991 $as_echo "no" >&6; }
4993 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4995 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4996 if ${lt_cv_prog_gnu_ld+:} false
; then :
4997 $as_echo_n "(cached) " >&6
4999 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5000 case `$LD -v 2>&1 </dev/null` in
5001 *GNU
* |
*'with BFD'*)
5002 lt_cv_prog_gnu_ld
=yes
5005 lt_cv_prog_gnu_ld
=no
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5010 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5011 with_gnu_ld
=$lt_cv_prog_gnu_ld
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5022 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5023 if ${lt_cv_path_NM+:} false
; then :
5024 $as_echo_n "(cached) " >&6
5026 if test -n "$NM"; then
5027 # Let the user override the nm to test.
5028 lt_nm_to_check
="$NM"
5030 lt_nm_to_check
="${ac_tool_prefix}nm"
5031 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5032 lt_nm_to_check
="$lt_nm_to_check nm"
5035 for lt_tmp_nm
in "$lt_nm_to_check"; do
5036 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5037 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5039 test -z "$ac_dir" && ac_dir
=.
5040 # Strip out any user-provided options from the nm to test twice,
5041 # the first time to test to see if nm (rather than its options) has
5042 # an explicit path, the second time to yield a file which can be
5044 tmp_nm_path
="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5045 case "$tmp_nm_path" in
5046 */*|
*\\*) tmp_nm
="$lt_tmp_nm";;
5047 *) tmp_nm
="$ac_dir/$lt_tmp_nm";;
5049 tmp_nm_to_nm
="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5050 if test -f "$tmp_nm_to_nm" ||
test -f "$tmp_nm_to_nm$ac_exeext" ; then
5051 # Check to see if the nm accepts a BSD-compat flag.
5052 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5053 # nm: unknown option "B" ignored
5054 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5055 *$tmp_nm*) lt_cv_path_NM
="$tmp_nm -B"
5059 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5061 lt_cv_path_NM
="$tmp_nm -p"
5065 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5066 continue # so that we can try to find one that supports BSD flags
5075 : ${lt_cv_path_NM=no}
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5078 $as_echo "$lt_cv_path_NM" >&6; }
5079 if test "$lt_cv_path_NM" != "no"; then
5082 # Didn't find any BSD compatible name lister, look for dumpbin.
5083 if test -n "$DUMPBIN"; then :
5084 # Let the user override the test.
5086 if test -n "$ac_tool_prefix"; then
5087 for ac_prog
in dumpbin
"link -dump"
5089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5090 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if ${ac_cv_prog_DUMPBIN+:} false
; then :
5094 $as_echo_n "(cached) " >&6
5096 if test -n "$DUMPBIN"; then
5097 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5103 test -z "$as_dir" && as_dir
=.
5104 for ac_exec_ext
in '' $ac_executable_extensions; do
5105 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5106 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 DUMPBIN
=$ac_cv_prog_DUMPBIN
5117 if test -n "$DUMPBIN"; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5119 $as_echo "$DUMPBIN" >&6; }
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5126 test -n "$DUMPBIN" && break
5129 if test -z "$DUMPBIN"; then
5130 ac_ct_DUMPBIN
=$DUMPBIN
5131 for ac_prog
in dumpbin
"link -dump"
5133 # Extract the first word of "$ac_prog", so it can be a program name with args.
5134 set dummy
$ac_prog; ac_word
=$2
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
5138 $as_echo_n "(cached) " >&6
5140 if test -n "$ac_ct_DUMPBIN"; then
5141 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5147 test -z "$as_dir" && as_dir
=.
5148 for ac_exec_ext
in '' $ac_executable_extensions; do
5149 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5150 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5161 if test -n "$ac_ct_DUMPBIN"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5163 $as_echo "$ac_ct_DUMPBIN" >&6; }
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 $as_echo "no" >&6; }
5170 test -n "$ac_ct_DUMPBIN" && break
5173 if test "x$ac_ct_DUMPBIN" = x
; then
5176 case $cross_compiling:$ac_tool_warned in
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5180 ac_tool_warned
=yes ;;
5182 DUMPBIN
=$ac_ct_DUMPBIN
5186 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5188 DUMPBIN
="$DUMPBIN -symbols"
5196 if test "$DUMPBIN" != ":"; then
5200 test -z "$NM" && NM
=nm
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5208 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5209 if ${lt_cv_nm_interface+:} false
; then :
5210 $as_echo_n "(cached) " >&6
5212 lt_cv_nm_interface
="BSD nm"
5213 echo "int some_variable = 0;" > conftest.
$ac_ext
5214 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5215 (eval "$ac_compile" 2>conftest.err
)
5216 cat conftest.err
>&5
5217 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5218 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5219 cat conftest.err
>&5
5220 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5221 cat conftest.out
>&5
5222 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5223 lt_cv_nm_interface
="MS dumpbin"
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5228 $as_echo "$lt_cv_nm_interface" >&6; }
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5231 $as_echo_n "checking whether ln -s works... " >&6; }
5233 if test "$LN_S" = "ln -s"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5235 $as_echo "yes" >&6; }
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5238 $as_echo "no, using $LN_S" >&6; }
5241 # find the maximum length of command line arguments
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5243 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5244 if ${lt_cv_sys_max_cmd_len+:} false
; then :
5245 $as_echo_n "(cached) " >&6
5252 # On DJGPP, this test can blow up pretty badly due to problems in libc
5253 # (any single argument exceeding 2000 bytes causes a buffer overrun
5254 # during glob expansion). Even if it were fixed, the result of this
5255 # check would be larger than it should be.
5256 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5260 # Under GNU Hurd, this test is not required because there is
5261 # no limit to the length of command line arguments.
5262 # Libtool will interpret -1 as no limit whatsoever
5263 lt_cv_sys_max_cmd_len
=-1;
5266 cygwin
* | mingw
* | cegcc
*)
5267 # On Win9x/ME, this test blows up -- it succeeds, but takes
5268 # about 5 minutes as the teststring grows exponentially.
5269 # Worse, since 9x/ME are not pre-emptively multitasking,
5270 # you end up with a "frozen" computer, even though with patience
5271 # the test eventually succeeds (with a max line length of 256k).
5272 # Instead, let's just punt: use the minimum linelength reported by
5273 # all of the supported platforms: 8192 (on NT/2K/XP).
5274 lt_cv_sys_max_cmd_len
=8192;
5278 # On MiNT this can take a long time and run out of memory.
5279 lt_cv_sys_max_cmd_len
=8192;
5283 # On AmigaOS with pdksh, this test takes hours, literally.
5284 # So we just punt and use a minimum line length of 8192.
5285 lt_cv_sys_max_cmd_len
=8192;
5288 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5289 # This has been around since 386BSD, at least. Likely further.
5290 if test -x /sbin
/sysctl
; then
5291 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5292 elif test -x /usr
/sbin
/sysctl
; then
5293 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5295 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5297 # And add a safety zone
5298 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5299 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5303 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5304 lt_cv_sys_max_cmd_len
=196608
5308 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5309 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5310 # nice to cause kernel panics so lets avoid the loop below.
5311 # First set a reasonable default.
5312 lt_cv_sys_max_cmd_len
=16384
5314 if test -x /sbin
/sysconfig
; then
5315 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5316 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5321 lt_cv_sys_max_cmd_len
=102400
5323 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5324 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5325 if test -n "$kargmax"; then
5326 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5328 lt_cv_sys_max_cmd_len
=32768
5332 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5333 if test -n "$lt_cv_sys_max_cmd_len"; then
5334 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5335 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5337 # Make teststring a little bigger before we do anything with it.
5338 # a 1K string should be a reasonable start.
5339 for i
in 1 2 3 4 5 6 7 8 ; do
5340 teststring
=$teststring$teststring
5342 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5343 # If test is not a shell built-in, we'll probably end up computing a
5344 # maximum length that is only half of the actual maximum length, but
5346 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5347 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
5348 test $i != 17 # 1/2 MB should be enough
5351 teststring
=$teststring$teststring
5353 # Only check the string length outside the loop.
5354 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
5356 # Add a significant safety factor because C++ compilers can tack on
5357 # massive amounts of additional arguments before passing them to the
5358 # linker. It appears as though 1/2 is a usable value.
5359 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5366 if test -n $lt_cv_sys_max_cmd_len ; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5368 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5371 $as_echo "none" >&6; }
5373 max_cmd_len
=$lt_cv_sys_max_cmd_len
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5385 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5386 # Try some XSI features
5389 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5391 && eval 'test $(( 1 + 1 )) -eq 2 \
5392 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
5395 $as_echo "$xsi_shell" >&6; }
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
5399 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5401 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5403 && lt_shell_append=yes
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
5405 $as_echo "$lt_shell_append" >&6; }
5408 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5418 # test EBCDIC or ASCII
5419 case `echo X|tr X '\101'` in
5420 A) # ASCII based system
5421 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5422 lt_SP2NL='tr \040 \012'
5423 lt_NL2SP='tr \015\012 \040\040'
5425 *) # EBCDIC based system
5426 lt_SP2NL='tr \100 \n'
5427 lt_NL2SP='tr \r\n \100\100'
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5440 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5441 if ${lt_cv_ld_reload_flag+:} false; then :
5442 $as_echo_n "(cached
) " >&6
5444 lt_cv_ld_reload_flag='-r'
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5447 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5448 reload_flag=$lt_cv_ld_reload_flag
5449 case $reload_flag in
5451 *) reload_flag=" $reload_flag" ;;
5453 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5456 if test "$GCC" = yes; then
5457 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5459 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5472 if test -n "$ac_tool_prefix"; then
5473 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5474 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5476 $as_echo_n "checking
for $ac_word...
" >&6; }
5477 if ${ac_cv_prog_OBJDUMP+:} false; then :
5478 $as_echo_n "(cached
) " >&6
5480 if test -n "$OBJDUMP"; then
5481 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5500 OBJDUMP=$ac_cv_prog_OBJDUMP
5501 if test -n "$OBJDUMP"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5503 $as_echo "$OBJDUMP" >&6; }
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5506 $as_echo "no
" >&6; }
5511 if test -z "$ac_cv_prog_OBJDUMP"; then
5512 ac_ct_OBJDUMP=$OBJDUMP
5513 # Extract the first word of "objdump
", so it can be a program name with args.
5514 set dummy objdump; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5516 $as_echo_n "checking
for $ac_word...
" >&6; }
5517 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5518 $as_echo_n "(cached
) " >&6
5520 if test -n "$ac_ct_OBJDUMP"; then
5521 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5530 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5531 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5540 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5541 if test -n "$ac_ct_OBJDUMP"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5543 $as_echo "$ac_ct_OBJDUMP" >&6; }
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5546 $as_echo "no
" >&6; }
5549 if test "x
$ac_ct_OBJDUMP" = x; then
5552 case $cross_compiling:$ac_tool_warned in
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5555 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5556 ac_tool_warned=yes ;;
5558 OBJDUMP=$ac_ct_OBJDUMP
5561 OBJDUMP="$ac_cv_prog_OBJDUMP"
5564 test -z "$OBJDUMP" && OBJDUMP=objdump
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5575 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5576 if ${lt_cv_deplibs_check_method+:} false; then :
5577 $as_echo_n "(cached
) " >&6
5579 lt_cv_file_magic_cmd='$MAGIC_CMD'
5580 lt_cv_file_magic_test_file=
5581 lt_cv_deplibs_check_method='unknown'
5582 # Need to set the preceding variable on all platforms that support
5583 # interlibrary dependencies.
5584 # 'none' -- dependencies not supported.
5585 # `unknown' -- same as none, but documents that we really don't know.
5586 # 'pass_all' -- all dependencies passed with no checks.
5587 # 'test_compile' -- check by making test program.
5588 # 'file_magic [[regex]]' -- check by looking for files in library path
5589 # which responds to the $file_magic_cmd with a given extended regex.
5590 # If you have `file' or equivalent on your system and you're not sure
5591 # whether `pass_all' will *always* work, you probably want this one.
5595 lt_cv_deplibs_check_method=pass_all
5599 lt_cv_deplibs_check_method=pass_all
5603 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5604 lt_cv_file_magic_cmd='/usr/bin/file -L'
5605 lt_cv_file_magic_test_file=/shlib/libc.so
5609 # func_win32_libid is a shell function defined in ltmain.sh
5610 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5611 lt_cv_file_magic_cmd='func_win32_libid'
5615 # Base MSYS/MinGW do not provide the 'file' command needed by
5616 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5617 # unless we find 'file', for example because we are cross-compiling.
5618 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5619 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
5620 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5621 lt_cv_file_magic_cmd='func_win32_libid'
5623 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5624 lt_cv_file_magic_cmd='$OBJDUMP -f'
5629 # use the weaker test based on 'objdump'. See mingw*.
5630 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5631 lt_cv_file_magic_cmd='$OBJDUMP -f'
5634 darwin* | rhapsody*)
5635 lt_cv_deplibs_check_method=pass_all
5638 freebsd* | dragonfly*)
5639 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5642 # Not sure whether the presence of OpenBSD here was a mistake.
5643 # Let's accept both of them until this is cleared up.
5644 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5645 lt_cv_file_magic_cmd=/usr/bin/file
5646 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5650 lt_cv_deplibs_check_method=pass_all
5655 lt_cv_deplibs_check_method=pass_all
5659 lt_cv_deplibs_check_method=pass_all
5662 hpux10.20* | hpux11*)
5663 lt_cv_file_magic_cmd=/usr/bin/file
5666 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5667 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5670 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]'
5671 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5674 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5675 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5681 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5685 irix5* | irix6* | nonstopux*)
5687 *-32|*"-32 ") libmagic=32-bit;;
5688 *-n32|*"-n32 ") libmagic=N32;;
5689 *-64|*"-64 ") libmagic=64-bit;;
5690 *) libmagic=never-match;;
5692 lt_cv_deplibs_check_method=pass_all
5695 # This must be Linux ELF.
5696 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5697 lt_cv_deplibs_check_method=pass_all
5701 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5702 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5704 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5709 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5710 lt_cv_file_magic_cmd=/usr/bin/file
5711 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5715 lt_cv_deplibs_check_method=pass_all
5719 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5722 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5726 osf3* | osf4* | osf5*)
5727 lt_cv_deplibs_check_method=pass_all
5731 lt_cv_deplibs_check_method=pass_all
5735 lt_cv_deplibs_check_method=pass_all
5738 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5739 lt_cv_deplibs_check_method=pass_all
5743 case $host_vendor in
5745 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]'
5746 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5749 lt_cv_deplibs_check_method=pass_all
5752 lt_cv_file_magic_cmd='/bin/file'
5753 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5756 lt_cv_file_magic_cmd='/bin/file'
5757 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5758 lt_cv_file_magic_test_file=/lib/libc.so
5761 lt_cv_deplibs_check_method=pass_all
5764 lt_cv_deplibs_check_method=pass_all
5770 lt_cv_deplibs_check_method=pass_all
5773 # Assume VxWorks cross toolchains are built on Linux, possibly
5774 # as canadian for Windows hosts.
5775 lt_cv_deplibs_check_method=pass_all
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5781 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5782 file_magic_cmd=$lt_cv_file_magic_cmd
5783 deplibs_check_method=$lt_cv_deplibs_check_method
5784 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5798 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
5799 for plugin in $plugin_names; do
5800 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5801 if test x$plugin_so = x$plugin; then
5802 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5804 if test x$plugin_so != x$plugin; then
5805 plugin_option="--plugin $plugin_so"
5810 if test -n "$ac_tool_prefix"; then
5811 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5812 set dummy ${ac_tool_prefix}ar; ac_word=$2
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5814 $as_echo_n "checking
for $ac_word...
" >&6; }
5815 if ${ac_cv_prog_AR+:} false; then :
5816 $as_echo_n "(cached
) " >&6
5818 if test -n "$AR"; then
5819 ac_cv_prog_AR="$AR" # Let the user override the test.
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828 ac_cv_prog_AR="${ac_tool_prefix}ar"
5829 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5839 if test -n "$AR"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5841 $as_echo "$AR" >&6; }
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5844 $as_echo "no
" >&6; }
5849 if test -z "$ac_cv_prog_AR"; then
5851 # Extract the first word of "ar", so it can be a program name with args.
5852 set dummy ar; ac_word=$2
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5854 $as_echo_n "checking
for $ac_word...
" >&6; }
5855 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5856 $as_echo_n "(cached
) " >&6
5858 if test -n "$ac_ct_AR"; then
5859 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5868 ac_cv_prog_ac_ct_AR="ar"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5878 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5879 if test -n "$ac_ct_AR"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5881 $as_echo "$ac_ct_AR" >&6; }
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5884 $as_echo "no
" >&6; }
5887 if test "x
$ac_ct_AR" = x; then
5890 case $cross_compiling:$ac_tool_warned in
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5893 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5894 ac_tool_warned=yes ;;
5902 test -z "$AR" && AR=ar
5903 if test -n "$plugin_option"; then
5904 if $AR --help 2>&1 | grep -q "\
--plugin"; then
5906 $AR $plugin_option rc conftest.a conftest.c
5907 if test "$?
" != 0; then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
5909 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
5911 AR="$AR $plugin_option"
5916 test -z "$AR_FLAGS" && AR_FLAGS=cru
5928 if test -n "$ac_tool_prefix"; then
5929 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5930 set dummy ${ac_tool_prefix}strip; ac_word=$2
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5932 $as_echo_n "checking
for $ac_word...
" >&6; }
5933 if ${ac_cv_prog_STRIP+:} false; then :
5934 $as_echo_n "(cached
) " >&6
5936 if test -n "$STRIP"; then
5937 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5946 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5947 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5956 STRIP=$ac_cv_prog_STRIP
5957 if test -n "$STRIP"; then
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
5959 $as_echo "$STRIP" >&6; }
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5962 $as_echo "no
" >&6; }
5967 if test -z "$ac_cv_prog_STRIP"; then
5969 # Extract the first word of "strip
", so it can be a program name with args.
5970 set dummy strip; ac_word=$2
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5972 $as_echo_n "checking
for $ac_word...
" >&6; }
5973 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5974 $as_echo_n "(cached
) " >&6
5976 if test -n "$ac_ct_STRIP"; then
5977 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986 ac_cv_prog_ac_ct_STRIP="strip
"
5987 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5996 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5997 if test -n "$ac_ct_STRIP"; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
5999 $as_echo "$ac_ct_STRIP" >&6; }
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6002 $as_echo "no
" >&6; }
6005 if test "x
$ac_ct_STRIP" = x; then
6008 case $cross_compiling:$ac_tool_warned in
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6011 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6012 ac_tool_warned=yes ;;
6017 STRIP="$ac_cv_prog_STRIP"
6020 test -z "$STRIP" && STRIP=:
6027 if test -n "$ac_tool_prefix"; then
6028 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6029 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6031 $as_echo_n "checking
for $ac_word...
" >&6; }
6032 if ${ac_cv_prog_RANLIB+:} false; then :
6033 $as_echo_n "(cached
) " >&6
6035 if test -n "$RANLIB"; then
6036 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6045 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6046 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6055 RANLIB=$ac_cv_prog_RANLIB
6056 if test -n "$RANLIB"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6058 $as_echo "$RANLIB" >&6; }
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6061 $as_echo "no
" >&6; }
6066 if test -z "$ac_cv_prog_RANLIB"; then
6067 ac_ct_RANLIB=$RANLIB
6068 # Extract the first word of "ranlib
", so it can be a program name with args.
6069 set dummy ranlib; ac_word=$2
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6071 $as_echo_n "checking
for $ac_word...
" >&6; }
6072 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6073 $as_echo_n "(cached
) " >&6
6075 if test -n "$ac_ct_RANLIB"; then
6076 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6085 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6086 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6095 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6096 if test -n "$ac_ct_RANLIB"; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6098 $as_echo "$ac_ct_RANLIB" >&6; }
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6101 $as_echo "no
" >&6; }
6104 if test "x
$ac_ct_RANLIB" = x; then
6107 case $cross_compiling:$ac_tool_warned in
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6110 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6111 ac_tool_warned=yes ;;
6113 RANLIB=$ac_ct_RANLIB
6116 RANLIB="$ac_cv_prog_RANLIB"
6119 test -z "$RANLIB" && RANLIB=:
6120 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6121 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
6122 RANLIB="$RANLIB $plugin_option"
6131 # Determine commands to create old-style static archives.
6132 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6133 old_postinstall_cmds='chmod 644 $oldlib'
6134 old_postuninstall_cmds=
6136 if test -n "$RANLIB"; then
6139 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6142 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6145 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6150 lock_old_archive_extraction=yes ;;
6152 lock_old_archive_extraction=no ;;
6193 # If no C compiler was specified, use CC.
6196 # If no C compiler flags were specified, use CFLAGS.
6197 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6199 # Allow CC to be a program name with arguments.
6203 # Check for command to grab the raw symbol name followed by C symbol from nm.
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6205 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6206 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6207 $as_echo_n "(cached
) " >&6
6210 # These are sane defaults that work on at least a few old systems.
6211 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6213 # Character class describing NM global symbol codes.
6214 symcode='[BCDEGRST]'
6216 # Regexp to match symbols that can be accessed directly from C.
6217 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6219 # Define system-specific variables.
6224 cygwin* | mingw* | pw32* | cegcc*)
6225 symcode='[ABCDGISTW]'
6228 if test "$host_cpu" = ia64; then
6229 symcode='[ABCDEGRST]'
6233 symcode='[BCDEGRST]'
6236 symcode='[BCDEGQRST]'
6247 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6255 # If we're using GNU nm, then use its standard symbol codes.
6256 case `$NM -V 2>&1` in
6257 *GNU* | *'with BFD'*)
6258 symcode='[ABCDGIRSTW]' ;;
6261 # Transform an extracted symbol line into a proper C declaration.
6262 # Some systems (esp. on ia64) link data and code symbols differently,
6263 # so use this general approach.
6264 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6266 # Transform an extracted symbol line into symbol name and symbol address
6267 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6268 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'"
6270 # Handle CRLF in mingw tool chain
6274 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6278 # Try without a prefix underscore, then with it.
6279 for ac_symprfx in "" "_
"; do
6281 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6282 symxfrm="\\1 $ac_symprfx\\2 \\2"
6284 # Write the raw and C identifiers.
6285 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6286 # Fake it for dumpbin and say T for any non-static function
6287 # and D for any global variable.
6288 # Also find C++ and __fastcall symbols from MSVC++,
6289 # which start with @ or ?.
6290 lt_cv_sys_global_symbol_pipe="$AWK '"\
6291 " {last_section=section; section=\$ 3};"\
6292 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6293 " \$ 0!~/External *\|/{next};"\
6294 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6295 " {if(hide[section]) next};"\
6296 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6297 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6298 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6299 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6300 " ' prfx
=^
$ac_symprfx"
6302 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6305 # Check to see that the pipe works correctly.
6309 cat > conftest.$ac_ext <<_LT_EOF
6314 void nm_test_func(void);
6315 void nm_test_func(void){}
6319 int main(){nm_test_var='a';nm_test_func();return(0);}
6322 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6323 (eval $ac_compile) 2>&5
6325 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6326 test $ac_status = 0; }; then
6327 # Now try to grab the symbols.
6329 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6330 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6332 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6333 test $ac_status = 0; } && test -s "$nlist"; then
6334 # Try sorting and uniquifying the output.
6335 if sort "$nlist" | uniq > "$nlist"T; then
6336 mv -f "$nlist"T "$nlist"
6341 # Make sure that we snagged all the symbols we need.
6342 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6343 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6344 cat <<_LT_EOF > conftest.$ac_ext
6350 # Now generate the symbol file.
6351 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6353 cat <<_LT_EOF >> conftest.$ac_ext
6355 /* The mapping between symbol names and symbols. */
6360 lt__PROGRAM__LTX_preloaded_symbols[] =
6362 { "@PROGRAM@
", (void *) 0 },
6364 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6365 cat <<\_LT_EOF >> conftest.$ac_ext
6369 /* This works around a problem in FreeBSD linker */
6370 #ifdef FREEBSD_WORKAROUND
6371 static const void *lt_preloaded_setup() {
6372 return lt__PROGRAM__LTX_preloaded_symbols;
6380 # Now try linking the two files.
6381 mv conftest.$ac_objext conftstm.$ac_objext
6382 lt_save_LIBS="$LIBS"
6383 lt_save_CFLAGS="$CFLAGS"
6384 LIBS="conftstm.
$ac_objext"
6385 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6386 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6387 (eval $ac_link) 2>&5
6389 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6390 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6393 LIBS="$lt_save_LIBS"
6394 CFLAGS="$lt_save_CFLAGS"
6396 echo "cannot
find nm_test_func
in $nlist" >&5
6399 echo "cannot
find nm_test_var
in $nlist" >&5
6402 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6405 echo "$progname: failed program was
:" >&5
6406 cat conftest.$ac_ext >&5
6408 rm -rf conftest* conftst*
6410 # Do not use the global_symbol_pipe unless it works.
6411 if test "$pipe_works" = yes; then
6414 lt_cv_sys_global_symbol_pipe=
6420 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6421 lt_cv_sys_global_symbol_to_cdecl=
6423 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6425 $as_echo "failed
" >&6; }
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6428 $as_echo "ok
" >&6; }
6452 # Check whether --enable-libtool-lock was given.
6453 if test "${enable_libtool_lock+set}" = set; then :
6454 enableval=$enable_libtool_lock;
6457 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6459 # Some flags need to be propagated to the compiler or linker for good
6463 # Find out which ABI we are using.
6464 echo 'int i;' > conftest.$ac_ext
6465 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6466 (eval $ac_compile) 2>&5
6468 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6469 test $ac_status = 0; }; then
6470 case `/usr/bin/file conftest.$ac_objext` in
6482 # Find out which ABI we are using.
6483 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6484 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6485 (eval $ac_compile) 2>&5
6487 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6488 test $ac_status = 0; }; then
6489 if test "$lt_cv_prog_gnu_ld" = yes; then
6490 case `/usr/bin/file conftest.$ac_objext` in
6492 LD="${LD-ld} -melf32bsmip"
6495 LD="${LD-ld} -melf32bmipn32"
6498 LD="${LD-ld} -melf64bmip"
6502 case `/usr/bin/file conftest.$ac_objext` in
6518 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6519 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6520 # Find out which ABI we are using.
6521 echo 'int i;' > conftest.$ac_ext
6522 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6523 (eval $ac_compile) 2>&5
6525 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6526 test $ac_status = 0; }; then
6527 case `/usr/bin/file conftest.o` in
6530 x86_64-*kfreebsd*-gnu)
6531 LD="${LD-ld} -m elf_i386_fbsd
"
6534 case `/usr/bin/file conftest.o` in
6536 LD="${LD-ld} -m elf32_x86_64
"
6539 LD="${LD-ld} -m elf_i386
"
6543 powerpc64le-*linux*)
6544 LD="${LD-ld} -m elf32lppclinux
"
6547 LD="${LD-ld} -m elf32ppclinux
"
6550 LD="${LD-ld} -m elf_s390
"
6553 LD="${LD-ld} -m elf32_sparc
"
6559 x86_64-*kfreebsd*-gnu)
6560 LD="${LD-ld} -m elf_x86_64_fbsd
"
6563 LD="${LD-ld} -m elf_x86_64
"
6566 LD="${LD-ld} -m elf64lppc
"
6569 LD="${LD-ld} -m elf64ppc
"
6571 s390*-*linux*|s390*-*tpf*)
6572 LD="${LD-ld} -m elf64_s390
"
6575 LD="${LD-ld} -m elf64_sparc
"
6585 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6586 SAVE_CFLAGS="$CFLAGS"
6587 CFLAGS="$CFLAGS -belf"
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6589 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6590 if ${lt_cv_cc_needs_belf+:} false; then :
6591 $as_echo_n "(cached
) " >&6
6594 ac_cpp='$CPP $CPPFLAGS'
6595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6610 if ac_fn_c_try_link "$LINENO"; then :
6611 lt_cv_cc_needs_belf=yes
6613 lt_cv_cc_needs_belf=no
6615 rm -f core conftest.err conftest.$ac_objext \
6616 conftest$ac_exeext conftest.$ac_ext
6618 ac_cpp='$CPP $CPPFLAGS'
6619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6625 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6626 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6627 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6628 CFLAGS="$SAVE_CFLAGS"
6632 # Find out which ABI we are using.
6633 echo 'int i;' > conftest.$ac_ext
6634 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6635 (eval $ac_compile) 2>&5
6637 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6638 test $ac_status = 0; }; then
6639 case `/usr/bin/file conftest.o` in
6641 case $lt_cv_prog_gnu_ld in
6642 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6644 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6656 need_locks="$enable_libtool_lock"
6660 rhapsody* | darwin*)
6661 if test -n "$ac_tool_prefix"; then
6662 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6663 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6665 $as_echo_n "checking
for $ac_word...
" >&6; }
6666 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6667 $as_echo_n "(cached
) " >&6
6669 if test -n "$DSYMUTIL"; then
6670 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6680 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6689 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6690 if test -n "$DSYMUTIL"; then
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
6692 $as_echo "$DSYMUTIL" >&6; }
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6695 $as_echo "no
" >&6; }
6700 if test -z "$ac_cv_prog_DSYMUTIL"; then
6701 ac_ct_DSYMUTIL=$DSYMUTIL
6702 # Extract the first word of "dsymutil
", so it can be a program name with args.
6703 set dummy dsymutil; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6705 $as_echo_n "checking
for $ac_word...
" >&6; }
6706 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6707 $as_echo_n "(cached
) " >&6
6709 if test -n "$ac_ct_DSYMUTIL"; then
6710 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6719 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6720 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6729 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6730 if test -n "$ac_ct_DSYMUTIL"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
6732 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6735 $as_echo "no
" >&6; }
6738 if test "x
$ac_ct_DSYMUTIL" = x; then
6741 case $cross_compiling:$ac_tool_warned in
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6744 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6745 ac_tool_warned=yes ;;
6747 DSYMUTIL=$ac_ct_DSYMUTIL
6750 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6753 if test -n "$ac_tool_prefix"; then
6754 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6755 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6757 $as_echo_n "checking
for $ac_word...
" >&6; }
6758 if ${ac_cv_prog_NMEDIT+:} false; then :
6759 $as_echo_n "(cached
) " >&6
6761 if test -n "$NMEDIT"; then
6762 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6771 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6772 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6781 NMEDIT=$ac_cv_prog_NMEDIT
6782 if test -n "$NMEDIT"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
6784 $as_echo "$NMEDIT" >&6; }
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6787 $as_echo "no
" >&6; }
6792 if test -z "$ac_cv_prog_NMEDIT"; then
6793 ac_ct_NMEDIT=$NMEDIT
6794 # Extract the first word of "nmedit
", so it can be a program name with args.
6795 set dummy nmedit; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6797 $as_echo_n "checking
for $ac_word...
" >&6; }
6798 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6799 $as_echo_n "(cached
) " >&6
6801 if test -n "$ac_ct_NMEDIT"; then
6802 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6811 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6812 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6821 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6822 if test -n "$ac_ct_NMEDIT"; then
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
6824 $as_echo "$ac_ct_NMEDIT" >&6; }
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6827 $as_echo "no
" >&6; }
6830 if test "x
$ac_ct_NMEDIT" = x; then
6833 case $cross_compiling:$ac_tool_warned in
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6836 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6837 ac_tool_warned=yes ;;
6839 NMEDIT=$ac_ct_NMEDIT
6842 NMEDIT="$ac_cv_prog_NMEDIT"
6845 if test -n "$ac_tool_prefix"; then
6846 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6847 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6849 $as_echo_n "checking
for $ac_word...
" >&6; }
6850 if ${ac_cv_prog_LIPO+:} false; then :
6851 $as_echo_n "(cached
) " >&6
6853 if test -n "$LIPO"; then
6854 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6863 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6864 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6873 LIPO=$ac_cv_prog_LIPO
6874 if test -n "$LIPO"; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
6876 $as_echo "$LIPO" >&6; }
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6879 $as_echo "no
" >&6; }
6884 if test -z "$ac_cv_prog_LIPO"; then
6886 # Extract the first word of "lipo
", so it can be a program name with args.
6887 set dummy lipo; ac_word=$2
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6889 $as_echo_n "checking
for $ac_word...
" >&6; }
6890 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6891 $as_echo_n "(cached
) " >&6
6893 if test -n "$ac_ct_LIPO"; then
6894 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6903 ac_cv_prog_ac_ct_LIPO="lipo
"
6904 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6913 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6914 if test -n "$ac_ct_LIPO"; then
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
6916 $as_echo "$ac_ct_LIPO" >&6; }
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6919 $as_echo "no
" >&6; }
6922 if test "x
$ac_ct_LIPO" = x; then
6925 case $cross_compiling:$ac_tool_warned in
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6928 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6929 ac_tool_warned=yes ;;
6934 LIPO="$ac_cv_prog_LIPO"
6937 if test -n "$ac_tool_prefix"; then
6938 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
6939 set dummy ${ac_tool_prefix}otool; ac_word=$2
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6941 $as_echo_n "checking
for $ac_word...
" >&6; }
6942 if ${ac_cv_prog_OTOOL+:} false; then :
6943 $as_echo_n "(cached
) " >&6
6945 if test -n "$OTOOL"; then
6946 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
6956 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6965 OTOOL=$ac_cv_prog_OTOOL
6966 if test -n "$OTOOL"; then
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
6968 $as_echo "$OTOOL" >&6; }
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6971 $as_echo "no
" >&6; }
6976 if test -z "$ac_cv_prog_OTOOL"; then
6978 # Extract the first word of "otool
", so it can be a program name with args.
6979 set dummy otool; ac_word=$2
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6981 $as_echo_n "checking
for $ac_word...
" >&6; }
6982 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6983 $as_echo_n "(cached
) " >&6
6985 if test -n "$ac_ct_OTOOL"; then
6986 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6995 ac_cv_prog_ac_ct_OTOOL="otool
"
6996 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7005 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7006 if test -n "$ac_ct_OTOOL"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7008 $as_echo "$ac_ct_OTOOL" >&6; }
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7011 $as_echo "no
" >&6; }
7014 if test "x
$ac_ct_OTOOL" = x; then
7017 case $cross_compiling:$ac_tool_warned in
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7020 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7021 ac_tool_warned=yes ;;
7026 OTOOL="$ac_cv_prog_OTOOL"
7029 if test -n "$ac_tool_prefix"; then
7030 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7031 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7033 $as_echo_n "checking
for $ac_word...
" >&6; }
7034 if ${ac_cv_prog_OTOOL64+:} false; then :
7035 $as_echo_n "(cached
) " >&6
7037 if test -n "$OTOOL64"; then
7038 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7047 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7048 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7057 OTOOL64=$ac_cv_prog_OTOOL64
7058 if test -n "$OTOOL64"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7060 $as_echo "$OTOOL64" >&6; }
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7063 $as_echo "no
" >&6; }
7068 if test -z "$ac_cv_prog_OTOOL64"; then
7069 ac_ct_OTOOL64=$OTOOL64
7070 # Extract the first word of "otool64
", so it can be a program name with args.
7071 set dummy otool64; ac_word=$2
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7073 $as_echo_n "checking
for $ac_word...
" >&6; }
7074 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7075 $as_echo_n "(cached
) " >&6
7077 if test -n "$ac_ct_OTOOL64"; then
7078 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7087 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7088 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7097 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7098 if test -n "$ac_ct_OTOOL64"; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7100 $as_echo "$ac_ct_OTOOL64" >&6; }
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7103 $as_echo "no
" >&6; }
7106 if test "x
$ac_ct_OTOOL64" = x; then
7109 case $cross_compiling:$ac_tool_warned in
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7112 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7113 ac_tool_warned=yes ;;
7115 OTOOL64=$ac_ct_OTOOL64
7118 OTOOL64="$ac_cv_prog_OTOOL64"
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7148 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7149 if ${lt_cv_apple_cc_single_mod+:} false; then :
7150 $as_echo_n "(cached
) " >&6
7152 lt_cv_apple_cc_single_mod=no
7153 if test -z "${LT_MULTI_MODULE}"; then
7154 # By default we will add the -single_module flag. You can override
7155 # by either setting the environment variable LT_MULTI_MODULE
7156 # non-empty at configure time, or by adding -multi_module to the
7158 rm -rf libconftest.dylib*
7159 echo "int foo
(void
){return 1;}" > conftest.c
7160 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7161 -dynamiclib -Wl,-single_module conftest.c
" >&5
7162 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7163 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7165 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7166 lt_cv_apple_cc_single_mod=yes
7168 cat conftest.err >&5
7170 rm -rf libconftest.dylib*
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7175 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7177 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7178 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7179 $as_echo_n "(cached
) " >&6
7181 lt_cv_ld_exported_symbols_list=no
7182 save_LDFLAGS=$LDFLAGS
7183 echo "_main
" > conftest.sym
7184 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7196 if ac_fn_c_try_link "$LINENO"; then :
7197 lt_cv_ld_exported_symbols_list=yes
7199 lt_cv_ld_exported_symbols_list=no
7201 rm -f core conftest.err conftest.$ac_objext \
7202 conftest$ac_exeext conftest.$ac_ext
7203 LDFLAGS="$save_LDFLAGS"
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7207 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7209 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7210 if ${lt_cv_ld_force_load+:} false; then :
7211 $as_echo_n "(cached
) " >&6
7213 lt_cv_ld_force_load=no
7214 cat > conftest.c << _LT_EOF
7215 int forced_loaded() { return 2;}
7217 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7218 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7219 echo "$AR cru libconftest.a conftest.o
" >&5
7220 $AR cru libconftest.a conftest.o 2>&5
7221 cat > conftest.c << _LT_EOF
7222 int main() { return 0;}
7224 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7225 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7227 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7228 lt_cv_ld_force_load=yes
7230 cat conftest.err >&5
7232 rm -f conftest.err libconftest.a conftest conftest.c
7233 rm -rf conftest.dSYM
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7237 $as_echo "$lt_cv_ld_force_load" >&6; }
7238 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7239 # build without first building modern cctools / linker.
7240 case $host_cpu-$host_os in
7241 *-rhapsody* | *-darwin1.[012])
7242 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7244 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7246 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7247 # deployment target is forced to an earlier version.
7248 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7249 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7252 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7259 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7260 _lt_dar_single_mod='$single_module'
7262 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7263 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7265 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7267 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7268 _lt_dsymutil='~$DSYMUTIL $lib || :'
7275 for ac_header in dlfcn.h
7277 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
7279 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
7280 cat >>confdefs.h <<_ACEOF
7281 #define HAVE_DLFCN_H 1
7302 # Check whether --enable-shared was given.
7303 if test "${enable_shared+set}" = set; then :
7304 enableval=$enable_shared; p=${PACKAGE-default}
7306 yes) enable_shared=yes ;;
7307 no) enable_shared=no ;;
7310 # Look at the argument we got. We use all the common list separators.
7311 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7312 for pkg in $enableval; do
7314 if test "X
$pkg" = "X
$p"; then
7333 # Check whether --enable-static was given.
7334 if test "${enable_static+set}" = set; then :
7335 enableval=$enable_static; p=${PACKAGE-default}
7337 yes) enable_static=yes ;;
7338 no) enable_static=no ;;
7341 # Look at the argument we got. We use all the common list separators.
7342 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7343 for pkg in $enableval; do
7345 if test "X
$pkg" = "X
$p"; then
7365 # Check whether --with-pic was given.
7366 if test "${with_pic+set}" = set; then :
7367 withval=$with_pic; pic_mode="$withval"
7373 test -z "$pic_mode" && pic_mode=default
7381 # Check whether --enable-fast-install was given.
7382 if test "${enable_fast_install+set}" = set; then :
7383 enableval=$enable_fast_install; p=${PACKAGE-default}
7385 yes) enable_fast_install=yes ;;
7386 no) enable_fast_install=no ;;
7388 enable_fast_install=no
7389 # Look at the argument we got. We use all the common list separators.
7390 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7391 for pkg in $enableval; do
7393 if test "X
$pkg" = "X
$p"; then
7394 enable_fast_install=yes
7401 enable_fast_install=yes
7414 # This can be used to rebuild libtool when needed
7415 LIBTOOL_DEPS="$ltmain"
7417 # Always use our own libtool.
7418 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7445 test -z "$LN_S" && LN_S="ln -s"
7460 if test -n "${ZSH_VERSION+set}" ; then
7461 setopt NO_GLOB_SUBST
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
7465 $as_echo_n "checking
for objdir...
" >&6; }
7466 if ${lt_cv_objdir+:} false; then :
7467 $as_echo_n "(cached
) " >&6
7469 rm -f .libs 2>/dev/null
7470 mkdir .libs 2>/dev/null
7471 if test -d .libs; then
7474 # MS-DOS does not allow filenames that begin with a dot.
7477 rmdir .libs 2>/dev/null
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
7480 $as_echo "$lt_cv_objdir" >&6; }
7481 objdir=$lt_cv_objdir
7487 cat >>confdefs.h <<_ACEOF
7488 #define LT_OBJDIR "$lt_cv_objdir/"
7496 # AIX sometimes has problems with the GCC collect2 program. For some
7497 # reason, if we set the COLLECT_NAMES environment variable, the problems
7498 # vanish in a puff of smoke.
7499 if test "X
${COLLECT_NAMES+set}" != Xset; then
7501 export COLLECT_NAMES
7508 can_build_shared=yes
7510 # All known linkers require a `.a' archive for static linking (except MSVC,
7511 # which needs '.lib').
7514 with_gnu_ld="$lt_cv_prog_gnu_ld"
7517 old_CFLAGS="$CFLAGS"
7519 # Set sane defaults for various variables
7520 test -z "$CC" && CC=cc
7521 test -z "$LTCC" && LTCC=$CC
7522 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7523 test -z "$LD" && LD=ld
7524 test -z "$ac_objext" && ac_objext=o
7526 for cc_temp in $compiler""; do
7528 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7529 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7534 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
7537 # Only perform the check for file, if the check method requires it
7538 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7539 case $deplibs_check_method in
7541 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
7543 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
7544 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7545 $as_echo_n "(cached
) " >&6
7549 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7552 lt_save_MAGIC_CMD="$MAGIC_CMD"
7553 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7554 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
7555 for ac_dir in $ac_dummy; do
7557 test -z "$ac_dir" && ac_dir=.
7558 if test -f $ac_dir/${ac_tool_prefix}file; then
7559 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7560 if test -n "$file_magic_test_file"; then
7561 case $deplibs_check_method in
7563 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
7564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7565 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7566 $EGREP "$file_magic_regex" > /dev/null; then
7571 *** Warning: the command libtool uses to detect shared libraries,
7572 *** $file_magic_cmd, produces output that libtool cannot recognize.
7573 *** The result is that libtool may fail to recognize shared libraries
7574 *** as such. This will affect the creation of libtool libraries that
7575 *** depend on shared libraries, but programs linked with such libtool
7576 *** libraries will work regardless of this problem. Nevertheless, you
7577 *** may want to report the problem to your system manager and/or to
7578 *** bug-libtool@gnu.org
7588 MAGIC_CMD="$lt_save_MAGIC_CMD"
7593 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7594 if test -n "$MAGIC_CMD"; then
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
7596 $as_echo "$MAGIC_CMD" >&6; }
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7599 $as_echo "no
" >&6; }
7606 if test -z "$lt_cv_path_MAGIC_CMD"; then
7607 if test -n "$ac_tool_prefix"; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
7609 $as_echo_n "checking
for file...
" >&6; }
7610 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7611 $as_echo_n "(cached
) " >&6
7615 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7618 lt_save_MAGIC_CMD="$MAGIC_CMD"
7619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7620 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
7621 for ac_dir in $ac_dummy; do
7623 test -z "$ac_dir" && ac_dir=.
7624 if test -f $ac_dir/file; then
7625 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7626 if test -n "$file_magic_test_file"; then
7627 case $deplibs_check_method in
7629 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
7630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7631 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7632 $EGREP "$file_magic_regex" > /dev/null; then
7637 *** Warning: the command libtool uses to detect shared libraries,
7638 *** $file_magic_cmd, produces output that libtool cannot recognize.
7639 *** The result is that libtool may fail to recognize shared libraries
7640 *** as such. This will affect the creation of libtool libraries that
7641 *** depend on shared libraries, but programs linked with such libtool
7642 *** libraries will work regardless of this problem. Nevertheless, you
7643 *** may want to report the problem to your system manager and/or to
7644 *** bug-libtool@gnu.org
7654 MAGIC_CMD="$lt_save_MAGIC_CMD"
7659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7660 if test -n "$MAGIC_CMD"; then
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
7662 $as_echo "$MAGIC_CMD" >&6; }
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7665 $as_echo "no
" >&6; }
7678 # Use C for the default configuration in the libtool script
7682 ac_cpp='$CPP $CPPFLAGS'
7683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7688 # Source file extension for C test sources.
7691 # Object file extension for compiled C test sources.
7695 # Code to be used in simple compile tests
7696 lt_simple_compile_test_code="int some_variable
= 0;"
7698 # Code to be used in simple link tests
7699 lt_simple_link_test_code='int main(){return(0);}'
7707 # If no C compiler was specified, use CC.
7710 # If no C compiler flags were specified, use CFLAGS.
7711 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7713 # Allow CC to be a program name with arguments.
7716 # Save the default compiler, since it gets overwritten when the other
7717 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7718 compiler_DEFAULT=$CC
7720 # save warnings/boilerplate of simple test code
7721 ac_outfile=conftest.$ac_objext
7722 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7723 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7724 _lt_compiler_boilerplate=`cat conftest.err`
7727 ac_outfile=conftest.$ac_objext
7728 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7729 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7730 _lt_linker_boilerplate=`cat conftest.err`
7735 ## There is no encapsulation within the following macros, do not change
7736 ## the running order or otherwise move them around unless you know exactly
7737 ## what you are doing...
7738 if test -n "$compiler"; then
7740 lt_prog_compiler_no_builtin_flag=
7742 if test "$GCC" = yes; then
7743 case $cc_basename in
7745 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7747 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
7751 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
7752 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7753 $as_echo_n "(cached
) " >&6
7755 lt_cv_prog_compiler_rtti_exceptions=no
7756 ac_outfile=conftest.$ac_objext
7757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7758 lt_compiler_flag="-fno-rtti -fno-exceptions"
7759 # Insert the option either (1) after the last *FLAGS variable, or
7760 # (2) before a word containing "conftest.
", or (3) at the end.
7761 # Note that $ac_compile itself does not contain backslashes and begins
7762 # with a dollar sign (not a hyphen), so the echo should work correctly.
7763 # The option is referenced via a variable to avoid confusing sed.
7764 lt_compile=`echo "$ac_compile" | $SED \
7765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7767 -e 's:$: $lt_compiler_flag:'`
7768 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
7769 (eval "$lt_compile" 2>conftest.err)
7771 cat conftest.err >&5
7772 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7773 if (exit $ac_status) && test -s "$ac_outfile"; then
7774 # The compiler can only warn and ignore the option if not recognized
7775 # So say no if there are warnings other than the usual output.
7776 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7777 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7778 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7779 lt_cv_prog_compiler_rtti_exceptions=yes
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
7786 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7788 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7789 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7801 lt_prog_compiler_wl=
7802 lt_prog_compiler_pic=
7803 lt_prog_compiler_static=
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
7806 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
7808 if test "$GCC" = yes; then
7809 lt_prog_compiler_wl='-Wl,'
7810 lt_prog_compiler_static='-static'
7814 # All AIX code is PIC.
7815 if test "$host_cpu" = ia64; then
7816 # AIX 5 now supports IA64 processor
7817 lt_prog_compiler_static='-Bstatic'
7819 lt_prog_compiler_pic='-fPIC'
7825 # see comment about AmigaOS4 .so support
7826 lt_prog_compiler_pic='-fPIC'
7829 # FIXME: we need at least 68020 code to build shared libraries, but
7830 # adding the `-m68020' flag to GCC prevents building anything better,
7832 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7837 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7838 # PIC is the default for these OSes.
7841 mingw* | cygwin* | pw32* | os2* | cegcc*)
7842 # This hack is so that the source file can tell whether it is being
7843 # built for inclusion in a dll (and should export symbols for example).
7844 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7845 # (--disable-auto-import) libraries
7846 lt_prog_compiler_pic='-DDLL_EXPORT'
7849 darwin* | rhapsody*)
7850 # PIC is the default on this platform
7851 # Common symbols not allowed in MH_DYLIB files
7852 lt_prog_compiler_pic='-fno-common'
7856 # PIC is the default for Haiku.
7857 # The "-static" flag exists, but is broken.
7858 lt_prog_compiler_static=
7862 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7863 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7864 # sets the default TLS model and affects inlining.
7870 lt_prog_compiler_pic='-fPIC'
7876 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7877 # Instead, we relocate shared libraries at runtime.
7881 # Just because we use GCC doesn't mean we suddenly get shared libraries
7882 # on systems that don't support them.
7883 lt_prog_compiler_can_build_shared=no
7888 # QNX uses GNU C++, but need to define -shared option too, otherwise
7890 lt_prog_compiler_pic='-fPIC -shared'
7894 if test -d /usr/nec; then
7895 lt_prog_compiler_pic=-Kconform_pic
7900 lt_prog_compiler_pic='-fPIC'
7904 case $cc_basename in
7905 nvcc*) # Cuda Compiler Driver 2.2
7906 lt_prog_compiler_wl='-Xlinker '
7907 lt_prog_compiler_pic='-Xcompiler -fPIC'
7911 # PORTME Check for flag to pass linker flags through the system compiler.
7914 lt_prog_compiler_wl='-Wl,'
7915 if test "$host_cpu" = ia64; then
7916 # AIX 5 now supports IA64 processor
7917 lt_prog_compiler_static='-Bstatic'
7919 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7923 mingw* | cygwin* | pw32* | os2* | cegcc*)
7924 # This hack is so that the source file can tell whether it is being
7925 # built for inclusion in a dll (and should export symbols for example).
7926 lt_prog_compiler_pic='-DDLL_EXPORT'
7929 hpux9* | hpux10* | hpux11*)
7930 lt_prog_compiler_wl='-Wl,'
7931 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7938 lt_prog_compiler_pic='+Z'
7941 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7942 lt_prog_compiler_static='${wl}-a ${wl}archive'
7945 irix5* | irix6* | nonstopux*)
7946 lt_prog_compiler_wl='-Wl,'
7947 # PIC (with -KPIC) is the default.
7948 lt_prog_compiler_static='-non_shared'
7951 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7952 case $cc_basename in
7953 # old Intel for x86_64 which still supported -KPIC.
7955 lt_prog_compiler_wl='-Wl,'
7956 lt_prog_compiler_pic='-KPIC'
7957 lt_prog_compiler_static='-static'
7959 # icc used to be incompatible with GCC.
7960 # ICC 10 doesn't accept -KPIC any more.
7962 lt_prog_compiler_wl='-Wl,'
7963 lt_prog_compiler_pic='-fPIC'
7964 lt_prog_compiler_static='-static'
7966 # Lahey Fortran 8.1.
7968 lt_prog_compiler_wl='-Wl,'
7969 lt_prog_compiler_pic='--shared'
7970 lt_prog_compiler_static='--static'
7972 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7973 # Portland Group compilers (*not* the Pentium gcc compiler,
7974 # which looks to be a dead project)
7975 lt_prog_compiler_wl='-Wl,'
7976 lt_prog_compiler_pic='-fpic'
7977 lt_prog_compiler_static='-Bstatic'
7980 lt_prog_compiler_wl='-Wl,'
7981 # All Alpha code is PIC.
7982 lt_prog_compiler_static='-non_shared'
7984 xl* | bgxl* | bgf* | mpixl*)
7985 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7986 lt_prog_compiler_wl='-Wl,'
7987 lt_prog_compiler_pic='-qpic'
7988 lt_prog_compiler_static='-qstaticlink'
7991 case `$CC -V 2>&1 | sed 5q` in
7992 *Sun\ F* | *Sun*Fortran*)
7993 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7994 lt_prog_compiler_pic='-KPIC'
7995 lt_prog_compiler_static='-Bstatic'
7996 lt_prog_compiler_wl=''
8000 lt_prog_compiler_pic='-KPIC'
8001 lt_prog_compiler_static='-Bstatic'
8002 lt_prog_compiler_wl='-Wl,'
8010 lt_prog_compiler_pic='-KPIC'
8011 lt_prog_compiler_static='-Bstatic'
8015 # QNX uses GNU C++, but need to define -shared option too, otherwise
8017 lt_prog_compiler_pic='-fPIC -shared'
8020 osf3* | osf4* | osf5*)
8021 lt_prog_compiler_wl='-Wl,'
8022 # All OSF/1 code is PIC.
8023 lt_prog_compiler_static='-non_shared'
8027 lt_prog_compiler_static='-non_shared'
8031 lt_prog_compiler_pic='-KPIC'
8032 lt_prog_compiler_static='-Bstatic'
8033 case $cc_basename in
8035 lt_prog_compiler_wl='-Qoption ld ';;
8037 lt_prog_compiler_wl='-Wl,';;
8042 lt_prog_compiler_wl='-Qoption ld '
8043 lt_prog_compiler_pic='-PIC'
8044 lt_prog_compiler_static='-Bstatic'
8047 sysv4 | sysv4.2uw2* | sysv4.3*)
8048 lt_prog_compiler_wl='-Wl,'
8049 lt_prog_compiler_pic='-KPIC'
8050 lt_prog_compiler_static='-Bstatic'
8054 if test -d /usr/nec ;then
8055 lt_prog_compiler_pic='-Kconform_pic'
8056 lt_prog_compiler_static='-Bstatic'
8060 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8061 lt_prog_compiler_wl='-Wl,'
8062 lt_prog_compiler_pic='-KPIC'
8063 lt_prog_compiler_static='-Bstatic'
8067 lt_prog_compiler_wl='-Wl,'
8068 lt_prog_compiler_can_build_shared=no
8072 lt_prog_compiler_pic='-pic'
8073 lt_prog_compiler_static='-Bstatic'
8077 lt_prog_compiler_can_build_shared=no
8083 # For platforms which do not support PIC, -DPIC is meaningless:
8085 lt_prog_compiler_pic=
8088 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
8092 $as_echo "$lt_prog_compiler_pic" >&6; }
8100 # Check to make sure the PIC flag actually works.
8102 if test -n "$lt_prog_compiler_pic"; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
8104 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
8105 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8106 $as_echo_n "(cached
) " >&6
8108 lt_cv_prog_compiler_pic_works=no
8109 ac_outfile=conftest.$ac_objext
8110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8111 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8112 # Insert the option either (1) after the last *FLAGS variable, or
8113 # (2) before a word containing "conftest.
", or (3) at the end.
8114 # Note that $ac_compile itself does not contain backslashes and begins
8115 # with a dollar sign (not a hyphen), so the echo should work correctly.
8116 # The option is referenced via a variable to avoid confusing sed.
8117 lt_compile=`echo "$ac_compile" | $SED \
8118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8120 -e 's:$: $lt_compiler_flag:'`
8121 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8122 (eval "$lt_compile" 2>conftest.err)
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8126 if (exit $ac_status) && test -s "$ac_outfile"; then
8127 # The compiler can only warn and ignore the option if not recognized
8128 # So say no if there are warnings other than the usual output.
8129 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8132 lt_cv_prog_compiler_pic_works=yes
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
8139 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8141 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8142 case $lt_prog_compiler_pic in
8144 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8147 lt_prog_compiler_pic=
8148 lt_prog_compiler_can_build_shared=no
8159 # Check to make sure the static flag actually works.
8161 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
8163 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
8164 if ${lt_cv_prog_compiler_static_works+:} false; then :
8165 $as_echo_n "(cached
) " >&6
8167 lt_cv_prog_compiler_static_works=no
8168 save_LDFLAGS="$LDFLAGS"
8169 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8170 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8171 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8172 # The linker can only warn and ignore the option if not recognized
8173 # So say no if there are warnings
8174 if test -s conftest.err; then
8175 # Append any errors to the config.log.
8176 cat conftest.err 1>&5
8177 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8179 if diff conftest.exp conftest.er2 >/dev/null; then
8180 lt_cv_prog_compiler_static_works=yes
8183 lt_cv_prog_compiler_static_works=yes
8187 LDFLAGS="$save_LDFLAGS"
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
8191 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8193 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8196 lt_prog_compiler_static=
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
8206 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
8207 if ${lt_cv_prog_compiler_c_o+:} false; then :
8208 $as_echo_n "(cached
) " >&6
8210 lt_cv_prog_compiler_c_o=no
8211 $RM -r conftest 2>/dev/null
8215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8217 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
8218 # Insert the option either (1) after the last *FLAGS variable, or
8219 # (2) before a word containing "conftest.
", or (3) at the end.
8220 # Note that $ac_compile itself does not contain backslashes and begins
8221 # with a dollar sign (not a hyphen), so the echo should work correctly.
8222 lt_compile=`echo "$ac_compile" | $SED \
8223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8225 -e 's:$: $lt_compiler_flag:'`
8226 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8227 (eval "$lt_compile" 2>out/conftest.err)
8229 cat out/conftest.err >&5
8230 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8231 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8233 # The compiler can only warn and ignore the option if not recognized
8234 # So say no if there are warnings
8235 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8236 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8237 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8238 lt_cv_prog_compiler_c_o=yes
8243 # SGI C++ compiler will create directory out/ii_files/ for
8244 # template instantiation
8245 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8246 $RM out/* && rmdir out
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
8253 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
8261 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
8262 if ${lt_cv_prog_compiler_c_o+:} false; then :
8263 $as_echo_n "(cached
) " >&6
8265 lt_cv_prog_compiler_c_o=no
8266 $RM -r conftest 2>/dev/null
8270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8272 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
8273 # Insert the option either (1) after the last *FLAGS variable, or
8274 # (2) before a word containing "conftest.
", or (3) at the end.
8275 # Note that $ac_compile itself does not contain backslashes and begins
8276 # with a dollar sign (not a hyphen), so the echo should work correctly.
8277 lt_compile=`echo "$ac_compile" | $SED \
8278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8280 -e 's:$: $lt_compiler_flag:'`
8281 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8282 (eval "$lt_compile" 2>out/conftest.err)
8284 cat out/conftest.err >&5
8285 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8286 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8288 # The compiler can only warn and ignore the option if not recognized
8289 # So say no if there are warnings
8290 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8291 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8292 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8293 lt_cv_prog_compiler_c_o=yes
8298 # SGI C++ compiler will create directory out/ii_files/ for
8299 # template instantiation
8300 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8301 $RM out/* && rmdir out
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
8308 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8313 hard_links="nottested
"
8314 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8315 # do not overwrite the value of need_locks provided by the user
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
8317 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
8320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8322 ln conftest.a conftest.b 2>&5 || hard_links=no
8323 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
8325 $as_echo "$hard_links" >&6; }
8326 if test "$hard_links" = no; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
8328 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
8341 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
8344 allow_undefined_flag=
8345 always_export_symbols=no
8347 archive_expsym_cmds=
8348 compiler_needs_object=no
8349 enable_shared_with_static_runtimes=no
8350 export_dynamic_flag_spec=
8351 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8352 hardcode_automatic=no
8354 hardcode_direct_absolute=no
8355 hardcode_libdir_flag_spec=
8356 hardcode_libdir_flag_spec_ld=
8357 hardcode_libdir_separator=
8359 hardcode_shlibpath_var=unsupported
8361 link_all_deplibs=unknown
8364 old_archive_from_new_cmds=
8365 old_archive_from_expsyms_cmds=
8366 thread_safe_flag_spec=
8367 whole_archive_flag_spec=
8368 # include_expsyms should be a list of space-separated symbols to be *always*
8369 # included in the symbol list
8371 # exclude_expsyms can be an extended regexp of symbols to exclude
8372 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8373 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8374 # as well as any symbol that contains `d'.
8375 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8376 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8377 # platforms (ab)use it in PIC code, but their linkers get confused if
8378 # the symbol is explicitly referenced. Since portable code cannot
8379 # rely on this symbol name, it's probably fine to never include it in
8380 # preloaded symbol tables.
8381 # Exclude shared library initialization/finalization symbols.
8382 extract_expsyms_cmds=
8385 cygwin* | mingw* | pw32* | cegcc*)
8386 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8387 # When not using gcc, we currently assume that we are using
8388 # Microsoft Visual C++.
8389 if test "$GCC" != yes; then
8394 # we just hope/assume this is gcc and not c89 (= MSVC++)
8404 # On some targets, GNU ld is compatible enough with the native linker
8405 # that we're better off using the native interface for both.
8406 lt_use_gnu_ld_interface=no
8407 if test "$with_gnu_ld" = yes; then
8410 # The AIX port of GNU ld has always aspired to compatibility
8411 # with the native linker. However, as the warning in the GNU ld
8412 # block says, versions before 2.19.5* couldn't really create working
8413 # shared libraries, regardless of the interface used.
8414 case `$LD -v 2>&1` in
8415 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8416 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8417 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8419 lt_use_gnu_ld_interface=yes
8424 lt_use_gnu_ld_interface=yes
8429 if test "$lt_use_gnu_ld_interface" = yes; then
8430 # If archive_cmds runs LD, not CC, wlarc should be empty
8433 # Set some defaults for GNU ld with shared library support. These
8434 # are reset later if shared libraries are not supported. Putting them
8435 # here allows them to be overridden if necessary.
8436 runpath_var=LD_RUN_PATH
8437 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8438 export_dynamic_flag_spec='${wl}--export-dynamic'
8439 # ancient GNU ld didn't support --whole-archive et. al.
8440 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8441 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8443 whole_archive_flag_spec=
8445 supports_anon_versioning=no
8446 case `$LD -v 2>&1` in
8447 *GNU\ gold*) supports_anon_versioning=yes ;;
8448 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8449 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8450 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8451 *\ 2.11.*) ;; # other 2.11 versions
8452 *) supports_anon_versioning=yes ;;
8455 # See if GNU ld supports shared libraries.
8458 # On AIX/PPC, the GNU linker is very broken
8459 if test "$host_cpu" != ia64; then
8463 *** Warning: the GNU linker, at least up to release 2.19, is reported
8464 *** to be unable to reliably create shared libraries on AIX.
8465 *** Therefore, libtool is disabling shared libraries support. If you
8466 *** really care for shared libraries, you may want to install binutils
8467 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8468 *** You will then need to restart the configuration process.
8477 # see comment about AmigaOS4 .so support
8478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8479 archive_expsym_cmds=''
8482 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)'
8483 hardcode_libdir_flag_spec
='-L$libdir'
8484 hardcode_minus_L
=yes
8490 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8491 allow_undefined_flag
=unsupported
8492 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8493 # support --undefined. This deserves some investigation. FIXME
8494 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8500 cygwin
* | mingw
* | pw32
* | cegcc
*)
8501 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8502 # as there is no search path for DLLs.
8503 hardcode_libdir_flag_spec
='-L$libdir'
8504 export_dynamic_flag_spec
='${wl}--export-all-symbols'
8505 allow_undefined_flag
=unsupported
8506 always_export_symbols
=no
8507 enable_shared_with_static_runtimes
=yes
8508 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8510 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8511 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8512 # If the export-symbols file already is a .def file (1st line
8513 # is EXPORTS), use it as is; otherwise, prepend...
8514 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8515 cp $export_symbols $output_objdir/$soname.def;
8517 echo EXPORTS > $output_objdir/$soname.def;
8518 cat $export_symbols >> $output_objdir/$soname.def;
8520 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8527 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8528 link_all_deplibs
=yes
8533 hardcode_shlibpath_var
=no
8534 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8535 export_dynamic_flag_spec
='${wl}-E'
8536 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8537 # Instead, shared libraries are loaded at an image base (0x10000000 by
8538 # default) and relocated if they conflict, which is a slow very memory
8539 # consuming and fragmenting process. To avoid this, we pick a random,
8540 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8541 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8542 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8543 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'
8546 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
8548 if test "$host_os" = linux-dietlibc
; then
8549 case $cc_basename in
8550 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8553 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8554 && test "$tmp_diet" = no
8556 tmp_addflag
=' $pic_flag'
8557 tmp_sharedflag
='-shared'
8558 case $cc_basename,$host_cpu in
8559 pgcc
*) # Portland Group C compiler
8560 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'
8561 tmp_addflag
=' $pic_flag'
8563 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8564 # Portland Group f77 and f90 compilers
8565 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'
8566 tmp_addflag
=' $pic_flag -Mnomain' ;;
8567 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8568 tmp_addflag
=' -i_dynamic' ;;
8569 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8570 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8571 ifc
* | ifort
*) # Intel Fortran compiler
8572 tmp_addflag
=' -nofor_main' ;;
8573 lf95
*) # Lahey Fortran 8.1
8574 whole_archive_flag_spec
=
8575 tmp_sharedflag
='--shared' ;;
8576 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8577 tmp_sharedflag
='-qmkshrobj'
8579 nvcc
*) # Cuda Compiler Driver 2.2
8580 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'
8581 compiler_needs_object
=yes
8584 case `$CC -V 2>&1 | sed 5q` in
8585 *Sun\ C
*) # Sun C 5.9
8586 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'
8587 compiler_needs_object
=yes
8588 tmp_sharedflag
='-G' ;;
8589 *Sun\ F
*) # Sun Fortran 8.3
8590 tmp_sharedflag
='-G' ;;
8592 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8594 if test "x$supports_anon_versioning" = xyes
; then
8595 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8596 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8597 echo "local: *; };" >> $output_objdir/$libname.ver~
8598 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8601 case $cc_basename in
8602 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
8603 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8604 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8605 hardcode_libdir_flag_spec
=
8606 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8607 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8608 if test "x$supports_anon_versioning" = xyes
; then
8609 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8610 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8611 echo "local: *; };" >> $output_objdir/$libname.ver~
8612 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8622 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8623 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8626 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8627 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8632 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8636 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8637 *** create shared libraries on Solaris systems. Therefore, libtool
8638 *** is disabling shared libraries support. We urge you to upgrade GNU
8639 *** binutils to release 2.9.1 or newer. Another option is to modify
8640 *** your PATH or compiler configuration so that the native linker is
8641 *** used, and then restart.
8644 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8645 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8646 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8652 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8653 case `$LD -v 2>&1` in
8654 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8658 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8659 *** reliably create shared libraries on SCO systems. Therefore, libtool
8660 *** is disabling shared libraries support. We urge you to upgrade GNU
8661 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8662 *** your PATH or compiler configuration so that the native linker is
8663 *** used, and then restart.
8668 # For security reasons, it is highly recommended that you always
8669 # use absolute paths for naming shared libraries, and exclude the
8670 # DT_RUNPATH tag from executables and libraries. But doing so
8671 # requires that you compile everything twice, which is a pain.
8672 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8673 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8674 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8675 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8684 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8687 hardcode_shlibpath_var
=no
8691 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8692 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8693 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8700 if test "$ld_shlibs" = no
; then
8702 hardcode_libdir_flag_spec
=
8703 export_dynamic_flag_spec
=
8704 whole_archive_flag_spec
=
8707 # PORTME fill in a description of your system's linker (not GNU ld)
8710 allow_undefined_flag
=unsupported
8711 always_export_symbols
=yes
8712 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'
8713 # Note: this linker hardcodes the directories in LIBPATH if there
8714 # are no directories specified by -L.
8715 hardcode_minus_L
=yes
8716 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8717 # Neither direct hardcoding nor static linking is supported with a
8719 hardcode_direct
=unsupported
8724 if test "$host_cpu" = ia64
; then
8725 # On IA64, the linker does run time linking by default, so we don't
8726 # have to do anything special.
8727 aix_use_runtimelinking
=no
8728 exp_sym_flag
='-Bexport'
8731 # If we're using GNU nm, then we don't want the "-C" option.
8732 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8733 # Also, AIX nm treats weak defined symbols like other global
8734 # defined symbols, whereas GNU nm marks them as "W".
8735 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
8736 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'
8738 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'
8740 aix_use_runtimelinking
=no
8742 # Test if we are trying to use run time linking or normal
8743 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8744 # need to do runtime linking.
8745 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8746 for ld_flag
in $LDFLAGS; do
8747 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8748 aix_use_runtimelinking
=yes
8755 exp_sym_flag
='-bexport'
8756 no_entry_flag
='-bnoentry'
8759 # When large executables or shared objects are built, AIX ld can
8760 # have problems creating the table of contents. If linking a library
8761 # or program results in "error TOC overflow" add -mminimal-toc to
8762 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8763 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8767 hardcode_direct_absolute
=yes
8768 hardcode_libdir_separator
=':'
8769 link_all_deplibs
=yes
8770 file_list_spec
='${wl}-f,'
8772 if test "$GCC" = yes; then
8773 case $host_os in aix4.
[012]|aix4.
[012].
*)
8774 # We only want to do this on AIX 4.2 and lower, the check
8775 # below for broken collect2 doesn't work under 4.3+
8776 collect2name
=`${CC} -print-prog-name=collect2`
8777 if test -f "$collect2name" &&
8778 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
8780 # We have reworked collect2
8783 # We have old collect2
8784 hardcode_direct
=unsupported
8785 # It fails to find uninstalled libraries when the uninstalled
8786 # path is not listed in the libpath. Setting hardcode_minus_L
8787 # to unsupported forces relinking
8788 hardcode_minus_L
=yes
8789 hardcode_libdir_flag_spec
='-L$libdir'
8790 hardcode_libdir_separator
=
8794 shared_flag
='-shared'
8795 if test "$aix_use_runtimelinking" = yes; then
8796 shared_flag
="$shared_flag "'${wl}-G'
8800 if test "$host_cpu" = ia64
; then
8801 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8802 # chokes on -Wl,-G. The following line is correct:
8805 if test "$aix_use_runtimelinking" = yes; then
8806 shared_flag
='${wl}-G'
8808 shared_flag
='${wl}-bM:SRE'
8813 export_dynamic_flag_spec
='${wl}-bexpall'
8814 # It seems that -bexpall does not export symbols beginning with
8815 # underscore (_), so it is better to generate a list of symbols to export.
8816 always_export_symbols
=yes
8817 if test "$aix_use_runtimelinking" = yes; then
8818 # Warning - without using the other runtime loading flags (-brtl),
8819 # -berok will link without error, but may produce a broken library.
8820 allow_undefined_flag
='-berok'
8821 # Determine the default libpath from the value encoded in an
8823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8834 if ac_fn_c_try_link
"$LINENO"; then :
8836 lt_aix_libpath_sed
='
8837 /Import File Strings/,/^$/ {
8843 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8844 # Check for a 64-bit object if we didn't find anything.
8845 if test -z "$aix_libpath"; then
8846 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8849 rm -f core conftest.err conftest.
$ac_objext \
8850 conftest
$ac_exeext conftest.
$ac_ext
8851 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8853 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8854 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"
8856 if test "$host_cpu" = ia64
; then
8857 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
8858 allow_undefined_flag
="-z nodefs"
8859 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"
8861 # Determine the default libpath from the value encoded in an
8863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8874 if ac_fn_c_try_link
"$LINENO"; then :
8876 lt_aix_libpath_sed
='
8877 /Import File Strings/,/^$/ {
8883 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8884 # Check for a 64-bit object if we didn't find anything.
8885 if test -z "$aix_libpath"; then
8886 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8889 rm -f core conftest.err conftest.
$ac_objext \
8890 conftest
$ac_exeext conftest.
$ac_ext
8891 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8893 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8894 # Warning - without using the other run time loading flags,
8895 # -berok will link without error, but may produce a broken library.
8896 no_undefined_flag
=' ${wl}-bernotok'
8897 allow_undefined_flag
=' ${wl}-berok'
8898 if test "$with_gnu_ld" = yes; then
8899 # We only use this code for GNU lds that support --whole-archive.
8900 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8902 # Exported symbols can be pulled into shared objects from archives
8903 whole_archive_flag_spec
='$convenience'
8905 archive_cmds_need_lc
=yes
8906 # This is similar to how AIX traditionally builds its shared libraries.
8907 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'
8915 # see comment about AmigaOS4 .so support
8916 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8917 archive_expsym_cmds
=''
8920 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)'
8921 hardcode_libdir_flag_spec
='-L$libdir'
8922 hardcode_minus_L
=yes
8928 export_dynamic_flag_spec
=-rdynamic
8931 cygwin
* | mingw
* | pw32
* | cegcc
*)
8932 # When not using gcc, we currently assume that we are using
8933 # Microsoft Visual C++.
8934 # hardcode_libdir_flag_spec is actually meaningless, as there is
8935 # no search path for DLLs.
8936 hardcode_libdir_flag_spec
=' '
8937 allow_undefined_flag
=unsupported
8938 # Tell ltmain to make .lib files, not .a files.
8940 # Tell ltmain to make .dll files, not .so files.
8942 # FIXME: Setting linknames here is a bad hack.
8943 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8944 # The linker will automatically build a .lib file if we build a DLL.
8945 old_archive_from_new_cmds
='true'
8946 # FIXME: Should let the user specify the lib program.
8947 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
8948 fix_srcfile_path
='`cygpath -w "$srcfile"`'
8949 enable_shared_with_static_runtimes
=yes
8952 darwin
* | rhapsody
*)
8955 archive_cmds_need_lc
=no
8957 hardcode_automatic
=yes
8958 hardcode_shlibpath_var
=unsupported
8959 if test "$lt_cv_ld_force_load" = "yes"; then
8960 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\"`'
8962 whole_archive_flag_spec
=''
8964 link_all_deplibs
=yes
8965 allow_undefined_flag
="$_lt_dar_allow_undefined"
8966 case $cc_basename in
8967 ifort
*) _lt_dar_can_shared
=yes ;;
8968 *) _lt_dar_can_shared
=$GCC ;;
8970 if test "$_lt_dar_can_shared" = "yes"; then
8971 output_verbose_link_cmd
=func_echo_all
8972 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8973 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8974 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}"
8975 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}"
8984 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8985 hardcode_libdir_flag_spec
='-L$libdir'
8986 hardcode_shlibpath_var
=no
8989 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8990 # support. Future versions do this automatically, but an explicit c++rt0.o
8991 # does not break anything, and helps significantly (at the cost of a little
8994 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8995 hardcode_libdir_flag_spec
='-R$libdir'
8997 hardcode_shlibpath_var
=no
9000 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9002 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9004 hardcode_minus_L
=yes
9005 hardcode_shlibpath_var
=no
9008 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9009 freebsd
* | dragonfly
*)
9010 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9011 hardcode_libdir_flag_spec
='-R$libdir'
9013 hardcode_shlibpath_var
=no
9017 if test "$GCC" = yes; then
9018 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'
9020 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'
9022 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9023 hardcode_libdir_separator
=:
9026 # hardcode_minus_L: Not really in the search PATH,
9027 # but as the default location of the library.
9028 hardcode_minus_L
=yes
9029 export_dynamic_flag_spec
='${wl}-E'
9033 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9034 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9036 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9038 if test "$with_gnu_ld" = no
; then
9039 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9040 hardcode_libdir_flag_spec_ld
='+b $libdir'
9041 hardcode_libdir_separator
=:
9043 hardcode_direct_absolute
=yes
9044 export_dynamic_flag_spec
='${wl}-E'
9045 # hardcode_minus_L: Not really in the search PATH,
9046 # but as the default location of the library.
9047 hardcode_minus_L
=yes
9052 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9055 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9058 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9061 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9067 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9070 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9074 # Older versions of the 11.00 compiler do not understand -b yet
9075 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9077 $as_echo_n "checking if $CC understands -b... " >&6; }
9078 if ${lt_cv_prog_compiler__b+:} false
; then :
9079 $as_echo_n "(cached) " >&6
9081 lt_cv_prog_compiler__b
=no
9082 save_LDFLAGS
="$LDFLAGS"
9083 LDFLAGS
="$LDFLAGS -b"
9084 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9085 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9086 # The linker can only warn and ignore the option if not recognized
9087 # So say no if there are warnings
9088 if test -s conftest.err
; then
9089 # Append any errors to the config.log.
9090 cat conftest.err
1>&5
9091 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9092 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9093 if diff conftest.exp conftest.er2
>/dev
/null
; then
9094 lt_cv_prog_compiler__b
=yes
9097 lt_cv_prog_compiler__b
=yes
9101 LDFLAGS
="$save_LDFLAGS"
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9105 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9107 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9108 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9110 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9116 if test "$with_gnu_ld" = no
; then
9117 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9118 hardcode_libdir_separator
=:
9123 hardcode_shlibpath_var
=no
9127 hardcode_direct_absolute
=yes
9128 export_dynamic_flag_spec
='${wl}-E'
9130 # hardcode_minus_L: Not really in the search PATH,
9131 # but as the default location of the library.
9132 hardcode_minus_L
=yes
9138 irix5
* | irix6
* | nonstopux
*)
9139 if test "$GCC" = yes; then
9140 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'
9141 # Try to use the -exported_symbol ld option, if it does not
9142 # work, assume that -exports_file does not work either and
9143 # implicitly export all symbols.
9144 save_LDFLAGS
="$LDFLAGS"
9145 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9147 /* end confdefs.h. */
9150 if ac_fn_c_try_link
"$LINENO"; then :
9151 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'
9154 rm -f core conftest.err conftest.
$ac_objext \
9155 conftest
$ac_exeext conftest.
$ac_ext
9156 LDFLAGS
="$save_LDFLAGS"
9158 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'
9159 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'
9161 archive_cmds_need_lc
='no'
9162 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9163 hardcode_libdir_separator
=:
9165 link_all_deplibs
=yes
9169 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9170 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9172 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9174 hardcode_libdir_flag_spec
='-R$libdir'
9176 hardcode_shlibpath_var
=no
9180 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9182 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9183 hardcode_libdir_separator
=:
9184 hardcode_shlibpath_var
=no
9191 if test -f /usr
/libexec
/ld.so
; then
9193 hardcode_shlibpath_var
=no
9194 hardcode_direct_absolute
=yes
9195 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9196 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9197 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9198 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9199 export_dynamic_flag_spec
='${wl}-E'
9202 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9203 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9204 hardcode_libdir_flag_spec
='-R$libdir'
9207 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9208 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9218 hardcode_libdir_flag_spec
='-L$libdir'
9219 hardcode_minus_L
=yes
9220 allow_undefined_flag
=unsupported
9221 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'
9222 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9226 if test "$GCC" = yes; then
9227 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9228 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'
9230 allow_undefined_flag
=' -expect_unresolved \*'
9231 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'
9233 archive_cmds_need_lc
='no'
9234 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9235 hardcode_libdir_separator
=:
9238 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9239 if test "$GCC" = yes; then
9240 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9241 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'
9242 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9244 allow_undefined_flag
=' -expect_unresolved \*'
9245 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'
9246 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~
9247 $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'
9249 # Both c and cxx compiler support -rpath directly
9250 hardcode_libdir_flag_spec
='-rpath $libdir'
9252 archive_cmds_need_lc
='no'
9253 hardcode_libdir_separator
=:
9257 no_undefined_flag
=' -z defs'
9258 if test "$GCC" = yes; then
9260 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9261 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9262 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9264 case `$CC -V 2>&1` in
9267 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9268 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9269 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9273 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9274 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9275 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9279 hardcode_libdir_flag_spec
='-R$libdir'
9280 hardcode_shlibpath_var
=no
9282 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9284 # The compiler driver will combine and reorder linker options,
9285 # but understands `-z linker_flag'. GCC discards it without `$wl',
9286 # but is careful enough not to reorder.
9287 # Supported since Solaris 2.6 (maybe 2.5.1?)
9288 if test "$GCC" = yes; then
9289 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9291 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9295 link_all_deplibs
=yes
9299 if test "x$host_vendor" = xsequent
; then
9300 # Use $CC to link under sequent, because it throws in some extra .o
9301 # files that make .init and .fini sections work.
9302 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9304 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9306 hardcode_libdir_flag_spec
='-L$libdir'
9308 hardcode_minus_L
=yes
9309 hardcode_shlibpath_var
=no
9313 case $host_vendor in
9315 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9316 hardcode_direct
=yes # is this really true???
9319 ## LD is ld it makes a PLAMLIB
9320 ## CC just makes a GrossModule.
9321 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9322 reload_cmds
='$CC -r -o $output$reload_objs'
9326 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9327 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9330 runpath_var
='LD_RUN_PATH'
9331 hardcode_shlibpath_var
=no
9335 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9336 hardcode_shlibpath_var
=no
9337 export_dynamic_flag_spec
='-Bexport'
9341 if test -d /usr
/nec
; then
9342 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9343 hardcode_shlibpath_var
=no
9344 runpath_var
=LD_RUN_PATH
9345 hardcode_runpath_var
=yes
9350 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9351 no_undefined_flag
='${wl}-z,text'
9352 archive_cmds_need_lc
=no
9353 hardcode_shlibpath_var
=no
9354 runpath_var
='LD_RUN_PATH'
9356 if test "$GCC" = yes; then
9357 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9358 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9360 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9361 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9365 sysv5
* | sco3.2v5
* | sco5v6
*)
9366 # Note: We can NOT use -z defs as we might desire, because we do not
9367 # link with -lc, and that would cause any symbols used from libc to
9368 # always be unresolved, which means just about no library would
9369 # ever link correctly. If we're not using GNU ld we use -z text
9370 # though, which does catch some bad symbols but isn't as heavy-handed
9372 no_undefined_flag
='${wl}-z,text'
9373 allow_undefined_flag
='${wl}-z,nodefs'
9374 archive_cmds_need_lc
=no
9375 hardcode_shlibpath_var
=no
9376 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9377 hardcode_libdir_separator
=':'
9378 link_all_deplibs
=yes
9379 export_dynamic_flag_spec
='${wl}-Bexport'
9380 runpath_var
='LD_RUN_PATH'
9382 if test "$GCC" = yes; then
9383 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9384 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9386 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9387 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9392 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9393 hardcode_libdir_flag_spec
='-L$libdir'
9394 hardcode_shlibpath_var
=no
9402 if test x
$host_vendor = xsni
; then
9404 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9405 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9412 $as_echo "$ld_shlibs" >&6; }
9413 test "$ld_shlibs" = no
&& can_build_shared
=no
9415 with_gnu_ld
=$with_gnu_ld
9432 # Do we need to explicitly link libc?
9434 case "x$archive_cmds_need_lc" in
9436 # Assume -lc should be added
9437 archive_cmds_need_lc
=yes
9439 if test "$enable_shared" = yes && test "$GCC" = yes; then
9440 case $archive_cmds in
9442 # FIXME: we may have to deal with multi-command sequences.
9445 # Test whether the compiler implicitly links with -lc since on some
9446 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9447 # to ld, don't add -lc before -lgcc.
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9449 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9450 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
9451 $as_echo_n "(cached) " >&6
9454 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9457 (eval $ac_compile) 2>&5
9459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9460 test $ac_status = 0; } 2>conftest.err
; then
9463 libobjs
=conftest.
$ac_objext
9465 wl
=$lt_prog_compiler_wl
9466 pic_flag
=$lt_prog_compiler_pic
9472 lt_save_allow_undefined_flag
=$allow_undefined_flag
9473 allow_undefined_flag
=
9474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9475 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9478 test $ac_status = 0; }
9480 lt_cv_archive_cmds_need_lc
=no
9482 lt_cv_archive_cmds_need_lc
=yes
9484 allow_undefined_flag
=$lt_save_allow_undefined_flag
9486 cat conftest.err
1>&5
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9492 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9493 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9657 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9659 if test "$GCC" = yes; then
9661 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9662 *) lt_awk_arg
="/^libraries:/" ;;
9665 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
9666 *) lt_sed_strip_eq
="s,=/,/,g" ;;
9668 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9669 case $lt_search_path_spec in
9671 # if the path contains ";" then we assume it to be the separator
9672 # otherwise default to the standard path separator (i.e. ":") - it is
9673 # assumed that no part of a normal pathname contains ";" but that should
9674 # okay in the real world where ";" in dirpaths is itself problematic.
9675 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9678 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9681 # Ok, now we have the path, separated by spaces, we can step through it
9682 # and add multilib dir if necessary.
9683 lt_tmp_lt_search_path_spec
=
9684 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9685 for lt_sys_path
in $lt_search_path_spec; do
9686 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9687 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9689 test -d "$lt_sys_path" && \
9690 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9693 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9694 BEGIN {RS=" "; FS="/|\n";} {
9697 for (lt_i = NF; lt_i > 0; lt_i--) {
9698 if ($lt_i != "" && $lt_i != ".") {
9699 if ($lt_i == "..") {
9702 if (lt_count == 0) {
9703 lt_foo="/" $lt_i lt_foo;
9710 if (lt_foo != "") { lt_freq[lt_foo]++; }
9711 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9713 # AWK program above erroneously prepends '/' to C:/dos/paths
9716 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
9717 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9719 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9721 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9724 libname_spec
='lib$name'
9732 shlibpath_overrides_runpath
=unknown
9734 dynamic_linker
="$host_os ld.so"
9735 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9736 need_lib_prefix
=unknown
9737 hardcode_into_libs
=no
9739 # when you set need_version to no, make sure it does not cause -set_version
9740 # flags to be left without arguments
9741 need_version
=unknown
9746 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9747 shlibpath_var
=LIBPATH
9749 # AIX 3 has no versioning support, so we append a major version to the name.
9750 soname_spec
='${libname}${release}${shared_ext}$major'
9757 hardcode_into_libs
=yes
9758 if test "$host_cpu" = ia64
; then
9759 # AIX 5 supports IA64
9760 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9761 shlibpath_var
=LD_LIBRARY_PATH
9763 # With GCC up to 2.95.x, collect2 would create an import file
9764 # for dependence libraries. The import file would start with
9765 # the line `#! .'. This would cause the generated library to
9766 # depend on `.', always an invalid library. This was fixed in
9767 # development snapshots of GCC prior to 3.0.
9769 aix4 | aix4.
[01] | aix4.
[01].
*)
9770 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9772 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
9779 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9780 # soname into executable. Probably we can add versioning support to
9781 # collect2, so additional links can be useful in future.
9782 if test "$aix_use_runtimelinking" = yes; then
9783 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9784 # instead of lib<name>.a to let people know that these are not
9785 # typical AIX shared libraries.
9786 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9788 # We preserve .a as extension for shared libraries through AIX4.2
9789 # and later when we are not doing run time linking.
9790 library_names_spec
='${libname}${release}.a $libname.a'
9791 soname_spec
='${libname}${release}${shared_ext}$major'
9793 shlibpath_var
=LIBPATH
9800 # Since July 2007 AmigaOS4 officially supports .so libraries.
9801 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9802 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9805 library_names_spec
='$libname.ixlibrary $libname.a'
9806 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9807 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'
9813 library_names_spec
='${libname}${shared_ext}'
9814 dynamic_linker
="$host_os ld.so"
9815 shlibpath_var
=LIBRARY_PATH
9821 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822 soname_spec
='${libname}${release}${shared_ext}$major'
9823 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9824 shlibpath_var
=LD_LIBRARY_PATH
9825 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9826 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9827 # the default ld.so.conf also contains /usr/contrib/lib and
9828 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9829 # libtool to hard-code these into programs
9832 cygwin
* | mingw
* | pw32
* | cegcc
*)
9833 version_type
=windows
9838 case $GCC,$host_os in
9839 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
9840 library_names_spec
='$libname.dll.a'
9841 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9842 postinstall_cmds
='base_file=`basename \${file}`~
9843 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9844 dldir=$destdir/`dirname \$dlpath`~
9845 test -d \$dldir || mkdir -p \$dldir~
9846 $install_prog $dir/$dlname \$dldir/$dlname~
9847 chmod a+x \$dldir/$dlname~
9848 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9849 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9851 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9852 dlpath=$dir/\$dldll~
9854 shlibpath_overrides_runpath
=yes
9858 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9859 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9861 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
9864 # MinGW DLLs use traditional 'lib' prefix
9865 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9868 # pw32 DLLs use 'pw' prefix rather than 'lib'
9869 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9875 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9878 dynamic_linker
='Win32 ld.exe'
9879 # FIXME: first we should search . and the directory the executable is in
9883 darwin
* | rhapsody
*)
9884 dynamic_linker
="$host_os dyld"
9888 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9889 soname_spec
='${libname}${release}${major}$shared_ext'
9890 shlibpath_overrides_runpath
=yes
9891 shlibpath_var
=DYLD_LIBRARY_PATH
9892 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
9894 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
9895 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
9902 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9903 soname_spec
='${libname}${release}${shared_ext}$major'
9904 shlibpath_var
=LD_LIBRARY_PATH
9907 freebsd
* | dragonfly
*)
9908 # DragonFly does not have aout. When/if they implement a new
9909 # versioning mechanism, adjust this.
9910 if test -x /usr
/bin
/objformat
; then
9911 objformat
=`/usr/bin/objformat`
9914 freebsd
[23].
*) objformat
=aout
;;
9918 version_type
=freebsd-
$objformat
9919 case $version_type in
9921 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9926 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9930 shlibpath_var
=LD_LIBRARY_PATH
9933 shlibpath_overrides_runpath
=yes
9935 freebsd3.
[01]* | freebsdelf3.
[01]*)
9936 shlibpath_overrides_runpath
=yes
9937 hardcode_into_libs
=yes
9939 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
9940 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
9941 shlibpath_overrides_runpath
=no
9942 hardcode_into_libs
=yes
9944 *) # from 4.6 on, and DragonFly
9945 shlibpath_overrides_runpath
=yes
9946 hardcode_into_libs
=yes
9955 dynamic_linker
="$host_os runtime_loader"
9956 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9957 soname_spec
='${libname}${release}${shared_ext}$major'
9958 shlibpath_var
=LIBRARY_PATH
9959 shlibpath_overrides_runpath
=yes
9960 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9961 hardcode_into_libs
=yes
9964 hpux9
* | hpux10
* | hpux11
*)
9965 # Give a soname corresponding to the major version so that dld.sl refuses to
9966 # link against other versions.
9973 hardcode_into_libs
=yes
9974 dynamic_linker
="$host_os dld.so"
9975 shlibpath_var
=LD_LIBRARY_PATH
9976 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9977 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9978 soname_spec
='${libname}${release}${shared_ext}$major'
9979 if test "X$HPUX_IA64_MODE" = X32
; then
9980 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9982 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
9984 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9988 hardcode_into_libs
=yes
9989 dynamic_linker
="$host_os dld.sl"
9990 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
9991 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9992 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993 soname_spec
='${libname}${release}${shared_ext}$major'
9994 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9995 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9999 dynamic_linker
="$host_os dld.sl"
10000 shlibpath_var
=SHLIB_PATH
10001 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10002 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10003 soname_spec
='${libname}${release}${shared_ext}$major'
10006 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10007 postinstall_cmds
='chmod 555 $lib'
10008 # or fails outright, so override atomically:
10009 install_override_mode
=555
10016 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10017 soname_spec
='${libname}${release}${shared_ext}$major'
10018 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10019 shlibpath_var
=LD_LIBRARY_PATH
10020 shlibpath_overrides_runpath
=no
10021 hardcode_into_libs
=yes
10024 irix5
* | irix6
* | nonstopux
*)
10026 nonstopux
*) version_type
=nonstopux
;;
10028 if test "$lt_cv_prog_gnu_ld" = yes; then
10036 soname_spec
='${libname}${release}${shared_ext}$major'
10037 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10039 irix5
* | nonstopux
*)
10040 libsuff
= shlibsuff
=
10043 case $LD in # libtool.m4 will add one of these switches to LD
10044 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10045 libsuff
= shlibsuff
= libmagic
=32-bit;;
10046 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10047 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10048 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10049 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10050 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10054 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10055 shlibpath_overrides_runpath
=no
10056 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10057 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10058 hardcode_into_libs
=yes
10061 # No shared lib support for Linux oldld, aout, or coff.
10062 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10066 # This must be Linux ELF.
10068 # uclinux* changes (here and below) have been submitted to the libtool
10069 # project, but have not yet been accepted: they are GCC-local changes
10070 # for the time being. (See
10071 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10072 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
10076 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10077 soname_spec
='${libname}${release}${shared_ext}$major'
10078 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10079 shlibpath_var
=LD_LIBRARY_PATH
10080 shlibpath_overrides_runpath
=no
10082 # Some binutils ld are patched to set DT_RUNPATH
10083 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10084 $as_echo_n "(cached) " >&6
10086 lt_cv_shlibpath_overrides_runpath
=no
10087 save_LDFLAGS
=$LDFLAGS
10088 save_libdir
=$libdir
10089 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10090 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10092 /* end confdefs.h. */
10102 if ac_fn_c_try_link
"$LINENO"; then :
10103 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10104 lt_cv_shlibpath_overrides_runpath
=yes
10107 rm -f core conftest.err conftest.
$ac_objext \
10108 conftest
$ac_exeext conftest.
$ac_ext
10109 LDFLAGS
=$save_LDFLAGS
10110 libdir
=$save_libdir
10114 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10116 # This implies no fast_install, which is unacceptable.
10117 # Some rework will be needed to allow for fast_install
10118 # before this can be enabled.
10119 hardcode_into_libs
=yes
10121 # Append ld.so.conf contents to the search path
10122 if test -f /etc
/ld.so.conf
; then
10123 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' ' '`
10124 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10127 # We used to test for /lib/ld.so.1 and disable shared libraries on
10128 # powerpc, because MkLinux only supported shared libraries with the
10129 # GNU dynamic linker. Since this was broken with cross compilers,
10130 # most powerpc-linux boxes support dynamic linking these days and
10131 # people can always --disable-shared, the test was removed, and we
10132 # assume the GNU/Linux dynamic linker is in use.
10133 dynamic_linker
='GNU/Linux ld.so'
10140 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10141 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10142 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10143 dynamic_linker
='NetBSD (a.out) ld.so'
10145 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10146 soname_spec
='${libname}${release}${shared_ext}$major'
10147 dynamic_linker
='NetBSD ld.elf_so'
10149 shlibpath_var
=LD_LIBRARY_PATH
10150 shlibpath_overrides_runpath
=yes
10151 hardcode_into_libs
=yes
10156 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157 shlibpath_var
=LD_LIBRARY_PATH
10158 shlibpath_overrides_runpath
=yes
10165 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10166 soname_spec
='${libname}${release}${shared_ext}$major'
10167 shlibpath_var
=LD_LIBRARY_PATH
10168 shlibpath_overrides_runpath
=no
10169 hardcode_into_libs
=yes
10170 dynamic_linker
='ldqnx.so'
10175 sys_lib_dlsearch_path_spec
="/usr/lib"
10177 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10179 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10180 *) need_version
=no
;;
10182 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10183 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10184 shlibpath_var
=LD_LIBRARY_PATH
10185 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10187 openbsd2.
[89] | openbsd2.
[89].
*)
10188 shlibpath_overrides_runpath
=no
10191 shlibpath_overrides_runpath
=yes
10195 shlibpath_overrides_runpath
=yes
10200 libname_spec
='$name'
10203 library_names_spec
='$libname${shared_ext} $libname.a'
10204 dynamic_linker
='OS/2 ld.exe'
10205 shlibpath_var
=LIBPATH
10208 osf3
* | osf4
* | osf5
*)
10212 soname_spec
='${libname}${release}${shared_ext}$major'
10213 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214 shlibpath_var
=LD_LIBRARY_PATH
10215 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10216 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10227 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228 soname_spec
='${libname}${release}${shared_ext}$major'
10229 shlibpath_var
=LD_LIBRARY_PATH
10230 shlibpath_overrides_runpath
=yes
10231 hardcode_into_libs
=yes
10232 # ldd complains unless libraries are executable
10233 postinstall_cmds
='chmod +x $lib'
10238 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10239 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10240 shlibpath_var
=LD_LIBRARY_PATH
10241 shlibpath_overrides_runpath
=yes
10242 if test "$with_gnu_ld" = yes; then
10250 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10251 soname_spec
='${libname}${release}${shared_ext}$major'
10252 shlibpath_var
=LD_LIBRARY_PATH
10253 case $host_vendor in
10255 shlibpath_overrides_runpath
=no
10257 runpath_var
=LD_RUN_PATH
10265 shlibpath_overrides_runpath
=no
10266 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10272 if test -d /usr
/nec
;then
10274 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10275 soname_spec
='$libname${shared_ext}.$major'
10276 shlibpath_var
=LD_LIBRARY_PATH
10280 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10281 version_type
=freebsd-elf
10284 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10285 soname_spec
='${libname}${release}${shared_ext}$major'
10286 shlibpath_var
=LD_LIBRARY_PATH
10287 shlibpath_overrides_runpath
=yes
10288 hardcode_into_libs
=yes
10289 if test "$with_gnu_ld" = yes; then
10290 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10292 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10295 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10299 sys_lib_dlsearch_path_spec
='/usr/lib'
10303 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10307 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308 shlibpath_var
=LD_LIBRARY_PATH
10309 shlibpath_overrides_runpath
=no
10310 hardcode_into_libs
=yes
10315 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10316 soname_spec
='${libname}${release}${shared_ext}$major'
10317 shlibpath_var
=LD_LIBRARY_PATH
10320 # Shared libraries for VwWorks, >= 7 only at this stage
10321 # and (fpic) still incompatible with "large" code models
10322 # in a few configurations. Only for RTP mode in any case,
10323 # and upon explicit request at configure time.
10326 case ${with_multisubdir}-${enable_shared} in
10333 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10334 soname_spec
='${libname}${release}${shared_ext}$major'
10335 dynamic_linker
="$host_os module_loader"
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10344 $as_echo "$dynamic_linker" >&6; }
10345 test "$dynamic_linker" = no
&& can_build_shared
=no
10347 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10348 if test "$GCC" = yes; then
10349 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10352 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10353 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10355 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10356 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10451 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10453 if test -n "$hardcode_libdir_flag_spec" ||
10454 test -n "$runpath_var" ||
10455 test "X$hardcode_automatic" = "Xyes" ; then
10457 # We can hardcode non-existent directories.
10458 if test "$hardcode_direct" != no
&&
10459 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10460 # have to relink, otherwise we might link with an installed library
10461 # when we should be linking with a yet-to-be-installed one
10462 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10463 test "$hardcode_minus_L" != no
; then
10464 # Linking always hardcodes the temporary library directory.
10465 hardcode_action
=relink
10467 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10468 hardcode_action
=immediate
10471 # We cannot hardcode anything, or else we can only hardcode existing
10473 hardcode_action
=unsupported
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10476 $as_echo "$hardcode_action" >&6; }
10478 if test "$hardcode_action" = relink ||
10479 test "$inherit_rpath" = yes; then
10480 # Fast installation is not supported
10481 enable_fast_install
=no
10482 elif test "$shlibpath_overrides_runpath" = yes ||
10483 test "$enable_shared" = no
; then
10484 # Fast installation is not necessary
10485 enable_fast_install
=needless
10493 if test "x$enable_dlopen" != xyes
; then
10494 enable_dlopen
=unknown
10495 enable_dlopen_self
=unknown
10496 enable_dlopen_self_static
=unknown
10503 lt_cv_dlopen
="load_add_on"
10505 lt_cv_dlopen_self
=yes
10508 mingw
* | pw32
* | cegcc
*)
10509 lt_cv_dlopen
="LoadLibrary"
10514 lt_cv_dlopen
="dlopen"
10519 # if libdl is installed we need to link against it
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10521 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10522 if ${ac_cv_lib_dl_dlopen+:} false
; then :
10523 $as_echo_n "(cached) " >&6
10525 ac_check_lib_save_LIBS
=$LIBS
10527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10528 /* end confdefs.h. */
10530 /* Override any GCC internal prototype to avoid an error.
10531 Use char because int might match the return type of a GCC
10532 builtin and then its argument prototype would still apply. */
10545 if ac_fn_c_try_link
"$LINENO"; then :
10546 ac_cv_lib_dl_dlopen
=yes
10548 ac_cv_lib_dl_dlopen
=no
10550 rm -f core conftest.err conftest.
$ac_objext \
10551 conftest
$ac_exeext conftest.
$ac_ext
10552 LIBS
=$ac_check_lib_save_LIBS
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10555 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10556 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
10557 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10560 lt_cv_dlopen
="dyld"
10562 lt_cv_dlopen_self
=yes
10569 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
10570 if test "x$ac_cv_func_shl_load" = xyes
; then :
10571 lt_cv_dlopen
="shl_load"
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10574 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10575 if ${ac_cv_lib_dld_shl_load+:} false
; then :
10576 $as_echo_n "(cached) " >&6
10578 ac_check_lib_save_LIBS
=$LIBS
10580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10581 /* end confdefs.h. */
10583 /* Override any GCC internal prototype to avoid an error.
10584 Use char because int might match the return type of a GCC
10585 builtin and then its argument prototype would still apply. */
10593 return shl_load ();
10598 if ac_fn_c_try_link
"$LINENO"; then :
10599 ac_cv_lib_dld_shl_load
=yes
10601 ac_cv_lib_dld_shl_load
=no
10603 rm -f core conftest.err conftest.
$ac_objext \
10604 conftest
$ac_exeext conftest.
$ac_ext
10605 LIBS
=$ac_check_lib_save_LIBS
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10608 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10609 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
10610 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10612 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
10613 if test "x$ac_cv_func_dlopen" = xyes
; then :
10614 lt_cv_dlopen
="dlopen"
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10617 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10618 if ${ac_cv_lib_dl_dlopen+:} false
; then :
10619 $as_echo_n "(cached) " >&6
10621 ac_check_lib_save_LIBS
=$LIBS
10623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10624 /* end confdefs.h. */
10626 /* Override any GCC internal prototype to avoid an error.
10627 Use char because int might match the return type of a GCC
10628 builtin and then its argument prototype would still apply. */
10641 if ac_fn_c_try_link
"$LINENO"; then :
10642 ac_cv_lib_dl_dlopen
=yes
10644 ac_cv_lib_dl_dlopen
=no
10646 rm -f core conftest.err conftest.
$ac_objext \
10647 conftest
$ac_exeext conftest.
$ac_ext
10648 LIBS
=$ac_check_lib_save_LIBS
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10651 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10652 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
10653 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10656 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10657 if ${ac_cv_lib_svld_dlopen+:} false
; then :
10658 $as_echo_n "(cached) " >&6
10660 ac_check_lib_save_LIBS
=$LIBS
10661 LIBS
="-lsvld $LIBS"
10662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10665 /* Override any GCC internal prototype to avoid an error.
10666 Use char because int might match the return type of a GCC
10667 builtin and then its argument prototype would still apply. */
10680 if ac_fn_c_try_link
"$LINENO"; then :
10681 ac_cv_lib_svld_dlopen
=yes
10683 ac_cv_lib_svld_dlopen
=no
10685 rm -f core conftest.err conftest.
$ac_objext \
10686 conftest
$ac_exeext conftest.
$ac_ext
10687 LIBS
=$ac_check_lib_save_LIBS
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10690 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10691 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
10692 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10695 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10696 if ${ac_cv_lib_dld_dld_link+:} false
; then :
10697 $as_echo_n "(cached) " >&6
10699 ac_check_lib_save_LIBS
=$LIBS
10701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h. */
10704 /* Override any GCC internal prototype to avoid an error.
10705 Use char because int might match the return type of a GCC
10706 builtin and then its argument prototype would still apply. */
10714 return dld_link ();
10719 if ac_fn_c_try_link
"$LINENO"; then :
10720 ac_cv_lib_dld_dld_link
=yes
10722 ac_cv_lib_dld_dld_link
=no
10724 rm -f core conftest.err conftest.
$ac_objext \
10725 conftest
$ac_exeext conftest.
$ac_ext
10726 LIBS
=$ac_check_lib_save_LIBS
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10729 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10730 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
10731 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
10752 if test "x$lt_cv_dlopen" != xno
; then
10758 case $lt_cv_dlopen in
10760 save_CPPFLAGS
="$CPPFLAGS"
10761 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
10763 save_LDFLAGS
="$LDFLAGS"
10764 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
10767 LIBS
="$lt_cv_dlopen_libs $LIBS"
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10770 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10771 if ${lt_cv_dlopen_self+:} false
; then :
10772 $as_echo_n "(cached) " >&6
10774 if test "$cross_compiling" = yes; then :
10775 lt_cv_dlopen_self
=cross
10777 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
10778 lt_status
=$lt_dlunknown
10779 cat > conftest.
$ac_ext <<_LT_EOF
10780 #line 10780 "configure"
10781 #include "confdefs.h"
10790 # define LT_DLGLOBAL RTLD_GLOBAL
10793 # define LT_DLGLOBAL DL_GLOBAL
10795 # define LT_DLGLOBAL 0
10799 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10800 find out it does not work in some platform. */
10801 #ifndef LT_DLLAZY_OR_NOW
10803 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10806 # define LT_DLLAZY_OR_NOW DL_LAZY
10809 # define LT_DLLAZY_OR_NOW RTLD_NOW
10812 # define LT_DLLAZY_OR_NOW DL_NOW
10814 # define LT_DLLAZY_OR_NOW 0
10821 /* When -fvisbility=hidden is used, assume the code has been annotated
10822 correspondingly for the symbols needed. */
10823 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10824 void fnord () __attribute__((visibility("default")));
10827 void fnord () { int i=42; }
10830 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10831 int status = $lt_dlunknown;
10835 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10838 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10839 else puts (dlerror ());
10841 /* dlclose (self); */
10849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10850 (eval $ac_link) 2>&5
10852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10853 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
10854 (.
/conftest
; exit; ) >&5 2>/dev
/null
10856 case x
$lt_status in
10857 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
10858 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
10859 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
10862 # compilation failed
10863 lt_cv_dlopen_self
=no
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10871 $as_echo "$lt_cv_dlopen_self" >&6; }
10873 if test "x$lt_cv_dlopen_self" = xyes
; then
10874 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10876 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10877 if ${lt_cv_dlopen_self_static+:} false
; then :
10878 $as_echo_n "(cached) " >&6
10880 if test "$cross_compiling" = yes; then :
10881 lt_cv_dlopen_self_static
=cross
10883 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
10884 lt_status
=$lt_dlunknown
10885 cat > conftest.
$ac_ext <<_LT_EOF
10886 #line 10886 "configure"
10887 #include "confdefs.h"
10896 # define LT_DLGLOBAL RTLD_GLOBAL
10899 # define LT_DLGLOBAL DL_GLOBAL
10901 # define LT_DLGLOBAL 0
10905 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10906 find out it does not work in some platform. */
10907 #ifndef LT_DLLAZY_OR_NOW
10909 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10912 # define LT_DLLAZY_OR_NOW DL_LAZY
10915 # define LT_DLLAZY_OR_NOW RTLD_NOW
10918 # define LT_DLLAZY_OR_NOW DL_NOW
10920 # define LT_DLLAZY_OR_NOW 0
10927 /* When -fvisbility=hidden is used, assume the code has been annotated
10928 correspondingly for the symbols needed. */
10929 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10930 void fnord () __attribute__((visibility("default")));
10933 void fnord () { int i=42; }
10936 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10937 int status = $lt_dlunknown;
10941 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10944 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10945 else puts (dlerror ());
10947 /* dlclose (self); */
10955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10956 (eval $ac_link) 2>&5
10958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10959 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
10960 (.
/conftest
; exit; ) >&5 2>/dev
/null
10962 case x
$lt_status in
10963 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
10964 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
10965 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
10968 # compilation failed
10969 lt_cv_dlopen_self_static
=no
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10977 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10980 CPPFLAGS
="$save_CPPFLAGS"
10981 LDFLAGS
="$save_LDFLAGS"
10986 case $lt_cv_dlopen_self in
10987 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
10988 *) enable_dlopen_self
=unknown
;;
10991 case $lt_cv_dlopen_self_static in
10992 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
10993 *) enable_dlopen_self_static
=unknown
;;
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11016 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11017 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11018 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11019 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11021 $as_echo "yes" >&6; }
11023 # FIXME - insert some real tests, host_os isn't really good enough
11026 if test -n "$STRIP" ; then
11027 striplib
="$STRIP -x"
11028 old_striplib
="$STRIP -S"
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11030 $as_echo "yes" >&6; }
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033 $as_echo "no" >&6; }
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; }
11054 # Report which library types will actually be built
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11056 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11058 $as_echo "$can_build_shared" >&6; }
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11061 $as_echo_n "checking whether to build shared libraries... " >&6; }
11062 test "$can_build_shared" = "no" && enable_shared
=no
11064 # On AIX, shared libraries and static libraries use the same namespace, and
11065 # are all built from PIC.
11068 test "$enable_shared" = yes && enable_static
=no
11069 if test -n "$RANLIB"; then
11070 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11071 postinstall_cmds
='$RANLIB $lib'
11076 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11077 test "$enable_shared" = yes && enable_static
=no
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11082 $as_echo "$enable_shared" >&6; }
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11085 $as_echo_n "checking whether to build static libraries... " >&6; }
11086 # Make sure either enable_shared or enable_static is yes.
11087 test "$enable_shared" = yes || enable_static
=yes
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11089 $as_echo "$enable_static" >&6; }
11096 ac_cpp
='$CPP $CPPFLAGS'
11097 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11098 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11099 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11115 ac_config_commands
="$ac_config_commands libtool"
11120 # Only expand once:
11124 # The tests for host and target for $enable_largefile require
11129 # As the $enable_largefile decision depends on --enable-plugins we must set it
11130 # even in directories otherwise not depending on the $plugins option.
11134 for ac_header
in dlfcn.h
11136 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11138 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
11139 cat >>confdefs.h
<<_ACEOF
11140 #define HAVE_DLFCN_H 1
11147 for ac_header
in windows.h
11149 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11151 if test "x$ac_cv_header_windows_h" = xyes
; then :
11152 cat >>confdefs.h
<<_ACEOF
11153 #define HAVE_WINDOWS_H 1
11161 # Check whether --enable-plugins was given.
11162 if test "${enable_plugins+set}" = set; then :
11163 enableval
=$enable_plugins; case "${enableval}" in
11166 if test "$maybe_plugins" != "yes" ; then
11167 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11171 plugins
=$maybe_plugins
11175 if test "$plugins" = "yes"; then
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11177 $as_echo_n "checking for library containing dlsym... " >&6; }
11178 if ${ac_cv_search_dlsym+:} false
; then :
11179 $as_echo_n "(cached) " >&6
11181 ac_func_search_save_LIBS
=$LIBS
11182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h. */
11185 /* Override any GCC internal prototype to avoid an error.
11186 Use char because int might match the return type of a GCC
11187 builtin and then its argument prototype would still apply. */
11200 for ac_lib
in '' dl
; do
11201 if test -z "$ac_lib"; then
11202 ac_res
="none required"
11205 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11207 if ac_fn_c_try_link
"$LINENO"; then :
11208 ac_cv_search_dlsym
=$ac_res
11210 rm -f core conftest.err conftest.
$ac_objext \
11212 if ${ac_cv_search_dlsym+:} false
; then :
11216 if ${ac_cv_search_dlsym+:} false
; then :
11219 ac_cv_search_dlsym
=no
11221 rm conftest.
$ac_ext
11222 LIBS
=$ac_func_search_save_LIBS
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11225 $as_echo "$ac_cv_search_dlsym" >&6; }
11226 ac_res
=$ac_cv_search_dlsym
11227 if test "$ac_res" != no
; then :
11228 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11236 sparc-
*-solaris*|i?
86-*-solaris*)
11237 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
11238 # were mutually exclusive until Solaris 11.3. Without procfs support,
11239 # the bfd/ elf module cannot provide certain routines such as
11240 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
11241 # explicitly requested large-file support through the
11242 # --enable-largefile switch, disable large-file support in favor of
11245 # Check if <sys/procfs.h> is incompatible with large-file support.
11246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h. */
11248 #define _FILE_OFFSET_BITS 64
11249 #define _STRUCTURED_PROC 1
11250 #include <sys/procfs.h>
11259 if ac_fn_c_try_compile
"$LINENO"; then :
11260 acx_cv_procfs_lfs
=yes
11262 acx_cv_procfs_lfs
=no
11264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11266 # Forcefully disable large-file support only if necessary, gdb is in
11267 # tree and enabled.
11268 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
11269 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
11270 : ${enable_largefile="no"}
11271 if test "$plugins" = yes; then
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11273 plugin support disabled; require large-file support which is incompatible with GDB." >&5
11274 $as_echo "$as_me: WARNING:
11275 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
11280 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
11281 # benefit of g++ 9+ which predefines it on Solaris.
11282 if test "$enable_largefile" = no
; then
11283 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
11289 # Check whether --enable-largefile was given.
11290 if test "${enable_largefile+set}" = set; then :
11291 enableval
=$enable_largefile;
11294 if test "$enable_largefile" != no
; then
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11297 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11298 if ${ac_cv_sys_largefile_CC+:} false
; then :
11299 $as_echo_n "(cached) " >&6
11301 ac_cv_sys_largefile_CC
=no
11302 if test "$GCC" != yes; then
11305 # IRIX 6.2 and later do not support large files by default,
11306 # so use the C compiler's -n32 option if that helps.
11307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11308 /* end confdefs.h. */
11309 #include <sys/types.h>
11310 /* Check that off_t can represent 2**63 - 1 correctly.
11311 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11312 since some C++ compilers masquerading as C compilers
11313 incorrectly reject 9223372036854775807. */
11314 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11315 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11316 && LARGE_OFF_T % 2147483647 == 1)
11326 if ac_fn_c_try_compile
"$LINENO"; then :
11329 rm -f core conftest.err conftest.
$ac_objext
11331 if ac_fn_c_try_compile
"$LINENO"; then :
11332 ac_cv_sys_largefile_CC
=' -n32'; break
11334 rm -f core conftest.err conftest.
$ac_objext
11338 rm -f conftest.
$ac_ext
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11342 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11343 if test "$ac_cv_sys_largefile_CC" != no
; then
11344 CC
=$CC$ac_cv_sys_largefile_CC
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11348 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11349 if ${ac_cv_sys_file_offset_bits+:} false
; then :
11350 $as_echo_n "(cached) " >&6
11353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11354 /* end confdefs.h. */
11355 #include <sys/types.h>
11356 /* Check that off_t can represent 2**63 - 1 correctly.
11357 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11358 since some C++ compilers masquerading as C compilers
11359 incorrectly reject 9223372036854775807. */
11360 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11361 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11362 && LARGE_OFF_T % 2147483647 == 1)
11372 if ac_fn_c_try_compile
"$LINENO"; then :
11373 ac_cv_sys_file_offset_bits
=no
; break
11375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h. */
11378 #define _FILE_OFFSET_BITS 64
11379 #include <sys/types.h>
11380 /* Check that off_t can represent 2**63 - 1 correctly.
11381 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11382 since some C++ compilers masquerading as C compilers
11383 incorrectly reject 9223372036854775807. */
11384 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11385 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11386 && LARGE_OFF_T % 2147483647 == 1)
11396 if ac_fn_c_try_compile
"$LINENO"; then :
11397 ac_cv_sys_file_offset_bits
=64; break
11399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11400 ac_cv_sys_file_offset_bits
=unknown
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11405 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11406 case $ac_cv_sys_file_offset_bits in #(
11409 cat >>confdefs.h
<<_ACEOF
11410 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11415 if test $ac_cv_sys_file_offset_bits = unknown
; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11417 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11418 if ${ac_cv_sys_large_files+:} false
; then :
11419 $as_echo_n "(cached) " >&6
11422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h. */
11424 #include <sys/types.h>
11425 /* Check that off_t can represent 2**63 - 1 correctly.
11426 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11427 since some C++ compilers masquerading as C compilers
11428 incorrectly reject 9223372036854775807. */
11429 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11430 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11431 && LARGE_OFF_T % 2147483647 == 1)
11441 if ac_fn_c_try_compile
"$LINENO"; then :
11442 ac_cv_sys_large_files
=no
; break
11444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h. */
11447 #define _LARGE_FILES 1
11448 #include <sys/types.h>
11449 /* Check that off_t can represent 2**63 - 1 correctly.
11450 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11451 since some C++ compilers masquerading as C compilers
11452 incorrectly reject 9223372036854775807. */
11453 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11454 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11455 && LARGE_OFF_T % 2147483647 == 1)
11465 if ac_fn_c_try_compile
"$LINENO"; then :
11466 ac_cv_sys_large_files
=1; break
11468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11469 ac_cv_sys_large_files
=unknown
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11474 $as_echo "$ac_cv_sys_large_files" >&6; }
11475 case $ac_cv_sys_large_files in #(
11478 cat >>confdefs.h
<<_ACEOF
11479 #define _LARGE_FILES $ac_cv_sys_large_files
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
11491 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
11492 if ${gcc_cv_prog_cmp_skip+:} false
; then :
11493 $as_echo_n "(cached) " >&6
11497 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
11498 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
11499 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
11502 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
11505 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
11506 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
11509 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
11516 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
11517 do_compare
="$gcc_cv_prog_cmp_skip"
11521 # Check whether --enable-targets was given.
11522 if test "${enable_targets+set}" = set; then :
11523 enableval
=$enable_targets; case "${enableval}" in
11524 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
11526 no
) enable_targets
= ;;
11527 *) enable_targets
=$enableval ;;
11532 .
${srcdir}/..
/bfd
/development.sh
11533 test "$development" = true
&& ac_checking
=yes
11534 # Check whether --enable-checking was given.
11535 if test "${enable_checking+set}" = set; then :
11536 enableval
=$enable_checking; case "${enableval}" in
11537 no|none
) ac_checking
= ;;
11538 *) ac_checking
=yes ;;
11541 if test x
$ac_checking != x
; then
11543 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11548 # Decide the default method for compressing debug sections.
11549 ac_default_compressed_debug_sections
=unset
11550 # Provide a configure time option to override our default.
11551 # Check whether --enable-compressed_debug_sections was given.
11552 if test "${enable_compressed_debug_sections+set}" = set; then :
11553 enableval
=$enable_compressed_debug_sections; case ,"${enableval}", in
11554 ,yes, |
,all
, |
*,gas
,*) ac_default_compressed_debug_sections
=yes ;;
11555 ,no
, |
,none
,) ac_default_compressed_debug_sections
=no
;;
11556 *) ac_default_compressed_debug_sections
=unset ;;
11560 # Select default compression algorithm.
11561 ac_default_compressed_debug_sections_algorithm
=COMPRESS_DEBUG_GABI_ZLIB
11562 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
11563 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
11564 enableval
=$enable_default_compressed_debug_sections_algorithm; case "${enableval}" in
11565 zstd
) ac_default_compressed_debug_sections_algorithm
=COMPRESS_DEBUG_ZSTD
;;
11570 # Decide if x86 assembler should generate relax relocations.
11571 ac_default_x86_relax_relocations
=unset
11572 # Provide a configure time option to override our default.
11573 # Check whether --enable-x86_relax_relocations was given.
11574 if test "${enable_x86_relax_relocations+set}" = set; then :
11575 enableval
=$enable_x86_relax_relocations; case "${enableval}" in
11576 no
) ac_default_x86_relax_relocations
=0 ;;
11580 # Decide if ELF assembler should generate common symbols with the
11582 ac_default_elf_stt_common
=unset
11583 # Provide a configure time option to override our default.
11584 # Check whether --enable-elf_stt_common was given.
11585 if test "${enable_elf_stt_common+set}" = set; then :
11586 enableval
=$enable_elf_stt_common; case "${enableval}" in
11587 yes) ac_default_elf_stt_common
=1 ;;
11592 # Decide if the ELF assembler should default to generating
11593 # GNU Build notes if none are provided by the input.
11594 ac_default_generate_build_notes
=0
11595 # Provide a configuration option to override the default.
11596 # Check whether --enable-generate_build_notes was given.
11597 if test "${enable_generate_build_notes+set}" = set; then :
11598 enableval
=$enable_generate_build_notes; case "${enableval}" in
11599 yes) ac_default_generate_build_notes
=1 ;;
11600 no
) ac_default_generate_build_notes
=0 ;;
11604 # Decide if the MIPS assembler should default to enable MIPS fix Loongson3
11606 ac_default_mips_fix_loongson3_llsc
=unset
11607 # Provide a configuration option to override the default.
11608 # Check whether --enable-mips-fix-loongson3-llsc was given.
11609 if test "${enable_mips_fix_loongson3_llsc+set}" = set; then :
11610 enableval
=$enable_mips_fix_loongson3_llsc; case "${enableval}" in
11611 yes) ac_default_mips_fix_loongson3_llsc
=1 ;;
11612 no
) ac_default_mips_fix_loongson3_llsc
=0 ;;
11616 # Decide if the x86 ELF assembler should default to generating GNU x86
11617 # used ISA and feature properties.
11618 ac_default_generate_x86_used_note
=unset
11619 # Provide a configuration option to override the default.
11620 # Check whether --enable-x86-used-note was given.
11621 if test "${enable_x86_used_note+set}" = set; then :
11622 enableval
=$enable_x86_used_note; case "${enableval}" in
11623 yes) ac_default_generate_x86_used_note
=1 ;;
11624 no
) ac_default_generate_x86_used_note
=0 ;;
11628 # Decide if the RISC-V ELF assembler should default to generating attribute.
11629 ac_default_generate_riscv_attr
=unset
11630 # Provide a configuration option to override the default.
11631 # Check whether --enable-default-riscv-attribute was given.
11632 if test "${enable_default_riscv_attribute+set}" = set; then :
11633 enableval
=$enable_default_riscv_attribute; case "${enableval}" in
11634 yes) ac_default_generate_riscv_attr
=1 ;;
11635 no
) ac_default_generate_riscv_attr
=0 ;;
11642 # Set the 'development' global.
11643 .
$srcdir/..
/bfd
/development.sh
11645 # Set acp_cpp_for_build variable
11646 ac_cpp_for_build
="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
11648 # Default set of GCC warnings to enable.
11649 GCC_WARN_CFLAGS
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11650 GCC_WARN_CFLAGS_FOR_BUILD
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11652 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11654 /* end confdefs.h. */
11657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11658 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
11661 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wshadow"
11666 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h. */
11671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11672 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev
/null
2>&1; then :
11675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11676 /* end confdefs.h. */
11679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11680 $EGREP "^__clang__$" >/dev
/null
2>&1; then :
11681 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11689 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
11690 WARN_WRITE_STRINGS
=""
11691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11692 /* end confdefs.h. */
11695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11696 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
11699 WARN_WRITE_STRINGS
="-Wwrite-strings"
11704 # Verify CC_FOR_BUILD to be compatible with warning flags
11706 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11711 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11712 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
11715 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
11720 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11722 /* end confdefs.h. */
11725 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11726 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev
/null
2>&1; then :
11729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11730 /* end confdefs.h. */
11733 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11734 $EGREP "^__clang__$" >/dev
/null
2>&1; then :
11735 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
11743 # Check whether --enable-werror was given.
11744 if test "${enable_werror+set}" = set; then :
11745 enableval
=$enable_werror; case "${enableval}" in
11746 yes | y
) ERROR_ON_WARNING
="yes" ;;
11747 no | n
) ERROR_ON_WARNING
="no" ;;
11748 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11753 # Disable -Wformat by default when using gcc on mingw
11756 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11757 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wno-format"
11758 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
11764 # Enable -Werror by default when using gcc. Turn it off for releases.
11765 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true
; then
11766 ERROR_ON_WARNING
=yes
11770 if test "${ERROR_ON_WARNING}" = yes ; then
11771 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Werror"
11772 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
11773 NO_WERROR
="-Wno-error"
11776 if test "${GCC}" = yes ; then
11777 WARN_CFLAGS
="${GCC_WARN_CFLAGS}"
11778 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD}"
11781 # Check whether --enable-build-warnings was given.
11782 if test "${enable_build_warnings+set}" = set; then :
11783 enableval
=$enable_build_warnings; case "${enableval}" in
11784 yes) WARN_CFLAGS
="${GCC_WARN_CFLAGS}"
11785 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD}";;
11786 no
) if test "${GCC}" = yes ; then
11788 WARN_CFLAGS_FOR_BUILD
="-w"
11790 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
11791 WARN_CFLAGS
="${GCC_WARN_CFLAGS} ${t}"
11792 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
11793 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
11794 WARN_CFLAGS
="${t} ${GCC_WARN_CFLAGS}"
11795 WARN_CFLAGS_FOR_BUILD
="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
11796 *) WARN_CFLAGS
=`echo "${enableval}" | sed -e "s/,/ /g"`
11797 WARN_CFLAGS_FOR_BUILD
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11802 if test x
"$silent" != x
"yes" && test x
"$WARN_CFLAGS" != x
""; then
11803 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11812 # Generate a header file
11813 ac_config_headers
="$ac_config_headers config.h:config.in"
11817 # Check whether --with-cpu was given.
11818 if test "${with_cpu+set}" = set; then :
11820 cat >>confdefs.h
<<_ACEOF
11821 #define TARGET_WITH_CPU "${with_cpu}"
11830 # If we are on a DOS filesystem, we must use gdb.ini rather than
11833 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-windows*)
11835 ac_config_files
="$ac_config_files gdb.ini:gdbinit.in"
11840 ac_config_files
="$ac_config_files .gdbinit:gdbinit.in"
11846 #We need this for the host.
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11848 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11849 if ${ac_cv_c_bigendian+:} false
; then :
11850 $as_echo_n "(cached) " >&6
11852 ac_cv_c_bigendian
=unknown
11853 # See if we're dealing with a universal compiler.
11854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h. */
11856 #ifndef __APPLE_CC__
11857 not a universal capable compiler
11862 if ac_fn_c_try_compile
"$LINENO"; then :
11864 # Check for potential -arch flags. It is not universal unless
11865 # there are at least two -arch flags with different values.
11868 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11869 if test -n "$ac_prev"; then
11871 i?
86 | x86_64 | ppc | ppc64
)
11872 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
11875 ac_cv_c_bigendian
=universal
11881 elif test "x$ac_word" = "x-arch"; then
11886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11887 if test $ac_cv_c_bigendian = unknown
; then
11888 # See if sys/param.h defines the BYTE_ORDER macro.
11889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11890 /* end confdefs.h. */
11891 #include <sys/types.h>
11892 #include <sys/param.h>
11897 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11898 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11900 bogus endian macros
11907 if ac_fn_c_try_compile
"$LINENO"; then :
11908 # It does; now see whether it defined to BIG_ENDIAN or not.
11909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h. */
11911 #include <sys/types.h>
11912 #include <sys/param.h>
11917 #if BYTE_ORDER != BIG_ENDIAN
11925 if ac_fn_c_try_compile
"$LINENO"; then :
11926 ac_cv_c_bigendian
=yes
11928 ac_cv_c_bigendian
=no
11930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11934 if test $ac_cv_c_bigendian = unknown
; then
11935 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h. */
11938 #include <limits.h>
11943 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11944 bogus endian macros
11951 if ac_fn_c_try_compile
"$LINENO"; then :
11952 # It does; now see whether it defined to _BIG_ENDIAN or not.
11953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h. */
11955 #include <limits.h>
11960 #ifndef _BIG_ENDIAN
11968 if ac_fn_c_try_compile
"$LINENO"; then :
11969 ac_cv_c_bigendian
=yes
11971 ac_cv_c_bigendian
=no
11973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11977 if test $ac_cv_c_bigendian = unknown
; then
11978 # Compile a test program.
11979 if test "$cross_compiling" = yes; then :
11980 # Try to guess by grepping values from an object file.
11981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h. */
11983 short int ascii_mm[] =
11984 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11985 short int ascii_ii[] =
11986 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11987 int use_ascii (int i) {
11988 return ascii_mm[i] + ascii_ii[i];
11990 short int ebcdic_ii[] =
11991 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11992 short int ebcdic_mm[] =
11993 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11994 int use_ebcdic (int i) {
11995 return ebcdic_mm[i] + ebcdic_ii[i];
12002 return use_ascii (foo) == use_ebcdic (foo);
12007 if ac_fn_c_try_compile
"$LINENO"; then :
12008 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12009 ac_cv_c_bigendian
=yes
12011 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12012 if test "$ac_cv_c_bigendian" = unknown
; then
12013 ac_cv_c_bigendian
=no
12015 # finding both strings is unlikely to happen, but who knows?
12016 ac_cv_c_bigendian
=unknown
12020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12023 /* end confdefs.h. */
12024 $ac_includes_default
12029 /* Are we little or big endian? From Harbison&Steele. */
12033 char c[sizeof (long int)];
12036 return u.c[sizeof (long int) - 1] == 1;
12042 if ac_fn_c_try_run
"$LINENO"; then :
12043 ac_cv_c_bigendian
=no
12045 ac_cv_c_bigendian
=yes
12047 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12048 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12054 $as_echo "$ac_cv_c_bigendian" >&6; }
12055 case $ac_cv_c_bigendian in #(
12057 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12063 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12067 as_fn_error $?
"unknown endianness
12068 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12074 # Makefile target for installing gas in $(tooldir)/bin.
12075 install_tooldir
=install-exec-tooldir
12079 if test -n "$enable_targets" ; then
12080 for t
in `echo $enable_targets | sed 's/,/ /g'`; do
12081 if test $t = "all"; then
12085 result
=`$ac_config_sub $t 2>/dev/null`
12086 if test -n "$result" ; then
12087 canon_targets
="$canon_targets $result"
12089 # # Permit "all", etc. We don't support it yet though.
12090 # canon_targets="$canon_targets $t"
12093 _gas_uniq_list
="$canon_targets"
12094 _gas_uniq_newlist
=""
12095 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
12096 case $_gas_uniq_i in
12097 _gas_uniq_dummy
) ;;
12098 *) case " $_gas_uniq_newlist " in
12099 *" $_gas_uniq_i "*) ;;
12100 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
12104 canon_targets
=$_gas_uniq_newlist
12110 for this_target
in $target $canon_targets ; do
12112 targ
=${this_target}
12113 .
${srcdir}/configure.tgt
12115 case ${target_cpu} in
12118 cat >>confdefs.h
<<_ACEOF
12119 #define DEFAULT_CRIS_ARCH $arch
12125 if test ${this_target} = $target ; then
12126 target_cpu_type
=${cpu_type}
12127 elif test ${target_cpu_type} != ${cpu_type} ; then
12131 generic_target
=${cpu_type}-${target_vendor}-${target_os}
12132 case ${generic_target} in
12133 i386-
*-msdosdjgpp* \
12136 $as_echo "#define STRICTCOFF 1" >>confdefs.h
12140 i386-
*-linux-* | x86_64-
*-linux-*)
12141 if test ${this_target} = $target \
12142 && test ${ac_default_generate_x86_used_note} = unset; then
12143 ac_default_generate_x86_used_note
=1
12148 | x86_64-
*-solaris2 \
12149 | i386-
*-solaris2.
[0-9] \
12150 | i386-
*-solaris2.1
[01] \
12151 | x86_64-
*-solaris2.1
[01])
12152 if test ${this_target} = $target \
12153 && test ${ac_default_x86_relax_relocations} = unset; then
12154 ac_default_x86_relax_relocations
=0
12165 $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
12169 if test ${this_target} = $target; then
12171 $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
12174 if test x
${endian} = xbig
; then
12175 as_fn_error $?
"Solaris must be configured little endian" "$LINENO" 5
12180 if test ${this_target} = $target ; then
12182 if test x
${endian} = xbig
; then
12184 elif test x
${endian} = xlittle
; then
12187 if test x
${endian_def} != x
; then
12189 cat >>confdefs.h
<<_ACEOF
12190 #define TARGET_BYTES_BIG_ENDIAN $endian_def
12196 # Other random stuff.
12198 case ${cpu_type} in
12200 # Set mips_cpu to the name of the default CPU.
12201 case ${target_cpu} in
12202 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el
)
12205 mipsisa32 | mipsisa32el
)
12208 mipsisa32r2 | mipsisa32r2el
)
12211 mipsisa32r3 | mipsisa32r3el
)
12214 mipsisa32r5 | mipsisa32r5el
)
12217 mipsisa32r6 | mipsisa32r6el
)
12220 mipsisa64 | mipsisa64el
)
12223 mipsisa64r2 | mipsisa64r2el
)
12226 mipsisa64r3 | mipsisa64r3el
)
12229 mipsisa64r5 | mipsisa64r5el
)
12232 mipsisa64r6 | mipsisa64r6el
)
12235 mipstx39 | mipstx39el
)
12238 mips64vr | mips64vrel
)
12241 mipsisa32r2
* | mipsisa64r2
*)
12242 mips_cpu
=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12244 mipsisa32r6
* | mipsisa64r6
*)
12245 mips_cpu
=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12247 mips64
* | mipsisa64
* | mipsisa32
*)
12248 mips_cpu
=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12251 mips_cpu
=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12254 as_fn_error $?
"$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
12257 # See whether it's appropriate to set EF_MIPS_ABI_O32 for o32
12258 # binaries. It's a GNU extension that some OSes don't understand.
12261 use_ef_mips_abi_o32
=0
12264 use_ef_mips_abi_o32
=1
12267 # If Vendor is IMG, then MIPSr6 is used
12273 # Decide whether to generate 32-bit or 64-bit code by default.
12274 # Used to resolve -march=from-abi when an embedded ABI is selected.
12276 mips64
*-*-* | mipsisa64
*-*-*)
12277 mips_default_64bit
=1
12280 mips_default_64bit
=0
12283 # Decide which ABI to target by default.
12285 mips64
*-openbsd* | mips64
*-linux-gnuabi64)
12286 mips_default_abi
=N64_ABI
12288 mips64
*-linux* | mips-sgi-irix6
* | mips64
*-freebsd* \
12289 | mips64
*-kfreebsd*-gnu | mips64
*-ps2-elf*)
12290 mips_default_abi
=N32_ABI
12292 mips
*-linux* | mips
*-freebsd* | mips
*-kfreebsd*-gnu)
12293 mips_default_abi
=O32_ABI
12296 mips_default_abi
=NO_ABI
12300 cat >>confdefs.h
<<_ACEOF
12301 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
12305 cat >>confdefs.h
<<_ACEOF
12306 #define USE_EF_MIPS_ABI_O32 $use_ef_mips_abi_o32
12310 cat >>confdefs.h
<<_ACEOF
12311 #define MIPS_DEFAULT_64BIT $mips_default_64bit
12315 cat >>confdefs.h
<<_ACEOF
12316 #define MIPS_DEFAULT_ABI $mips_default_abi
12322 # Do we need the opcodes library?
12323 case ${cpu_type} in
12324 vax | tic30 | i386 | arm
)
12330 case "${enable_shared}" in
12331 yes) shared_opcodes
=true
;;
12332 *opcodes
*) shared_opcodes
=true
;;
12333 *) shared_opcodes
=false
;;
12338 # Any other special object files needed ?
12339 case ${cpu_type} in
12342 for f
in config
/bfin-parse.o config
/bfin-lex-wrapper.o
; do
12343 case " $extra_objects " in
12345 *) extra_objects
="$extra_objects $f" ;;
12351 if test $this_target = $target ; then
12353 cat >>confdefs.h
<<_ACEOF
12354 #define DEFAULT_ARCH "${arch}"
12359 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k
)
12364 for f
in config
/loongarch-parse.o config
/loongarch-lex-wrapper.o
; do
12365 case " $extra_objects " in
12367 *) extra_objects
="$extra_objects $f" ;;
12370 # --target=loongarch[32|64]-*-*. */
12371 if test $this_target = $target ; then
12373 cat >>confdefs.h
<<_ACEOF
12374 #define DEFAULT_ARCH "${arch}"
12387 for f
in config
/kvx-parse.o
; do
12388 case " $extra_objects " in
12390 *) extra_objects
="$extra_objects $f" ;;
12395 f
=config
/m68k-parse.o
12396 case " $extra_objects " in
12398 *) extra_objects
="$extra_objects $f" ;;
12407 for f
in itbl-parse.o itbl-lex-wrapper.o itbl-ops.o
; do
12408 case " $extra_objects " in
12410 *) extra_objects
="$extra_objects $f" ;;
12420 # setup NDS32_LINUX_TOOLCHAIN definition
12421 if test "linux" = $em; then
12423 $as_echo "#define NDS32_LINUX_TOOLCHAIN 1" >>confdefs.h
12427 $as_echo "#define NDS32_LINUX_TOOLCHAIN 0" >>confdefs.h
12431 # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
12432 # based on arch_name.
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12434 $as_echo_n "checking for default configuration of --with-arch... " >&6; }
12435 if test "x${with_arch}" != x
; then
12436 case ${with_arch} in
12437 v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3
)
12439 cat >>confdefs.h
<<_ACEOF
12440 #define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12445 as_fn_error $?
"This kind of arch name does *NOT* exist!" "$LINENO" 5
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12450 $as_echo "$with_arch" >&6; }
12452 # Decide features one by one.
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
12454 $as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
12455 if test "x${enable_dx_regs}" = xyes
; then
12457 $as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12461 $as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12465 $as_echo "$enable_dx_regs" >&6; }
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
12468 $as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
12469 if test "x${enable_perf_ext}" = xno
; then
12471 $as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12475 $as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12479 $as_echo "$enable_perf_ext" >&6; }
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
12482 $as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
12483 if test "x${enable_perf_ext2}" = xno
; then
12485 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12489 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12493 $as_echo "$enable_perf_ext2" >&6; }
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
12496 $as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
12497 if test "x${enable_string_ext}" = xno
; then
12499 $as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12503 $as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12507 $as_echo "$enable_string_ext" >&6; }
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
12510 $as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
12511 if test "x${enable_audio_ext}" = xno
; then
12513 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12517 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12521 $as_echo "$enable_audio_ext" >&6; }
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dsp-ext" >&5
12524 $as_echo_n "checking for default configuration of --enable-dsp-ext... " >&6; }
12525 if test "x${enable_dsp_ext}" = xno
; then
12527 $as_echo "#define NDS32_DEFAULT_DSP_EXT 0" >>confdefs.h
12531 $as_echo "#define NDS32_DEFAULT_DSP_EXT 1" >>confdefs.h
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dsp_ext" >&5
12535 $as_echo "$enable_dsp_ext" >&6; }
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-zol-ext" >&5
12538 $as_echo_n "checking for default configuration of --enable-zol-ext... " >&6; }
12539 if test "x${enable_zol_ext}" = xno
; then
12541 $as_echo "#define NDS32_DEFAULT_ZOL_EXT 0" >>confdefs.h
12545 $as_echo "#define NDS32_DEFAULT_ZOL_EXT 1" >>confdefs.h
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zol_ext" >&5
12549 $as_echo "$enable_zol_ext" >&6; }
12552 aarch64 | i386 | s390 | sparc
)
12553 if test $this_target = $target ; then
12555 cat >>confdefs.h
<<_ACEOF
12556 #define DEFAULT_ARCH "${arch}"
12563 # --target=riscv[32|64]-*-*. */
12564 if test $this_target = $target ; then
12566 cat >>confdefs.h
<<_ACEOF
12567 #define DEFAULT_ARCH "${arch}"
12572 # --with-arch=<value>. The syntax of <value> is same as Gas option -march.
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12574 $as_echo_n "checking for default configuration of --with-arch... " >&6; }
12575 if test "x${with_arch}" != x
; then
12577 cat >>confdefs.h
<<_ACEOF
12578 #define DEFAULT_RISCV_ARCH_WITH_EXT "$with_arch"
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12583 $as_echo "$with_arch" >&6; }
12585 # --with-isa-spec=[2.2|20190608|20191213].
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-isa-spec" >&5
12587 $as_echo_n "checking for default configuration of --with-isa-spec... " >&6; }
12588 if test "x${with_isa_spec}" != x
; then
12590 cat >>confdefs.h
<<_ACEOF
12591 #define DEFAULT_RISCV_ISA_SPEC "$with_isa_spec"
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_isa_spec" >&5
12596 $as_echo "$with_isa_spec" >&6; }
12598 # --with-priv-spec=[1.9.1|1.10|1.11|1.12].
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-priv-spec" >&5
12600 $as_echo_n "checking for default configuration of --with-priv-spec... " >&6; }
12601 if test "x${with_priv_spec}" != x
; then
12603 cat >>confdefs.h
<<_ACEOF
12604 #define DEFAULT_RISCV_PRIV_SPEC "$with_priv_spec"
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_priv_spec" >&5
12609 $as_echo "$with_priv_spec" >&6; }
12613 f
=config
/rl78-parse.o
12614 case " $extra_objects " in
12616 *) extra_objects
="$extra_objects $f" ;;
12621 f
=config
/rx-parse.o
12622 case " $extra_objects " in
12624 *) extra_objects
="$extra_objects $f" ;;
12633 f
=config
/xtensa-relax.o
12634 case " $extra_objects " in
12636 *) extra_objects
="$extra_objects $f" ;;
12644 if test $using_cgen = yes ; then
12646 case " $extra_objects " in
12648 *) extra_objects
="$extra_objects $f" ;;
12652 # See if we really can support this configuration with the emulation code.
12654 if test $this_target = $target ; then
12662 case " $extra_objects " in
12664 *) extra_objects
="$extra_objects $f" ;;
12668 # From target name and format, produce a list of supported emulations.
12670 case ${generic_target}-${fmt} in
12671 mips-
*-*-*) case "$endian" in
12672 big
) emulation
="mipsbelf mipslelf mipself" ;;
12673 *) emulation
="mipslelf mipsbelf mipself" ;;
12675 # i386-pc-pe-coff != i386-pc-coff.
12677 # Uncommenting the next line will turn on support for i386 AOUT
12678 # for the default linux configuration
12679 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12681 i386-
*-aout) emulation
="i386aout" ;;
12682 i386-
*-coff) emulation
="i386coff" ;;
12683 i386-
*-elf) emulation
="i386elf" ;;
12685 # Always all formats. The first stated emulation becomes the default.
12686 cris-
*-*aout
*) emulation
="crisaout criself" ;;
12687 cris-
*-*) emulation
="criself crisaout" ;;
12690 emulations
="$emulations $emulation"
12694 if test ${ac_default_x86_relax_relocations} = unset; then
12695 ac_default_x86_relax_relocations
=1
12698 cat >>confdefs.h
<<_ACEOF
12699 #define DEFAULT_GENERATE_X86_RELAX_RELOCATIONS $ac_default_x86_relax_relocations
12703 if test ${ac_default_elf_stt_common} = unset; then
12704 ac_default_elf_stt_common
=0
12707 cat >>confdefs.h
<<_ACEOF
12708 #define DEFAULT_GENERATE_ELF_STT_COMMON $ac_default_elf_stt_common
12713 cat >>confdefs.h
<<_ACEOF
12714 #define DEFAULT_GENERATE_BUILD_NOTES $ac_default_generate_build_notes
12718 if test ${ac_default_generate_x86_used_note} = unset; then
12719 ac_default_generate_x86_used_note
=0
12722 cat >>confdefs.h
<<_ACEOF
12723 #define DEFAULT_X86_USED_NOTE $ac_default_generate_x86_used_note
12727 if test ${ac_default_generate_riscv_attr} = unset; then
12728 ac_default_generate_riscv_attr
=1
12732 cat >>confdefs.h
<<_ACEOF
12733 #define DEFAULT_RISCV_ATTR $ac_default_generate_riscv_attr
12737 if test ${ac_default_mips_fix_loongson3_llsc} = unset; then
12738 ac_default_mips_fix_loongson3_llsc
=0
12741 cat >>confdefs.h
<<_ACEOF
12742 #define DEFAULT_MIPS_FIX_LOONGSON3_LLSC $ac_default_mips_fix_loongson3_llsc
12746 if test x
$ac_default_compressed_debug_sections = xyes
; then
12748 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
12753 cat >>confdefs.h
<<_ACEOF
12754 #define DEFAULT_COMPRESSED_DEBUG_ALGORITHM $ac_default_compressed_debug_sections_algorithm
12758 # Turn on all targets if possible
12759 if test ${all_targets} = "yes"; then
12760 case ${target_cpu_type} in
12762 case ${obj_format} in
12764 emulations
="$emulations i386coff i386elf"
12767 emulations
="$emulations i386aout i386elf"
12770 emulations
="$emulations i386aout i386coff"
12775 case ${obj_format} in
12777 emulations
="$emulations i386coff i386elf"
12780 emulations
="$emulations i386aout i386elf"
12783 emulations
="$emulations i386aout i386coff"
12790 # PE code has way too many macros tweaking behaviour
12792 pe
*) emulations
="" ;;
12795 # Assign floating point type. Most processors with FP support
12796 # IEEE FP. On those that don't support FP at all, usually IEEE
12798 case ${target_cpu} in
12799 vax | pdp11
) atof
=vax
;;
12803 case "${obj_format}" in
12804 "") as_fn_error $?
"GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
12807 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12809 if test $using_cgen = yes ; then
12810 case ${target_cpu} in
12812 cgen_cpu_prefix
=or1k
;;
12813 *) cgen_cpu_prefix
=${target_cpu} ;;
12817 $as_echo "#define USING_CGEN 1" >>confdefs.h
12822 if test ! -r ${srcdir}/config
/tc-
${target_cpu_type}.c
; then
12823 as_fn_error $?
"GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
12826 if test ! -r ${srcdir}/config
/obj-
${obj_format}.c
; then
12827 as_fn_error $?
"GAS does not have support for object file format ${obj_format}" "$LINENO" 5
12830 # Some COFF configurations want these random other flags set.
12831 case ${obj_format} in
12833 case ${target_cpu_type} in
12835 $as_echo "#define I386COFF 1" >>confdefs.h
12838 $as_echo "#define I386COFF 1" >>confdefs.h
12844 # Getting this done right is going to be a bitch. Each configuration specified
12845 # with --enable-targets=... should be checked for environment, format, cpu
12848 # For each configuration, the necessary object file support code must be linked
12849 # in. This might be only one, it might be up to four. The necessary emulation
12850 # code needs to be provided, too.
12852 # And then there's "--enable-targets=all"....
12854 # For now, just always do it for MIPS ELF configurations. Sigh.
12856 formats
="${obj_format}"
12859 _gas_uniq_list
="$emulations"
12860 _gas_uniq_newlist
=""
12861 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
12862 case $_gas_uniq_i in
12863 _gas_uniq_dummy
) ;;
12864 *) case " $_gas_uniq_newlist " in
12865 *" $_gas_uniq_i "*) ;;
12866 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
12870 emulations
=$_gas_uniq_newlist
12872 for em
in .
$emulations ; do
12875 mipsbelf | mipslelf | mipself
)
12876 fmt=elf
file=mipself
;;
12878 fmt=coff
file=$em ;;
12880 fmt=aout
file=$em ;;
12882 fmt=elf
file=$em ;;
12884 formats
="$formats $fmt"
12885 emfiles
="$emfiles config/e-$file.o"
12886 EMULATIONS
="$EMULATIONS &$em,"
12888 _gas_uniq_list
="$formats"
12889 _gas_uniq_newlist
=""
12890 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
12891 case $_gas_uniq_i in
12892 _gas_uniq_dummy
) ;;
12893 *) case " $_gas_uniq_newlist " in
12894 *" $_gas_uniq_i "*) ;;
12895 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
12899 formats
=$_gas_uniq_newlist
12901 _gas_uniq_list
="$emfiles"
12902 _gas_uniq_newlist
=""
12903 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
12904 case $_gas_uniq_i in
12905 _gas_uniq_dummy
) ;;
12906 *) case " $_gas_uniq_newlist " in
12907 *" $_gas_uniq_i "*) ;;
12908 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
12912 emfiles
=$_gas_uniq_newlist
12914 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12915 for fmt in $formats ; do
12918 $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
12921 $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
12924 $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
12927 $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
12930 $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
12933 $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
12936 extra_objects
="$extra_objects config/obj-$fmt.o"
12940 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12941 DEFAULT_EMULATION
=`set . $emulations ; echo $2`
12942 # e-mipself has more than one emulation per file, e-i386* has just one at the
12943 # moment. If only one emulation is specified, then don't define
12944 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12945 case "${obj_format}${emfiles}" in
12946 multi
* |
*mipself
*)
12947 extra_objects
="$extra_objects $emfiles"
12949 $as_echo "#define USE_EMULATIONS 1" >>confdefs.h
12955 cat >>confdefs.h
<<_ACEOF
12956 #define EMULATIONS $EMULATIONS
12960 cat >>confdefs.h
<<_ACEOF
12961 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
12965 reject_dev_configs
=yes
12967 case ${reject_dev_configs}-${dev} in
12969 as_fn_error $?
"GAS does not support the ${generic_target} configuration." "$LINENO" 5
12979 # do we need the opcodes library?
12980 case "${need_opcodes}" in
12982 OPCODES_LIB
=..
/opcodes
/libopcodes.la
12989 cat >>confdefs.h
<<_ACEOF
12990 #define TARGET_ALIAS "${target_alias}"
12994 cat >>confdefs.h
<<_ACEOF
12995 #define TARGET_CANONICAL "${target}"
12999 cat >>confdefs.h
<<_ACEOF
13000 #define TARGET_CPU "${target_cpu}"
13004 cat >>confdefs.h
<<_ACEOF
13005 #define TARGET_VENDOR "${target_vendor}"
13009 cat >>confdefs.h
<<_ACEOF
13010 #define TARGET_OS "${target_os}"
13014 for ac_prog
in 'bison -y' byacc
13016 # Extract the first word of "$ac_prog", so it can be a program name with args.
13017 set dummy
$ac_prog; 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_prog_YACC+:} false
; then :
13021 $as_echo_n "(cached) " >&6
13023 if test -n "$YACC"; then
13024 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
13026 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13027 for as_dir
in $PATH
13030 test -z "$as_dir" && as_dir
=.
13031 for ac_exec_ext
in '' $ac_executable_extensions; do
13032 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13033 ac_cv_prog_YACC
="$ac_prog"
13034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13043 YACC
=$ac_cv_prog_YACC
13044 if test -n "$YACC"; then
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13046 $as_echo "$YACC" >&6; }
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13049 $as_echo "no" >&6; }
13053 test -n "$YACC" && break
13055 test -n "$YACC" || YACC
="yacc"
13057 for ac_prog
in flex
lex
13059 # Extract the first word of "$ac_prog", so it can be a program name with args.
13060 set dummy
$ac_prog; ac_word
=$2
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13062 $as_echo_n "checking for $ac_word... " >&6; }
13063 if ${ac_cv_prog_LEX+:} false
; then :
13064 $as_echo_n "(cached) " >&6
13066 if test -n "$LEX"; then
13067 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
13069 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13070 for as_dir
in $PATH
13073 test -z "$as_dir" && as_dir
=.
13074 for ac_exec_ext
in '' $ac_executable_extensions; do
13075 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13076 ac_cv_prog_LEX
="$ac_prog"
13077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13086 LEX
=$ac_cv_prog_LEX
13087 if test -n "$LEX"; then
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
13089 $as_echo "$LEX" >&6; }
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13092 $as_echo "no" >&6; }
13096 test -n "$LEX" && break
13098 test -n "$LEX" || LEX
=":"
13102 *) cat >conftest.l
<<_ACEOF
13108 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
13109 yyless ((input () != 0)); }
13110 f { unput (yytext[0]); }
13111 . { BEGIN INITIAL; }
13113 #ifdef YYTEXT_POINTER
13114 extern char *yytext;
13119 return ! yylex () + ! yywrap ();
13122 { { ac_try
="$LEX conftest.l"
13123 case "(($ac_try" in
13124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13125 *) ac_try_echo=$ac_try;;
13127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13128 $as_echo "$ac_try_echo"; } >&5
13129 (eval "$LEX conftest.l") 2>&5
13131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13132 test $ac_status = 0; }
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
13134 $as_echo_n "checking lex output file root... " >&6; }
13135 if ${ac_cv_prog_lex_root+:} false; then :
13136 $as_echo_n "(cached) " >&6
13139 if test -f lex.yy.c; then
13140 ac_cv_prog_lex_root=lex.yy
13141 elif test -f lexyy.c; then
13142 ac_cv_prog_lex_root=lexyy
13144 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13148 $as_echo "$ac_cv_prog_lex_root" >&6; }
13149 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13151 if test -z "${LEXLIB+set}"; then
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13153 $as_echo_n "checking lex library... " >&6; }
13154 if ${ac_cv_lib_lex+:} false; then :
13155 $as_echo_n "(cached) " >&6
13159 ac_cv_lib_lex='none needed'
13160 for ac_lib in '' -lfl -ll; do
13161 LIBS="$ac_lib $ac_save_LIBS"
13162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h. */
13164 `cat $LEX_OUTPUT_ROOT.c
`
13166 if ac_fn_c_try_link "$LINENO"; then :
13167 ac_cv_lib_lex=$ac_lib
13169 rm -f core conftest.err conftest.$ac_objext \
13170 conftest$ac_exeext conftest.$ac_ext
13171 test "$ac_cv_lib_lex" != 'none needed' && break
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13177 $as_echo "$ac_cv_lib_lex" >&6; }
13178 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13183 $as_echo_n "checking whether yytext is a pointer... " >&6; }
13184 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
13185 $as_echo_n "(cached) " >&6
13187 # POSIX says lex can declare yytext either as a pointer or an array; the
13188 # default is implementation-dependent. Figure out which it is, since
13189 # not all implementations provide the %pointer and %array declarations.
13190 ac_cv_prog_lex_yytext_pointer=no
13192 LIBS="$LEXLIB $ac_save_LIBS"
13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194 /* end confdefs.h. */
13196 #define YYTEXT_POINTER 1
13197 `cat $LEX_OUTPUT_ROOT.c
`
13199 if ac_fn_c_try_link "$LINENO"; then :
13200 ac_cv_prog_lex_yytext_pointer=yes
13202 rm -f core conftest.err conftest.$ac_objext \
13203 conftest$ac_exeext conftest.$ac_ext
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13208 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13209 if test $ac_cv_prog_lex_yytext_pointer = yes; then
13211 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
13214 rm -f conftest.l $LEX_OUTPUT_ROOT.c
13217 if test "$LEX" = :; then
13218 LEX=${am_missing_run}flex
13221 ALL_LINGUAS="es fi fr id ja ru rw sv tr uk zh_CN"
13224 if test -n "$ac_aux_dir"; then
13225 case "$ac_aux_dir" in
13226 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13227 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13230 if test -z "$MKINSTALLDIRS"; then
13231 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13237 $as_echo_n "checking whether NLS is requested... " >&6; }
13238 # Check whether --enable-nls was given.
13239 if test "${enable_nls+set}" = set; then :
13240 enableval=$enable_nls; USE_NLS=$enableval
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13246 $as_echo "$USE_NLS" >&6; }
13253 # Prepare PATH_SEPARATOR.
13254 # The user is always right.
13255 if test "${PATH_SEPARATOR+set}" != set; then
13256 echo "#! /bin/sh" >conf$$.sh
13257 echo "exit 0" >>conf$$.sh
13259 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13267 # Find out how to test for executable files. Don't use a zero-byte file,
13268 # as systems may use methods other than mode bits to determine executability.
13269 cat >conf$$.file <<_ASEOF
13273 chmod +x conf$$.file
13274 if test -x conf$$.file >/dev/null 2>&1; then
13275 ac_executable_p="test -x"
13277 ac_executable_p="test -f"
13281 # Extract the first word of "msgfmt", so it can be a program name with args.
13282 set dummy msgfmt; ac_word=$2
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13284 $as_echo_n "checking for $ac_word... " >&6; }
13285 if ${ac_cv_path_MSGFMT+:} false; then :
13286 $as_echo_n "(cached) " >&6
13290 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13293 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13294 for ac_dir in $PATH; do
13296 test -z "$ac_dir" && ac_dir=.
13297 for ac_exec_ext in '' $ac_executable_extensions; do
13298 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13299 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13300 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13301 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13308 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13312 MSGFMT="$ac_cv_path_MSGFMT"
13313 if test "$MSGFMT" != ":"; then
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13315 $as_echo "$MSGFMT" >&6; }
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318 $as_echo "no" >&6; }
13321 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13322 set dummy gmsgfmt; ac_word=$2
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13324 $as_echo_n "checking for $ac_word... " >&6; }
13325 if ${ac_cv_path_GMSGFMT+:} false; then :
13326 $as_echo_n "(cached) " >&6
13330 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13334 for as_dir in $PATH
13337 test -z "$as_dir" && as_dir=.
13338 for ac_exec_ext in '' $ac_executable_extensions; do
13339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13340 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13348 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13352 GMSGFMT=$ac_cv_path_GMSGFMT
13353 if test -n "$GMSGFMT"; then
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13355 $as_echo "$GMSGFMT" >&6; }
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13358 $as_echo "no" >&6; }
13364 # Prepare PATH_SEPARATOR.
13365 # The user is always right.
13366 if test "${PATH_SEPARATOR+set}" != set; then
13367 echo "#! /bin/sh" >conf$$.sh
13368 echo "exit 0" >>conf$$.sh
13370 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13378 # Find out how to test for executable files. Don't use a zero-byte file,
13379 # as systems may use methods other than mode bits to determine executability.
13380 cat >conf$$.file <<_ASEOF
13384 chmod +x conf$$.file
13385 if test -x conf$$.file >/dev/null 2>&1; then
13386 ac_executable_p="test -x"
13388 ac_executable_p="test -f"
13392 # Extract the first word of "xgettext", so it can be a program name with args.
13393 set dummy xgettext; ac_word=$2
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13395 $as_echo_n "checking for $ac_word... " >&6; }
13396 if ${ac_cv_path_XGETTEXT+:} false; then :
13397 $as_echo_n "(cached) " >&6
13399 case "$XGETTEXT" in
13401 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13404 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13405 for ac_dir in $PATH; do
13407 test -z "$ac_dir" && ac_dir=.
13408 for ac_exec_ext in '' $ac_executable_extensions; do
13409 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13410 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13411 (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
13412 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13419 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13423 XGETTEXT="$ac_cv_path_XGETTEXT"
13424 if test "$XGETTEXT" != ":"; then
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13426 $as_echo "$XGETTEXT" >&6; }
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13429 $as_echo "no" >&6; }
13435 # Prepare PATH_SEPARATOR.
13436 # The user is always right.
13437 if test "${PATH_SEPARATOR+set}" != set; then
13438 echo "#! /bin/sh" >conf$$.sh
13439 echo "exit 0" >>conf$$.sh
13441 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13449 # Find out how to test for executable files. Don't use a zero-byte file,
13450 # as systems may use methods other than mode bits to determine executability.
13451 cat >conf$$.file <<_ASEOF
13455 chmod +x conf$$.file
13456 if test -x conf$$.file >/dev/null 2>&1; then
13457 ac_executable_p="test -x"
13459 ac_executable_p="test -f"
13463 # Extract the first word of "msgmerge", so it can be a program name with args.
13464 set dummy msgmerge; ac_word=$2
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13466 $as_echo_n "checking for $ac_word... " >&6; }
13467 if ${ac_cv_path_MSGMERGE+:} false; then :
13468 $as_echo_n "(cached) " >&6
13470 case "$MSGMERGE" in
13472 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13475 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13476 for ac_dir in $PATH; do
13478 test -z "$ac_dir" && ac_dir=.
13479 for ac_exec_ext in '' $ac_executable_extensions; do
13480 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13481 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13482 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13489 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13493 MSGMERGE="$ac_cv_path_MSGMERGE"
13494 if test "$MSGMERGE" != ":"; then
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13496 $as_echo "$MSGMERGE" >&6; }
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13499 $as_echo "no" >&6; }
13503 if test "$GMSGFMT" != ":"; then
13504 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13505 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13508 GMSGFMT=`echo "$GMSGFMT" |
sed -e 's,^.*/,,'`
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13510 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13515 if test "$XGETTEXT" != ":"; then
13516 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13517 (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
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13521 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13527 ac_config_commands="$ac_config_commands default-1"
13531 if test "X$prefix" = "XNONE"; then
13532 acl_final_prefix="$ac_default_prefix"
13534 acl_final_prefix="$prefix"
13536 if test "X$exec_prefix" = "XNONE"; then
13537 acl_final_exec_prefix='${prefix}'
13539 acl_final_exec_prefix="$exec_prefix"
13541 acl_save_prefix="$prefix"
13542 prefix="$acl_final_prefix"
13543 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13544 prefix="$acl_save_prefix"
13547 # Check whether --with-gnu-ld was given.
13548 if test "${with_gnu_ld+set}" = set; then :
13549 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13554 # Prepare PATH_SEPARATOR.
13555 # The user is always right.
13556 if test "${PATH_SEPARATOR+set}" != set; then
13557 echo "#! /bin/sh" >conf$$.sh
13558 echo "exit 0" >>conf$$.sh
13560 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13568 if test "$GCC" = yes; then
13569 # Check if gcc -print-prog-name=ld gives a path.
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13571 $as_echo_n "checking for ld used by GCC... " >&6; }
13574 # gcc leaves a trailing carriage return which upsets mingw
13575 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
13577 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
13580 # Accept absolute paths.
13581 [\\/]* | [A-Za-z]:[\\/]*)
13582 re_direlt='/[^/][^/]*/\.\./'
13583 # Canonicalize the path of ld
13584 ac_prog=`echo $ac_prog|
sed 's%\\\\%/%g'`
13585 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13586 ac_prog=`echo $ac_prog|
sed "s%$re_direlt%/%"`
13588 test -z "$LD" && LD="$ac_prog"
13591 # If it fails, then pretend we aren't using GCC.
13595 # If it is relative, then search for the first ld in PATH.
13596 with_gnu_ld=unknown
13599 elif test "$with_gnu_ld" = yes; then
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13601 $as_echo_n "checking for GNU ld... " >&6; }
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13604 $as_echo_n "checking for non-GNU ld... " >&6; }
13606 if ${acl_cv_path_LD+:} false; then :
13607 $as_echo_n "(cached) " >&6
13609 if test -z "$LD"; then
13610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13611 for ac_dir in $PATH; do
13612 test -z "$ac_dir" && ac_dir=.
13613 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13614 acl_cv_path_LD="$ac_dir/$ac_prog"
13615 # Check to see if the program is GNU ld. I'd rather use --version,
13616 # but apparently some GNU ld's only accept -v.
13617 # Break only if it was the GNU/non-GNU ld that we prefer.
13618 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
13619 test "$with_gnu_ld" != no && break
13621 test "$with_gnu_ld" != yes && break
13627 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13631 LD="$acl_cv_path_LD"
13632 if test -n "$LD"; then
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13634 $as_echo "$LD" >&6; }
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13637 $as_echo "no" >&6; }
13639 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13641 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13642 if ${acl_cv_prog_gnu_ld+:} false; then :
13643 $as_echo_n "(cached) " >&6
13645 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13646 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
13647 acl_cv_prog_gnu_ld=yes
13649 acl_cv_prog_gnu_ld=no
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13653 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13654 with_gnu_ld=$acl_cv_prog_gnu_ld
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13659 $as_echo_n "checking for shared library run path origin... " >&6; }
13660 if ${acl_cv_rpath+:} false; then :
13661 $as_echo_n "(cached) " >&6
13664 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13665 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13667 rm -f ./conftest.sh
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13672 $as_echo "$acl_cv_rpath" >&6; }
13674 libext="$acl_cv_libext"
13675 shlibext="$acl_cv_shlibext"
13676 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13677 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13678 hardcode_direct="$acl_cv_hardcode_direct"
13679 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13680 # Check whether --enable-rpath was given.
13681 if test "${enable_rpath+set}" = set; then :
13682 enableval=$enable_rpath; :
13696 acl_save_prefix="$prefix"
13697 prefix="$acl_final_prefix"
13698 acl_save_exec_prefix="$exec_prefix"
13699 exec_prefix="$acl_final_exec_prefix"
13701 eval additional_includedir=\"$includedir\"
13702 eval additional_libdir=\"$libdir\"
13704 exec_prefix="$acl_save_exec_prefix"
13705 prefix="$acl_save_prefix"
13708 # Check whether --with-libiconv-prefix was given.
13709 if test "${with_libiconv_prefix+set}" = set; then :
13710 withval=$with_libiconv_prefix;
13711 if test "X$withval" = "Xno"; then
13714 if test "X$withval" = "X"; then
13716 acl_save_prefix="$prefix"
13717 prefix="$acl_final_prefix"
13718 acl_save_exec_prefix="$exec_prefix"
13719 exec_prefix="$acl_final_exec_prefix"
13721 eval additional_includedir=\"$includedir\"
13722 eval additional_libdir=\"$libdir\"
13724 exec_prefix="$acl_save_exec_prefix"
13725 prefix="$acl_save_prefix"
13728 additional_includedir="$withval/include"
13729 additional_libdir="$withval/lib"
13736 # Check whether --with-libiconv-type was given.
13737 if test "${with_libiconv_type+set}" = set; then :
13738 withval=$with_libiconv_type; with_libiconv_type=$withval
13740 with_libiconv_type=auto
13743 lib_type=`eval echo \
$with_libiconv_type`
13750 names_already_handled=
13751 names_next_round='iconv '
13752 while test -n "$names_next_round"; do
13753 names_this_round="$names_next_round"
13755 for name in $names_this_round; do
13757 for n in $names_already_handled; do
13758 if test "$n" = "$name"; then
13759 already_handled=yes
13763 if test -z "$already_handled"; then
13764 names_already_handled="$names_already_handled $name"
13765 uppername=`echo "$name" |
sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13766 eval value=\"\$HAVE_LIB$uppername\"
13767 if test -n "$value"; then
13768 if test "$value" = yes; then
13769 eval value=\"\$LIB$uppername\"
13770 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13771 eval value=\"\$LTLIB$uppername\"
13772 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13781 if test $use_additional = yes; then
13782 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13783 found_dir="$additional_libdir"
13784 found_so="$additional_libdir/lib$name.$shlibext"
13785 if test -f "$additional_libdir/lib$name.la"; then
13786 found_la="$additional_libdir/lib$name.la"
13788 elif test x$lib_type != xshared; then
13789 if test -f "$additional_libdir/lib$name.$libext"; then
13790 found_dir="$additional_libdir"
13791 found_a="$additional_libdir/lib$name.$libext"
13792 if test -f "$additional_libdir/lib$name.la"; then
13793 found_la="$additional_libdir/lib$name.la"
13798 if test "X$found_dir" = "X"; then
13799 for x in $LDFLAGS $LTLIBICONV; do
13801 acl_save_prefix="$prefix"
13802 prefix="$acl_final_prefix"
13803 acl_save_exec_prefix="$exec_prefix"
13804 exec_prefix="$acl_final_exec_prefix"
13806 exec_prefix="$acl_save_exec_prefix"
13807 prefix="$acl_save_prefix"
13811 dir=`echo "X$x" |
sed -e 's/^X-L//'`
13812 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13814 found_so="$dir/lib$name.$shlibext"
13815 if test -f "$dir/lib$name.la"; then
13816 found_la="$dir/lib$name.la"
13818 elif test x$lib_type != xshared; then
13819 if test -f "$dir/lib$name.$libext"; then
13821 found_a="$dir/lib$name.$libext"
13822 if test -f "$dir/lib$name.la"; then
13823 found_la="$dir/lib$name.la"
13829 if test "X$found_dir" != "X"; then
13834 if test "X$found_dir" != "X"; then
13835 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13836 if test "X$found_so" != "X"; then
13837 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13838 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13841 for x in $ltrpathdirs; do
13842 if test "X$x" = "X$found_dir"; then
13847 if test -z "$haveit"; then
13848 ltrpathdirs="$ltrpathdirs $found_dir"
13850 if test "$hardcode_direct" = yes; then
13851 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13853 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13854 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13856 for x in $rpathdirs; do
13857 if test "X$x" = "X$found_dir"; then
13862 if test -z "$haveit"; then
13863 rpathdirs="$rpathdirs $found_dir"
13867 for x in $LDFLAGS $LIBICONV; do
13869 acl_save_prefix="$prefix"
13870 prefix="$acl_final_prefix"
13871 acl_save_exec_prefix="$exec_prefix"
13872 exec_prefix="$acl_final_exec_prefix"
13874 exec_prefix="$acl_save_exec_prefix"
13875 prefix="$acl_save_prefix"
13877 if test "X$x" = "X-L$found_dir"; then
13882 if test -z "$haveit"; then
13883 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13885 if test "$hardcode_minus_L" != no; then
13886 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13888 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13894 if test "X$found_a" != "X"; then
13895 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13897 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13900 additional_includedir=
13901 case "$found_dir" in
13903 basedir=`echo "X$found_dir" |
sed -e 's,^X,,' -e 's,/lib/*$,,'`
13904 additional_includedir="$basedir/include"
13907 if test "X$additional_includedir" != "X"; then
13908 if test "X$additional_includedir" != "X/usr/include"; then
13910 if test "X$additional_includedir" = "X/usr/local/include"; then
13911 if test -n "$GCC"; then
13913 linux*) haveit=yes;;
13917 if test -z "$haveit"; then
13918 for x in $CPPFLAGS $INCICONV; do
13920 acl_save_prefix="$prefix"
13921 prefix="$acl_final_prefix"
13922 acl_save_exec_prefix="$exec_prefix"
13923 exec_prefix="$acl_final_exec_prefix"
13925 exec_prefix="$acl_save_exec_prefix"
13926 prefix="$acl_save_prefix"
13928 if test "X$x" = "X-I$additional_includedir"; then
13933 if test -z "$haveit"; then
13934 if test -d "$additional_includedir"; then
13935 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13941 if test -n "$found_la"; then
13942 save_libdir="$libdir"
13943 case "$found_la" in
13944 */* | *\\*) . "$found_la" ;;
13945 *) . "./$found_la" ;;
13947 libdir="$save_libdir"
13948 for dep in $dependency_libs; do
13951 additional_libdir=`echo "X$dep" |
sed -e 's/^X-L//'`
13952 if test "X$additional_libdir" != "X/usr/lib"; then
13954 if test "X$additional_libdir" = "X/usr/local/lib"; then
13955 if test -n "$GCC"; then
13957 linux*) haveit=yes;;
13961 if test -z "$haveit"; then
13963 for x in $LDFLAGS $LIBICONV; do
13965 acl_save_prefix="$prefix"
13966 prefix="$acl_final_prefix"
13967 acl_save_exec_prefix="$exec_prefix"
13968 exec_prefix="$acl_final_exec_prefix"
13970 exec_prefix="$acl_save_exec_prefix"
13971 prefix="$acl_save_prefix"
13973 if test "X$x" = "X-L$additional_libdir"; then
13978 if test -z "$haveit"; then
13979 if test -d "$additional_libdir"; then
13980 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13984 for x in $LDFLAGS $LTLIBICONV; do
13986 acl_save_prefix="$prefix"
13987 prefix="$acl_final_prefix"
13988 acl_save_exec_prefix="$exec_prefix"
13989 exec_prefix="$acl_final_exec_prefix"
13991 exec_prefix="$acl_save_exec_prefix"
13992 prefix="$acl_save_prefix"
13994 if test "X$x" = "X-L$additional_libdir"; then
13999 if test -z "$haveit"; then
14000 if test -d "$additional_libdir"; then
14001 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14008 dir=`echo "X$dep" |
sed -e 's/^X-R//'`
14009 if test "$enable_rpath" != no; then
14011 for x in $rpathdirs; do
14012 if test "X$x" = "X$dir"; then
14017 if test -z "$haveit"; then
14018 rpathdirs="$rpathdirs $dir"
14021 for x in $ltrpathdirs; do
14022 if test "X$x" = "X$dir"; then
14027 if test -z "$haveit"; then
14028 ltrpathdirs="$ltrpathdirs $dir"
14033 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's/^X-l//'`
14036 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14039 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14040 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14046 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14047 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14048 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14050 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
14051 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
14058 if test "X$rpathdirs" != "X"; then
14059 if test -n "$hardcode_libdir_separator"; then
14061 for found_dir in $rpathdirs; do
14062 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14064 acl_save_libdir="$libdir"
14066 eval flag=\"$hardcode_libdir_flag_spec\"
14067 libdir="$acl_save_libdir"
14068 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14070 for found_dir in $rpathdirs; do
14071 acl_save_libdir="$libdir"
14072 libdir="$found_dir"
14073 eval flag=\"$hardcode_libdir_flag_spec\"
14074 libdir="$acl_save_libdir"
14075 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14079 if test "X$ltrpathdirs" != "X"; then
14080 for found_dir in $ltrpathdirs; do
14081 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14089 if test -f ../gettext/uninstalled-config.sh; then
14090 relative_builddir='$(top_builddir)/../gettext'
14091 . ../gettext/uninstalled-config.sh
14093 # The sister gettext directory doesn't exist and won't collect information on
14094 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14119 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14120 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14121 $as_echo_n "(cached) " >&6
14123 gt_save_LIBS="$LIBS"
14124 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h. */
14127 #include <CoreFoundation/CFPreferences.h>
14131 CFPreferencesCopyAppValue(NULL, NULL)
14136 if ac_fn_c_try_link "$LINENO"; then :
14137 gt_cv_func_CFPreferencesCopyAppValue=yes
14139 gt_cv_func_CFPreferencesCopyAppValue=no
14141 rm -f core conftest.err conftest.$ac_objext \
14142 conftest$ac_exeext conftest.$ac_ext
14143 LIBS="$gt_save_LIBS"
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14146 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14147 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14149 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
14153 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
14154 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
14155 $as_echo_n "(cached) " >&6
14157 gt_save_LIBS="$LIBS"
14158 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14161 #include <CoreFoundation/CFLocale.h>
14165 CFLocaleCopyPreferredLanguages();
14170 if ac_fn_c_try_link "$LINENO"; then :
14171 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
14173 gt_cv_func_CFLocaleCopyPreferredLanguages=no
14175 rm -f core conftest.err conftest.$ac_objext \
14176 conftest$ac_exeext conftest.$ac_ext
14177 LIBS="$gt_save_LIBS"
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
14180 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
14181 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
14183 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
14187 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
14188 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
14189 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
14201 case " $gt_needs " in
14202 *" need-formatstring-macros "*) gt_api_version=3 ;;
14203 *" need-ngettext "*) gt_api_version=2 ;;
14204 *) gt_api_version=1 ;;
14206 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14207 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14209 if test "$USE_NLS" = "yes"; then
14210 gt_use_preinstalled_gnugettext=no
14213 if test $gt_api_version -ge 3; then
14214 gt_revision_test_code='
14215 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14216 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14218 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14221 gt_revision_test_code=
14223 if test $gt_api_version -ge 2; then
14224 gt_expression_test_code=' + * ngettext ("", "", 0)'
14226 gt_expression_test_code=
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14230 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14231 if eval \${$gt_func_gnugettext_libc+:} false; then :
14232 $as_echo_n "(cached) " >&6
14234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235 /* end confdefs.h. */
14237 #include <libintl.h>
14238 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14239 extern int _nl_msg_cat_cntr;
14240 extern int *_nl_domain_bindings;
14241 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
14243 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14245 $gt_revision_test_code
14251 bindtextdomain ("", "");
14252 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14258 if ac_fn_c_try_link "$LINENO"; then :
14259 eval "$gt_func_gnugettext_libc=yes"
14261 eval "$gt_func_gnugettext_libc=no"
14263 rm -f core conftest.err conftest.$ac_objext \
14264 conftest$ac_exeext conftest.$ac_ext
14266 eval ac_res=\$$gt_func_gnugettext_libc
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14268 $as_echo "$ac_res" >&6; }
14270 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14276 am_save_CPPFLAGS="$CPPFLAGS"
14278 for element in $INCICONV; do
14280 for x in $CPPFLAGS; do
14282 acl_save_prefix="$prefix"
14283 prefix="$acl_final_prefix"
14284 acl_save_exec_prefix="$exec_prefix"
14285 exec_prefix="$acl_final_exec_prefix"
14287 exec_prefix="$acl_save_exec_prefix"
14288 prefix="$acl_save_prefix"
14290 if test "X$x" = "X$element"; then
14295 if test -z "$haveit"; then
14296 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14302 $as_echo_n "checking for iconv... " >&6; }
14303 if ${am_cv_func_iconv+:} false; then :
14304 $as_echo_n "(cached) " >&6
14307 am_cv_func_iconv="no, consider installing GNU libiconv"
14309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310 /* end confdefs.h. */
14312 #include <stdlib.h>
14318 iconv_t cd = iconv_open("","");
14319 iconv(cd,NULL,NULL,NULL,NULL);
14325 if ac_fn_c_try_link "$LINENO"; then :
14326 am_cv_func_iconv=yes
14328 rm -f core conftest.err conftest.$ac_objext \
14329 conftest$ac_exeext conftest.$ac_ext
14330 if test "$am_cv_func_iconv" != yes; then
14331 am_save_LIBS="$LIBS"
14332 LIBS="$LIBS $LIBICONV"
14333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334 /* end confdefs.h. */
14336 #include <stdlib.h>
14342 iconv_t cd = iconv_open("","");
14343 iconv(cd,NULL,NULL,NULL,NULL);
14349 if ac_fn_c_try_link "$LINENO"; then :
14350 am_cv_lib_iconv=yes
14351 am_cv_func_iconv=yes
14353 rm -f core conftest.err conftest.$ac_objext \
14354 conftest$ac_exeext conftest.$ac_ext
14355 LIBS="$am_save_LIBS"
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14360 $as_echo "$am_cv_func_iconv" >&6; }
14361 if test "$am_cv_func_iconv" = yes; then
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14363 $as_echo_n "checking for working iconv... " >&6; }
14364 if ${am_cv_func_iconv_works+:} false; then :
14365 $as_echo_n "(cached) " >&6
14368 am_save_LIBS="$LIBS"
14369 if test $am_cv_lib_iconv = yes; then
14370 LIBS="$LIBS $LIBICONV"
14372 am_cv_func_iconv_works=no
14373 for ac_iconv_const in '' 'const'; do
14374 if test "$cross_compiling" = yes; then :
14376 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14377 *) am_cv_func_iconv_works="guessing yes" ;;
14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h. */
14384 #include <string.h>
14386 #ifndef ICONV_CONST
14387 # define ICONV_CONST $ac_iconv_const
14394 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
14395 successful returns. This is even documented in
14396 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
14398 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14399 if (cd_utf8_to_88591 != (iconv_t)(-1))
14401 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
14403 ICONV_CONST char *inptr = input;
14404 size_t inbytesleft = strlen (input);
14405 char *outptr = buf;
14406 size_t outbytesleft = sizeof (buf);
14407 size_t res = iconv (cd_utf8_to_88591,
14408 &inptr, &inbytesleft,
14409 &outptr, &outbytesleft);
14412 iconv_close (cd_utf8_to_88591);
14415 /* Test against Solaris 10 bug: Failures are not distinguishable from
14416 successful returns. */
14418 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14419 if (cd_ascii_to_88591 != (iconv_t)(-1))
14421 static ICONV_CONST char input[] = "\263";
14423 ICONV_CONST char *inptr = input;
14424 size_t inbytesleft = strlen (input);
14425 char *outptr = buf;
14426 size_t outbytesleft = sizeof (buf);
14427 size_t res = iconv (cd_ascii_to_88591,
14428 &inptr, &inbytesleft,
14429 &outptr, &outbytesleft);
14432 iconv_close (cd_ascii_to_88591);
14435 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14437 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14438 if (cd_88591_to_utf8 != (iconv_t)(-1))
14440 static ICONV_CONST char input[] = "\304";
14441 static char buf[2] = { (char)0xDE, (char)0xAD };
14442 ICONV_CONST char *inptr = input;
14443 size_t inbytesleft = 1;
14444 char *outptr = buf;
14445 size_t outbytesleft = 1;
14446 size_t res = iconv (cd_88591_to_utf8,
14447 &inptr, &inbytesleft,
14448 &outptr, &outbytesleft);
14449 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14451 iconv_close (cd_88591_to_utf8);
14454 #if 0 /* This bug could be worked around by the caller. */
14455 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14457 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14458 if (cd_88591_to_utf8 != (iconv_t)(-1))
14460 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14462 ICONV_CONST char *inptr = input;
14463 size_t inbytesleft = strlen (input);
14464 char *outptr = buf;
14465 size_t outbytesleft = sizeof (buf);
14466 size_t res = iconv (cd_88591_to_utf8,
14467 &inptr, &inbytesleft,
14468 &outptr, &outbytesleft);
14471 iconv_close (cd_88591_to_utf8);
14475 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14478 /* Try standardized names. */
14479 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
14480 /* Try IRIX, OSF/1 names. */
14481 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
14482 /* Try AIX names. */
14483 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
14484 /* Try HP-UX names. */
14485 iconv_t cd4 = iconv_open ("utf8", "eucJP");
14486 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
14487 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
14489 if (cd1 != (iconv_t)(-1))
14491 if (cd2 != (iconv_t)(-1))
14493 if (cd3 != (iconv_t)(-1))
14495 if (cd4 != (iconv_t)(-1))
14504 if ac_fn_c_try_run "$LINENO"; then :
14505 am_cv_func_iconv_works=yes
14507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14508 conftest.$ac_objext conftest.beam conftest.$ac_ext
14511 test "$am_cv_func_iconv_works" = no || break
14513 LIBS="$am_save_LIBS"
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14517 $as_echo "$am_cv_func_iconv_works" >&6; }
14518 case "$am_cv_func_iconv_works" in
14519 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14520 *) am_func_iconv=yes ;;
14523 am_func_iconv=no am_cv_lib_iconv=no
14525 if test "$am_func_iconv" = yes; then
14527 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14530 if test "$am_cv_lib_iconv" = yes; then
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14532 $as_echo_n "checking how to link with libiconv... " >&6; }
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14534 $as_echo "$LIBICONV" >&6; }
14536 CPPFLAGS="$am_save_CPPFLAGS"
14548 acl_save_prefix="$prefix"
14549 prefix="$acl_final_prefix"
14550 acl_save_exec_prefix="$exec_prefix"
14551 exec_prefix="$acl_final_exec_prefix"
14553 eval additional_includedir=\"$includedir\"
14554 eval additional_libdir=\"$libdir\"
14556 exec_prefix="$acl_save_exec_prefix"
14557 prefix="$acl_save_prefix"
14560 # Check whether --with-libintl-prefix was given.
14561 if test "${with_libintl_prefix+set}" = set; then :
14562 withval=$with_libintl_prefix;
14563 if test "X$withval" = "Xno"; then
14566 if test "X$withval" = "X"; then
14568 acl_save_prefix="$prefix"
14569 prefix="$acl_final_prefix"
14570 acl_save_exec_prefix="$exec_prefix"
14571 exec_prefix="$acl_final_exec_prefix"
14573 eval additional_includedir=\"$includedir\"
14574 eval additional_libdir=\"$libdir\"
14576 exec_prefix="$acl_save_exec_prefix"
14577 prefix="$acl_save_prefix"
14580 additional_includedir="$withval/include"
14581 additional_libdir="$withval/lib"
14588 # Check whether --with-libintl-type was given.
14589 if test "${with_libintl_type+set}" = set; then :
14590 withval=$with_libintl_type; with_libintl_type=$withval
14592 with_libintl_type=auto
14595 lib_type=`eval echo \
$with_libintl_type`
14602 names_already_handled=
14603 names_next_round='intl '
14604 while test -n "$names_next_round"; do
14605 names_this_round="$names_next_round"
14607 for name in $names_this_round; do
14609 for n in $names_already_handled; do
14610 if test "$n" = "$name"; then
14611 already_handled=yes
14615 if test -z "$already_handled"; then
14616 names_already_handled="$names_already_handled $name"
14617 uppername=`echo "$name" |
sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14618 eval value=\"\$HAVE_LIB$uppername\"
14619 if test -n "$value"; then
14620 if test "$value" = yes; then
14621 eval value=\"\$LIB$uppername\"
14622 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14623 eval value=\"\$LTLIB$uppername\"
14624 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14633 if test $use_additional = yes; then
14634 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14635 found_dir="$additional_libdir"
14636 found_so="$additional_libdir/lib$name.$shlibext"
14637 if test -f "$additional_libdir/lib$name.la"; then
14638 found_la="$additional_libdir/lib$name.la"
14640 elif test x$lib_type != xshared; then
14641 if test -f "$additional_libdir/lib$name.$libext"; then
14642 found_dir="$additional_libdir"
14643 found_a="$additional_libdir/lib$name.$libext"
14644 if test -f "$additional_libdir/lib$name.la"; then
14645 found_la="$additional_libdir/lib$name.la"
14650 if test "X$found_dir" = "X"; then
14651 for x in $LDFLAGS $LTLIBINTL; do
14653 acl_save_prefix="$prefix"
14654 prefix="$acl_final_prefix"
14655 acl_save_exec_prefix="$exec_prefix"
14656 exec_prefix="$acl_final_exec_prefix"
14658 exec_prefix="$acl_save_exec_prefix"
14659 prefix="$acl_save_prefix"
14663 dir=`echo "X$x" |
sed -e 's/^X-L//'`
14664 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14666 found_so="$dir/lib$name.$shlibext"
14667 if test -f "$dir/lib$name.la"; then
14668 found_la="$dir/lib$name.la"
14670 elif test x$lib_type != xshared; then
14671 if test -f "$dir/lib$name.$libext"; then
14673 found_a="$dir/lib$name.$libext"
14674 if test -f "$dir/lib$name.la"; then
14675 found_la="$dir/lib$name.la"
14681 if test "X$found_dir" != "X"; then
14686 if test "X$found_dir" != "X"; then
14687 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14688 if test "X$found_so" != "X"; then
14689 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14690 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14693 for x in $ltrpathdirs; do
14694 if test "X$x" = "X$found_dir"; then
14699 if test -z "$haveit"; then
14700 ltrpathdirs="$ltrpathdirs $found_dir"
14702 if test "$hardcode_direct" = yes; then
14703 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14705 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14706 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14708 for x in $rpathdirs; do
14709 if test "X$x" = "X$found_dir"; then
14714 if test -z "$haveit"; then
14715 rpathdirs="$rpathdirs $found_dir"
14719 for x in $LDFLAGS $LIBINTL; do
14721 acl_save_prefix="$prefix"
14722 prefix="$acl_final_prefix"
14723 acl_save_exec_prefix="$exec_prefix"
14724 exec_prefix="$acl_final_exec_prefix"
14726 exec_prefix="$acl_save_exec_prefix"
14727 prefix="$acl_save_prefix"
14729 if test "X$x" = "X-L$found_dir"; then
14734 if test -z "$haveit"; then
14735 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14737 if test "$hardcode_minus_L" != no; then
14738 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14740 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14746 if test "X$found_a" != "X"; then
14747 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14749 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14752 additional_includedir=
14753 case "$found_dir" in
14755 basedir=`echo "X$found_dir" |
sed -e 's,^X,,' -e 's,/lib/*$,,'`
14756 additional_includedir="$basedir/include"
14759 if test "X$additional_includedir" != "X"; then
14760 if test "X$additional_includedir" != "X/usr/include"; then
14762 if test "X$additional_includedir" = "X/usr/local/include"; then
14763 if test -n "$GCC"; then
14765 linux*) haveit=yes;;
14769 if test -z "$haveit"; then
14770 for x in $CPPFLAGS $INCINTL; do
14772 acl_save_prefix="$prefix"
14773 prefix="$acl_final_prefix"
14774 acl_save_exec_prefix="$exec_prefix"
14775 exec_prefix="$acl_final_exec_prefix"
14777 exec_prefix="$acl_save_exec_prefix"
14778 prefix="$acl_save_prefix"
14780 if test "X$x" = "X-I$additional_includedir"; then
14785 if test -z "$haveit"; then
14786 if test -d "$additional_includedir"; then
14787 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14793 if test -n "$found_la"; then
14794 save_libdir="$libdir"
14795 case "$found_la" in
14796 */* | *\\*) . "$found_la" ;;
14797 *) . "./$found_la" ;;
14799 libdir="$save_libdir"
14800 for dep in $dependency_libs; do
14803 additional_libdir=`echo "X$dep" |
sed -e 's/^X-L//'`
14804 if test "X$additional_libdir" != "X/usr/lib"; then
14806 if test "X$additional_libdir" = "X/usr/local/lib"; then
14807 if test -n "$GCC"; then
14809 linux*) haveit=yes;;
14813 if test -z "$haveit"; then
14815 for x in $LDFLAGS $LIBINTL; do
14817 acl_save_prefix="$prefix"
14818 prefix="$acl_final_prefix"
14819 acl_save_exec_prefix="$exec_prefix"
14820 exec_prefix="$acl_final_exec_prefix"
14822 exec_prefix="$acl_save_exec_prefix"
14823 prefix="$acl_save_prefix"
14825 if test "X$x" = "X-L$additional_libdir"; then
14830 if test -z "$haveit"; then
14831 if test -d "$additional_libdir"; then
14832 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14836 for x in $LDFLAGS $LTLIBINTL; do
14838 acl_save_prefix="$prefix"
14839 prefix="$acl_final_prefix"
14840 acl_save_exec_prefix="$exec_prefix"
14841 exec_prefix="$acl_final_exec_prefix"
14843 exec_prefix="$acl_save_exec_prefix"
14844 prefix="$acl_save_prefix"
14846 if test "X$x" = "X-L$additional_libdir"; then
14851 if test -z "$haveit"; then
14852 if test -d "$additional_libdir"; then
14853 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14860 dir=`echo "X$dep" |
sed -e 's/^X-R//'`
14861 if test "$enable_rpath" != no; then
14863 for x in $rpathdirs; do
14864 if test "X$x" = "X$dir"; then
14869 if test -z "$haveit"; then
14870 rpathdirs="$rpathdirs $dir"
14873 for x in $ltrpathdirs; do
14874 if test "X$x" = "X$dir"; then
14879 if test -z "$haveit"; then
14880 ltrpathdirs="$ltrpathdirs $dir"
14885 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's/^X-l//'`
14888 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14891 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14892 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14898 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14899 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14900 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14902 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
14903 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
14910 if test "X$rpathdirs" != "X"; then
14911 if test -n "$hardcode_libdir_separator"; then
14913 for found_dir in $rpathdirs; do
14914 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14916 acl_save_libdir="$libdir"
14918 eval flag=\"$hardcode_libdir_flag_spec\"
14919 libdir="$acl_save_libdir"
14920 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14922 for found_dir in $rpathdirs; do
14923 acl_save_libdir="$libdir"
14924 libdir="$found_dir"
14925 eval flag=\"$hardcode_libdir_flag_spec\"
14926 libdir="$acl_save_libdir"
14927 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14931 if test "X$ltrpathdirs" != "X"; then
14932 for found_dir in $ltrpathdirs; do
14933 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14938 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14939 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14940 $as_echo_n "(cached) " >&6
14942 gt_save_CPPFLAGS="$CPPFLAGS"
14943 CPPFLAGS="$CPPFLAGS $INCINTL"
14944 gt_save_LIBS="$LIBS"
14945 LIBS="$LIBS $LIBINTL"
14946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14947 /* end confdefs.h. */
14949 #include <libintl.h>
14950 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14951 extern int _nl_msg_cat_cntr;
14956 const char *_nl_expand_alias (const char *);
14957 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14959 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14961 $gt_revision_test_code
14967 bindtextdomain ("", "");
14968 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14974 if ac_fn_c_try_link "$LINENO"; then :
14975 eval "$gt_func_gnugettext_libintl=yes"
14977 eval "$gt_func_gnugettext_libintl=no"
14979 rm -f core conftest.err conftest.$ac_objext \
14980 conftest$ac_exeext conftest.$ac_ext
14981 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14982 LIBS="$LIBS $LIBICONV"
14983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14984 /* end confdefs.h. */
14986 #include <libintl.h>
14987 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14988 extern int _nl_msg_cat_cntr;
14993 const char *_nl_expand_alias (const char *);
14994 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14996 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14998 $gt_revision_test_code
15004 bindtextdomain ("", "");
15005 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
15011 if ac_fn_c_try_link "$LINENO"; then :
15012 LIBINTL="$LIBINTL $LIBICONV"
15013 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15014 eval "$gt_func_gnugettext_libintl=yes"
15017 rm -f core conftest.err conftest.$ac_objext \
15018 conftest$ac_exeext conftest.$ac_ext
15020 CPPFLAGS="$gt_save_CPPFLAGS"
15021 LIBS="$gt_save_LIBS"
15023 eval ac_res=\$$gt_func_gnugettext_libintl
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15025 $as_echo "$ac_res" >&6; }
15028 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15029 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15030 && test "$PACKAGE" != gettext-runtime \
15031 && test "$PACKAGE" != gettext-tools; }; then
15032 gt_use_preinstalled_gnugettext=yes
15041 if test -n "$INTL_MACOSX_LIBS"; then
15042 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15043 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15044 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15045 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15049 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15050 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15052 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15060 $as_echo_n "checking whether to use NLS... " >&6; }
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15062 $as_echo "$USE_NLS" >&6; }
15063 if test "$USE_NLS" = "yes"; then
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15065 $as_echo_n "checking where the gettext function comes from... " >&6; }
15066 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15067 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15068 gt_source="external libintl"
15073 gt_source="included intl directory"
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15076 $as_echo "$gt_source" >&6; }
15079 if test "$USE_NLS" = "yes"; then
15081 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15082 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15084 $as_echo_n "checking how to link with libintl... " >&6; }
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15086 $as_echo "$LIBINTL" >&6; }
15088 for element in $INCINTL; do
15090 for x in $CPPFLAGS; do
15092 acl_save_prefix="$prefix"
15093 prefix="$acl_final_prefix"
15094 acl_save_exec_prefix="$exec_prefix"
15095 exec_prefix="$acl_final_exec_prefix"
15097 exec_prefix="$acl_save_exec_prefix"
15098 prefix="$acl_save_prefix"
15100 if test "X$x" = "X$element"; then
15105 if test -z "$haveit"; then
15106 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15113 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15116 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15125 INTLLIBS="$LIBINTL"
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15145 $as_echo_n "checking whether NLS is requested... " >&6; }
15146 if test x"$USE_NLS" != xyes; then
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15148 $as_echo "no" >&6; }
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15151 $as_echo "yes" >&6; }
15153 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15157 $as_echo_n "checking for catalogs to be installed... " >&6; }
15158 # Look for .po and .gmo files in the source directory.
15161 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15162 # If there aren't any .gmo files the shell will give us the
15163 # literal string "../path/to/srcdir/po/*.gmo" which has to be
15165 case "$cat" in *\**)
15168 # The quadruple backslash is collapsed to a double backslash
15169 # by the backticks, then collapsed again by the double quotes,
15170 # leaving us with one backslash in the sed expression (right
15171 # before the dot that mustn't act as a wildcard).
15172 cat=`echo $cat |
sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15173 lang=`echo $cat |
sed -e "s!\\\\.gmo!!"`
15174 # The user is allowed to set LINGUAS to a list of languages to
15175 # install catalogs for. If it's empty that means "all of them."
15176 if test "x$LINGUAS" = x; then
15177 CATALOGS="$CATALOGS $cat"
15178 XLINGUAS="$XLINGUAS $lang"
15180 case "$LINGUAS" in *$lang*)
15181 CATALOGS="$CATALOGS $cat"
15182 XLINGUAS="$XLINGUAS $lang"
15187 LINGUAS="$XLINGUAS"
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15189 $as_echo "$LINGUAS" >&6; }
15205 # Prepare PATH_SEPARATOR.
15206 # The user is always right.
15207 if test "${PATH_SEPARATOR+set}" != set; then
15208 echo "#! /bin/sh" >conf$$.sh
15209 echo "exit 0" >>conf$$.sh
15211 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15219 # Find out how to test for executable files. Don't use a zero-byte file,
15220 # as systems may use methods other than mode bits to determine executability.
15221 cat >conf$$.file <<_ASEOF
15225 chmod +x conf$$.file
15226 if test -x conf$$.file >/dev/null 2>&1; then
15227 ac_executable_p="test -x"
15229 ac_executable_p="test -f"
15233 # Extract the first word of "msgfmt", so it can be a program name with args.
15234 set dummy msgfmt; ac_word=$2
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15236 $as_echo_n "checking for $ac_word... " >&6; }
15237 if ${ac_cv_path_MSGFMT+:} false; then :
15238 $as_echo_n "(cached) " >&6
15242 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15245 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15246 for ac_dir in $PATH; do
15248 test -z "$ac_dir" && ac_dir=.
15249 for ac_exec_ext in '' $ac_executable_extensions; do
15250 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15251 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15252 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15253 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15260 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15264 MSGFMT="$ac_cv_path_MSGFMT"
15265 if test "$MSGFMT" != ":"; then
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15267 $as_echo "$MSGFMT" >&6; }
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15270 $as_echo "no" >&6; }
15273 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15274 set dummy gmsgfmt; ac_word=$2
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15276 $as_echo_n "checking for $ac_word... " >&6; }
15277 if ${ac_cv_path_GMSGFMT+:} false; then :
15278 $as_echo_n "(cached) " >&6
15282 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15286 for as_dir in $PATH
15289 test -z "$as_dir" && as_dir=.
15290 for ac_exec_ext in '' $ac_executable_extensions; do
15291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15292 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15300 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15304 GMSGFMT=$ac_cv_path_GMSGFMT
15305 if test -n "$GMSGFMT"; then
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15307 $as_echo "$GMSGFMT" >&6; }
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15310 $as_echo "no" >&6; }
15316 # Prepare PATH_SEPARATOR.
15317 # The user is always right.
15318 if test "${PATH_SEPARATOR+set}" != set; then
15319 echo "#! /bin/sh" >conf$$.sh
15320 echo "exit 0" >>conf$$.sh
15322 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15330 # Find out how to test for executable files. Don't use a zero-byte file,
15331 # as systems may use methods other than mode bits to determine executability.
15332 cat >conf$$.file <<_ASEOF
15336 chmod +x conf$$.file
15337 if test -x conf$$.file >/dev/null 2>&1; then
15338 ac_executable_p="test -x"
15340 ac_executable_p="test -f"
15344 # Extract the first word of "xgettext", so it can be a program name with args.
15345 set dummy xgettext; ac_word=$2
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15347 $as_echo_n "checking for $ac_word... " >&6; }
15348 if ${ac_cv_path_XGETTEXT+:} false; then :
15349 $as_echo_n "(cached) " >&6
15351 case "$XGETTEXT" in
15353 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15356 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15357 for ac_dir in $PATH; do
15359 test -z "$ac_dir" && ac_dir=.
15360 for ac_exec_ext in '' $ac_executable_extensions; do
15361 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15362 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15363 (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
15364 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15371 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15375 XGETTEXT="$ac_cv_path_XGETTEXT"
15376 if test "$XGETTEXT" != ":"; then
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15378 $as_echo "$XGETTEXT" >&6; }
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15381 $as_echo "no" >&6; }
15387 # Prepare PATH_SEPARATOR.
15388 # The user is always right.
15389 if test "${PATH_SEPARATOR+set}" != set; then
15390 echo "#! /bin/sh" >conf$$.sh
15391 echo "exit 0" >>conf$$.sh
15393 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15401 # Find out how to test for executable files. Don't use a zero-byte file,
15402 # as systems may use methods other than mode bits to determine executability.
15403 cat >conf$$.file <<_ASEOF
15407 chmod +x conf$$.file
15408 if test -x conf$$.file >/dev/null 2>&1; then
15409 ac_executable_p="test -x"
15411 ac_executable_p="test -f"
15415 # Extract the first word of "msgmerge", so it can be a program name with args.
15416 set dummy msgmerge; ac_word=$2
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15418 $as_echo_n "checking for $ac_word... " >&6; }
15419 if ${ac_cv_path_MSGMERGE+:} false; then :
15420 $as_echo_n "(cached) " >&6
15422 case "$MSGMERGE" in
15424 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15427 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15428 for ac_dir in $PATH; do
15430 test -z "$ac_dir" && ac_dir=.
15431 for ac_exec_ext in '' $ac_executable_extensions; do
15432 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15433 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15434 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15441 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15445 MSGMERGE="$ac_cv_path_MSGMERGE"
15446 if test "$MSGMERGE" != ":"; then
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15448 $as_echo "$MSGMERGE" >&6; }
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15451 $as_echo "no" >&6; }
15455 if test "$GMSGFMT" != ":"; then
15456 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15457 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15460 GMSGFMT=`echo "$GMSGFMT" |
sed -e 's,^.*/,,'`
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15462 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
15467 if test "$XGETTEXT" != ":"; then
15468 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15469 (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
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
15473 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
15479 ac_config_commands="$ac_config_commands default-2"
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15485 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15486 # Check whether --enable-maintainer-mode was given.
15487 if test "${enable_maintainer_mode+set}" = set; then :
15488 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15490 USE_MAINTAINER_MODE=no
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15494 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15495 if test $USE_MAINTAINER_MODE = yes; then
15496 MAINTAINER_MODE_TRUE=
15497 MAINTAINER_MODE_FALSE='#'
15499 MAINTAINER_MODE_TRUE='#'
15500 MAINTAINER_MODE_FALSE=
15503 MAINT=$MAINTAINER_MODE_TRUE
15507 GENINSRC_NEVER_TRUE=
15508 GENINSRC_NEVER_FALSE='#'
15510 GENINSRC_NEVER_TRUE='#'
15511 GENINSRC_NEVER_FALSE=
15516 for ac_header in memory.h sys/stat.h sys/types.h unistd.h
15518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
15519 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15520 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15521 cat >>confdefs.h <<_ACEOF
15522 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
15530 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
15531 # people who are not cross-compiling but are compiling cross-assemblers.
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
15533 $as_echo_n "checking whether compiling a cross-assembler... " >&6; }
15534 if test "${host}" = "${target}"; then
15539 $as_echo "#define CROSS_COMPILE 1" >>confdefs.h
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
15543 $as_echo "$cross_gas" >&6; }
15545 for ac_func in strsignal
15547 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
15548 if test "x$ac_cv_func_strsignal" = xyes; then :
15549 cat >>confdefs.h <<_ACEOF
15550 #define HAVE_STRSIGNAL 1
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15559 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15560 if ${am_cv_val_LC_MESSAGES+:} false; then :
15561 $as_echo_n "(cached) " >&6
15563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564 /* end confdefs.h. */
15565 #include <locale.h>
15574 if ac_fn_c_try_link "$LINENO"; then :
15575 am_cv_val_LC_MESSAGES=yes
15577 am_cv_val_LC_MESSAGES=no
15579 rm -f core conftest.err conftest.$ac_objext \
15580 conftest$ac_exeext conftest.$ac_ext
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15583 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15584 if test $am_cv_val_LC_MESSAGES = yes; then
15586 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15591 # do we need the math library?
15592 case "${need_libm}" in
15596 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
15597 # These system don't have libm, or don't need it
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
15601 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
15602 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
15603 $as_echo_n "(cached) " >&6
15605 ac_check_lib_save_LIBS=$LIBS
15607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15608 /* end confdefs.h. */
15610 /* Override any GCC internal prototype to avoid an error.
15611 Use char because int might match the return type of a GCC
15612 builtin and then its argument prototype would still apply. */
15616 char _mwvalidcheckl ();
15620 return _mwvalidcheckl ();
15625 if ac_fn_c_try_link "$LINENO"; then :
15626 ac_cv_lib_mw__mwvalidcheckl=yes
15628 ac_cv_lib_mw__mwvalidcheckl=no
15630 rm -f core conftest.err conftest.$ac_objext \
15631 conftest$ac_exeext conftest.$ac_ext
15632 LIBS=$ac_check_lib_save_LIBS
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
15635 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
15636 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
15641 $as_echo_n "checking for cos in -lm... " >&6; }
15642 if ${ac_cv_lib_m_cos+:} false; then :
15643 $as_echo_n "(cached) " >&6
15645 ac_check_lib_save_LIBS=$LIBS
15647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15648 /* end confdefs.h. */
15650 /* Override any GCC internal prototype to avoid an error.
15651 Use char because int might match the return type of a GCC
15652 builtin and then its argument prototype would still apply. */
15665 if ac_fn_c_try_link "$LINENO"; then :
15666 ac_cv_lib_m_cos=yes
15670 rm -f core conftest.err conftest.$ac_objext \
15671 conftest$ac_exeext conftest.$ac_ext
15672 LIBS=$ac_check_lib_save_LIBS
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
15675 $as_echo "$ac_cv_lib_m_cos" >&6; }
15676 if test "x$ac_cv_lib_m_cos" = xyes; then :
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
15683 $as_echo_n "checking for cos in -lm... " >&6; }
15684 if ${ac_cv_lib_m_cos+:} false; then :
15685 $as_echo_n "(cached) " >&6
15687 ac_check_lib_save_LIBS=$LIBS
15689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15690 /* end confdefs.h. */
15692 /* Override any GCC internal prototype to avoid an error.
15693 Use char because int might match the return type of a GCC
15694 builtin and then its argument prototype would still apply. */
15707 if ac_fn_c_try_link "$LINENO"; then :
15708 ac_cv_lib_m_cos=yes
15712 rm -f core conftest.err conftest.$ac_objext \
15713 conftest$ac_exeext conftest.$ac_ext
15714 LIBS=$ac_check_lib_save_LIBS
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
15717 $as_echo "$ac_cv_lib_m_cos" >&6; }
15718 if test "x$ac_cv_lib_m_cos" = xyes; then :
15730 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
15731 # enough, but on some of those systems, the assert macro relies on requoting
15732 # working properly!
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
15734 $as_echo_n "checking for working assert macro... " >&6; }
15735 if ${gas_cv_assert_ok+:} false; then :
15736 $as_echo_n "(cached) " >&6
15738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15739 /* end confdefs.h. */
15740 #include <assert.h>
15741 #include <string.h>
15747 /* check for requoting problems */
15748 static int a, b, c, d;
15750 assert (!strcmp(s, "foo bar baz quux"));
15751 /* check for newline handling */
15759 if ac_fn_c_try_link "$LINENO"; then :
15760 gas_cv_assert_ok=yes
15762 gas_cv_assert_ok=no
15764 rm -f core conftest.err conftest.$ac_objext \
15765 conftest$ac_exeext conftest.$ac_ext
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
15768 $as_echo "$gas_cv_assert_ok" >&6; }
15769 test $gas_cv_assert_ok = yes ||
15770 $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
15774 # On some systems, the system header files may not declare malloc, realloc,
15775 # and free. There are places where gas needs these functions to have been
15776 # declared -- such as when taking their addresses.
15778 #ifdef HAVE_MEMORY_H
15779 #include <memory.h>
15781 #include <string.h>
15782 #include <stdlib.h>
15783 #ifdef HAVE_UNISTD_H
15784 #include <unistd.h>
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
15789 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
15790 if ${gas_cv_decl_getopt_unistd_h+:} false; then :
15791 $as_echo_n "(cached) " >&6
15793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15794 /* end confdefs.h. */
15795 #include <unistd.h>
15799 extern int getopt (int, char *const*, const char *);
15804 if ac_fn_c_try_compile "$LINENO"; then :
15805 gas_cv_decl_getopt_unistd_h=yes
15807 gas_cv_decl_getopt_unistd_h=no
15809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
15813 $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
15814 if test $gas_cv_decl_getopt_unistd_h = yes; then
15816 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
15822 $as_echo_n "checking whether declaration is required for environ... " >&6; }
15823 if ${gas_cv_decl_needed_environ+:} false; then :
15824 $as_echo_n "(cached) " >&6
15826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827 /* end confdefs.h. */
15841 if ac_fn_c_try_link "$LINENO"; then :
15842 gas_cv_decl_needed_environ=no
15844 gas_cv_decl_needed_environ=yes
15846 rm -f core conftest.err conftest.$ac_objext \
15847 conftest$ac_exeext conftest.$ac_ext
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
15850 $as_echo "$gas_cv_decl_needed_environ" >&6; }
15851 if test $gas_cv_decl_needed_environ = yes; then
15853 $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
15859 $as_echo_n "checking whether declaration is required for ffs... " >&6; }
15860 if ${gas_cv_decl_needed_ffs+:} false; then :
15861 $as_echo_n "(cached) " >&6
15863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15864 /* end confdefs.h. */
15870 typedef int (*f)(int);
15878 if ac_fn_c_try_link "$LINENO"; then :
15879 gas_cv_decl_needed_ffs=no
15881 gas_cv_decl_needed_ffs=yes
15883 rm -f core conftest.err conftest.$ac_objext \
15884 conftest$ac_exeext conftest.$ac_ext
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
15887 $as_echo "$gas_cv_decl_needed_ffs" >&6; }
15888 if test $gas_cv_decl_needed_ffs = yes; then
15890 $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
15895 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
15896 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
15902 cat >>confdefs.h <<_ACEOF
15903 #define HAVE_DECL_ASPRINTF $ac_have_decl
15905 ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
15906 if test "x$ac_cv_have_decl_mempcpy" = xyes; then :
15912 cat >>confdefs.h <<_ACEOF
15913 #define HAVE_DECL_MEMPCPY $ac_have_decl
15915 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
15916 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
15922 cat >>confdefs.h <<_ACEOF
15923 #define HAVE_DECL_STPCPY $ac_have_decl
15929 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
15931 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
15935 # Link in zlib/zstd if we can. This allows us to write compressed debug sections.
15937 # Use the system's zlib library.
15938 zlibdir="-L\$(top_builddir)/../zlib"
15939 zlibinc="-I\$(top_srcdir)/../zlib"
15941 # Check whether --with-system-zlib was given.
15942 if test "${with_system_zlib+set}" = set; then :
15943 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
15960 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15961 if test -n "$ac_tool_prefix"; then
15962 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15963 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15965 $as_echo_n "checking for $ac_word... " >&6; }
15966 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15967 $as_echo_n "(cached) " >&6
15969 case $PKG_CONFIG in
15971 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15975 for as_dir in $PATH
15978 test -z "$as_dir" && as_dir=.
15979 for ac_exec_ext in '' $ac_executable_extensions; do
15980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15981 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15992 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15993 if test -n "$PKG_CONFIG"; then
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15995 $as_echo "$PKG_CONFIG" >&6; }
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15998 $as_echo "no" >&6; }
16003 if test -z "$ac_cv_path_PKG_CONFIG"; then
16004 ac_pt_PKG_CONFIG=$PKG_CONFIG
16005 # Extract the first word of "pkg-config", so it can be a program name with args.
16006 set dummy pkg-config; ac_word=$2
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16008 $as_echo_n "checking for $ac_word... " >&6; }
16009 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16010 $as_echo_n "(cached) " >&6
16012 case $ac_pt_PKG_CONFIG in
16014 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16018 for as_dir in $PATH
16021 test -z "$as_dir" && as_dir=.
16022 for ac_exec_ext in '' $ac_executable_extensions; do
16023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16024 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16035 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16036 if test -n "$ac_pt_PKG_CONFIG"; then
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16038 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16041 $as_echo "no" >&6; }
16044 if test "x$ac_pt_PKG_CONFIG" = x; then
16047 case $cross_compiling:$ac_tool_warned in
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16051 ac_tool_warned=yes ;;
16053 PKG_CONFIG=$ac_pt_PKG_CONFIG
16056 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16060 if test -n "$PKG_CONFIG"; then
16061 _pkg_min_version=0.9.0
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16063 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16064 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16066 $as_echo "yes" >&6; }
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16069 $as_echo "no" >&6; }
16075 # Check whether --with-zstd was given.
16076 if test "${with_zstd+set}" = set; then :
16077 withval=$with_zstd;
16083 if test "$with_zstd" != no; then :
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
16087 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
16089 if test -n "$ZSTD_CFLAGS"; then
16090 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
16091 elif test -n "$PKG_CONFIG"; then
16092 if test -n "$PKG_CONFIG" && \
16093 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
16094 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
16096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16097 test $ac_status = 0; }; then
16098 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev
/null
`
16099 test "x$?" != "x0" && pkg_failed=yes
16106 if test -n "$ZSTD_LIBS"; then
16107 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
16108 elif test -n "$PKG_CONFIG"; then
16109 if test -n "$PKG_CONFIG" && \
16110 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
16111 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
16113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16114 test $ac_status = 0; }; then
16115 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev
/null
`
16116 test "x$?" != "x0" && pkg_failed=yes
16124 if test $pkg_failed = no; then
16125 pkg_save_LDFLAGS="$LDFLAGS"
16126 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
16127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h. */
16138 if ac_fn_c_try_link "$LINENO"; then :
16143 rm -f core conftest.err conftest.$ac_objext \
16144 conftest$ac_exeext conftest.$ac_ext
16145 LDFLAGS=$pkg_save_LDFLAGS
16150 if test $pkg_failed = yes; then
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16152 $as_echo "no" >&6; }
16154 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16155 _pkg_short_errors_supported=yes
16157 _pkg_short_errors_supported=no
16159 if test $_pkg_short_errors_supported = yes; then
16160 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
16162 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
16164 # Put the nasty error message in config.log where it belongs
16165 echo "$ZSTD_PKG_ERRORS" >&5
16168 if test "$with_zstd" = yes; then
16169 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
16172 elif test $pkg_failed = untried; then
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16174 $as_echo "no" >&6; }
16176 if test "$with_zstd" = yes; then
16177 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
16181 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
16182 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16184 $as_echo "yes" >&6; }
16187 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
16195 # Support for VMS timestamps via cross compile
16197 if test "$ac_cv_header_time_h" = yes; then
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
16199 $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
16200 if ${gas_cv_have_time_type_member_tm_gmtoff+:} false; then :
16201 $as_echo_n "(cached) " >&6
16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16206 #define _BSD_SOURCE 1
16211 struct tm avar; void* aref = (void*) &avar.tm_gmtoff
16216 if ac_fn_c_try_compile "$LINENO"; then :
16217 gas_cv_have_time_type_member_tm_gmtoff=yes
16219 gas_cv_have_time_type_member_tm_gmtoff=no
16222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16225 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
16227 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
16231 $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
16235 if test "$ac_cv_header_sys_stat_h" = yes; then
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
16237 $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
16238 if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+:} false; then :
16239 $as_echo_n "(cached) " >&6
16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242 /* end confdefs.h. */
16244 #define _BSD_SOURCE 1
16245 #include <sys/stat.h>
16249 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
16254 if ac_fn_c_try_compile "$LINENO"; then :
16255 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
16257 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
16260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16263 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
16265 $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
16269 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
16272 $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
16273 if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+:} false; then :
16274 $as_echo_n "(cached) " >&6
16276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16277 /* end confdefs.h. */
16279 #define _BSD_SOURCE 1
16280 #include <sys/stat.h>
16284 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
16289 if ac_fn_c_try_compile "$LINENO"; then :
16290 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
16292 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
16295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16298 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
16300 $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
16304 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
16316 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
16318 ac_config_commands="$ac_config_commands default"
16321 cat >confcache <<\_ACEOF
16322 # This file is a shell script that caches the results of configure
16323 # tests run on this system so they can be shared between configure
16324 # scripts and configure runs, see configure's option --config-cache.
16325 # It is not useful on other systems. If it contains results you don't
16326 # want to keep, you may remove or edit it.
16328 # config.status only pays attention to the cache file if you give it
16329 # the --recheck option to rerun configure.
16331 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
16332 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16333 # following values.
16337 # The following way of writing the cache mishandles newlines in values,
16338 # but we know of no workaround that is simple, portable, and efficient.
16339 # So, we kill variables containing newlines.
16340 # Ultrix sh set writes to stderr and can't be redirected directly,
16341 # and sets the high bit in the cache file unless we assign to the vars.
16343 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16344 eval ac_val
=\$
$ac_var
16348 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16349 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16352 _ | IFS | as_nl
) ;; #(
16353 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16354 *) { eval $ac_var=; unset $ac_var;} ;;
16360 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16361 *${as_nl}ac_space
=\
*)
16362 # `set' does not quote correctly, so add quotes: double-quote
16363 # substitution turns \\\\ into \\, and sed turns \\ into \.
16366 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16369 # `set' quotes correctly as required by POSIX, so do not add quotes.
16370 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16379 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16381 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16383 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16384 if test -w "$cache_file"; then
16385 if test "x$cache_file" != "x/dev/null"; then
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16387 $as_echo "$as_me: updating cache $cache_file" >&6;}
16388 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16389 cat confcache
>"$cache_file"
16391 case $cache_file in #(
16393 mv -f confcache
"$cache_file"$$
&&
16394 mv -f "$cache_file"$$
"$cache_file" ;; #(
16396 mv -f confcache
"$cache_file" ;;
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16402 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16407 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16408 # Let make expand exec_prefix.
16409 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16411 DEFS
=-DHAVE_CONFIG_H
16416 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16417 # 1. Remove the extension, and $U if already installed.
16418 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16419 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16420 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16421 # will be set to the directory where LIBOBJS objects are built.
16422 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16423 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16425 LIBOBJS
=$ac_libobjs
16427 LTLIBOBJS
=$ac_ltlibobjs
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16431 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16432 if test -n "$am_sleep_pid"; then
16433 # Hide warnings about reused PIDs.
16434 wait $am_sleep_pid 2>/dev
/null
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16437 $as_echo "done" >&6; }
16438 if test -n "$EXEEXT"; then
16440 am__EXEEXT_FALSE
='#'
16442 am__EXEEXT_TRUE
='#'
16446 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16447 as_fn_error $?
"conditional \"AMDEP\" was never defined.
16448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16450 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16451 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
16452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16455 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16456 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
16457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16459 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
16460 as_fn_error $?
"conditional \"GENINSRC_NEVER\" was never defined.
16461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16464 : "${CONFIG_STATUS=./config.status}"
16466 ac_clean_files_save
=$ac_clean_files
16467 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16469 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16471 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16473 # Generated by $as_me.
16474 # Run this file to recreate the current configuration.
16475 # Compiler output produced by configure, useful for debugging
16476 # configure, is in config.log if it exists.
16479 ac_cs_recheck=false
16482 SHELL=\${CONFIG_SHELL-$SHELL}
16485 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16486 ## -------------------- ##
16487 ## M4sh Initialization. ##
16488 ## -------------------- ##
16490 # Be more Bourne compatible
16491 DUALCASE
=1; export DUALCASE
# for MKS sh
16492 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16495 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16496 # is contrary to our usage. Disable this feature.
16497 alias -g '${1+"$@"}'='"$@"'
16498 setopt NO_GLOB_SUBST
16500 case `(set -o) 2>/dev/null` in #(
16512 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16513 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16514 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16515 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16516 # Prefer a ksh shell builtin over an external printf program on Solaris,
16517 # but without wasting forks for bash or zsh.
16518 if test -z "$BASH_VERSION$ZSH_VERSION" \
16519 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16520 as_echo='print
-r --'
16521 as_echo_n='print
-rn --'
16522 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16523 as_echo='printf %s
\n'
16524 as_echo_n='printf %s
'
16526 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16527 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16528 as_echo_n='/usr
/ucb
/echo -n'
16530 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16531 as_echo_n_body='eval
16535 expr "X$arg" : "X\\(.*\\)$as_nl";
16536 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16538 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16540 export as_echo_n_body
16541 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16543 export as_echo_body
16544 as_echo='sh
-c $as_echo_body as_echo
'
16547 # The user is always right.
16548 if test "${PATH_SEPARATOR+set}" != set; then
16550 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16551 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16558 # We need space, tab and new line, in precisely that order. Quoting is
16559 # there to prevent editors from complaining about space-tab.
16560 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16561 # splitting by setting IFS to empty value.)
16564 # Find who we are. Look in the path if we contain no directory separator.
16567 *[\\/]* ) as_myself=$0 ;;
16568 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16569 for as_dir in $PATH
16572 test -z "$as_dir" && as_dir=.
16573 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16579 # We did not find ourselves, most probably we were run as `sh COMMAND'
16580 # in which case we are not to be found in the path.
16581 if test "x$as_myself" = x
; then
16584 if test ! -f "$as_myself"; then
16585 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16589 # Unset variables that we do not need and which cause bugs (e.g. in
16590 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16591 # suppresses any "Segmentation fault" message there. '((' could
16592 # trigger a bug in pdksh 5.2.14.
16593 for as_var
in BASH_ENV ENV MAIL MAILPATH
16594 do eval test x\
${$as_var+set} = xset \
16595 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16608 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16611 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16612 # ----------------------------------------
16613 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16614 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16615 # script with STATUS, using 1 if that was 0.
16618 as_status
=$1; test $as_status -eq 0 && as_status
=1
16620 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16621 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16623 $as_echo "$as_me: error: $2" >&2
16624 as_fn_exit
$as_status
16628 # as_fn_set_status STATUS
16629 # -----------------------
16630 # Set $? to STATUS, without forking.
16631 as_fn_set_status
()
16634 } # as_fn_set_status
16636 # as_fn_exit STATUS
16637 # -----------------
16638 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16642 as_fn_set_status
$1
16648 # Portably unset VAR.
16651 { eval $1=; unset $1;}
16653 as_unset
=as_fn_unset
16654 # as_fn_append VAR VALUE
16655 # ----------------------
16656 # Append the text in VALUE to the end of the definition contained in VAR. Take
16657 # advantage of any shell optimizations that allow amortized linear growth over
16658 # repeated appends, instead of the typical quadratic growth present in naive
16660 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16661 eval 'as_fn_append ()
16672 # as_fn_arith ARG...
16673 # ------------------
16674 # Perform arithmetic evaluation on the ARGs, and store the result in the
16675 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16676 # must be portable across $(()) and expr.
16677 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16678 eval 'as_fn_arith ()
16685 as_val
=`expr "$@" || test $? -eq 1`
16690 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16691 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16697 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16698 as_basename
=basename
16703 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16709 as_me
=`$as_basename -- "$0" ||
16710 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16711 X"$0" : 'X\(//\)$' \| \
16712 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16714 sed '/^.*\/\([^/][^/]*\)\/*$/{
16728 # Avoid depending upon Character Ranges.
16729 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16730 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16731 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16732 as_cr_digits
='0123456789'
16733 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16735 ECHO_C
= ECHO_N
= ECHO_T
=
16736 case `echo -n x` in #(((((
16738 case `echo 'xy\c'` in
16739 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16741 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16748 rm -f conf$$ conf$$.exe conf$$.
file
16749 if test -d conf$$.dir
; then
16750 rm -f conf$$.dir
/conf$$.
file
16753 mkdir conf$$.dir
2>/dev
/null
16755 if (echo >conf$$.
file) 2>/dev
/null
; then
16756 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16758 # ... but there are two gotchas:
16759 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16760 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16761 # In both cases, we have to default to `cp -pR'.
16762 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16764 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16772 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16773 rmdir conf$$.dir
2>/dev
/null
16778 # Create "$as_dir" as a directory, including parents if necessary.
16783 -*) as_dir
=.
/$as_dir;;
16785 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16789 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16790 *) as_qdir
=$as_dir;;
16792 as_dirs
="'$as_qdir' $as_dirs"
16793 as_dir
=`$as_dirname -- "$as_dir" ||
16794 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16795 X"$as_dir" : 'X\(//\)[^/]' \| \
16796 X"$as_dir" : 'X\(//\)$' \| \
16797 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16798 $as_echo X"$as_dir" |
16799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16803 /^X\(\/\/\)[^/].*/{
16816 test -d "$as_dir" && break
16818 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16819 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
16823 if mkdir
-p .
2>/dev
/null
; then
16824 as_mkdir_p
='mkdir -p "$as_dir"'
16826 test -d .
/-p && rmdir .
/-p
16831 # as_fn_executable_p FILE
16832 # -----------------------
16833 # Test if FILE is an executable regular file.
16834 as_fn_executable_p
()
16836 test -f "$1" && test -x "$1"
16837 } # as_fn_executable_p
16838 as_test_x
='test -x'
16839 as_executable_p
=as_fn_executable_p
16841 # Sed expression to map a string onto a valid CPP name.
16842 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16844 # Sed expression to map a string onto a valid variable name.
16845 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16849 ## ----------------------------------- ##
16850 ## Main body of $CONFIG_STATUS script. ##
16851 ## ----------------------------------- ##
16853 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16856 # Save the log message, to keep $0 and so on meaningful, and to
16857 # report actual input values of CONFIG_FILES etc. instead of their
16858 # values after options handling.
16860 This file was extended by gas $as_me 2.41.50, which was
16861 generated by GNU Autoconf 2.69. Invocation command line was
16863 CONFIG_FILES = $CONFIG_FILES
16864 CONFIG_HEADERS = $CONFIG_HEADERS
16865 CONFIG_LINKS = $CONFIG_LINKS
16866 CONFIG_COMMANDS = $CONFIG_COMMANDS
16869 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16874 case $ac_config_files in *"
16875 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16878 case $ac_config_headers in *"
16879 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16884 # Files that config.status was made for.
16885 config_files="$ac_config_files"
16886 config_headers="$ac_config_headers"
16887 config_commands="$ac_config_commands"
16891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16893 \`$as_me' instantiates files and other configuration actions
16894 from templates according to the current configuration. Unless the files
16895 and actions are specified as TAGs, all are instantiated by default.
16897 Usage: $0 [OPTION]... [TAG]...
16899 -h, --help print this help, then exit
16900 -V, --version print version number and configuration settings, then exit
16901 --config print configuration, then exit
16902 -q, --quiet, --silent
16903 do not print progress messages
16904 -d, --debug don't remove temporary files
16905 --recheck update $as_me by reconfiguring in the same conditions
16906 --file=FILE[:TEMPLATE]
16907 instantiate the configuration file FILE
16908 --header=FILE[:TEMPLATE]
16909 instantiate the configuration header FILE
16911 Configuration files:
16914 Configuration headers:
16917 Configuration commands:
16920 Report bugs to the package provider."
16923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16924 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16926 gas config.status 2.41.50
16927 configured by $0, generated by GNU Autoconf 2.69,
16928 with options \\"\$ac_cs_config\\"
16930 Copyright (C) 2012 Free Software Foundation, Inc.
16931 This config.status script is free software; the Free Software Foundation
16932 gives unlimited permission to copy, distribute and modify it."
16939 test -n "\$AWK" || AWK=awk
16942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16943 # The default lists apply if the user does not specify any file.
16949 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16950 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16954 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16966 # Handling of the options.
16967 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16969 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16970 $as_echo "$ac_cs_version"; exit ;;
16971 --config |
--confi |
--conf |
--con |
--co |
--c )
16972 $as_echo "$ac_cs_config"; exit ;;
16973 --debug |
--debu |
--deb |
--de |
--d |
-d )
16975 --file |
--fil |
--fi |
--f )
16978 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16979 '') as_fn_error $?
"missing file argument" ;;
16981 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16982 ac_need_defaults
=false
;;
16983 --header |
--heade |
--head |
--hea )
16986 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16988 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16989 ac_need_defaults
=false
;;
16991 # Conflict between --help and --header
16992 as_fn_error $?
"ambiguous option: \`$1'
16993 Try \`$0 --help' for more information.";;
16994 --help |
--hel |
-h )
16995 $as_echo "$ac_cs_usage"; exit ;;
16996 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16997 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17000 # This is an error.
17001 -*) as_fn_error $?
"unrecognized option: \`$1'
17002 Try \`$0 --help' for more information." ;;
17004 *) as_fn_append ac_config_targets
" $1"
17005 ac_need_defaults
=false
;;
17011 ac_configure_extra_args
=
17013 if $ac_cs_silent; then
17015 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17020 if \$ac_cs_recheck; then
17021 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17023 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17024 CONFIG_SHELL='$SHELL'
17025 export CONFIG_SHELL
17030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17034 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17035 ## Running $as_me. ##
17041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17045 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17048 # The HP-UX ksh and POSIX shell print the target directory to stdout
17049 # if CDPATH is set.
17050 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17052 sed_quote_subst='$sed_quote_subst'
17053 double_quote_subst='$double_quote_subst'
17054 delay_variable_subst='$delay_variable_subst'
17055 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17056 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17057 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17058 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17059 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17060 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17061 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17062 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17063 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17064 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17065 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17066 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17067 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17068 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17069 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17070 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17071 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17072 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17073 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17074 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17075 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17076 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17077 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17078 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17079 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17080 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17081 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17082 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17083 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17084 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17085 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17086 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17087 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17088 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17089 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17090 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17091 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17092 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17093 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17094 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17095 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17096 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17097 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17098 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17099 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17100 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17101 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17102 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17103 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"`'
17104 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17105 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17106 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17107 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17108 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17109 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17110 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17111 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17112 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17113 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17114 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17115 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17116 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17117 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17118 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17119 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17120 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17121 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17122 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17123 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17124 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17125 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17126 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17127 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17128 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17129 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17130 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17131 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17132 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17133 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17134 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17135 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17136 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17137 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17138 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17139 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17140 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17141 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17142 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17143 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17144 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17145 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17146 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17147 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17148 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17149 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17150 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17151 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17152 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17153 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17154 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17155 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17156 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17157 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17158 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17159 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17160 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17161 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17162 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17163 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17164 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17165 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17166 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17167 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17168 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17169 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17170 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17171 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17172 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17173 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17174 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17177 LTCFLAGS='$LTCFLAGS'
17178 compiler='$compiler_DEFAULT'
17180 # A function that is used when there is no print builtin or printf.
17181 func_fallback_echo ()
17183 eval 'cat <<_LTECHO_EOF
17188 # Quote evaled strings.
17202 deplibs_check_method \
17211 lt_cv_sys_global_symbol_pipe \
17212 lt_cv_sys_global_symbol_to_cdecl \
17213 lt_cv_sys_global_symbol_to_c_name_address \
17214 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17215 lt_prog_compiler_no_builtin_flag \
17216 lt_prog_compiler_wl \
17217 lt_prog_compiler_pic \
17218 lt_prog_compiler_static \
17219 lt_cv_prog_compiler_c_o \
17227 export_dynamic_flag_spec \
17228 whole_archive_flag_spec \
17229 compiler_needs_object \
17231 allow_undefined_flag \
17232 no_undefined_flag \
17233 hardcode_libdir_flag_spec \
17234 hardcode_libdir_flag_spec_ld \
17235 hardcode_libdir_separator \
17240 variables_saved_for_relink \
17242 library_names_spec \
17244 install_override_mode \
17248 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17249 *[\\\\\\\`\\"\\\$]*)
17250 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17253 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17258 # Double-quote double-evaled strings.
17259 for var in reload_cmds \
17260 old_postinstall_cmds \
17261 old_postuninstall_cmds \
17263 extract_expsyms_cmds \
17264 old_archive_from_new_cmds \
17265 old_archive_from_expsyms_cmds \
17267 archive_expsym_cmds \
17269 module_expsym_cmds \
17270 export_symbols_cmds \
17273 postuninstall_cmds \
17275 sys_lib_search_path_spec \
17276 sys_lib_dlsearch_path_spec; do
17277 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17278 *[\\\\\\\`\\"\\\$]*)
17279 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17282 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17287 ac_aux_dir='$ac_aux_dir'
17288 xsi_shell='$xsi_shell'
17289 lt_shell_append='$lt_shell_append'
17291 # See if we are running on zsh, and set the options which allow our
17292 # commands through without removal of \ escapes INIT.
17293 if test -n "\${ZSH_VERSION+set}" ; then
17294 setopt NO_GLOB_SUBST
17300 TIMESTAMP='$TIMESTAMP'
17306 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17307 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17309 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17310 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17311 LINGUAS="${LINGUAS-%UNSET%}"
17313 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17314 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17316 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17317 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17318 LINGUAS="${LINGUAS-%UNSET%}"
17320 target_cpu_type=${target_cpu_type}
17321 cgen_cpu_prefix=${cgen_cpu_prefix}
17322 obj_format=${obj_format}
17327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17329 # Handling of arguments.
17330 for ac_config_target
in $ac_config_targets
17332 case $ac_config_target in
17333 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17334 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
17335 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
17336 "gdb.ini") CONFIG_FILES
="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
17337 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
17338 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
17339 "default-2") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-2" ;;
17340 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17341 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
17342 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
17344 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17349 # If the user did not use the arguments to specify the items to instantiate,
17350 # then the envvar interface is used. Set only those that are not.
17351 # We use the long form for the default assignment because of an extremely
17352 # bizarre bug on SunOS 4.1.3.
17353 if $ac_need_defaults; then
17354 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17355 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17356 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17359 # Have a temporary directory for convenience. Make it in the build tree
17360 # simply because there is no reason against having it here, and in addition,
17361 # creating and moving files from /tmp can sometimes cause problems.
17362 # Hook for its removal unless debugging.
17363 # Note that there is a small window in which the directory will not be cleaned:
17364 # after its creation but before its name has been assigned to `$tmp'.
17368 trap 'exit_status=$?
17369 : "${ac_tmp:=$tmp}"
17370 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17372 trap 'as_fn_exit 1' 1 2 13 15
17374 # Create a (secure) tmp directory for tmp files.
17377 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17381 tmp
=.
/conf$$
-$RANDOM
17382 (umask 077 && mkdir
"$tmp")
17383 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
17386 # Set up the scripts for CONFIG_FILES section.
17387 # No need to generate them if there are no CONFIG_FILES.
17388 # This happens for instance with `./config.status config.h'.
17389 if test -n "$CONFIG_FILES"; then
17392 ac_cr
=`echo X | tr X '\015'`
17393 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17394 # But we know of no other shell where ac_cr would be empty at this
17395 # point, so we can use a bashism as a fallback.
17396 if test "x$ac_cr" = x
; then
17397 eval ac_cr
=\$
\'\\r
\'
17399 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17400 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17403 ac_cs_awk_cr
=$ac_cr
17406 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17411 echo "cat >conf$$subs.awk <<_ACEOF" &&
17412 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17414 } >conf$$subs.sh ||
17415 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17416 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17418 for ac_last_try in false false false false false :; do
17419 . ./conf$$subs.sh ||
17420 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17422 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17423 if test $ac_delim_n = $ac_delim_num; then
17425 elif $ac_last_try; then
17426 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17428 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17431 rm -f conf$$subs.sh
17433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17434 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
17438 s/^/S["/; s
/!.
*/"]=/
17448 s/\(.\{148\}\)..*/\1/
17450 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17455 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17462 s/\(.\{148\}\)..*/\1/
17464 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17468 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17473 ' <conf$$subs.awk | sed '
17478 ' >>$CONFIG_STATUS || ac_write_fail=1
17479 rm -f conf$$subs.awk
17480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17482 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
17483 for (key in S) S_is_set[key] = 1
17489 nfields = split(line, field, "@
")
17491 len = length(field[1])
17492 for (i = 2; i < nfields; i++) {
17494 keylen = length(key)
17495 if (S_is_set[key]) {
17497 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17498 len += length(value) + length(field[++i])
17509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17510 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17511 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17514 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
17515 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
17518 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17519 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
17520 # trailing colons and then remove the whole line if VPATH becomes empty
17521 # (actually we leave an empty line to preserve line numbers).
17522 if test "x
$srcdir" = x.; then
17523 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17542 fi # test -n "$CONFIG_FILES"
17544 # Set up the scripts for CONFIG_HEADERS section.
17545 # No need to generate them if there are no CONFIG_HEADERS.
17546 # This happens for instance with `./config.status Makefile'.
17547 if test -n "$CONFIG_HEADERS"; then
17548 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
17552 # Transform confdefs.h into an awk script `defines.awk', embedded as
17553 # here-document in config.status, that substitutes the proper values into
17554 # config.h.in to produce config.h.
17556 # Create a delimiter string that does not exist in confdefs.h, to ease
17557 # handling of long lines.
17559 for ac_last_try in false false :; do
17560 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
17561 if test -z "$ac_tt"; then
17563 elif $ac_last_try; then
17564 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
17566 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17570 # For the awk script, D is an array of macro values keyed by name,
17571 # likewise P contains macro parameters if any. Preserve backslash
17572 # newline sequences.
17574 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17576 s/.\{148\}/&'"$ac_delim"'/g
17579 s/^[ ]*#[ ]*define[ ][ ]*/ /
17586 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17588 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17592 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17593 D["\
1"]=" \
3\\\\\\n
"\\/p
17595 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17600 s/.\{148\}/&'"$ac_delim"'/g
17605 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17608 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17610 ' <confdefs.h | sed '
17611 s/'"$ac_delim"'/"\\\
17612 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17615 for (key in D) D_is_set[key] = 1
17618 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17620 split(line, arg, " ")
17621 if (arg[1] == "#") {
17625 defundef
= substr
(arg
[1], 2)
17628 split(mac1
, mac2
, "(") #)
17630 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17631 if (D_is_set
[macro
]) {
17632 # Preserve the white space surrounding the "#".
17633 print prefix
"define", macro P
[macro
] D
[macro
]
17636 # Replace #undef with comments. This is necessary, for example,
17637 # in the case of _POSIX_SOURCE, which is predefined and required
17638 # on some systems where configure will not decide to define it.
17639 if (defundef
== "undef") {
17640 print
"/*", prefix defundef
, macro
, "*/"
17648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17649 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
17650 fi # test -n "$CONFIG_HEADERS"
17653 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17658 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17660 case $ac_mode$ac_tag in
17662 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17663 :[FH
]-) ac_tag
=-:-;;
17664 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17681 -) ac_f
="$ac_tmp/stdin";;
17682 *) # Look for the file first in the build tree, then in the source tree
17683 # (if the path is not absolute). The absolute path cannot be DOS-style,
17684 # because $ac_f cannot contain `:'.
17688 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17690 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17692 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17693 as_fn_append ac_file_inputs
" '$ac_f'"
17696 # Let's still pretend it is `configure' which instantiates (i.e., don't
17697 # use $as_me), people would be surprised to read:
17698 # /* config.h. Generated by config.status. */
17699 configure_input
='Generated from '`
17700 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17702 if test x
"$ac_file" != x-
; then
17703 configure_input
="$ac_file. $configure_input"
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17705 $as_echo "$as_me: creating $ac_file" >&6;}
17707 # Neutralize special characters interpreted by sed in replacement strings.
17708 case $configure_input in #(
17709 *\
&* |
*\|
* |
*\\* )
17710 ac_sed_conf_input
=`$as_echo "$configure_input" |
17711 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17712 *) ac_sed_conf_input
=$configure_input;;
17716 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
17717 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
17722 ac_dir
=`$as_dirname -- "$ac_file" ||
17723 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17724 X"$ac_file" : 'X\(//\)[^/]' \| \
17725 X"$ac_file" : 'X\(//\)$' \| \
17726 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17727 $as_echo X"$ac_file" |
17728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17732 /^X\(\/\/\)[^/].*/{
17745 as_dir
="$ac_dir"; as_fn_mkdir_p
17749 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17751 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17752 # A ".." for each directory in $ac_dir_suffix.
17753 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17754 case $ac_top_builddir_sub in
17755 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17756 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17759 ac_abs_top_builddir
=$ac_pwd
17760 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17761 # for backward compatibility:
17762 ac_top_builddir
=$ac_top_build_prefix
17765 .
) # We are building in place.
17767 ac_top_srcdir
=$ac_top_builddir_sub
17768 ac_abs_top_srcdir
=$ac_pwd ;;
17769 [\\/]* | ?
:[\\/]* ) # Absolute name.
17770 ac_srcdir
=$srcdir$ac_dir_suffix;
17771 ac_top_srcdir
=$srcdir
17772 ac_abs_top_srcdir
=$srcdir ;;
17773 *) # Relative name.
17774 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17775 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17776 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17778 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17788 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17789 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17791 ac_MKDIR_P
=$MKDIR_P
17793 [\\/$
]* | ?
:[\\/]* ) ;;
17794 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17799 # If the template does not know about datarootdir, expand it.
17800 # FIXME: This hack should be removed a few years after 2.60.
17801 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17812 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17813 *datarootdir
*) ac_datarootdir_seen
=yes;;
17814 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17816 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17819 ac_datarootdir_hack='
17820 s&@datadir@&$datadir&g
17821 s&@docdir@&$docdir&g
17822 s&@infodir@&$infodir&g
17823 s&@localedir@&$localedir&g
17824 s&@mandir@&$mandir&g
17825 s&\\\${datarootdir}&$datarootdir&g' ;;
17829 # Neutralize VPATH when `$srcdir' = `.'.
17830 # Shell code in configure.ac might set extrasub.
17831 # FIXME: do we really want to maintain this feature?
17832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17833 ac_sed_extra="$ac_vpsub
17836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17838 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17839 s|@configure_input@|
$ac_sed_conf_input|
;t t
17840 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17841 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17842 s
&@srcdir@
&$ac_srcdir&;t t
17843 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17844 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17845 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17846 s
&@builddir@
&$ac_builddir&;t t
17847 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17848 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17849 s
&@INSTALL@
&$ac_INSTALL&;t t
17850 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17851 $ac_datarootdir_hack
17853 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
17854 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
17856 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17857 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
17858 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17859 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17861 which seems to be undefined. Please make sure it is defined" >&5
17862 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17863 which seems to be undefined. Please make sure it is defined" >&2;}
17865 rm -f "$ac_tmp/stdin"
17867 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17868 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17870 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17876 if test x"$ac_file" != x-; then
17878 $as_echo "/* $configure_input */" \
17879 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17880 } >"$ac_tmp/config.h" \
17881 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17882 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17884 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17887 mv "$ac_tmp/config.h" "$ac_file" \
17888 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17891 $as_echo "/* $configure_input */" \
17892 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17893 || as_fn_error $? "could not create -" "$LINENO" 5
17895 # Compute "$ac_file"'s index
in $config_headers.
17898 for _am_header
in $config_headers :; do
17899 case $_am_header in
17900 $_am_arg |
$_am_arg:* )
17903 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17906 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17907 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17908 X"$_am_arg" : 'X\(//\)[^/]' \| \
17909 X"$_am_arg" : 'X\(//\)$' \| \
17910 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17911 $as_echo X"$_am_arg" |
17912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17916 /^X\(\/\/\)[^/].*/{
17928 s/.*/./; q'`/stamp-h
$_am_stamp_count
17931 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17932 $as_echo "$as_me: executing $ac_file commands" >&6;}
17937 case $ac_file$ac_mode in
17938 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
17939 # Older Autoconf quotes --file arguments for eval, but not when files
17940 # are listed without --file. Let's play safe and only enable the eval
17941 # if we detect the quoting.
17942 case $CONFIG_FILES in
17943 *\'*) eval set x
"$CONFIG_FILES" ;;
17944 *) set x
$CONFIG_FILES ;;
17949 # Strip MF so we end up with the name of the file.
17950 mf
=`echo "$mf" | sed -e 's/:.*$//'`
17951 # Check whether this is an Automake generated Makefile or not.
17952 # We used to match only the files named 'Makefile.in', but
17953 # some people rename them; so instead we look at the file content.
17954 # Grep'ing the first line is not enough: some people post-process
17955 # each Makefile.in and add a new line on top of each file to say so.
17956 # Grep'ing the whole file is not good either: AIX grep has a line
17957 # limit of 2048, but all sed's we know have understand at least 4000.
17958 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
17959 dirpart
=`$as_dirname -- "$mf" ||
17960 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17961 X"$mf" : 'X\(//\)[^/]' \| \
17962 X"$mf" : 'X\(//\)$' \| \
17963 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17969 /^X\(\/\/\)[^/].*/{
17985 # Extract the definition of DEPDIR, am__include, and am__quote
17986 # from the Makefile without running 'make'.
17987 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17988 test -z "$DEPDIR" && continue
17989 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17990 test -z "$am__include" && continue
17991 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17992 # Find all dependency output files, they are included files with
17993 # $(DEPDIR) in their names. We invoke sed twice because it is the
17994 # simplest approach to changing $(DEPDIR) to its actual value in the
17996 for file in `sed -n "
17997 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17998 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17999 # Make sure the directory exists.
18000 test -f "$dirpart/$file" && continue
18001 fdir
=`$as_dirname -- "$file" ||
18002 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18003 X"$file" : 'X\(//\)[^/]' \| \
18004 X"$file" : 'X\(//\)$' \| \
18005 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18006 $as_echo X"$file" |
18007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18011 /^X\(\/\/\)[^/].*/{
18024 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18025 # echo "creating $dirpart/$file"
18026 echo '# dummy' > "$dirpart/$file"
18033 # See if we are running on zsh, and set the options which allow our
18034 # commands through without removal of \ escapes.
18035 if test -n "${ZSH_VERSION+set}" ; then
18036 setopt NO_GLOB_SUBST
18039 cfgfile
="${ofile}T"
18040 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18043 cat <<_LT_EOF >> "$cfgfile"
18046 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18047 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18048 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18049 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18051 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18052 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18053 # Written by Gordon Matzigkeit, 1996
18055 # This file is part of GNU Libtool.
18057 # GNU Libtool is free software; you can redistribute it and/or
18058 # modify it under the terms of the GNU General Public License as
18059 # published by the Free Software Foundation; either version 2 of
18060 # the License, or (at your option) any later version.
18062 # As a special exception to the GNU General Public License,
18063 # if you distribute this file as part of a program or library that
18064 # is built using GNU Libtool, you may include this file under the
18065 # same distribution terms that you use for the rest of that program.
18067 # GNU Libtool is distributed in the hope that it will be useful,
18068 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18069 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18070 # GNU General Public License for more details.
18072 # You should have received a copy of the GNU General Public License
18073 # along with GNU Libtool; see the file COPYING. If not, a copy
18074 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18075 # obtained by writing to the Free Software Foundation, Inc.,
18076 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18079 # The names of the tagged configurations supported by this script.
18082 # ### BEGIN LIBTOOL CONFIG
18084 # Which release of libtool.m4 was used?
18085 macro_version=$macro_version
18086 macro_revision=$macro_revision
18088 # Whether or not to build shared libraries.
18089 build_libtool_libs=$enable_shared
18091 # Whether or not to build static libraries.
18092 build_old_libs=$enable_static
18094 # What type of objects to build.
18097 # Whether or not to optimize for fast installation.
18098 fast_install=$enable_fast_install
18100 # Shell to use when invoking shell scripts.
18103 # An echo program that protects backslashes.
18107 host_alias=$host_alias
18111 # The build system.
18112 build_alias=$build_alias
18116 # A sed program that does not truncate output.
18119 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18120 Xsed="\$SED -e 1s/^X//"
18122 # A grep program that handles long lines.
18128 # A literal string matcher.
18131 # A BSD- or MS-compatible name lister.
18134 # Whether we need soft or hard links.
18137 # What is the maximum length of a command?
18138 max_cmd_len=$max_cmd_len
18140 # Object file suffix (normally "o").
18143 # Executable file suffix (normally "").
18146 # whether the shell understands "unset".
18149 # turn spaces into newlines.
18152 # turn newlines into spaces.
18155 # An object symbol dumper.
18156 OBJDUMP=$lt_OBJDUMP
18158 # Method to check whether dependent libraries are shared objects.
18159 deplibs_check_method=$lt_deplibs_check_method
18161 # Command to use when deplibs_check_method == "file_magic".
18162 file_magic_cmd=$lt_file_magic_cmd
18166 AR_FLAGS=$lt_AR_FLAGS
18168 # A symbol stripping program.
18171 # Commands used to install an old-style archive.
18173 old_postinstall_cmds=$lt_old_postinstall_cmds
18174 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18176 # Whether to use a lock for old archive extraction.
18177 lock_old_archive_extraction=$lock_old_archive_extraction
18182 # LTCC compiler flags.
18183 LTCFLAGS=$lt_CFLAGS
18185 # Take the output of nm and produce a listing of raw symbols and C names.
18186 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18188 # Transform the output of nm in a proper C declaration.
18189 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18191 # Transform the output of nm in a C name address pair.
18192 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18194 # Transform the output of nm in a C name address pair when lib prefix is needed.
18195 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18197 # The name of the directory that contains temporary libtool files.
18200 # Used to examine libraries when file_magic_cmd begins with "file".
18201 MAGIC_CMD=$MAGIC_CMD
18203 # Must we lock files when doing compilation?
18204 need_locks=$lt_need_locks
18206 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18207 DSYMUTIL=$lt_DSYMUTIL
18209 # Tool to change global to local symbols on Mac OS X.
18212 # Tool to manipulate fat objects and archives on Mac OS X.
18215 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18218 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18219 OTOOL64=$lt_OTOOL64
18221 # Old archive suffix (normally "a").
18224 # Shared library suffix (normally ".so").
18225 shrext_cmds=$lt_shrext_cmds
18227 # The commands to extract the exported symbol list from a shared archive.
18228 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18230 # Variables whose values should be saved in libtool wrapper scripts and
18231 # restored at link time.
18232 variables_saved_for_relink=$lt_variables_saved_for_relink
18234 # Do we need the "lib" prefix for modules?
18235 need_lib_prefix=$need_lib_prefix
18237 # Do we need a version for libraries?
18238 need_version=$need_version
18240 # Library versioning type.
18241 version_type=$version_type
18243 # Shared library runtime path variable.
18244 runpath_var=$runpath_var
18246 # Shared library path variable.
18247 shlibpath_var=$shlibpath_var
18249 # Is shlibpath searched before the hard-coded library search path?
18250 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18252 # Format of library name prefix.
18253 libname_spec=$lt_libname_spec
18255 # List of archive names. First name is the real one, the rest are links.
18256 # The last name is the one that the linker finds with -lNAME
18257 library_names_spec=$lt_library_names_spec
18259 # The coded name of the library, if different from the real name.
18260 soname_spec=$lt_soname_spec
18262 # Permission mode override for installation of shared libraries.
18263 install_override_mode=$lt_install_override_mode
18265 # Command to use after installation of a shared archive.
18266 postinstall_cmds=$lt_postinstall_cmds
18268 # Command to use after uninstallation of a shared archive.
18269 postuninstall_cmds=$lt_postuninstall_cmds
18271 # Commands used to finish a libtool library installation in a directory.
18272 finish_cmds=$lt_finish_cmds
18274 # As "finish_cmds", except a single script fragment to be evaled but
18276 finish_eval=$lt_finish_eval
18278 # Whether we should hardcode library paths into libraries.
18279 hardcode_into_libs=$hardcode_into_libs
18281 # Compile-time system search path for libraries.
18282 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18284 # Run-time system search path for libraries.
18285 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18287 # Whether dlopen is supported.
18288 dlopen_support=$enable_dlopen
18290 # Whether dlopen of programs is supported.
18291 dlopen_self=$enable_dlopen_self
18293 # Whether dlopen of statically linked programs is supported.
18294 dlopen_self_static=$enable_dlopen_self_static
18296 # Commands to strip libraries.
18297 old_striplib=$lt_old_striplib
18298 striplib=$lt_striplib
18301 # The linker used to build libraries.
18304 # How to create reloadable object files.
18305 reload_flag=$lt_reload_flag
18306 reload_cmds=$lt_reload_cmds
18308 # Commands used to build an old-style archive.
18309 old_archive_cmds=$lt_old_archive_cmds
18311 # A language specific compiler.
18314 # Is the compiler the GNU compiler?
18317 # Compiler flag to turn off builtin functions.
18318 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18320 # How to pass a linker flag through the compiler.
18321 wl=$lt_lt_prog_compiler_wl
18323 # Additional compiler flags for building library objects.
18324 pic_flag=$lt_lt_prog_compiler_pic
18326 # Compiler flag to prevent dynamic linking.
18327 link_static_flag=$lt_lt_prog_compiler_static
18329 # Does compiler simultaneously support -c and -o options?
18330 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18332 # Whether or not to add -lc for building shared libraries.
18333 build_libtool_need_lc=$archive_cmds_need_lc
18335 # Whether or not to disallow shared libs when runtime libs are static.
18336 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18338 # Compiler flag to allow reflexive dlopens.
18339 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18341 # Compiler flag to generate shared objects directly from archives.
18342 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18344 # Whether the compiler copes with passing no objects directly.
18345 compiler_needs_object=$lt_compiler_needs_object
18347 # Create an old-style archive from a shared archive.
18348 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18350 # Create a temporary old-style archive to link instead of a shared archive.
18351 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18353 # Commands used to build a shared archive.
18354 archive_cmds=$lt_archive_cmds
18355 archive_expsym_cmds=$lt_archive_expsym_cmds
18357 # Commands used to build a loadable module if different from building
18358 # a shared archive.
18359 module_cmds=$lt_module_cmds
18360 module_expsym_cmds=$lt_module_expsym_cmds
18362 # Whether we are building with GNU ld or not.
18363 with_gnu_ld=$lt_with_gnu_ld
18365 # Flag that allows shared libraries with undefined symbols to be built.
18366 allow_undefined_flag=$lt_allow_undefined_flag
18368 # Flag that enforces no undefined symbols.
18369 no_undefined_flag=$lt_no_undefined_flag
18371 # Flag to hardcode \$libdir into a binary during linking.
18372 # This must work even if \$libdir does not exist
18373 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18375 # If ld is used when linking, flag to hardcode \$libdir into a binary
18376 # during linking. This must work even if \$libdir does not exist.
18377 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18379 # Whether we need a single "-rpath" flag with a separated argument.
18380 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18382 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18383 # DIR into the resulting binary.
18384 hardcode_direct=$hardcode_direct
18386 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18387 # DIR into the resulting binary and the resulting library dependency is
18388 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18389 # library is relocated.
18390 hardcode_direct_absolute=$hardcode_direct_absolute
18392 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18393 # into the resulting binary.
18394 hardcode_minus_L=$hardcode_minus_L
18396 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18397 # into the resulting binary.
18398 hardcode_shlibpath_var=$hardcode_shlibpath_var
18400 # Set to "yes" if building a shared library automatically hardcodes DIR
18401 # into the library and all subsequent libraries and executables linked
18403 hardcode_automatic=$hardcode_automatic
18405 # Set to yes if linker adds runtime paths of dependent libraries
18406 # to runtime path list.
18407 inherit_rpath=$inherit_rpath
18409 # Whether libtool must link a program against all its dependency libraries.
18410 link_all_deplibs=$link_all_deplibs
18412 # Fix the shell variable \$srcfile for the compiler.
18413 fix_srcfile_path=$lt_fix_srcfile_path
18415 # Set to "yes" if exported symbols are required.
18416 always_export_symbols=$always_export_symbols
18418 # The commands to list exported symbols.
18419 export_symbols_cmds=$lt_export_symbols_cmds
18421 # Symbols that should not be listed in the preloaded symbols.
18422 exclude_expsyms=$lt_exclude_expsyms
18424 # Symbols that must always be exported.
18425 include_expsyms=$lt_include_expsyms
18427 # Commands necessary for linking programs (against libraries) with templates.
18428 prelink_cmds=$lt_prelink_cmds
18430 # Specify filename containing input files.
18431 file_list_spec=$lt_file_list_spec
18433 # How to hardcode a shared library path into an executable.
18434 hardcode_action=$hardcode_action
18436 # ### END LIBTOOL CONFIG
18442 cat <<\_LT_EOF
>> "$cfgfile"
18443 # AIX sometimes has problems with the GCC collect2 program. For some
18444 # reason, if we set the COLLECT_NAMES environment variable, the problems
18445 # vanish in a puff of smoke.
18446 if test "X${COLLECT_NAMES+set}" != Xset
; then
18448 export COLLECT_NAMES
18455 ltmain
="$ac_aux_dir/ltmain.sh"
18458 # We use sed instead of cat because bash on DJGPP gets confused if
18459 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18460 # text mode, it properly converts lines to CR/LF. This bash problem
18461 # is reportedly fixed, but why not run on old versions too?
18462 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18463 ||
(rm -f "$cfgfile"; exit 1)
18467 cat << \_LT_EOF
>> "$cfgfile"
18469 # func_dirname file append nondir_replacement
18470 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18471 # otherwise set result to NONDIR_REPLACEMENT.
18475 */*) func_dirname_result
="${1%/*}${2}" ;;
18476 * ) func_dirname_result
="${3}" ;;
18480 # func_basename file
18483 func_basename_result
="${1##*/}"
18486 # func_dirname_and_basename file append nondir_replacement
18487 # perform func_basename and func_dirname in a single function
18489 # dirname: Compute the dirname of FILE. If nonempty,
18490 # add APPEND to the result, otherwise set result
18491 # to NONDIR_REPLACEMENT.
18492 # value returned in "$func_dirname_result"
18493 # basename: Compute filename of FILE.
18494 # value retuned in "$func_basename_result"
18495 # Implementation must be kept synchronized with func_dirname
18496 # and func_basename. For efficiency, we do not delegate to
18497 # those functions but instead duplicate the functionality here.
18498 func_dirname_and_basename
()
18501 */*) func_dirname_result
="${1%/*}${2}" ;;
18502 * ) func_dirname_result
="${3}" ;;
18504 func_basename_result
="${1##*/}"
18507 # func_stripname prefix suffix name
18508 # strip PREFIX and SUFFIX off of NAME.
18509 # PREFIX and SUFFIX must not contain globbing or regex special
18510 # characters, hashes, percent signs, but SUFFIX may contain a leading
18511 # dot (in which case that matches only a dot).
18514 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18515 # positional parameters, so assign one to ordinary parameter first.
18516 func_stripname_result
=${3}
18517 func_stripname_result
=${func_stripname_result#"${1}"}
18518 func_stripname_result
=${func_stripname_result%"${2}"}
18524 func_opt_split_opt
=${1%%=*}
18525 func_opt_split_arg
=${1#*=}
18532 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
18533 *) func_lo2o_result
=${1} ;;
18537 # func_xform libobj-or-source
18540 func_xform_result
=${1%.*}.lo
18543 # func_arith arithmetic-term...
18546 func_arith_result
=$
(( $
* ))
18550 # STRING may not start with a hyphen.
18553 func_len_result
=${#1}
18558 *) # Bourne compatible functions.
18559 cat << \_LT_EOF
>> "$cfgfile"
18561 # func_dirname file append nondir_replacement
18562 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18563 # otherwise set result to NONDIR_REPLACEMENT.
18566 # Extract subdirectory from the argument.
18567 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
18568 if test "X$func_dirname_result" = "X${1}"; then
18569 func_dirname_result
="${3}"
18571 func_dirname_result
="$func_dirname_result${2}"
18575 # func_basename file
18578 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
18582 # func_stripname prefix suffix name
18583 # strip PREFIX and SUFFIX off of NAME.
18584 # PREFIX and SUFFIX must not contain globbing or regex special
18585 # characters, hashes, percent signs, but SUFFIX may contain a leading
18586 # dot (in which case that matches only a dot).
18587 # func_strip_suffix prefix name
18591 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18592 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18597 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
18598 my_sed_long_arg
='1s/^-[^=]*=//'
18603 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18604 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18610 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
18613 # func_xform libobj-or-source
18616 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18619 # func_arith arithmetic-term...
18622 func_arith_result
=`expr "$@"`
18626 # STRING may not start with a hyphen.
18629 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18635 case $lt_shell_append in
18637 cat << \_LT_EOF
>> "$cfgfile"
18639 # func_append var value
18640 # Append VALUE to the end of shell variable VAR.
18648 cat << \_LT_EOF
>> "$cfgfile"
18650 # func_append var value
18651 # Append VALUE to the end of shell variable VAR.
18662 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18663 ||
(rm -f "$cfgfile"; exit 1)
18665 mv -f "$cfgfile" "$ofile" ||
18666 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18671 for ac_file
in $CONFIG_FILES; do
18672 # Support "outfile[:infile[:infile...]]"
18674 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
18676 # PO directories have a Makefile.in generated from Makefile.in.in.
18677 case "$ac_file" in */Makefile.
in)
18678 # Adjust a relative srcdir.
18679 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18680 ac_dir_suffix
=/`echo "$ac_dir"|sed 's%^\./%%'`
18681 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18682 # In autoconf-2.13 it is called $ac_given_srcdir.
18683 # In autoconf-2.50 it is called $srcdir.
18684 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
18685 case "$ac_given_srcdir" in
18686 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
18687 /*) top_srcdir
="$ac_given_srcdir" ;;
18688 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
18690 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18691 rm -f "$ac_dir/POTFILES"
18692 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
18693 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18694 POMAKEFILEDEPS
="POTFILES.in"
18695 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18696 # on $ac_dir but don't depend on user-specified configuration
18698 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18699 # The LINGUAS file contains the set of available languages.
18700 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18701 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
18703 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18704 # Hide the ALL_LINGUAS assigment from automake.
18705 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18706 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
18708 # The set of available languages was given in configure.ac.
18709 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18711 case "$ac_given_srcdir" in
18713 *) srcdirpre
='$(srcdir)/' ;;
18719 for lang
in $ALL_LINGUAS; do
18720 POFILES
="$POFILES $srcdirpre$lang.po"
18721 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
18722 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
18723 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
18725 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18726 # environment variable.
18728 if test -n "$ALL_LINGUAS"; then
18729 for presentlang
in $ALL_LINGUAS; do
18731 if test "%UNSET%" != "$LINGUAS"; then
18732 desiredlanguages
="$LINGUAS"
18734 desiredlanguages
="$ALL_LINGUAS"
18736 for desiredlang
in $desiredlanguages; do
18737 # Use the presentlang catalog if desiredlang is
18738 # a. equal to presentlang, or
18739 # b. a variant of presentlang (because in this case,
18740 # presentlang can be used as a fallback for messages
18741 # which are not translated in the desiredlang catalog).
18742 case "$desiredlang" in
18743 "$presentlang"*) useit
=yes;;
18746 if test $useit = yes; then
18747 INST_LINGUAS
="$INST_LINGUAS $presentlang"
18752 if test -n "$INST_LINGUAS"; then
18753 for lang
in $INST_LINGUAS; do
18754 CATALOGS
="$CATALOGS $lang.gmo"
18757 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
18758 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"
18759 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
18760 if test -f "$f"; then
18762 *.orig |
*.bak |
*~
) ;;
18763 *) cat "$f" >> "$ac_dir/Makefile" ;;
18772 for ac_file
in $CONFIG_FILES; do
18773 # Support "outfile[:infile[:infile...]]"
18775 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
18777 # PO directories have a Makefile.in generated from Makefile.in.in.
18778 case "$ac_file" in */Makefile.
in)
18779 # Adjust a relative srcdir.
18780 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18781 ac_dir_suffix
=/`echo "$ac_dir"|sed 's%^\./%%'`
18782 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18783 # In autoconf-2.13 it is called $ac_given_srcdir.
18784 # In autoconf-2.50 it is called $srcdir.
18785 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
18786 case "$ac_given_srcdir" in
18787 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
18788 /*) top_srcdir
="$ac_given_srcdir" ;;
18789 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
18791 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18792 rm -f "$ac_dir/POTFILES"
18793 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
18794 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18795 POMAKEFILEDEPS
="POTFILES.in"
18796 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18797 # on $ac_dir but don't depend on user-specified configuration
18799 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18800 # The LINGUAS file contains the set of available languages.
18801 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18802 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
18804 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18805 # Hide the ALL_LINGUAS assigment from automake.
18806 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18807 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
18809 # The set of available languages was given in configure.ac.
18810 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18812 case "$ac_given_srcdir" in
18814 *) srcdirpre
='$(srcdir)/' ;;
18820 for lang
in $ALL_LINGUAS; do
18821 POFILES
="$POFILES $srcdirpre$lang.po"
18822 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
18823 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
18824 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
18826 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18827 # environment variable.
18829 if test -n "$ALL_LINGUAS"; then
18830 for presentlang
in $ALL_LINGUAS; do
18832 if test "%UNSET%" != "$LINGUAS"; then
18833 desiredlanguages
="$LINGUAS"
18835 desiredlanguages
="$ALL_LINGUAS"
18837 for desiredlang
in $desiredlanguages; do
18838 # Use the presentlang catalog if desiredlang is
18839 # a. equal to presentlang, or
18840 # b. a variant of presentlang (because in this case,
18841 # presentlang can be used as a fallback for messages
18842 # which are not translated in the desiredlang catalog).
18843 case "$desiredlang" in
18844 "$presentlang"*) useit
=yes;;
18847 if test $useit = yes; then
18848 INST_LINGUAS
="$INST_LINGUAS $presentlang"
18853 if test -n "$INST_LINGUAS"; then
18854 for lang
in $INST_LINGUAS; do
18855 CATALOGS
="$CATALOGS $lang.gmo"
18858 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
18859 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"
18860 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
18861 if test -f "$f"; then
18863 *.orig |
*.bak |
*~
) ;;
18864 *) cat "$f" >> "$ac_dir/Makefile" ;;
18872 "default":C
) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
18873 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
18874 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
18875 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
18876 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
18877 if test "x$cgen_cpu_prefix" != x
; then
18878 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
18887 ac_clean_files
=$ac_clean_files_save
18889 test $ac_write_fail = 0 ||
18890 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18893 # configure is writing to config.log, and then calls config.status.
18894 # config.status does its own redirection, appending to config.log.
18895 # Unfortunately, on DOS this fails, as config.log is still kept open
18896 # by configure, so config.status won't be able to write to it; its
18897 # output is simply discarded. So we exec the FD to /dev/null,
18898 # effectively closing config.log, so it can be properly (re)opened and
18899 # appended to by config.status. When coming back to configure, we
18900 # need to make the FD available again.
18901 if test "$no_create" != yes; then
18903 ac_config_status_args
=
18904 test "$silent" = yes &&
18905 ac_config_status_args
="$ac_config_status_args --quiet"
18907 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18909 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18910 # would make configure fail if this is the last instruction.
18911 $ac_cs_success || as_fn_exit
1
18913 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18915 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18920 touch config.status.tmp
18921 if touch --reference=config.status config.status.tmp
> /dev
/null
2>&1; then
18922 sed '/as_fn_exit 0/i \
18923 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
18924 touch --reference=Makefile Makefile.tmp \
18925 mv Makefile.tmp Makefile \
18926 ' config.status
> config.status.tmp
18927 touch --reference=config.status config.status.tmp
18928 mv config.status.tmp config.status
18929 chmod +x config.status
18930 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile
> Makefile.tmp
18931 touch --reference=Makefile Makefile.tmp
18932 mv Makefile.tmp Makefile
18934 rm -f config.status.tmp