2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ld 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.
590 PACKAGE_VERSION
='2.41.50'
591 PACKAGE_STRING
='ld 2.41.50'
595 ac_unique_file
="ldmain.c"
596 # Factoring default headers for most tests.
597 ac_includes_default
="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
634 ac_subst_vars
='am__EXEEXT_FALSE
647 elf_plt_unwind_list_options
648 elf_shlib_list_options
686 WARN_CFLAGS_FOR_BUILD
693 enable_initfini_array
696 TARGET_SYSTEM_ROOT_DEFINE
699 ENABLE_BFD_64_BIT_FALSE
700 ENABLE_BFD_64_BIT_TRUE
749 MAINTAINER_MODE_FALSE
763 INSTALL_STRIP_PROGRAM
817 program_transform_name
830 enable_option_checking
832 enable_maintainer_mode
833 enable_dependency_tracking
849 enable_compressed_debug_sections
850 enable_default_compressed_debug_sections_algorithm
855 enable_warn_execstack
856 enable_error_execstack
857 enable_warn_rwx_segments
858 enable_error_rwx_segments
859 enable_default_execstack
860 enable_error_handling_script
861 enable_default_hash_style
862 enable_initfini_array
866 enable_build_warnings
876 ac_precious_vars
='build_alias
900 # Initialize some variables set by options.
902 ac_init_version
=false
903 ac_unrecognized_opts
=
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
914 program_transform_name
=s
,x
,x
,
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir
='${exec_prefix}/bin'
929 sbindir
='${exec_prefix}/sbin'
930 libexecdir
='${exec_prefix}/libexec'
931 datarootdir
='${prefix}/share'
932 datadir
='${datarootdir}'
933 sysconfdir
='${prefix}/etc'
934 sharedstatedir
='${prefix}/com'
935 localstatedir
='${prefix}/var'
936 includedir
='${prefix}/include'
937 oldincludedir
='/usr/include'
938 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
939 infodir
='${datarootdir}/info'
944 libdir
='${exec_prefix}/lib'
945 localedir
='${datarootdir}/locale'
946 mandir
='${datarootdir}/man'
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
954 eval $ac_prev=\
$ac_option
960 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965 # Accept the important Cygnus configure options, so we can diagnose typos.
967 case $ac_dashdash$ac_option in
971 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
973 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
976 -build |
--build |
--buil |
--bui |
--bu)
977 ac_prev
=build_alias
;;
978 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
979 build_alias
=$ac_optarg ;;
981 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
982 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
983 ac_prev
=cache_file
;;
984 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
985 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
986 cache_file
=$ac_optarg ;;
989 cache_file
=config.cache
;;
991 -datadir |
--datadir |
--datadi |
--datad)
993 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
994 datadir
=$ac_optarg ;;
996 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
997 |
--dataroo |
--dataro |
--datar)
998 ac_prev
=datarootdir
;;
999 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1000 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1001 datarootdir
=$ac_optarg ;;
1003 -disable-* |
--disable-*)
1004 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1007 as_fn_error $?
"invalid feature name: $ac_useropt"
1008 ac_useropt_orig
=$ac_useropt
1009 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1012 "enable_
$ac_useropt"
1014 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1015 ac_unrecognized_sep
=', ';;
1017 eval enable_
$ac_useropt=no
;;
1019 -docdir |
--docdir |
--docdi |
--doc |
--do)
1021 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1022 docdir
=$ac_optarg ;;
1024 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1026 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1027 dvidir
=$ac_optarg ;;
1029 -enable-* |
--enable-*)
1030 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1033 as_fn_error $?
"invalid feature name: $ac_useropt"
1034 ac_useropt_orig
=$ac_useropt
1035 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036 case $ac_user_opts in
1038 "enable_
$ac_useropt"
1040 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1041 ac_unrecognized_sep
=', ';;
1043 eval enable_
$ac_useropt=\
$ac_optarg ;;
1045 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1046 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1047 |
--exec |
--exe |
--ex)
1048 ac_prev
=exec_prefix
;;
1049 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1050 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1051 |
--exec=* |
--exe=* |
--ex=*)
1052 exec_prefix
=$ac_optarg ;;
1054 -gas |
--gas |
--ga |
--g)
1055 # Obsolete; use --with-gas.
1058 -help |
--help |
--hel |
--he |
-h)
1059 ac_init_help
=long
;;
1060 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1061 ac_init_help
=recursive
;;
1062 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1063 ac_init_help
=short
;;
1065 -host |
--host |
--hos |
--ho)
1066 ac_prev
=host_alias
;;
1067 -host=* |
--host=* |
--hos=* |
--ho=*)
1068 host_alias
=$ac_optarg ;;
1070 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1072 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1074 htmldir
=$ac_optarg ;;
1076 -includedir |
--includedir |
--includedi |
--included |
--include \
1077 |
--includ |
--inclu |
--incl |
--inc)
1078 ac_prev
=includedir
;;
1079 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1080 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1081 includedir
=$ac_optarg ;;
1083 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1085 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1086 infodir
=$ac_optarg ;;
1088 -libdir |
--libdir |
--libdi |
--libd)
1090 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1091 libdir
=$ac_optarg ;;
1093 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1094 |
--libexe |
--libex |
--libe)
1095 ac_prev
=libexecdir
;;
1096 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1097 |
--libexe=* |
--libex=* |
--libe=*)
1098 libexecdir
=$ac_optarg ;;
1100 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1101 ac_prev
=localedir
;;
1102 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1103 localedir
=$ac_optarg ;;
1105 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1106 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1107 ac_prev
=localstatedir
;;
1108 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1109 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1110 localstatedir
=$ac_optarg ;;
1112 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1114 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1115 mandir
=$ac_optarg ;;
1117 -nfp |
--nfp |
--nf)
1118 # Obsolete; use --without-fp.
1121 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1122 |
--no-cr |
--no-c |
-n)
1125 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1126 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1129 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1130 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1131 |
--oldin |
--oldi |
--old |
--ol |
--o)
1132 ac_prev
=oldincludedir
;;
1133 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1134 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1135 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1136 oldincludedir
=$ac_optarg ;;
1138 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1140 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1141 prefix
=$ac_optarg ;;
1143 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1144 |
--program-pre |
--program-pr |
--program-p)
1145 ac_prev
=program_prefix
;;
1146 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1147 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1148 program_prefix
=$ac_optarg ;;
1150 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1151 |
--program-suf |
--program-su |
--program-s)
1152 ac_prev
=program_suffix
;;
1153 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1154 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1155 program_suffix
=$ac_optarg ;;
1157 -program-transform-name |
--program-transform-name \
1158 |
--program-transform-nam |
--program-transform-na \
1159 |
--program-transform-n |
--program-transform- \
1160 |
--program-transform |
--program-transfor \
1161 |
--program-transfo |
--program-transf \
1162 |
--program-trans |
--program-tran \
1163 |
--progr-tra |
--program-tr |
--program-t)
1164 ac_prev
=program_transform_name
;;
1165 -program-transform-name=* |
--program-transform-name=* \
1166 |
--program-transform-nam=* |
--program-transform-na=* \
1167 |
--program-transform-n=* |
--program-transform-=* \
1168 |
--program-transform=* |
--program-transfor=* \
1169 |
--program-transfo=* |
--program-transf=* \
1170 |
--program-trans=* |
--program-tran=* \
1171 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1172 program_transform_name
=$ac_optarg ;;
1174 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1176 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1177 pdfdir
=$ac_optarg ;;
1179 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1181 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1184 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1185 |
-silent |
--silent |
--silen |
--sile |
--sil)
1188 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1190 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1192 sbindir
=$ac_optarg ;;
1194 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1195 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1196 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1198 ac_prev
=sharedstatedir
;;
1199 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1200 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1201 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1203 sharedstatedir
=$ac_optarg ;;
1205 -site |
--site |
--sit)
1207 -site=* |
--site=* |
--sit=*)
1210 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1212 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1213 srcdir
=$ac_optarg ;;
1215 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1216 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1217 ac_prev
=sysconfdir
;;
1218 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1219 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1220 sysconfdir
=$ac_optarg ;;
1222 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1223 ac_prev
=target_alias
;;
1224 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1225 target_alias
=$ac_optarg ;;
1227 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1230 -version |
--version |
--versio |
--versi |
--vers |
-V)
1231 ac_init_version
=: ;;
1234 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1237 as_fn_error $?
"invalid package name: $ac_useropt"
1238 ac_useropt_orig
=$ac_useropt
1239 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240 case $ac_user_opts in
1244 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1245 ac_unrecognized_sep
=', ';;
1247 eval with_
$ac_useropt=\
$ac_optarg ;;
1249 -without-* |
--without-*)
1250 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1253 as_fn_error $?
"invalid package name: $ac_useropt"
1254 ac_useropt_orig
=$ac_useropt
1255 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1260 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1261 ac_unrecognized_sep
=', ';;
1263 eval with_
$ac_useropt=no
;;
1266 # Obsolete; use --with-x.
1269 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1270 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1271 ac_prev
=x_includes
;;
1272 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1273 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1274 x_includes
=$ac_optarg ;;
1276 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1277 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1278 ac_prev
=x_libraries
;;
1279 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1280 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1281 x_libraries
=$ac_optarg ;;
1283 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1284 Try \`$0 --help' for more information"
1288 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1289 # Reject names that are not valid shell variable names.
1290 case $ac_envvar in #(
1291 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1292 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1294 eval $ac_envvar=\
$ac_optarg
1295 export $ac_envvar ;;
1298 # FIXME: should be removed in autoconf 3.0.
1299 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1300 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1301 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1302 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1308 if test -n "$ac_prev"; then
1309 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1310 as_fn_error $?
"missing argument to $ac_option"
1313 if test -n "$ac_unrecognized_opts"; then
1314 case $enable_option_checking in
1316 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1317 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1321 # Check all directory arguments for consistency.
1322 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1323 datadir sysconfdir sharedstatedir localstatedir includedir \
1324 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1325 libdir localedir mandir
1327 eval ac_val
=\$
$ac_var
1328 # Remove trailing slashes.
1331 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1332 eval $ac_var=\
$ac_val;;
1334 # Be sure to have absolute directory names.
1336 [\\/$
]* | ?
:[\\/]* ) continue;;
1337 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1339 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1342 # There might be people who depend on the old broken behavior: `$host'
1343 # used to hold the argument of --host etc.
1344 # FIXME: To remove some day.
1347 target
=$target_alias
1349 # FIXME: To remove some day.
1350 if test "x$host_alias" != x
; then
1351 if test "x$build_alias" = x
; then
1352 cross_compiling
=maybe
1353 elif test "x$build_alias" != "x$host_alias"; then
1359 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1361 test "$silent" = yes && exec 6>/dev
/null
1364 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1365 ac_ls_di
=`ls -di .` &&
1366 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1367 as_fn_error $?
"working directory cannot be determined"
1368 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1369 as_fn_error $?
"pwd does not report name of working directory"
1372 # Find the source files, if location was not specified.
1373 if test -z "$srcdir"; then
1374 ac_srcdir_defaulted
=yes
1375 # Try the directory containing this script, then the parent directory.
1376 ac_confdir
=`$as_dirname -- "$as_myself" ||
1377 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1378 X"$as_myself" : 'X\(//\)[^/]' \| \
1379 X"$as_myself" : 'X\(//\)$' \| \
1380 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1381 $as_echo X"$as_myself" |
1382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1404 ac_srcdir_defaulted
=no
1406 if test ! -r "$srcdir/$ac_unique_file"; then
1407 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1408 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1410 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1412 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1414 # When building in place, set srcdir=.
1415 if test "$ac_abs_confdir" = "$ac_pwd"; then
1418 # Remove unnecessary trailing slashes from srcdir.
1419 # Double slashes in file names in object file debugging info
1420 # mess up M-x gdb in Emacs.
1422 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 for ac_var
in $ac_precious_vars; do
1425 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1426 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1427 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1428 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1432 # Report the --help message.
1434 if test "$ac_init_help" = "long"; then
1435 # Omit some internal or obsolete options to make the list less imposing.
1436 # This message is too long to be a string in the A/UX 3.1 sh.
1438 \`configure' configures ld 2.41.50 to adapt to many kinds of systems.
1440 Usage: $0 [OPTION]... [VAR=VALUE]...
1442 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443 VAR=VALUE. See below for descriptions of some of the useful variables.
1445 Defaults for the options are specified in brackets.
1448 -h, --help display this help and exit
1449 --help=short display options specific to this package
1450 --help=recursive display the short help of all the included packages
1451 -V, --version display version information and exit
1452 -q, --quiet, --silent do not print \`checking ...' messages
1453 --cache-file=FILE cache test results in FILE [disabled]
1454 -C, --config-cache alias for \`--cache-file=config.cache'
1455 -n, --no-create do not create output files
1456 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1458 Installation directories:
1459 --prefix=PREFIX install architecture-independent files in PREFIX
1460 [$ac_default_prefix]
1461 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1464 By default, \`make install' will install all the files in
1465 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1466 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467 for instance \`--prefix=\$HOME'.
1469 For better control, use the options below.
1471 Fine tuning of the installation directories:
1472 --bindir=DIR user executables [EPREFIX/bin]
1473 --sbindir=DIR system admin executables [EPREFIX/sbin]
1474 --libexecdir=DIR program executables [EPREFIX/libexec]
1475 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1476 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1477 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1478 --libdir=DIR object code libraries [EPREFIX/lib]
1479 --includedir=DIR C header files [PREFIX/include]
1480 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1483 --infodir=DIR info documentation [DATAROOTDIR/info]
1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1485 --mandir=DIR man documentation [DATAROOTDIR/man]
1486 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
1487 --htmldir=DIR html documentation [DOCDIR]
1488 --dvidir=DIR dvi documentation [DOCDIR]
1489 --pdfdir=DIR pdf documentation [DOCDIR]
1490 --psdir=DIR ps documentation [DOCDIR]
1496 --program-prefix=PREFIX prepend PREFIX to installed program names
1497 --program-suffix=SUFFIX append SUFFIX to installed program names
1498 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1501 --build=BUILD configure
for building on BUILD
[guessed
]
1502 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1503 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1507 if test -n "$ac_init_help"; then
1508 case $ac_init_help in
1509 short | recursive
) echo "Configuration of ld 2.41.50:";;
1514 --disable-option-checking ignore unrecognized
--enable/--with options
1515 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1516 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1517 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1518 --disable-silent-rules verbose build output
(undo
: "make V=0")
1519 --enable-maintainer-mode
1520 enable make rules and dependencies not useful
(and
1521 sometimes confusing
) to the casual installer
1522 --enable-dependency-tracking
1523 do not reject slow dependency extractors
1524 --disable-dependency-tracking
1525 speeds up one-time build
1526 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1527 --enable-static[=PKGS
] build static libraries
[default
=yes]
1528 --enable-fast-install[=PKGS
]
1529 optimize
for fast installation
[default
=yes]
1530 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1531 --enable-plugins Enable support
for plugins
1532 --disable-largefile omit support
for large files
1533 --enable-checking enable run-time checks
1534 --enable-targets alternative target configurations
1535 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1536 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1537 --enable-got=<type> GOT handling scheme
(target
, single
, negative
,
1539 --enable-compressed-debug-sections={all
,ld
,none
}
1540 compress debug sections by default
]
1541 --enable-default-compressed-debug-sections-algorithm={zlib
,zstd
}
1542 Default compression algorithm
for
1543 --enable-compressed-debug-sections.
1544 --enable-new-dtags set DT_RUNPATH instead of DT_RPATH by default
]
1545 --enable-relro enable -z relro
in ELF linker by default
1546 --enable-textrel-check=[yes|no|warning|error
]
1547 enable DT_TEXTREL check
in ELF linker
1548 --enable-separate-code enable -z separate-code
in ELF linker by default
1549 --enable-warn-execstack enable warnings when creating an executable stack
1550 --enable-error-execstack
1551 turn executable stack warnings into errors
1552 --enable-warn-rwx-segments
1553 enable warnings when creating segments with RWX
1555 --enable-error-rwx-segments
1556 turn executable segment warnings into errors
1557 --enable-default-execstack
1558 create an executable stack
if an input
file is
1559 missing a .note.GNU-stack section
1560 --enable-error-handling-script
1561 enable
/disable support
for the
1562 --error-handling-script option
1563 --enable-default-hash-style={sysv
,gnu
,both
}
1564 use this default
hash style
1565 --disable-initfini-array do not use .init_array
/.fini_array sections
1566 --enable-libctf Handle .ctf type-info sections
[default
=yes]
1567 --enable-jansson enable jansson
[default
=no
]
1568 --enable-werror treat compile warnings as errors
1569 --enable-build-warnings enable build-time compiler warnings
1570 --disable-nls do not use Native Language Support
1571 --disable-rpath do not hardcode runtime library paths
1574 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1575 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1576 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1578 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1579 --with-lib-path=dir1
:dir2...
set default LIB_PATH
1580 --with-sysroot=DIR Search
for usr
/lib et al within DIR.
1581 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1582 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1583 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1584 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1585 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1586 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1587 --with-libintl-type=TYPE
type of library to search
for (auto
/static
/shared
)
1588 --with-system-zlib use installed libz
1589 --with-zstd support zstd compressed debug sections
1592 Some influential environment variables
:
1593 CC C compiler
command
1594 CFLAGS C compiler flags
1595 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1596 nonstandard directory
<lib dir
>
1597 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1598 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1599 you have headers
in a nonstandard directory
<include dir
>
1600 CXX C
++ compiler
command
1601 CXXFLAGS C
++ compiler flags
1603 PKG_CONFIG path to pkg-config utility
1605 directories to add to pkg-config
's search path
1607 path overriding pkg-config's built-in search path
1608 CXXCPP C
++ preprocessor
1610 C compiler flags
for JANSSON
, overriding pkg-config
1612 linker flags
for JANSSON
, overriding pkg-config
1613 YACC The
`Yet Another Compiler Compiler' implementation to use.
1614 Defaults to the first program found out of: `bison
-y', `byacc',
1616 YFLAGS The list of arguments that will be passed by default to $YACC.
1617 This script will default YFLAGS to the empty string to avoid a
1618 default value of `-d' given by some make applications.
1619 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1620 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1622 Use these variables to override the choices made by `configure' or to
help
1623 it to
find libraries and programs with nonstandard names
/locations.
1625 Report bugs to the package provider.
1630 if test "$ac_init_help" = "recursive"; then
1631 # If there are subdirs, report their specific --help.
1632 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1633 test -d "$ac_dir" ||
1634 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1639 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1641 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1642 # A ".." for each directory in $ac_dir_suffix.
1643 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1644 case $ac_top_builddir_sub in
1645 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1646 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1649 ac_abs_top_builddir
=$ac_pwd
1650 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1651 # for backward compatibility:
1652 ac_top_builddir
=$ac_top_build_prefix
1655 .
) # We are building in place.
1657 ac_top_srcdir
=$ac_top_builddir_sub
1658 ac_abs_top_srcdir
=$ac_pwd ;;
1659 [\\/]* | ?
:[\\/]* ) # Absolute name.
1660 ac_srcdir
=$srcdir$ac_dir_suffix;
1661 ac_top_srcdir
=$srcdir
1662 ac_abs_top_srcdir
=$srcdir ;;
1664 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1665 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1666 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1668 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1670 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1671 # Check for guested configure.
1672 if test -f "$ac_srcdir/configure.gnu"; then
1674 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1675 elif test -f "$ac_srcdir/configure"; then
1677 $SHELL "$ac_srcdir/configure" --help=recursive
1679 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1681 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1685 test -n "$ac_init_help" && exit $ac_status
1686 if $ac_init_version; then
1688 ld configure
2.41.50
1689 generated by GNU Autoconf
2.69
1691 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1692 This configure
script is free software
; the Free Software Foundation
1693 gives unlimited permission to copy
, distribute and modify it.
1698 ## ------------------------ ##
1699 ## Autoconf initialization. ##
1700 ## ------------------------ ##
1702 # ac_fn_c_try_compile LINENO
1703 # --------------------------
1704 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_c_try_compile
()
1707 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1708 rm -f conftest.
$ac_objext
1709 if { { ac_try
="$ac_compile"
1711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_compile") 2>conftest.err
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest.$ac_objext; then :
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1738 } # ac_fn_c_try_compile
1740 # ac_fn_cxx_try_compile LINENO
1741 # ----------------------------
1742 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_cxx_try_compile ()
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext
1747 if { { ac_try="$ac_compile"
1749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1750 *) ac_try_echo
=$ac_try;;
1752 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_compile") 2>conftest.err
1756 if test -s conftest.err
; then
1757 grep -v '^ *+' conftest.err
>conftest.er1
1758 cat conftest.er1
>&5
1759 mv -f conftest.er1 conftest.err
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_cxx_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest.
$ac_objext; then :
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.
$ac_ext >&5
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 as_fn_set_status
$ac_retval
1776 } # ac_fn_cxx_try_compile
1778 # ac_fn_c_try_cpp LINENO
1779 # ----------------------
1780 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1783 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1784 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1793 if test -s conftest.err; then
1794 grep -v '^ *+' conftest.err >conftest.er1
1795 cat conftest.er1 >&5
1796 mv -f conftest.er1 conftest.err
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } > conftest.i && {
1800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1801 test ! -s conftest.err
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
1815 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1816 # -------------------------------------------------------
1817 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1818 # the include files in INCLUDES and setting the cache variable VAR
1820 ac_fn_c_check_header_mongrel ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if eval \${$3+:} false; then :
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if eval \${$3+:} false; then :
1827 $as_echo_n "(cached) " >&6
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1833 # Is the header compilable?
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1835 $as_echo_n "checking $2 usability... " >&6; }
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1841 if ac_fn_c_try_compile "$LINENO"; then :
1842 ac_header_compiler=yes
1844 ac_header_compiler=no
1846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1848 $as_echo "$ac_header_compiler" >&6; }
1850 # Is the header present?
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1852 $as_echo_n "checking $2 presence... " >&6; }
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1857 if ac_fn_c_try_cpp "$LINENO"; then :
1858 ac_header_preproc=yes
1860 ac_header_preproc=no
1862 rm -f conftest.err conftest.i conftest.$ac_ext
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1864 $as_echo "$ac_header_preproc" >&6; }
1866 # So? What about this header?
1867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1870 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1872 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1876 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1878 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1880 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1882 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1884 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888 $as_echo_n "checking for $2... " >&6; }
1889 if eval \${$3+:} false; then :
1890 $as_echo_n "(cached) " >&6
1892 eval "$3=\$ac_header_compiler"
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 } # ac_fn_c_check_header_mongrel
1902 # ac_fn_c_try_run LINENO
1903 # ----------------------
1904 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1905 # that executables *can* be run.
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 if { { ac_try="$ac_link"
1911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1912 *) ac_try_echo
=$ac_try;;
1914 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 $as_echo "$ac_try_echo"; } >&5
1916 (eval "$ac_link") 2>&5
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1920 { { case "(($ac_try" in
1921 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926 (eval "$ac_try") 2>&5
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; }; }; then :
1932 $as_echo "$as_me: program exited with status $ac_status" >&5
1933 $as_echo "$as_me: failed program was:" >&5
1934 sed 's/^/| /' conftest.$ac_ext >&5
1936 ac_retval=$ac_status
1938 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 as_fn_set_status $ac_retval
1944 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1945 # -------------------------------------------------------
1946 # Tests whether HEADER exists and can be compiled using the include files in
1947 # INCLUDES, setting the cache variable VAR accordingly.
1948 ac_fn_c_check_header_compile ()
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \${$3+:} false; then :
1954 $as_echo_n "(cached) " >&6
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1961 if ac_fn_c_try_compile "$LINENO"; then :
1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 } # ac_fn_c_check_header_compile
1975 # ac_fn_c_try_link LINENO
1976 # -----------------------
1977 # Try to link conftest.$ac_ext, and return whether this succeeded.
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 rm -f conftest.$ac_objext conftest$ac_exeext
1982 if { { ac_try="$ac_link"
1984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1985 *) ac_try_echo
=$ac_try;;
1987 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_link") 2>conftest.err
1991 if test -s conftest.err
; then
1992 grep -v '^ *+' conftest.err
>conftest.er1
1993 cat conftest.er1
>&5
1994 mv -f conftest.er1 conftest.err
1996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997 test $ac_status = 0; } && {
1998 test -z "$ac_c_werror_flag" ||
1999 test ! -s conftest.err
2000 } && test -s conftest
$ac_exeext && {
2001 test "$cross_compiling" = yes ||
2002 test -x conftest
$ac_exeext
2006 $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.
$ac_ext >&5
2011 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2012 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2013 # interfere with the next link command; also delete a directory that is
2014 # left behind by Apple's compiler. We do this before executing the actions.
2015 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017 as_fn_set_status
$ac_retval
2019 } # ac_fn_c_try_link
2021 # ac_fn_c_check_func LINENO FUNC VAR
2022 # ----------------------------------
2023 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2024 ac_fn_c_check_func
()
2026 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028 $as_echo_n "checking for $2... " >&6; }
2029 if eval \
${$3+:} false
; then :
2030 $as_echo_n "(cached) " >&6
2032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2034 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2036 #define $2 innocuous_$2
2038 /* System header to define __stub macros and hopefully few prototypes,
2039 which can conflict with char $2 (); below.
2040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2041 <limits.h> exists even on freestanding compilers. */
2044 # include <limits.h>
2046 # include <assert.h>
2051 /* Override any GCC internal prototype to avoid an error.
2052 Use char because int might match the return type of a GCC
2053 builtin and then its argument prototype would still apply. */
2058 /* The GNU C library defines this for functions which it implements
2059 to always fail with ENOSYS. Some functions are actually named
2060 something starting with __ and the normal name is an alias. */
2061 #if defined __stub_$2 || defined __stub___$2
2073 if ac_fn_c_try_link
"$LINENO"; then :
2078 rm -f core conftest.err conftest.
$ac_objext \
2079 conftest
$ac_exeext conftest.
$ac_ext
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086 } # ac_fn_c_check_func
2088 # ac_fn_cxx_try_cpp LINENO
2089 # ------------------------
2090 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2091 ac_fn_cxx_try_cpp
()
2093 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2094 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2097 *) ac_try_echo=$ac_try;;
2099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2100 $as_echo "$ac_try_echo"; } >&5
2101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2103 if test -s conftest.err; then
2104 grep -v '^ *+' conftest.err >conftest.er1
2105 cat conftest.er1 >&5
2106 mv -f conftest.er1 conftest.err
2108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2109 test $ac_status = 0; } > conftest.i && {
2110 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2111 test ! -s conftest.err
2115 $as_echo "$as_me: failed program was:" >&5
2116 sed 's/^/| /' conftest.$ac_ext >&5
2120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121 as_fn_set_status $ac_retval
2123 } # ac_fn_cxx_try_cpp
2125 # ac_fn_cxx_try_link LINENO
2126 # -------------------------
2127 # Try to link conftest.$ac_ext, and return whether this succeeded.
2128 ac_fn_cxx_try_link ()
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 rm -f conftest.$ac_objext conftest$ac_exeext
2132 if { { ac_try="$ac_link"
2134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2135 *) ac_try_echo
=$ac_try;;
2137 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2138 $as_echo "$ac_try_echo"; } >&5
2139 (eval "$ac_link") 2>conftest.err
2141 if test -s conftest.err
; then
2142 grep -v '^ *+' conftest.err
>conftest.er1
2143 cat conftest.er1
>&5
2144 mv -f conftest.er1 conftest.err
2146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2147 test $ac_status = 0; } && {
2148 test -z "$ac_cxx_werror_flag" ||
2149 test ! -s conftest.err
2150 } && test -s conftest
$ac_exeext && {
2151 test "$cross_compiling" = yes ||
2152 test -x conftest
$ac_exeext
2156 $as_echo "$as_me: failed program was:" >&5
2157 sed 's/^/| /' conftest.
$ac_ext >&5
2161 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2162 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2163 # interfere with the next link command; also delete a directory that is
2164 # left behind by Apple's compiler. We do this before executing the actions.
2165 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 as_fn_set_status
$ac_retval
2169 } # ac_fn_cxx_try_link
2171 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2172 # --------------------------------------------
2173 # Tries to find the compile-time value of EXPR in a program that includes
2174 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2176 ac_fn_c_compute_int
()
2178 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2179 if test "$cross_compiling" = yes; then
2180 # Depending upon the size, compute the lo and hi bounds.
2181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2187 static int test_array [1 - 2 * !(($2) >= 0)];
2189 return test_array [0];
2195 if ac_fn_c_try_compile
"$LINENO"; then :
2198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2204 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2206 return test_array [0];
2212 if ac_fn_c_try_compile
"$LINENO"; then :
2213 ac_hi
=$ac_mid; break
2215 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2216 if test $ac_lo -le $ac_mid; then
2220 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2231 static int test_array [1 - 2 * !(($2) < 0)];
2233 return test_array [0];
2239 if ac_fn_c_try_compile
"$LINENO"; then :
2242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2248 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2250 return test_array [0];
2256 if ac_fn_c_try_compile
"$LINENO"; then :
2257 ac_lo
=$ac_mid; break
2259 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2260 if test $ac_mid -le $ac_hi; then
2264 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2273 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2274 # Binary search between lo and hi bounds.
2275 while test "x$ac_lo" != "x$ac_hi"; do
2276 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2283 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2285 return test_array [0];
2291 if ac_fn_c_try_compile
"$LINENO"; then :
2294 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2299 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2306 static long int longval () { return $2; }
2307 static unsigned long int ulongval () { return $2; }
2314 FILE *f = fopen ("conftest.val", "w");
2319 long int i = longval ();
2322 fprintf (f, "%ld", i);
2326 unsigned long int i = ulongval ();
2329 fprintf (f, "%lu", i);
2331 /* Do not output a trailing newline, as this causes \r\n confusion
2332 on some platforms. */
2333 return ferror (f) || fclose (f) != 0;
2339 if ac_fn_c_try_run
"$LINENO"; then :
2340 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2344 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2345 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2349 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2350 as_fn_set_status
$ac_retval
2352 } # ac_fn_c_compute_int
2354 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2355 # ---------------------------------------------
2356 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2358 ac_fn_c_check_decl
()
2360 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2361 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2362 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2364 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2365 if eval \
${$3+:} false
; then :
2366 $as_echo_n "(cached) " >&6
2368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h. */
2374 #ifndef $as_decl_name
2376 (void) $as_decl_use;
2378 (void) $as_decl_name;
2386 if ac_fn_c_try_compile
"$LINENO"; then :
2391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2396 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2398 } # ac_fn_c_check_decl
2399 cat >config.log
<<_ACEOF
2400 This file contains any messages produced by compilers while
2401 running configure, to aid debugging if configure makes a mistake.
2403 It was created by ld $as_me 2.41.50, which was
2404 generated by GNU Autoconf 2.69. Invocation command line was
2416 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2417 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2418 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2419 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2420 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2422 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2423 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2425 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2426 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2427 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2428 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2429 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2430 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2431 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2435 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2439 test -z "$as_dir" && as_dir
=.
2440 $as_echo "PATH: $as_dir"
2456 # Keep a trace of the command line.
2457 # Strip out --no-create and --no-recursion so they do not pile up.
2458 # Strip out --silent because we don't want to record it for future runs.
2459 # Also quote any args containing shell meta-characters.
2460 # Make two passes to allow for proper duplicate-argument suppression.
2464 ac_must_keep_next
=false
2470 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2471 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2472 |
-silent |
--silent |
--silen |
--sile |
--sil)
2475 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2478 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2480 as_fn_append ac_configure_args1
" '$ac_arg'"
2481 if test $ac_must_keep_next = true
; then
2482 ac_must_keep_next
=false
# Got value, back to normal.
2485 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2486 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2487 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2488 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2489 case "$ac_configure_args0 " in
2490 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2493 -* ) ac_must_keep_next
=true
;;
2496 as_fn_append ac_configure_args
" '$ac_arg'"
2501 { ac_configure_args0
=; unset ac_configure_args0
;}
2502 { ac_configure_args1
=; unset ac_configure_args1
;}
2504 # When interrupted or exit'd, cleanup temporary files, and complete
2505 # config.log. We remove comments because anyway the quotes in there
2506 # would cause problems or look ugly.
2507 # WARNING: Use '\'' to represent an apostrophe within the trap.
2508 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2509 trap 'exit_status=$?
2510 # Save into config.log some information that might help in debugging.
2514 $as_echo "## ---------------- ##
2515 ## Cache variables. ##
2516 ## ---------------- ##"
2518 # The following way of writing the cache mishandles newlines in values,
2520 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2521 eval ac_val=\$$ac_var
2525 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2526 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2529 _ | IFS | as_nl) ;; #(
2530 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2531 *) { eval $ac_var=; unset $ac_var;} ;;
2536 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2537 *${as_nl}ac_space=\ *)
2539 "s/'\''/'\''\\\\'\'''\''/g;
2540 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2543 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2550 $as_echo "## ----------------- ##
2551 ## Output variables. ##
2552 ## ----------------- ##"
2554 for ac_var in $ac_subst_vars
2556 eval ac_val=\$$ac_var
2558 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2560 $as_echo "$ac_var='\''$ac_val'\''"
2564 if test -n "$ac_subst_files"; then
2565 $as_echo "## ------------------- ##
2566 ## File substitutions. ##
2567 ## ------------------- ##"
2569 for ac_var
in $ac_subst_files
2571 eval ac_val
=\$
$ac_var
2573 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2575 $as_echo "$ac_var='\''$ac_val'\''"
2580 if test -s confdefs.h; then
2581 $as_echo "## ----------- ##
2588 test "$ac_signal" != 0 &&
2589 $as_echo "$as_me: caught signal $ac_signal"
2590 $as_echo "$as_me: exit $exit_status"
2592 rm -f core *.core core.conftest.* &&
2593 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2596 for ac_signal
in 1 2 13 15; do
2597 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2601 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2602 rm -f -r conftest
* confdefs.h
2604 $as_echo "/* confdefs.h */" > confdefs.h
2606 # Predefined preprocessor variables.
2608 cat >>confdefs.h
<<_ACEOF
2609 #define PACKAGE_NAME "$PACKAGE_NAME"
2612 cat >>confdefs.h
<<_ACEOF
2613 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2616 cat >>confdefs.h
<<_ACEOF
2617 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2620 cat >>confdefs.h
<<_ACEOF
2621 #define PACKAGE_STRING "$PACKAGE_STRING"
2624 cat >>confdefs.h
<<_ACEOF
2625 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2628 cat >>confdefs.h
<<_ACEOF
2629 #define PACKAGE_URL "$PACKAGE_URL"
2633 # Let the site file select an alternate cache file if it wants to.
2634 # Prefer an explicitly selected file to automatically selected ones.
2637 if test -n "$CONFIG_SITE"; then
2638 # We do not want a PATH search for config.site.
2639 case $CONFIG_SITE in #((
2640 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2641 */*) ac_site_file1
=$CONFIG_SITE;;
2642 *) ac_site_file1
=.
/$CONFIG_SITE;;
2644 elif test "x$prefix" != xNONE
; then
2645 ac_site_file1
=$prefix/share
/config.site
2646 ac_site_file2
=$prefix/etc
/config.site
2648 ac_site_file1
=$ac_default_prefix/share
/config.site
2649 ac_site_file2
=$ac_default_prefix/etc
/config.site
2651 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2653 test "x$ac_site_file" = xNONE
&& continue
2654 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2656 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2657 sed 's/^/| /' "$ac_site_file" >&5
2659 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2661 as_fn_error $?
"failed to load site script $ac_site_file
2662 See \`config.log' for more details" "$LINENO" 5; }
2666 if test -r "$cache_file"; then
2667 # Some versions of bash will fail to source /dev/null (special files
2668 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2669 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2671 $as_echo "$as_me: loading cache $cache_file" >&6;}
2673 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2674 *) .
"./$cache_file";;
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2679 $as_echo "$as_me: creating cache $cache_file" >&6;}
2683 gt_needs
="$gt_needs "
2684 as_fn_append ac_header_list
" stdlib.h"
2685 as_fn_append ac_header_list
" unistd.h"
2686 as_fn_append ac_header_list
" sys/param.h"
2687 # Check that the precious variables saved in the cache have kept the same
2689 ac_cache_corrupted
=false
2690 for ac_var
in $ac_precious_vars; do
2691 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2692 eval ac_new_set
=\
$ac_env_${ac_var}_set
2693 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2694 eval ac_new_val
=\
$ac_env_${ac_var}_value
2695 case $ac_old_set,$ac_new_set in
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2698 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2699 ac_cache_corrupted
=: ;;
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2702 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2703 ac_cache_corrupted
=: ;;
2706 if test "x$ac_old_val" != "x$ac_new_val"; then
2707 # differences in whitespace do not lead to failure.
2708 ac_old_val_w
=`echo x $ac_old_val`
2709 ac_new_val_w
=`echo x $ac_new_val`
2710 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2712 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2713 ac_cache_corrupted
=:
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2716 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2717 eval $ac_var=\
$ac_old_val
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2720 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2722 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2725 # Pass precious variables to config.status.
2726 if test "$ac_new_set" = set; then
2728 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2729 *) ac_arg
=$ac_var=$ac_new_val ;;
2731 case " $ac_configure_args " in
2732 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2733 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2737 if $ac_cache_corrupted; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2741 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2742 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2744 ## -------------------- ##
2745 ## Main body of script. ##
2746 ## -------------------- ##
2749 ac_cpp
='$CPP $CPPFLAGS'
2750 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2761 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2762 if test -f "$ac_dir/install-sh"; then
2764 ac_install_sh
="$ac_aux_dir/install-sh -c"
2766 elif test -f "$ac_dir/install.sh"; then
2768 ac_install_sh
="$ac_aux_dir/install.sh -c"
2770 elif test -f "$ac_dir/shtool"; then
2772 ac_install_sh
="$ac_aux_dir/shtool install -c"
2776 if test -z "$ac_aux_dir"; then
2777 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2780 # These three variables are undocumented and unsupported,
2781 # and are intended to be withdrawn in a future Autoconf release.
2782 # They can cause serious problems if a builder's source tree is in a directory
2783 # whose full name contains unusual characters.
2784 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2785 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2786 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2789 # Make sure we can run config.sub.
2790 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2791 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2794 $as_echo_n "checking build system type... " >&6; }
2795 if ${ac_cv_build+:} false
; then :
2796 $as_echo_n "(cached) " >&6
2798 ac_build_alias
=$build_alias
2799 test "x$ac_build_alias" = x
&&
2800 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2801 test "x$ac_build_alias" = x
&&
2802 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2803 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2804 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2808 $as_echo "$ac_cv_build" >&6; }
2809 case $ac_cv_build in
2811 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2814 ac_save_IFS
=$IFS; IFS
='-'
2820 # Remember, the first character of IFS is used to create $*,
2821 # except with old shells:
2824 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2828 $as_echo_n "checking host system type... " >&6; }
2829 if ${ac_cv_host+:} false
; then :
2830 $as_echo_n "(cached) " >&6
2832 if test "x$host_alias" = x
; then
2833 ac_cv_host
=$ac_cv_build
2835 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2836 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2841 $as_echo "$ac_cv_host" >&6; }
2844 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2847 ac_save_IFS
=$IFS; IFS
='-'
2853 # Remember, the first character of IFS is used to create $*,
2854 # except with old shells:
2857 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2861 $as_echo_n "checking target system type... " >&6; }
2862 if ${ac_cv_target+:} false
; then :
2863 $as_echo_n "(cached) " >&6
2865 if test "x$target_alias" = x
; then
2866 ac_cv_target
=$ac_cv_host
2868 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2869 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2874 $as_echo "$ac_cv_target" >&6; }
2875 case $ac_cv_target in
2877 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2879 target
=$ac_cv_target
2880 ac_save_IFS
=$IFS; IFS
='-'
2886 # Remember, the first character of IFS is used to create $*,
2887 # except with old shells:
2890 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2893 # The aliases save the names the user supplied, while $host etc.
2894 # will get canonicalized.
2895 test -n "$target_alias" &&
2896 test "$program_prefix$program_suffix$program_transform_name" = \
2898 program_prefix
=${target_alias}-
2901 am__api_version
='1.15'
2903 # Find a good install program. We prefer a C program (faster),
2904 # so one script is as good as another. But avoid the broken or
2905 # incompatible versions:
2906 # SysV /etc/install, /usr/sbin/install
2907 # SunOS /usr/etc/install
2908 # IRIX /sbin/install
2910 # AmigaOS /C/install, which installs bootblocks on floppy discs
2911 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2912 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2913 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2914 # OS/2's system install, which has a completely different semantic
2915 # ./install, which can be erroneously created by make from ./install.sh.
2916 # Reject install programs that cannot install multiple files.
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2918 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2919 if test -z "$INSTALL"; then
2920 if ${ac_cv_path_install+:} false
; then :
2921 $as_echo_n "(cached) " >&6
2923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2927 test -z "$as_dir" && as_dir
=.
2928 # Account for people who put trailing slashes in PATH elements.
2929 case $as_dir/ in #((
2930 .
/ | .
// |
/[cC
]/* | \
2931 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2932 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2935 # OSF1 and SCO ODT 3.0 have their own names for install.
2936 # Don't use installbsd from OSF since it installs stuff as root
2938 for ac_prog
in ginstall scoinst
install; do
2939 for ac_exec_ext
in '' $ac_executable_extensions; do
2940 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2941 if test $ac_prog = install &&
2942 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2943 # AIX install. It has an incompatible calling convention.
2945 elif test $ac_prog = install &&
2946 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2947 # program-specific install script used by HP pwplus--don't use.
2950 rm -rf conftest.one conftest.two conftest.dir
2951 echo one
> conftest.one
2952 echo two
> conftest.two
2954 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2955 test -s conftest.one
&& test -s conftest.two
&&
2956 test -s conftest.dir
/conftest.one
&&
2957 test -s conftest.dir
/conftest.two
2959 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2972 rm -rf conftest.one conftest.two conftest.dir
2975 if test "${ac_cv_path_install+set}" = set; then
2976 INSTALL
=$ac_cv_path_install
2978 # As a last resort, use the slow shell script. Don't cache a
2979 # value for INSTALL within a source directory, because that will
2980 # break other packages using the cache if that directory is
2981 # removed, or if the value is a relative name.
2982 INSTALL
=$ac_install_sh
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2986 $as_echo "$INSTALL" >&6; }
2988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2989 # It thinks the first close brace ends the variable substitution.
2990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2994 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2997 $as_echo_n "checking whether build environment is sane... " >&6; }
2998 # Reject unsafe characters in $srcdir or the absolute working directory
2999 # name. Accept space and tab only in the latter.
3003 *[\\\"\
#\$\&\'\`$am_lf]*)
3004 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
3007 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3008 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3011 # Do 'set' in a subshell so we don't clobber the current shell's
3012 # arguments. Must try -L first in case configure is actually a
3013 # symlink; some systems play weird games with the mod time of symlinks
3014 # (eg FreeBSD returns the mod time of the symlink's containing
3018 for am_try
in 1 2; do
3019 echo "timestamp, slept: $am_has_slept" > conftest.
file
3020 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3021 if test "$*" = "X"; then
3023 set X
`ls -t "$srcdir/configure" conftest.file`
3025 if test "$*" != "X $srcdir/configure conftest.file" \
3026 && test "$*" != "X conftest.file $srcdir/configure"; then
3028 # If neither matched, then we have a broken ls. This can happen
3029 # if, for instance, CONFIG_SHELL is bash and it inherits a
3030 # broken ls alias from the environment. This has actually
3031 # happened. Such a system could not be considered "sane".
3032 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3033 alias in your environment" "$LINENO" 5
3035 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3042 test "$2" = conftest.
file
3048 as_fn_error $?
"newly created file is older than distributed files!
3049 Check your system clock" "$LINENO" 5
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3052 $as_echo "yes" >&6; }
3053 # If we didn't sleep, we still need to ensure time stamps of config.status and
3054 # generated files are strictly newer.
3056 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3063 test "$program_prefix" != NONE
&&
3064 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3065 # Use a double $ so make ignores it.
3066 test "$program_suffix" != NONE
&&
3067 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3068 # Double any \ or $.
3069 # By default was `s,x,x', remove it if useless.
3070 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3071 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3073 # Expand $ac_aux_dir to an absolute path.
3074 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3076 if test x
"${MISSING+set}" != xset
; then
3079 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3081 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3084 # Use eval to expand $SHELL
3085 if eval "$MISSING --is-lightweight"; then
3086 am_missing_run
="$MISSING "
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3090 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3093 if test x
"${install_sh+set}" != xset
; then
3096 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3098 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3102 # Installed binaries are usually stripped using 'strip' when the user
3103 # run "make install-strip". However 'strip' might not be the right
3104 # tool to use in cross-compilation environments, therefore Automake
3105 # will honor the 'STRIP' environment variable to overrule this program.
3106 if test "$cross_compiling" != no
; then
3107 if test -n "$ac_tool_prefix"; then
3108 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3109 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111 $as_echo_n "checking for $ac_word... " >&6; }
3112 if ${ac_cv_prog_STRIP+:} false
; then :
3113 $as_echo_n "(cached) " >&6
3115 if test -n "$STRIP"; then
3116 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3118 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3122 test -z "$as_dir" && as_dir
=.
3123 for ac_exec_ext
in '' $ac_executable_extensions; do
3124 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3125 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 STRIP
=$ac_cv_prog_STRIP
3136 if test -n "$STRIP"; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3138 $as_echo "$STRIP" >&6; }
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 $as_echo "no" >&6; }
3146 if test -z "$ac_cv_prog_STRIP"; then
3148 # Extract the first word of "strip", so it can be a program name with args.
3149 set dummy strip
; ac_word
=$2
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151 $as_echo_n "checking for $ac_word... " >&6; }
3152 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3153 $as_echo_n "(cached) " >&6
3155 if test -n "$ac_ct_STRIP"; then
3156 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3158 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3162 test -z "$as_dir" && as_dir
=.
3163 for ac_exec_ext
in '' $ac_executable_extensions; do
3164 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3165 ac_cv_prog_ac_ct_STRIP
="strip"
3166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3176 if test -n "$ac_ct_STRIP"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3178 $as_echo "$ac_ct_STRIP" >&6; }
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3184 if test "x$ac_ct_STRIP" = x
; then
3187 case $cross_compiling:$ac_tool_warned in
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3191 ac_tool_warned
=yes ;;
3196 STRIP
="$ac_cv_prog_STRIP"
3200 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3203 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3204 if test -z "$MKDIR_P"; then
3205 if ${ac_cv_path_mkdir+:} false
; then :
3206 $as_echo_n "(cached) " >&6
3208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3209 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3212 test -z "$as_dir" && as_dir
=.
3213 for ac_prog
in mkdir gmkdir
; do
3214 for ac_exec_ext
in '' $ac_executable_extensions; do
3215 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3216 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3217 'mkdir (GNU coreutils) '* | \
3218 'mkdir (coreutils) '* | \
3219 'mkdir (fileutils) '4.1*)
3220 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3230 test -d .
/--version && rmdir .
/--version
3231 if test "${ac_cv_path_mkdir+set}" = set; then
3232 MKDIR_P
="$ac_cv_path_mkdir -p"
3234 # As a last resort, use the slow shell script. Don't cache a
3235 # value for MKDIR_P within a source directory, because that will
3236 # break other packages using the cache if that directory is
3237 # removed, or if the value is a relative name.
3238 MKDIR_P
="$ac_install_sh -d"
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3242 $as_echo "$MKDIR_P" >&6; }
3244 for ac_prog
in gawk mawk nawk
awk
3246 # Extract the first word of "$ac_prog", so it can be a program name with args.
3247 set dummy
$ac_prog; ac_word
=$2
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249 $as_echo_n "checking for $ac_word... " >&6; }
3250 if ${ac_cv_prog_AWK+:} false
; then :
3251 $as_echo_n "(cached) " >&6
3253 if test -n "$AWK"; then
3254 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3260 test -z "$as_dir" && as_dir
=.
3261 for ac_exec_ext
in '' $ac_executable_extensions; do
3262 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3263 ac_cv_prog_AWK
="$ac_prog"
3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 if test -n "$AWK"; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3276 $as_echo "$AWK" >&6; }
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 $as_echo "no" >&6; }
3283 test -n "$AWK" && break
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3287 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3289 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3290 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3291 $as_echo_n "(cached) " >&6
3293 cat >conftest.
make <<\_ACEOF
3296 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3298 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3299 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3301 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3303 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3307 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3309 $as_echo "yes" >&6; }
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3314 SET_MAKE
="MAKE=${MAKE-make}"
3317 rm -rf .tst
2>/dev
/null
3318 mkdir .tst
2>/dev
/null
3319 if test -d .tst
; then
3324 rmdir .tst
2>/dev
/null
3326 # Check whether --enable-silent-rules was given.
3327 if test "${enable_silent_rules+set}" = set; then :
3328 enableval
=$enable_silent_rules;
3331 case $enable_silent_rules in # (((
3332 yes) AM_DEFAULT_VERBOSITY
=0;;
3333 no
) AM_DEFAULT_VERBOSITY
=1;;
3334 *) AM_DEFAULT_VERBOSITY
=1;;
3336 am_make
=${MAKE-make}
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3338 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3339 if ${am_cv_make_support_nested_variables+:} false
; then :
3340 $as_echo_n "(cached) " >&6
3342 if $as_echo 'TRUE=$(BAR$(V))
3348 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3349 am_cv_make_support_nested_variables
=yes
3351 am_cv_make_support_nested_variables
=no
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3355 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3356 if test $am_cv_make_support_nested_variables = yes; then
3358 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3360 AM_V
=$AM_DEFAULT_VERBOSITY
3361 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3365 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3366 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3367 # is not polluted with repeated "-I."
3368 am__isrc
=' -I$(srcdir)'
3369 # test to see if srcdir already configured
3370 if test -f $srcdir/config.status
; then
3371 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3375 # test whether we have cygpath
3376 if test -z "$CYGPATH_W"; then
3377 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3378 CYGPATH_W
='cygpath -w'
3385 # Define the identity of the package.
3390 cat >>confdefs.h
<<_ACEOF
3391 #define PACKAGE "$PACKAGE"
3395 cat >>confdefs.h
<<_ACEOF
3396 #define VERSION "$VERSION"
3399 # Some tools Automake needs.
3401 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3404 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3407 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3410 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3413 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3415 # For better backward compatibility. To be removed once Automake 1.9.x
3416 # dies out for good. For more background, see:
3417 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3418 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3419 mkdir_p
='$(MKDIR_P)'
3421 # We need awk for the "check" target (and possibly the TAP driver). The
3422 # system "awk" is bad on some platforms.
3423 # Always define AMTAR for backward compatibility. Yes, it's still used
3424 # in the wild :-( We should find a proper way to deprecate it ...
3428 # We'll loop over all known methods to create a tar archive until one works.
3429 _am_tools
='gnutar pax cpio none'
3431 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3438 # POSIX will say in a future version that running "rm -f" with no argument
3439 # is OK; and we want to be able to make that assumption in our Makefile
3440 # recipes. So use an aggressive probe to check that the usage we want is
3441 # actually supported "in the wild" to an acceptable degree.
3442 # See automake bug#10828.
3443 # To make any issue more visible, cause the running configure to be aborted
3444 # by default if the 'rm' program in use doesn't match our expectations; the
3445 # user can still override this though.
3446 if rm -f && rm -fr && rm -rf; then : OK
; else
3450 Your 'rm' program seems unable to run without file operands specified
3451 on the command line, even when the '-f' option is present. This is contrary
3452 to the behaviour of most rm programs out there, and not conforming with
3453 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3455 Please tell bug-automake@gnu.org about your system, including the value
3456 of your $PATH and any error possibly output before this message. This
3457 can help us improve future automake versions.
3460 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3461 echo 'Configuration will proceed anyway, since you have set the' >&2
3462 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3466 Aborting the configuration process, to ensure you take notice of the issue.
3468 You can download and install GNU coreutils to get an 'rm' implementation
3469 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3471 If you want to complete the configuration process using your problematic
3472 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3473 to "yes", and re-run configure.
3476 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3480 # Check whether --enable-silent-rules was given.
3481 if test "${enable_silent_rules+set}" = set; then :
3482 enableval
=$enable_silent_rules;
3485 case $enable_silent_rules in # (((
3486 yes) AM_DEFAULT_VERBOSITY
=0;;
3487 no
) AM_DEFAULT_VERBOSITY
=1;;
3488 *) AM_DEFAULT_VERBOSITY
=0;;
3490 am_make
=${MAKE-make}
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3492 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3493 if ${am_cv_make_support_nested_variables+:} false
; then :
3494 $as_echo_n "(cached) " >&6
3496 if $as_echo 'TRUE=$(BAR$(V))
3502 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3503 am_cv_make_support_nested_variables
=yes
3505 am_cv_make_support_nested_variables
=no
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3509 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3510 if test $am_cv_make_support_nested_variables = yes; then
3512 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3514 AM_V
=$AM_DEFAULT_VERBOSITY
3515 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3521 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3522 # Check whether --enable-maintainer-mode was given.
3523 if test "${enable_maintainer_mode+set}" = set; then :
3524 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3526 USE_MAINTAINER_MODE=no
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3530 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3531 if test $USE_MAINTAINER_MODE = yes; then
3532 MAINTAINER_MODE_TRUE=
3533 MAINTAINER_MODE_FALSE='#'
3535 MAINTAINER_MODE_TRUE
='#'
3536 MAINTAINER_MODE_FALSE
=
3539 MAINT
=$MAINTAINER_MODE_TRUE
3544 ac_cpp
='$CPP $CPPFLAGS'
3545 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3548 if test -n "$ac_tool_prefix"; then
3549 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3550 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552 $as_echo_n "checking for $ac_word... " >&6; }
3553 if ${ac_cv_prog_CC+:} false
; then :
3554 $as_echo_n "(cached) " >&6
3556 if test -n "$CC"; then
3557 ac_cv_prog_CC
="$CC" # Let the user override the test.
3559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3563 test -z "$as_dir" && as_dir
=.
3564 for ac_exec_ext
in '' $ac_executable_extensions; do
3565 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3566 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3577 if test -n "$CC"; then
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3579 $as_echo "$CC" >&6; }
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 $as_echo "no" >&6; }
3587 if test -z "$ac_cv_prog_CC"; then
3589 # Extract the first word of "gcc", so it can be a program name with args.
3590 set dummy gcc
; ac_word
=$2
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592 $as_echo_n "checking for $ac_word... " >&6; }
3593 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3594 $as_echo_n "(cached) " >&6
3596 if test -n "$ac_ct_CC"; then
3597 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3603 test -z "$as_dir" && as_dir
=.
3604 for ac_exec_ext
in '' $ac_executable_extensions; do
3605 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3606 ac_cv_prog_ac_ct_CC
="gcc"
3607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3617 if test -n "$ac_ct_CC"; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3619 $as_echo "$ac_ct_CC" >&6; }
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3625 if test "x$ac_ct_CC" = x
; then
3628 case $cross_compiling:$ac_tool_warned in
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3632 ac_tool_warned
=yes ;;
3640 if test -z "$CC"; then
3641 if test -n "$ac_tool_prefix"; then
3642 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3643 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if ${ac_cv_prog_CC+:} false
; then :
3647 $as_echo_n "(cached) " >&6
3649 if test -n "$CC"; then
3650 ac_cv_prog_CC
="$CC" # Let the user override the test.
3652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3656 test -z "$as_dir" && as_dir
=.
3657 for ac_exec_ext
in '' $ac_executable_extensions; do
3658 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3659 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 if test -n "$CC"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3672 $as_echo "$CC" >&6; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3681 if test -z "$CC"; then
3682 # Extract the first word of "cc", so it can be a program name with args.
3683 set dummy cc
; ac_word
=$2
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3685 $as_echo_n "checking for $ac_word... " >&6; }
3686 if ${ac_cv_prog_CC+:} false
; then :
3687 $as_echo_n "(cached) " >&6
3689 if test -n "$CC"; then
3690 ac_cv_prog_CC
="$CC" # Let the user override the test.
3693 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3697 test -z "$as_dir" && as_dir
=.
3698 for ac_exec_ext
in '' $ac_executable_extensions; do
3699 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3700 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3701 ac_prog_rejected
=yes
3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3712 if test $ac_prog_rejected = yes; then
3713 # We found a bogon in the path, so make sure we never use it.
3714 set dummy
$ac_cv_prog_CC
3716 if test $# != 0; then
3717 # We chose a different compiler from the bogus one.
3718 # However, it has the same basename, so the bogon will be chosen
3719 # first if we set CC to just the basename; use the full file name.
3721 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3727 if test -n "$CC"; then
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3729 $as_echo "$CC" >&6; }
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3737 if test -z "$CC"; then
3738 if test -n "$ac_tool_prefix"; then
3739 for ac_prog
in cl.exe
3741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3742 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744 $as_echo_n "checking for $ac_word... " >&6; }
3745 if ${ac_cv_prog_CC+:} false
; then :
3746 $as_echo_n "(cached) " >&6
3748 if test -n "$CC"; then
3749 ac_cv_prog_CC
="$CC" # Let the user override the test.
3751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3755 test -z "$as_dir" && as_dir
=.
3756 for ac_exec_ext
in '' $ac_executable_extensions; do
3757 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3758 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 if test -n "$CC"; then
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3771 $as_echo "$CC" >&6; }
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774 $as_echo "no" >&6; }
3778 test -n "$CC" && break
3781 if test -z "$CC"; then
3783 for ac_prog
in cl.exe
3785 # Extract the first word of "$ac_prog", so it can be a program name with args.
3786 set dummy
$ac_prog; ac_word
=$2
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788 $as_echo_n "checking for $ac_word... " >&6; }
3789 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3790 $as_echo_n "(cached) " >&6
3792 if test -n "$ac_ct_CC"; then
3793 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3799 test -z "$as_dir" && as_dir
=.
3800 for ac_exec_ext
in '' $ac_executable_extensions; do
3801 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3802 ac_cv_prog_ac_ct_CC
="$ac_prog"
3803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3813 if test -n "$ac_ct_CC"; then
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3815 $as_echo "$ac_ct_CC" >&6; }
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818 $as_echo "no" >&6; }
3822 test -n "$ac_ct_CC" && break
3825 if test "x$ac_ct_CC" = x
; then
3828 case $cross_compiling:$ac_tool_warned in
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3832 ac_tool_warned
=yes ;;
3841 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3843 as_fn_error $?
"no acceptable C compiler found in \$PATH
3844 See \`config.log' for more details" "$LINENO" 5; }
3846 # Provide some information about the compiler.
3847 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3850 for ac_option
in --version -v -V -qversion; do
3851 { { ac_try
="$ac_compiler $ac_option >&5"
3853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857 $as_echo "$ac_try_echo"; } >&5
3858 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3860 if test -s conftest.err; then
3862 ... rest of stderr output deleted ...
3863 10q' conftest.err >conftest.er1
3864 cat conftest.er1 >&5
3866 rm -f conftest.er1 conftest.err
3867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868 test $ac_status = 0; }
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3882 ac_clean_files_save=$ac_clean_files
3883 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3884 # Try to create an executable without -o first, disregard a.out.
3885 # It will help us diagnose broken compilers, and finding out an intuition
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3888 $as_echo_n "checking whether the C compiler works... " >&6; }
3889 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3891 # The possible output files:
3892 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3895 for ac_file in $ac_files
3898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3899 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3904 if { { ac_try="$ac_link_default"
3906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3907 *) ac_try_echo
=$ac_try;;
3909 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3910 $as_echo "$ac_try_echo"; } >&5
3911 (eval "$ac_link_default") 2>&5
3913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3914 test $ac_status = 0; }; then :
3915 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3916 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3917 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3918 # so that the user can short-circuit this test for compilers unknown to
3920 for ac_file
in $ac_files ''
3922 test -f "$ac_file" ||
continue
3924 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3927 # We found the default executable, but exeext='' is most
3931 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3933 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3935 # We set ac_cv_exeext here because the later test for it is not
3936 # safe: cross compilers may not add the suffix if given an `-o'
3937 # argument, so we may need to know it at that point already.
3938 # Even if this section looks crufty: it has the advantage of
3945 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3950 if test -z "$ac_file"; then :
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952 $as_echo "no" >&6; }
3953 $as_echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.
$ac_ext >&5
3956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3958 as_fn_error
77 "C compiler cannot create executables
3959 See \`config.log' for more details" "$LINENO" 5; }
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3962 $as_echo "yes" >&6; }
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3965 $as_echo_n "checking for C compiler default output file name... " >&6; }
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3967 $as_echo "$ac_file" >&6; }
3968 ac_exeext
=$ac_cv_exeext
3970 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3971 ac_clean_files
=$ac_clean_files_save
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3973 $as_echo_n "checking for suffix of executables... " >&6; }
3974 if { { ac_try
="$ac_link"
3976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3980 $as_echo "$ac_try_echo"; } >&5
3981 (eval "$ac_link") 2>&5
3983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3984 test $ac_status = 0; }; then :
3985 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3986 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3987 # work properly (i.e., refer to `conftest.exe'), while it won't with
3989 for ac_file
in conftest.exe conftest conftest.
*; do
3990 test -f "$ac_file" ||
continue
3992 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3993 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4001 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4002 See \`config.log' for more details" "$LINENO" 5; }
4004 rm -f conftest conftest
$ac_cv_exeext
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4006 $as_echo "$ac_cv_exeext" >&6; }
4008 rm -f conftest.
$ac_ext
4009 EXEEXT
=$ac_cv_exeext
4011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4017 FILE *f = fopen ("conftest.out", "w");
4018 return ferror (f) || fclose (f) != 0;
4024 ac_clean_files
="$ac_clean_files conftest.out"
4025 # Check that the compiler produces executables we can run. If not, either
4026 # the compiler is broken, or we cross compile.
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4028 $as_echo_n "checking whether we are cross compiling... " >&6; }
4029 if test "$cross_compiling" != yes; then
4030 { { ac_try
="$ac_link"
4032 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036 $as_echo "$ac_try_echo"; } >&5
4037 (eval "$ac_link") 2>&5
4039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040 test $ac_status = 0; }
4041 if { ac_try='./conftest$ac_cv_exeext'
4042 { { case "(($ac_try" in
4043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4044 *) ac_try_echo
=$ac_try;;
4046 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4047 $as_echo "$ac_try_echo"; } >&5
4048 (eval "$ac_try") 2>&5
4050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4051 test $ac_status = 0; }; }; then
4054 if test "$cross_compiling" = maybe
; then
4057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4059 as_fn_error $?
"cannot run C compiled programs.
4060 If you meant to cross compile, use \`--host'.
4061 See \`config.log' for more details" "$LINENO" 5; }
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4066 $as_echo "$cross_compiling" >&6; }
4068 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4069 ac_clean_files
=$ac_clean_files_save
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4071 $as_echo_n "checking for suffix of object files... " >&6; }
4072 if ${ac_cv_objext+:} false
; then :
4073 $as_echo_n "(cached) " >&6
4075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4086 rm -f conftest.o conftest.obj
4087 if { { ac_try
="$ac_compile"
4089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4093 $as_echo "$ac_try_echo"; } >&5
4094 (eval "$ac_compile") 2>&5
4096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4097 test $ac_status = 0; }; then :
4098 for ac_file in conftest.o conftest.obj conftest.*; do
4099 test -f "$ac_file" || continue;
4101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4102 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4107 $as_echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4112 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4113 See \
`config.log' for more details" "$LINENO" 5; }
4115 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4118 $as_echo "$ac_cv_objext" >&6; }
4119 OBJEXT=$ac_cv_objext
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4122 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4123 if ${ac_cv_c_compiler_gnu+:} false; then :
4124 $as_echo_n "(cached) " >&6
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4140 if ac_fn_c_try_compile "$LINENO"; then :
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4150 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4151 if test $ac_compiler_gnu = yes; then
4156 ac_test_CFLAGS=${CFLAGS+set}
4157 ac_save_CFLAGS=$CFLAGS
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4159 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4160 if ${ac_cv_prog_cc_g+:} false; then :
4161 $as_echo_n "(cached) " >&6
4163 ac_save_c_werror_flag=$ac_c_werror_flag
4164 ac_c_werror_flag=yes
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4178 if ac_fn_c_try_compile "$LINENO"; then :
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4193 if ac_fn_c_try_compile "$LINENO"; then :
4196 ac_c_werror_flag=$ac_save_c_werror_flag
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4209 if ac_fn_c_try_compile "$LINENO"; then :
4212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 ac_c_werror_flag=$ac_save_c_werror_flag
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4220 $as_echo "$ac_cv_prog_cc_g" >&6; }
4221 if test "$ac_test_CFLAGS" = set; then
4222 CFLAGS=$ac_save_CFLAGS
4223 elif test $ac_cv_prog_cc_g = yes; then
4224 if test "$GCC" = yes; then
4230 if test "$GCC" = yes; then
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4237 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4238 if ${ac_cv_prog_cc_c89+:} false; then :
4239 $as_echo_n "(cached) " >&6
4241 ac_cv_prog_cc_c89=no
4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4248 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4249 struct buf { int x; };
4250 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4251 static char *e (p, i)
4257 static char *f (char * (*g) (char **, int), char **p, ...)
4262 s = g (p, va_arg (v,int));
4267 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4268 function prototypes and stuff, but not '\xHH' hex character constants.
4269 These don't provoke an error unfortunately, instead are silently treated
4270 as 'x'. The following induces an error, until -std is added to get
4271 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4272 array size at least. It's necessary to write '\x00'==0 to get something
4273 that's true only with -std. */
4274 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4276 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4277 inside strings and character constants. */
4279 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4281 int test (int i, double x);
4282 struct s1 {int (*f) (int a);};
4283 struct s2 {int (*f) (double a);};
4284 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4290 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4295 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4296 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4298 CC="$ac_save_CC $ac_arg"
4299 if ac_fn_c_try_compile "$LINENO"; then :
4300 ac_cv_prog_cc_c89=$ac_arg
4302 rm -f core conftest.err conftest.$ac_objext
4303 test "x$ac_cv_prog_cc_c89" != "xno" && break
4305 rm -f conftest.$ac_ext
4310 case "x$ac_cv_prog_cc_c89" in
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4313 $as_echo "none needed" >&6; } ;;
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4316 $as_echo "unsupported" >&6; } ;;
4318 CC="$CC $ac_cv_prog_cc_c89"
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4320 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4322 if test "x$ac_cv_prog_cc_c89" != xno; then :
4327 ac_cpp='$CPP $CPPFLAGS'
4328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4338 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4339 if ${am_cv_prog_cc_c_o+:} false; then :
4340 $as_echo_n "(cached) " >&6
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4353 # Make sure it works both with $CC and with simple cc.
4354 # Following AC_PROG_CC_C_O, we do the test twice because some
4355 # compilers refuse to overwrite an existing .o file with -o,
4356 # though they will create one.
4357 am_cv_prog_cc_c_o=yes
4359 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4360 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } \
4364 && test -f conftest2.$ac_objext; then
4367 am_cv_prog_cc_c_o=no
4371 rm -f core conftest*
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4375 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4376 if test "$am_cv_prog_cc_c_o" != yes; then
4377 # Losing compiler, so override with the script.
4378 # FIXME: It is wrong to rewrite CC.
4379 # But if we don't then we get into trouble of one sort or another.
4380 # A longer-term fix would be to have automake use am__CC in this case,
4381 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4382 CC="$am_aux_dir/compile $CC"
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4390 DEPDIR="${am__leading_dot}deps"
4392 ac_config_commands="$ac_config_commands depfiles"
4395 am_make=${MAKE-make}
4396 cat > confinc << 'END'
4398 @echo this is the am__doit target
4401 # If we don't find an include directive, just comment out the code.
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4403 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4407 # First try GNU make style include.
4408 echo "include confinc" > confmf
4409 # Ignore all kinds of additional output from 'make'.
4410 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4411 *the\ am__doit\ target*)
4417 # Now try BSD make style include.
4418 if test "$am__include" = "#"; then
4419 echo '.include "confinc"' > confmf
4420 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4421 *the\ am__doit\ target*)
4422 am__include=.include
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4431 $as_echo "$_am_result" >&6; }
4432 rm -f confinc confmf
4434 # Check whether --enable-dependency-tracking was given.
4435 if test "${enable_dependency_tracking+set}" = set; then :
4436 enableval=$enable_dependency_tracking;
4439 if test "x$enable_dependency_tracking" != xno; then
4440 am_depcomp="$ac_aux_dir/depcomp"
4444 if test "x$enable_dependency_tracking" != xno; then
4454 depcc="$CC" am_compiler_list=
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4457 $as_echo_n "checking dependency style of $depcc... " >&6; }
4458 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4459 $as_echo_n "(cached) " >&6
4461 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4462 # We make a subdir and do the tests there. Otherwise we can end up
4463 # making bogus files that we don't know about and never remove. For
4464 # instance it was reported that on HP-UX the gcc test will end up
4465 # making a dummy file named 'D' -- because '-MD' means "put the output
4469 # Copy depcomp to subdir because otherwise we won't find it if we're
4470 # using a relative directory.
4471 cp "$am_depcomp" conftest.dir
4473 # We will build objects and dependencies in a subdirectory because
4474 # it helps to detect inapplicable dependency modes. For instance
4475 # both Tru64's cc and ICC support -MD to output dependencies as a
4476 # side effect of compilation, but ICC will put the dependencies in
4477 # the current directory while Tru64 will put them in the object
4481 am_cv_CC_dependencies_compiler_type=none
4482 if test "$am_compiler_list" = ""; then
4483 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4486 case " $depcc " in #(
4487 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4490 for depmode in $am_compiler_list; do
4491 # Setup a source with many dependencies, because some compilers
4492 # like to wrap large dependency lists on column 80 (with \), and
4493 # we should not choose a depcomp mode which is confused by this.
4495 # We need to recreate these files for each test, as the compiler may
4496 # overwrite some of them when testing with obscure command lines.
4497 # This happens at least with the AIX C compiler.
4499 for i in 1 2 3 4 5 6; do
4500 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4501 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4502 # Solaris 10 /bin/sh.
4503 echo '/* dummy */' > sub/conftst$i.h
4505 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4507 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4508 # mode. It turns out that the SunPro C++ compiler does not properly
4509 # handle '-M -o', and we need to detect this. Also, some Intel
4510 # versions had trouble with output in subdirs.
4511 am__obj=sub/conftest.${OBJEXT-o}
4512 am__minus_obj="-o $am__obj"
4515 # This depmode causes a compiler race in universal mode.
4516 test "$am__universal" = false || continue
4519 # After this tag, mechanisms are not by side-effect, so they'll
4520 # only be used when explicitly requested.
4521 if test "x$enable_dependency_tracking" = xyes; then
4527 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4528 # This compiler won't grok '-c -o', but also, the minuso test has
4529 # not run yet. These depmodes are late enough in the game, and
4530 # so weak that their functioning should not be impacted.
4531 am__obj=conftest.${OBJEXT-o}
4536 if depmode=$depmode \
4537 source=sub/conftest.c object=$am__obj \
4538 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4539 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4540 >/dev/null 2>conftest.err &&
4541 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4542 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4543 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4544 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4545 # icc doesn't choke on unknown options, it will just issue warnings
4546 # or remarks (even with -Werror). So we grep stderr for any message
4547 # that says an option was ignored or not supported.
4548 # When given -MP, icc 7.0 and 7.1 complain thusly:
4549 # icc: Command line warning: ignoring option '-M'; no argument required
4550 # The diagnosis changed in icc 8.0:
4551 # icc: Command line remark: option '-MP' not supported
4552 if (grep 'ignoring option' conftest.err ||
4553 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4554 am_cv_CC_dependencies_compiler_type=$depmode
4563 am_cv_CC_dependencies_compiler_type=none
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4568 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4569 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4572 test "x$enable_dependency_tracking" != xno \
4573 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4575 am__fastdepCC_FALSE='#'
4577 am__fastdepCC_TRUE='#'
4578 am__fastdepCC_FALSE=
4583 ac_cpp='$CXXCPP $CPPFLAGS'
4584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4587 if test -z "$CXX"; then
4588 if test -n "$CCC"; then
4591 if test -n "$ac_tool_prefix"; then
4592 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 $as_echo_n "checking for $ac_word... " >&6; }
4598 if ${ac_cv_prog_CXX+:} false; then :
4599 $as_echo_n "(cached) " >&6
4601 if test -n "$CXX"; then
4602 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 if test -n "$CXX"; then
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4624 $as_echo "$CXX" >&6; }
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 $as_echo "no" >&6; }
4631 test -n "$CXX" && break
4634 if test -z "$CXX"; then
4636 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4638 # Extract the first word of "$ac_prog", so it can be a program name with args.
4639 set dummy $ac_prog; ac_word=$2
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 $as_echo_n "checking for $ac_word... " >&6; }
4642 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4643 $as_echo_n "(cached) " >&6
4645 if test -n "$ac_ct_CXX"; then
4646 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4655 ac_cv_prog_ac_ct_CXX="$ac_prog"
4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4666 if test -n "$ac_ct_CXX"; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4668 $as_echo "$ac_ct_CXX" >&6; }
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671 $as_echo "no" >&6; }
4675 test -n "$ac_ct_CXX" && break
4678 if test "x$ac_ct_CXX" = x; then
4681 case $cross_compiling:$ac_tool_warned in
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4685 ac_tool_warned=yes ;;
4693 # Provide some information about the compiler.
4694 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4697 for ac_option in --version -v -V -qversion; do
4698 { { ac_try="$ac_compiler $ac_option >&5"
4700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4701 *) ac_try_echo
=$ac_try;;
4703 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4704 $as_echo "$ac_try_echo"; } >&5
4705 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4707 if test -s conftest.err
; then
4709 ... rest of stderr output deleted ...
4710 10q' conftest.err
>conftest.er1
4711 cat conftest.er1
>&5
4713 rm -f conftest.er1 conftest.err
4714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4715 test $ac_status = 0; }
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4719 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4720 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4721 $as_echo_n "(cached) " >&6
4723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4737 if ac_fn_cxx_try_compile
"$LINENO"; then :
4742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4743 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4747 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4748 if test $ac_compiler_gnu = yes; then
4753 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4754 ac_save_CXXFLAGS
=$CXXFLAGS
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4756 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4757 if ${ac_cv_prog_cxx_g+:} false
; then :
4758 $as_echo_n "(cached) " >&6
4760 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4761 ac_cxx_werror_flag
=yes
4764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4775 if ac_fn_cxx_try_compile
"$LINENO"; then :
4776 ac_cv_prog_cxx_g
=yes
4779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4790 if ac_fn_cxx_try_compile
"$LINENO"; then :
4793 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4806 if ac_fn_cxx_try_compile
"$LINENO"; then :
4807 ac_cv_prog_cxx_g
=yes
4809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4814 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4817 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4818 if test "$ac_test_CXXFLAGS" = set; then
4819 CXXFLAGS
=$ac_save_CXXFLAGS
4820 elif test $ac_cv_prog_cxx_g = yes; then
4821 if test "$GXX" = yes; then
4827 if test "$GXX" = yes; then
4834 ac_cpp
='$CPP $CPPFLAGS'
4835 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4839 depcc
="$CXX" am_compiler_list
=
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4842 $as_echo_n "checking dependency style of $depcc... " >&6; }
4843 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
4844 $as_echo_n "(cached) " >&6
4846 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4847 # We make a subdir and do the tests there. Otherwise we can end up
4848 # making bogus files that we don't know about and never remove. For
4849 # instance it was reported that on HP-UX the gcc test will end up
4850 # making a dummy file named 'D' -- because '-MD' means "put the output
4854 # Copy depcomp to subdir because otherwise we won't find it if we're
4855 # using a relative directory.
4856 cp "$am_depcomp" conftest.dir
4858 # We will build objects and dependencies in a subdirectory because
4859 # it helps to detect inapplicable dependency modes. For instance
4860 # both Tru64's cc and ICC support -MD to output dependencies as a
4861 # side effect of compilation, but ICC will put the dependencies in
4862 # the current directory while Tru64 will put them in the object
4866 am_cv_CXX_dependencies_compiler_type
=none
4867 if test "$am_compiler_list" = ""; then
4868 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4871 case " $depcc " in #(
4872 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4875 for depmode
in $am_compiler_list; do
4876 # Setup a source with many dependencies, because some compilers
4877 # like to wrap large dependency lists on column 80 (with \), and
4878 # we should not choose a depcomp mode which is confused by this.
4880 # We need to recreate these files for each test, as the compiler may
4881 # overwrite some of them when testing with obscure command lines.
4882 # This happens at least with the AIX C compiler.
4884 for i
in 1 2 3 4 5 6; do
4885 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4886 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4887 # Solaris 10 /bin/sh.
4888 echo '/* dummy */' > sub
/conftst
$i.h
4890 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4892 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4893 # mode. It turns out that the SunPro C++ compiler does not properly
4894 # handle '-M -o', and we need to detect this. Also, some Intel
4895 # versions had trouble with output in subdirs.
4896 am__obj
=sub
/conftest.
${OBJEXT-o}
4897 am__minus_obj
="-o $am__obj"
4900 # This depmode causes a compiler race in universal mode.
4901 test "$am__universal" = false ||
continue
4904 # After this tag, mechanisms are not by side-effect, so they'll
4905 # only be used when explicitly requested.
4906 if test "x$enable_dependency_tracking" = xyes
; then
4912 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4913 # This compiler won't grok '-c -o', but also, the minuso test has
4914 # not run yet. These depmodes are late enough in the game, and
4915 # so weak that their functioning should not be impacted.
4916 am__obj
=conftest.
${OBJEXT-o}
4921 if depmode
=$depmode \
4922 source=sub
/conftest.c object
=$am__obj \
4923 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4924 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4925 >/dev
/null
2>conftest.err
&&
4926 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4927 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4928 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4929 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4930 # icc doesn't choke on unknown options, it will just issue warnings
4931 # or remarks (even with -Werror). So we grep stderr for any message
4932 # that says an option was ignored or not supported.
4933 # When given -MP, icc 7.0 and 7.1 complain thusly:
4934 # icc: Command line warning: ignoring option '-M'; no argument required
4935 # The diagnosis changed in icc 8.0:
4936 # icc: Command line remark: option '-MP' not supported
4937 if (grep 'ignoring option' conftest.err ||
4938 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4939 am_cv_CXX_dependencies_compiler_type
=$depmode
4948 am_cv_CXX_dependencies_compiler_type
=none
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4953 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4954 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
4957 test "x$enable_dependency_tracking" != xno \
4958 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
4959 am__fastdepCXX_TRUE
=
4960 am__fastdepCXX_FALSE
='#'
4962 am__fastdepCXX_TRUE
='#'
4963 am__fastdepCXX_FALSE
=
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4968 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4969 if ${ac_cv_path_GREP+:} false
; then :
4970 $as_echo_n "(cached) " >&6
4972 if test -z "$GREP"; then
4973 ac_path_GREP_found
=false
4974 # Loop through the user's path and test for each of PROGNAME-LIST
4975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4976 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4979 test -z "$as_dir" && as_dir
=.
4980 for ac_prog
in grep ggrep
; do
4981 for ac_exec_ext
in '' $ac_executable_extensions; do
4982 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4983 as_fn_executable_p
"$ac_path_GREP" ||
continue
4984 # Check for GNU ac_path_GREP and select it if it is found.
4985 # Check for GNU $ac_path_GREP
4986 case `"$ac_path_GREP" --version 2>&1` in
4988 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4991 $as_echo_n 0123456789 >"conftest.in"
4994 cat "conftest.in" "conftest.in" >"conftest.tmp"
4995 mv "conftest.tmp" "conftest.in"
4996 cp "conftest.in" "conftest.nl"
4997 $as_echo 'GREP' >> "conftest.nl"
4998 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4999 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5000 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5001 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5002 # Best one so far, save it but keep looking for a better one
5003 ac_cv_path_GREP
="$ac_path_GREP"
5004 ac_path_GREP_max
=$ac_count
5006 # 10*(2^10) chars as input seems more than enough
5007 test $ac_count -gt 10 && break
5009 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5012 $ac_path_GREP_found && break 3
5017 if test -z "$ac_cv_path_GREP"; then
5018 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5021 ac_cv_path_GREP
=$GREP
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5026 $as_echo "$ac_cv_path_GREP" >&6; }
5027 GREP
="$ac_cv_path_GREP"
5032 ac_cpp
='$CPP $CPPFLAGS'
5033 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5034 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5035 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5037 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5038 # On Suns, sometimes $CPP names a directory.
5039 if test -n "$CPP" && test -d "$CPP"; then
5042 if test -z "$CPP"; then
5043 if ${ac_cv_prog_CPP+:} false
; then :
5044 $as_echo_n "(cached) " >&6
5046 # Double quotes because CPP needs to be expanded
5047 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5050 for ac_c_preproc_warn_flag
in '' yes
5052 # Use a header file that comes with gcc, so configuring glibc
5053 # with a fresh cross-compiler works.
5054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5055 # <limits.h> exists even on freestanding compilers.
5056 # On the NeXT, cc -E runs the code through the compiler's parser,
5057 # not just through cpp. "Syntax error" is here to catch this case.
5058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5061 # include <limits.h>
5063 # include <assert.h>
5067 if ac_fn_c_try_cpp
"$LINENO"; then :
5070 # Broken: fails on valid input.
5073 rm -f conftest.err conftest.i conftest.
$ac_ext
5075 # OK, works on sane cases. Now check whether nonexistent headers
5076 # can be detected and how.
5077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5079 #include <ac_nonexistent.h>
5081 if ac_fn_c_try_cpp
"$LINENO"; then :
5082 # Broken: success on invalid input.
5085 # Passes both tests.
5089 rm -f conftest.err conftest.i conftest.
$ac_ext
5092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5093 rm -f conftest.i conftest.err conftest.
$ac_ext
5094 if $ac_preproc_ok; then :
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5107 $as_echo "$CPP" >&6; }
5109 for ac_c_preproc_warn_flag
in '' yes
5111 # Use a header file that comes with gcc, so configuring glibc
5112 # with a fresh cross-compiler works.
5113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5114 # <limits.h> exists even on freestanding compilers.
5115 # On the NeXT, cc -E runs the code through the compiler's parser,
5116 # not just through cpp. "Syntax error" is here to catch this case.
5117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5120 # include <limits.h>
5122 # include <assert.h>
5126 if ac_fn_c_try_cpp
"$LINENO"; then :
5129 # Broken: fails on valid input.
5132 rm -f conftest.err conftest.i conftest.
$ac_ext
5134 # OK, works on sane cases. Now check whether nonexistent headers
5135 # can be detected and how.
5136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5138 #include <ac_nonexistent.h>
5140 if ac_fn_c_try_cpp
"$LINENO"; then :
5141 # Broken: success on invalid input.
5144 # Passes both tests.
5148 rm -f conftest.err conftest.i conftest.
$ac_ext
5151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5152 rm -f conftest.i conftest.err conftest.
$ac_ext
5153 if $ac_preproc_ok; then :
5156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5158 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5159 See \`config.log' for more details" "$LINENO" 5; }
5163 ac_cpp
='$CPP $CPPFLAGS'
5164 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5165 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5166 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5170 $as_echo_n "checking for egrep... " >&6; }
5171 if ${ac_cv_path_EGREP+:} false
; then :
5172 $as_echo_n "(cached) " >&6
5174 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5175 then ac_cv_path_EGREP
="$GREP -E"
5177 if test -z "$EGREP"; then
5178 ac_path_EGREP_found
=false
5179 # Loop through the user's path and test for each of PROGNAME-LIST
5180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5181 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5184 test -z "$as_dir" && as_dir
=.
5185 for ac_prog
in egrep; do
5186 for ac_exec_ext
in '' $ac_executable_extensions; do
5187 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5188 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5189 # Check for GNU ac_path_EGREP and select it if it is found.
5190 # Check for GNU $ac_path_EGREP
5191 case `"$ac_path_EGREP" --version 2>&1` in
5193 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5196 $as_echo_n 0123456789 >"conftest.in"
5199 cat "conftest.in" "conftest.in" >"conftest.tmp"
5200 mv "conftest.tmp" "conftest.in"
5201 cp "conftest.in" "conftest.nl"
5202 $as_echo 'EGREP' >> "conftest.nl"
5203 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5204 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5205 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5206 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5207 # Best one so far, save it but keep looking for a better one
5208 ac_cv_path_EGREP
="$ac_path_EGREP"
5209 ac_path_EGREP_max
=$ac_count
5211 # 10*(2^10) chars as input seems more than enough
5212 test $ac_count -gt 10 && break
5214 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5217 $ac_path_EGREP_found && break 3
5222 if test -z "$ac_cv_path_EGREP"; then
5223 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5226 ac_cv_path_EGREP
=$EGREP
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5232 $as_echo "$ac_cv_path_EGREP" >&6; }
5233 EGREP
="$ac_cv_path_EGREP"
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5237 $as_echo_n "checking for ANSI C header files... " >&6; }
5238 if ${ac_cv_header_stdc+:} false
; then :
5239 $as_echo_n "(cached) " >&6
5241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5256 if ac_fn_c_try_compile
"$LINENO"; then :
5257 ac_cv_header_stdc
=yes
5259 ac_cv_header_stdc
=no
5261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5263 if test $ac_cv_header_stdc = yes; then
5264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h. */
5270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5271 $EGREP "memchr" >/dev
/null
2>&1; then :
5274 ac_cv_header_stdc
=no
5280 if test $ac_cv_header_stdc = yes; then
5281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5288 $EGREP "free" >/dev
/null
2>&1; then :
5291 ac_cv_header_stdc
=no
5297 if test $ac_cv_header_stdc = yes; then
5298 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5299 if test "$cross_compiling" = yes; then :
5302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5306 #if ((' ' & 0x0FF) == 0x020)
5307 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5308 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5310 # define ISLOWER(c) \
5311 (('a' <= (c) && (c) <= 'i') \
5312 || ('j' <= (c) && (c) <= 'r') \
5313 || ('s' <= (c) && (c) <= 'z'))
5314 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5317 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5322 for (i = 0; i < 256; i++)
5323 if (XOR (islower (i), ISLOWER (i))
5324 || toupper (i) != TOUPPER (i))
5329 if ac_fn_c_try_run
"$LINENO"; then :
5332 ac_cv_header_stdc
=no
5334 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5335 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5341 $as_echo "$ac_cv_header_stdc" >&6; }
5342 if test $ac_cv_header_stdc = yes; then
5344 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5348 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5349 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5350 inttypes.h stdint.h unistd.h
5352 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5353 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5355 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5356 cat >>confdefs.h
<<_ACEOF
5357 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5366 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5367 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5374 if test "$MINIX" = yes; then
5376 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5379 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5382 $as_echo "#define _MINIX 1" >>confdefs.h
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5388 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5389 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5390 $as_echo_n "(cached) " >&6
5392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5395 # define __EXTENSIONS__ 1
5396 $ac_includes_default
5405 if ac_fn_c_try_compile
"$LINENO"; then :
5406 ac_cv_safe_to_define___extensions__
=yes
5408 ac_cv_safe_to_define___extensions__
=no
5410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5413 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5414 test $ac_cv_safe_to_define___extensions__ = yes &&
5415 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5417 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5419 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5421 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5423 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5436 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5437 if test -n "$ac_tool_prefix"; then
5438 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5439 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
5443 $as_echo_n "(cached) " >&6
5447 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5450 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5454 test -z "$as_dir" && as_dir
=.
5455 for ac_exec_ext
in '' $ac_executable_extensions; do
5456 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5457 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5469 if test -n "$PKG_CONFIG"; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5471 $as_echo "$PKG_CONFIG" >&6; }
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5479 if test -z "$ac_cv_path_PKG_CONFIG"; then
5480 ac_pt_PKG_CONFIG
=$PKG_CONFIG
5481 # Extract the first word of "pkg-config", so it can be a program name with args.
5482 set dummy pkg-config
; ac_word
=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
5486 $as_echo_n "(cached) " >&6
5488 case $ac_pt_PKG_CONFIG in
5490 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5493 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5497 test -z "$as_dir" && as_dir
=.
5498 for ac_exec_ext
in '' $ac_executable_extensions; do
5499 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5500 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
5512 if test -n "$ac_pt_PKG_CONFIG"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5514 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5520 if test "x$ac_pt_PKG_CONFIG" = x
; then
5523 case $cross_compiling:$ac_tool_warned in
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5527 ac_tool_warned
=yes ;;
5529 PKG_CONFIG
=$ac_pt_PKG_CONFIG
5532 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
5536 if test -n "$PKG_CONFIG"; then
5537 _pkg_min_version
=0.9.0
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5539 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5540 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5542 $as_echo "yes" >&6; }
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5553 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5558 macro_version
='2.2.7a'
5559 macro_revision
='1.3134'
5573 ltmain
="$ac_aux_dir/ltmain.sh"
5575 # Backslashify metacharacters that are still active within
5576 # double-quoted strings.
5577 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5579 # Same as above, but do not quote variable references.
5580 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5582 # Sed substitution to delay expansion of an escaped shell variable in a
5583 # double_quote_subst'ed string.
5584 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5586 # Sed substitution to delay expansion of an escaped single quote.
5587 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5589 # Sed substitution to avoid accidental globbing in evaled expressions
5590 no_glob_subst
='s/\*/\\\*/g'
5592 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5593 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5594 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5597 $as_echo_n "checking how to print strings... " >&6; }
5598 # Test print first, because it will be a builtin if present.
5599 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5600 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5602 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5605 # Use this function as a fallback that always works.
5606 func_fallback_echo ()
5608 eval 'cat <<_LTECHO_EOF
5612 ECHO='func_fallback_echo
'
5615 # func_echo_all arg...
5616 # Invoke $ECHO with all args, space-separated.
5623 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5624 $as_echo "printf" >&6; } ;;
5625 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5626 $as_echo "print -r" >&6; } ;;
5627 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5628 $as_echo "cat" >&6; } ;;
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5645 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5646 if ${ac_cv_path_SED+:} false; then :
5647 $as_echo_n "(cached) " >&6
5649 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5650 for ac_i in 1 2 3 4 5 6 7; do
5651 ac_script="$ac_script$as_nl$ac_script"
5653 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5654 { ac_script=; unset ac_script;}
5655 if test -z "$SED"; then
5656 ac_path_SED_found=false
5657 # Loop through the user's path and
test for each of PROGNAME-LIST
5658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5662 test -z "$as_dir" && as_dir
=.
5663 for ac_prog
in sed gsed
; do
5664 for ac_exec_ext
in '' $ac_executable_extensions; do
5665 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5666 as_fn_executable_p
"$ac_path_SED" ||
continue
5667 # Check for GNU ac_path_SED and select it if it is found.
5668 # Check for GNU $ac_path_SED
5669 case `"$ac_path_SED" --version 2>&1` in
5671 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5674 $as_echo_n 0123456789 >"conftest.in"
5677 cat "conftest.in" "conftest.in" >"conftest.tmp"
5678 mv "conftest.tmp" "conftest.in"
5679 cp "conftest.in" "conftest.nl"
5680 $as_echo '' >> "conftest.nl"
5681 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5682 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5683 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5684 if test $ac_count -gt ${ac_path_SED_max-0}; then
5685 # Best one so far, save it but keep looking for a better one
5686 ac_cv_path_SED
="$ac_path_SED"
5687 ac_path_SED_max
=$ac_count
5689 # 10*(2^10) chars as input seems more than enough
5690 test $ac_count -gt 10 && break
5692 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5695 $ac_path_SED_found && break 3
5700 if test -z "$ac_cv_path_SED"; then
5701 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5709 $as_echo "$ac_cv_path_SED" >&6; }
5710 SED
="$ac_cv_path_SED"
5713 test -z "$SED" && SED
=sed
5714 Xsed
="$SED -e 1s/^X//"
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5727 $as_echo_n "checking for fgrep... " >&6; }
5728 if ${ac_cv_path_FGREP+:} false
; then :
5729 $as_echo_n "(cached) " >&6
5731 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5732 then ac_cv_path_FGREP
="$GREP -F"
5734 if test -z "$FGREP"; then
5735 ac_path_FGREP_found
=false
5736 # Loop through the user's path and test for each of PROGNAME-LIST
5737 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5738 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5741 test -z "$as_dir" && as_dir
=.
5742 for ac_prog
in fgrep
; do
5743 for ac_exec_ext
in '' $ac_executable_extensions; do
5744 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5745 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5746 # Check for GNU ac_path_FGREP and select it if it is found.
5747 # Check for GNU $ac_path_FGREP
5748 case `"$ac_path_FGREP" --version 2>&1` in
5750 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5753 $as_echo_n 0123456789 >"conftest.in"
5756 cat "conftest.in" "conftest.in" >"conftest.tmp"
5757 mv "conftest.tmp" "conftest.in"
5758 cp "conftest.in" "conftest.nl"
5759 $as_echo 'FGREP' >> "conftest.nl"
5760 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5761 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5762 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5763 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5764 # Best one so far, save it but keep looking for a better one
5765 ac_cv_path_FGREP
="$ac_path_FGREP"
5766 ac_path_FGREP_max
=$ac_count
5768 # 10*(2^10) chars as input seems more than enough
5769 test $ac_count -gt 10 && break
5771 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5774 $ac_path_FGREP_found && break 3
5779 if test -z "$ac_cv_path_FGREP"; then
5780 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5783 ac_cv_path_FGREP
=$FGREP
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5789 $as_echo "$ac_cv_path_FGREP" >&6; }
5790 FGREP
="$ac_cv_path_FGREP"
5793 test -z "$GREP" && GREP
=grep
5813 # Check whether --with-gnu-ld was given.
5814 if test "${with_gnu_ld+set}" = set; then :
5815 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5821 if test "$GCC" = yes; then
5822 # Check if gcc -print-prog-name=ld gives a path.
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5824 $as_echo_n "checking for ld used by $CC... " >&6; }
5827 # gcc leaves a trailing carriage return which upsets mingw
5828 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5830 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5833 # Accept absolute paths.
5835 re_direlt
='/[^/][^/]*/\.\./'
5836 # Canonicalize the pathname of ld
5837 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5838 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5839 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5841 test -z "$LD" && LD
="$ac_prog"
5844 # If it fails, then pretend we aren't using GCC.
5848 # If it is relative, then search for the first ld in PATH.
5852 elif test "$with_gnu_ld" = yes; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5854 $as_echo_n "checking for GNU ld... " >&6; }
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5857 $as_echo_n "checking for non-GNU ld... " >&6; }
5859 if ${lt_cv_path_LD+:} false
; then :
5860 $as_echo_n "(cached) " >&6
5862 if test -z "$LD"; then
5863 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5864 for ac_dir
in $PATH; do
5866 test -z "$ac_dir" && ac_dir
=.
5867 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5868 lt_cv_path_LD
="$ac_dir/$ac_prog"
5869 # Check to see if the program is GNU ld. I'd rather use --version,
5870 # but apparently some variants of GNU ld only accept -v.
5871 # Break only if it was the GNU/non-GNU ld that we prefer.
5872 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5873 *GNU
* |
*'with BFD'*)
5874 test "$with_gnu_ld" != no
&& break
5877 test "$with_gnu_ld" != yes && break
5884 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5889 if test -n "$LD"; then
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5891 $as_echo "$LD" >&6; }
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894 $as_echo "no" >&6; }
5896 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5898 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5899 if ${lt_cv_prog_gnu_ld+:} false
; then :
5900 $as_echo_n "(cached) " >&6
5902 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5903 case `$LD -v 2>&1 </dev/null` in
5904 *GNU
* |
*'with BFD'*)
5905 lt_cv_prog_gnu_ld
=yes
5908 lt_cv_prog_gnu_ld
=no
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5913 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5914 with_gnu_ld
=$lt_cv_prog_gnu_ld
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5925 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5926 if ${lt_cv_path_NM+:} false
; then :
5927 $as_echo_n "(cached) " >&6
5929 if test -n "$NM"; then
5930 # Let the user override the nm to test.
5931 lt_nm_to_check
="$NM"
5933 lt_nm_to_check
="${ac_tool_prefix}nm"
5934 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5935 lt_nm_to_check
="$lt_nm_to_check nm"
5938 for lt_tmp_nm
in "$lt_nm_to_check"; do
5939 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5940 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5942 test -z "$ac_dir" && ac_dir
=.
5943 # Strip out any user-provided options from the nm to test twice,
5944 # the first time to test to see if nm (rather than its options) has
5945 # an explicit path, the second time to yield a file which can be
5947 tmp_nm_path
="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5948 case "$tmp_nm_path" in
5949 */*|
*\\*) tmp_nm
="$lt_tmp_nm";;
5950 *) tmp_nm
="$ac_dir/$lt_tmp_nm";;
5952 tmp_nm_to_nm
="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5953 if test -f "$tmp_nm_to_nm" ||
test -f "$tmp_nm_to_nm$ac_exeext" ; then
5954 # Check to see if the nm accepts a BSD-compat flag.
5955 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5956 # nm: unknown option "B" ignored
5957 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5958 *$tmp_nm*) lt_cv_path_NM
="$tmp_nm -B"
5962 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5964 lt_cv_path_NM
="$tmp_nm -p"
5968 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5969 continue # so that we can try to find one that supports BSD flags
5978 : ${lt_cv_path_NM=no}
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5981 $as_echo "$lt_cv_path_NM" >&6; }
5982 if test "$lt_cv_path_NM" != "no"; then
5985 # Didn't find any BSD compatible name lister, look for dumpbin.
5986 if test -n "$DUMPBIN"; then :
5987 # Let the user override the test.
5989 if test -n "$ac_tool_prefix"; then
5990 for ac_prog
in dumpbin
"link -dump"
5992 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5993 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5995 $as_echo_n "checking for $ac_word... " >&6; }
5996 if ${ac_cv_prog_DUMPBIN+:} false
; then :
5997 $as_echo_n "(cached) " >&6
5999 if test -n "$DUMPBIN"; then
6000 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6006 test -z "$as_dir" && as_dir
=.
6007 for ac_exec_ext
in '' $ac_executable_extensions; do
6008 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6009 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 DUMPBIN
=$ac_cv_prog_DUMPBIN
6020 if test -n "$DUMPBIN"; then
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6022 $as_echo "$DUMPBIN" >&6; }
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025 $as_echo "no" >&6; }
6029 test -n "$DUMPBIN" && break
6032 if test -z "$DUMPBIN"; then
6033 ac_ct_DUMPBIN
=$DUMPBIN
6034 for ac_prog
in dumpbin
"link -dump"
6036 # Extract the first word of "$ac_prog", so it can be a program name with args.
6037 set dummy
$ac_prog; ac_word
=$2
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6039 $as_echo_n "checking for $ac_word... " >&6; }
6040 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
6041 $as_echo_n "(cached) " >&6
6043 if test -n "$ac_ct_DUMPBIN"; then
6044 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6050 test -z "$as_dir" && as_dir
=.
6051 for ac_exec_ext
in '' $ac_executable_extensions; do
6052 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6053 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6063 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6064 if test -n "$ac_ct_DUMPBIN"; then
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6066 $as_echo "$ac_ct_DUMPBIN" >&6; }
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6069 $as_echo "no" >&6; }
6073 test -n "$ac_ct_DUMPBIN" && break
6076 if test "x$ac_ct_DUMPBIN" = x
; then
6079 case $cross_compiling:$ac_tool_warned in
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6083 ac_tool_warned
=yes ;;
6085 DUMPBIN
=$ac_ct_DUMPBIN
6089 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6091 DUMPBIN
="$DUMPBIN -symbols"
6099 if test "$DUMPBIN" != ":"; then
6103 test -z "$NM" && NM
=nm
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6111 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6112 if ${lt_cv_nm_interface+:} false
; then :
6113 $as_echo_n "(cached) " >&6
6115 lt_cv_nm_interface
="BSD nm"
6116 echo "int some_variable = 0;" > conftest.
$ac_ext
6117 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6118 (eval "$ac_compile" 2>conftest.err
)
6119 cat conftest.err
>&5
6120 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6121 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6122 cat conftest.err
>&5
6123 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6124 cat conftest.out
>&5
6125 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6126 lt_cv_nm_interface
="MS dumpbin"
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6131 $as_echo "$lt_cv_nm_interface" >&6; }
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6134 $as_echo_n "checking whether ln -s works... " >&6; }
6136 if test "$LN_S" = "ln -s"; then
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6138 $as_echo "yes" >&6; }
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6141 $as_echo "no, using $LN_S" >&6; }
6144 # find the maximum length of command line arguments
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6146 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6147 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6148 $as_echo_n "(cached) " >&6
6155 # On DJGPP, this test can blow up pretty badly due to problems in libc
6156 # (any single argument exceeding 2000 bytes causes a buffer overrun
6157 # during glob expansion). Even if it were fixed, the result of this
6158 # check would be larger than it should be.
6159 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6163 # Under GNU Hurd, this test is not required because there is
6164 # no limit to the length of command line arguments.
6165 # Libtool will interpret -1 as no limit whatsoever
6166 lt_cv_sys_max_cmd_len
=-1;
6169 cygwin
* | mingw
* | cegcc
*)
6170 # On Win9x/ME, this test blows up -- it succeeds, but takes
6171 # about 5 minutes as the teststring grows exponentially.
6172 # Worse, since 9x/ME are not pre-emptively multitasking,
6173 # you end up with a "frozen" computer, even though with patience
6174 # the test eventually succeeds (with a max line length of 256k).
6175 # Instead, let's just punt: use the minimum linelength reported by
6176 # all of the supported platforms: 8192 (on NT/2K/XP).
6177 lt_cv_sys_max_cmd_len
=8192;
6181 # On MiNT this can take a long time and run out of memory.
6182 lt_cv_sys_max_cmd_len
=8192;
6186 # On AmigaOS with pdksh, this test takes hours, literally.
6187 # So we just punt and use a minimum line length of 8192.
6188 lt_cv_sys_max_cmd_len
=8192;
6191 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6192 # This has been around since 386BSD, at least. Likely further.
6193 if test -x /sbin
/sysctl
; then
6194 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6195 elif test -x /usr
/sbin
/sysctl
; then
6196 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6198 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6200 # And add a safety zone
6201 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6202 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6206 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6207 lt_cv_sys_max_cmd_len
=196608
6211 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6212 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6213 # nice to cause kernel panics so lets avoid the loop below.
6214 # First set a reasonable default.
6215 lt_cv_sys_max_cmd_len
=16384
6217 if test -x /sbin
/sysconfig
; then
6218 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6219 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6224 lt_cv_sys_max_cmd_len
=102400
6226 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6227 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6228 if test -n "$kargmax"; then
6229 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6231 lt_cv_sys_max_cmd_len
=32768
6235 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6236 if test -n "$lt_cv_sys_max_cmd_len"; then
6237 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6238 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6240 # Make teststring a little bigger before we do anything with it.
6241 # a 1K string should be a reasonable start.
6242 for i
in 1 2 3 4 5 6 7 8 ; do
6243 teststring
=$teststring$teststring
6245 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6246 # If test is not a shell built-in, we'll probably end up computing a
6247 # maximum length that is only half of the actual maximum length, but
6249 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6250 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6251 test $i != 17 # 1/2 MB should be enough
6254 teststring
=$teststring$teststring
6256 # Only check the string length outside the loop.
6257 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6259 # Add a significant safety factor because C++ compilers can tack on
6260 # massive amounts of additional arguments before passing them to the
6261 # linker. It appears as though 1/2 is a usable value.
6262 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6269 if test -n $lt_cv_sys_max_cmd_len ; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6271 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6274 $as_echo "none" >&6; }
6276 max_cmd_len
=$lt_cv_sys_max_cmd_len
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6288 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6289 # Try some XSI features
6292 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6294 && eval 'test $(( 1 + 1 )) -eq 2 \
6295 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6298 $as_echo "$xsi_shell" >&6; }
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6302 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6304 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6306 && lt_shell_append=yes
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6308 $as_echo "$lt_shell_append" >&6; }
6311 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6321 # test EBCDIC or ASCII
6322 case `echo X|tr X '\101'` in
6323 A) # ASCII based system
6324 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6325 lt_SP2NL='tr \040 \012'
6326 lt_NL2SP='tr \015\012 \040\040'
6328 *) # EBCDIC based system
6329 lt_SP2NL='tr \100 \n'
6330 lt_NL2SP='tr \r\n \100\100'
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6343 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6344 if ${lt_cv_ld_reload_flag+:} false; then :
6345 $as_echo_n "(cached
) " >&6
6347 lt_cv_ld_reload_flag='-r'
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6350 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6351 reload_flag=$lt_cv_ld_reload_flag
6352 case $reload_flag in
6354 *) reload_flag=" $reload_flag" ;;
6356 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6359 if test "$GCC" = yes; then
6360 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6362 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6375 if test -n "$ac_tool_prefix"; then
6376 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6377 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6379 $as_echo_n "checking
for $ac_word...
" >&6; }
6380 if ${ac_cv_prog_OBJDUMP+:} false; then :
6381 $as_echo_n "(cached
) " >&6
6383 if test -n "$OBJDUMP"; then
6384 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6403 OBJDUMP=$ac_cv_prog_OBJDUMP
6404 if test -n "$OBJDUMP"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6406 $as_echo "$OBJDUMP" >&6; }
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6409 $as_echo "no
" >&6; }
6414 if test -z "$ac_cv_prog_OBJDUMP"; then
6415 ac_ct_OBJDUMP=$OBJDUMP
6416 # Extract the first word of "objdump
", so it can be a program name with args.
6417 set dummy objdump; ac_word=$2
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6419 $as_echo_n "checking
for $ac_word...
" >&6; }
6420 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6421 $as_echo_n "(cached
) " >&6
6423 if test -n "$ac_ct_OBJDUMP"; then
6424 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6433 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6434 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6443 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6444 if test -n "$ac_ct_OBJDUMP"; then
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6446 $as_echo "$ac_ct_OBJDUMP" >&6; }
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6449 $as_echo "no
" >&6; }
6452 if test "x
$ac_ct_OBJDUMP" = x; then
6455 case $cross_compiling:$ac_tool_warned in
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6458 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6459 ac_tool_warned=yes ;;
6461 OBJDUMP=$ac_ct_OBJDUMP
6464 OBJDUMP="$ac_cv_prog_OBJDUMP"
6467 test -z "$OBJDUMP" && OBJDUMP=objdump
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6478 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6479 if ${lt_cv_deplibs_check_method+:} false; then :
6480 $as_echo_n "(cached
) " >&6
6482 lt_cv_file_magic_cmd='$MAGIC_CMD'
6483 lt_cv_file_magic_test_file=
6484 lt_cv_deplibs_check_method='unknown'
6485 # Need to set the preceding variable on all platforms that support
6486 # interlibrary dependencies.
6487 # 'none' -- dependencies not supported.
6488 # `unknown' -- same as none, but documents that we really don't know.
6489 # 'pass_all' -- all dependencies passed with no checks.
6490 # 'test_compile' -- check by making test program.
6491 # 'file_magic [[regex]]' -- check by looking for files in library path
6492 # which responds to the $file_magic_cmd with a given extended regex.
6493 # If you have `file' or equivalent on your system and you're not sure
6494 # whether `pass_all' will *always* work, you probably want this one.
6498 lt_cv_deplibs_check_method=pass_all
6502 lt_cv_deplibs_check_method=pass_all
6506 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6507 lt_cv_file_magic_cmd='/usr/bin/file -L'
6508 lt_cv_file_magic_test_file=/shlib/libc.so
6512 # func_win32_libid is a shell function defined in ltmain.sh
6513 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6514 lt_cv_file_magic_cmd='func_win32_libid'
6518 # Base MSYS/MinGW do not provide the 'file' command needed by
6519 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6520 # unless we find 'file', for example because we are cross-compiling.
6521 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6522 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6523 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6524 lt_cv_file_magic_cmd='func_win32_libid'
6526 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6527 lt_cv_file_magic_cmd='$OBJDUMP -f'
6532 # use the weaker test based on 'objdump'. See mingw*.
6533 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6534 lt_cv_file_magic_cmd='$OBJDUMP -f'
6537 darwin* | rhapsody*)
6538 lt_cv_deplibs_check_method=pass_all
6541 freebsd* | dragonfly*)
6542 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6545 # Not sure whether the presence of OpenBSD here was a mistake.
6546 # Let's accept both of them until this is cleared up.
6547 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6548 lt_cv_file_magic_cmd=/usr/bin/file
6549 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6553 lt_cv_deplibs_check_method=pass_all
6558 lt_cv_deplibs_check_method=pass_all
6562 lt_cv_deplibs_check_method=pass_all
6565 hpux10.20* | hpux11*)
6566 lt_cv_file_magic_cmd=/usr/bin/file
6569 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6570 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6573 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]'
6574 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6577 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6578 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6584 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6585 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6588 irix5* | irix6* | nonstopux*)
6590 *-32|*"-32 ") libmagic=32-bit;;
6591 *-n32|*"-n32 ") libmagic=N32;;
6592 *-64|*"-64 ") libmagic=64-bit;;
6593 *) libmagic=never-match;;
6595 lt_cv_deplibs_check_method=pass_all
6598 # This must be Linux ELF.
6599 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6600 lt_cv_deplibs_check_method=pass_all
6604 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6607 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6612 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6613 lt_cv_file_magic_cmd=/usr/bin/file
6614 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6618 lt_cv_deplibs_check_method=pass_all
6622 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6629 osf3* | osf4* | osf5*)
6630 lt_cv_deplibs_check_method=pass_all
6634 lt_cv_deplibs_check_method=pass_all
6638 lt_cv_deplibs_check_method=pass_all
6641 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6642 lt_cv_deplibs_check_method=pass_all
6646 case $host_vendor in
6648 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]'
6649 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6652 lt_cv_deplibs_check_method=pass_all
6655 lt_cv_file_magic_cmd='/bin/file'
6656 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6659 lt_cv_file_magic_cmd='/bin/file'
6660 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6661 lt_cv_file_magic_test_file=/lib/libc.so
6664 lt_cv_deplibs_check_method=pass_all
6667 lt_cv_deplibs_check_method=pass_all
6673 lt_cv_deplibs_check_method=pass_all
6676 # Assume VxWorks cross toolchains are built on Linux, possibly
6677 # as canadian for Windows hosts.
6678 lt_cv_deplibs_check_method=pass_all
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6684 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6685 file_magic_cmd=$lt_cv_file_magic_cmd
6686 deplibs_check_method=$lt_cv_deplibs_check_method
6687 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6701 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
6702 for plugin in $plugin_names; do
6703 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6704 if test x$plugin_so = x$plugin; then
6705 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6707 if test x$plugin_so != x$plugin; then
6708 plugin_option="--plugin $plugin_so"
6713 if test -n "$ac_tool_prefix"; then
6714 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6715 set dummy ${ac_tool_prefix}ar; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6717 $as_echo_n "checking
for $ac_word...
" >&6; }
6718 if ${ac_cv_prog_AR+:} false; then :
6719 $as_echo_n "(cached
) " >&6
6721 if test -n "$AR"; then
6722 ac_cv_prog_AR="$AR" # Let the user override the test.
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6731 ac_cv_prog_AR="${ac_tool_prefix}ar"
6732 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6742 if test -n "$AR"; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6744 $as_echo "$AR" >&6; }
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6747 $as_echo "no
" >&6; }
6752 if test -z "$ac_cv_prog_AR"; then
6754 # Extract the first word of "ar", so it can be a program name with args.
6755 set dummy ar; 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_ac_ct_AR+:} false; then :
6759 $as_echo_n "(cached
) " >&6
6761 if test -n "$ac_ct_AR"; then
6762 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_ac_ct_AR="ar"
6772 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6781 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6782 if test -n "$ac_ct_AR"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6784 $as_echo "$ac_ct_AR" >&6; }
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6787 $as_echo "no
" >&6; }
6790 if test "x
$ac_ct_AR" = x; then
6793 case $cross_compiling:$ac_tool_warned in
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6796 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6797 ac_tool_warned=yes ;;
6805 test -z "$AR" && AR=ar
6806 if test -n "$plugin_option"; then
6807 if $AR --help 2>&1 | grep -q "\
--plugin"; then
6809 $AR $plugin_option rc conftest.a conftest.c
6810 if test "$?
" != 0; then
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
6812 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
6814 AR="$AR $plugin_option"
6819 test -z "$AR_FLAGS" && AR_FLAGS=cru
6831 if test -n "$ac_tool_prefix"; then
6832 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6833 set dummy ${ac_tool_prefix}strip; ac_word=$2
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6835 $as_echo_n "checking
for $ac_word...
" >&6; }
6836 if ${ac_cv_prog_STRIP+:} false; then :
6837 $as_echo_n "(cached
) " >&6
6839 if test -n "$STRIP"; then
6840 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6849 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6850 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6859 STRIP=$ac_cv_prog_STRIP
6860 if test -n "$STRIP"; then
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6862 $as_echo "$STRIP" >&6; }
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6865 $as_echo "no
" >&6; }
6870 if test -z "$ac_cv_prog_STRIP"; then
6872 # Extract the first word of "strip
", so it can be a program name with args.
6873 set dummy strip; ac_word=$2
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6875 $as_echo_n "checking
for $ac_word...
" >&6; }
6876 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6877 $as_echo_n "(cached
) " >&6
6879 if test -n "$ac_ct_STRIP"; then
6880 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6889 ac_cv_prog_ac_ct_STRIP="strip
"
6890 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6899 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6900 if test -n "$ac_ct_STRIP"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6902 $as_echo "$ac_ct_STRIP" >&6; }
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6905 $as_echo "no
" >&6; }
6908 if test "x
$ac_ct_STRIP" = x; then
6911 case $cross_compiling:$ac_tool_warned in
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6914 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6915 ac_tool_warned=yes ;;
6920 STRIP="$ac_cv_prog_STRIP"
6923 test -z "$STRIP" && STRIP=:
6930 if test -n "$ac_tool_prefix"; then
6931 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6932 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6934 $as_echo_n "checking
for $ac_word...
" >&6; }
6935 if ${ac_cv_prog_RANLIB+:} false; then :
6936 $as_echo_n "(cached
) " >&6
6938 if test -n "$RANLIB"; then
6939 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6948 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6949 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6958 RANLIB=$ac_cv_prog_RANLIB
6959 if test -n "$RANLIB"; then
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6961 $as_echo "$RANLIB" >&6; }
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6964 $as_echo "no
" >&6; }
6969 if test -z "$ac_cv_prog_RANLIB"; then
6970 ac_ct_RANLIB=$RANLIB
6971 # Extract the first word of "ranlib
", so it can be a program name with args.
6972 set dummy ranlib; ac_word=$2
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6974 $as_echo_n "checking
for $ac_word...
" >&6; }
6975 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6976 $as_echo_n "(cached
) " >&6
6978 if test -n "$ac_ct_RANLIB"; then
6979 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 test -z "$as_dir" && as_dir=.
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6988 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6989 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6998 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6999 if test -n "$ac_ct_RANLIB"; then
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
7001 $as_echo "$ac_ct_RANLIB" >&6; }
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7004 $as_echo "no
" >&6; }
7007 if test "x
$ac_ct_RANLIB" = x; then
7010 case $cross_compiling:$ac_tool_warned in
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7013 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7014 ac_tool_warned=yes ;;
7016 RANLIB=$ac_ct_RANLIB
7019 RANLIB="$ac_cv_prog_RANLIB"
7022 test -z "$RANLIB" && RANLIB=:
7023 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7024 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
7025 RANLIB="$RANLIB $plugin_option"
7034 # Determine commands to create old-style static archives.
7035 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7036 old_postinstall_cmds='chmod 644 $oldlib'
7037 old_postuninstall_cmds=
7039 if test -n "$RANLIB"; then
7042 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
7045 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
7048 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
7053 lock_old_archive_extraction=yes ;;
7055 lock_old_archive_extraction=no ;;
7096 # If no C compiler was specified, use CC.
7099 # If no C compiler flags were specified, use CFLAGS.
7100 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7102 # Allow CC to be a program name with arguments.
7106 # Check for command to grab the raw symbol name followed by C symbol from nm.
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
7108 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
7109 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7110 $as_echo_n "(cached
) " >&6
7113 # These are sane defaults that work on at least a few old systems.
7114 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7116 # Character class describing NM global symbol codes.
7117 symcode='[BCDEGRST]'
7119 # Regexp to match symbols that can be accessed directly from C.
7120 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7122 # Define system-specific variables.
7127 cygwin* | mingw* | pw32* | cegcc*)
7128 symcode='[ABCDGISTW]'
7131 if test "$host_cpu" = ia64; then
7132 symcode='[ABCDEGRST]'
7136 symcode='[BCDEGRST]'
7139 symcode='[BCDEGQRST]'
7150 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7158 # If we're using GNU nm, then use its standard symbol codes.
7159 case `$NM -V 2>&1` in
7160 *GNU* | *'with BFD'*)
7161 symcode='[ABCDGIRSTW]' ;;
7164 # Transform an extracted symbol line into a proper C declaration.
7165 # Some systems (esp. on ia64) link data and code symbols differently,
7166 # so use this general approach.
7167 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7169 # Transform an extracted symbol line into symbol name and symbol address
7170 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7171 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'"
7173 # Handle CRLF in mingw tool chain
7177 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7181 # Try without a prefix underscore, then with it.
7182 for ac_symprfx in "" "_
"; do
7184 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7185 symxfrm="\\1 $ac_symprfx\\2 \\2"
7187 # Write the raw and C identifiers.
7188 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7189 # Fake it for dumpbin and say T for any non-static function
7190 # and D for any global variable.
7191 # Also find C++ and __fastcall symbols from MSVC++,
7192 # which start with @ or ?.
7193 lt_cv_sys_global_symbol_pipe="$AWK '"\
7194 " {last_section=section; section=\$ 3};"\
7195 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7196 " \$ 0!~/External *\|/{next};"\
7197 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7198 " {if(hide[section]) next};"\
7199 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7200 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7201 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7202 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7203 " ' prfx
=^
$ac_symprfx"
7205 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7208 # Check to see that the pipe works correctly.
7212 cat > conftest.$ac_ext <<_LT_EOF
7217 void nm_test_func(void);
7218 void nm_test_func(void){}
7222 int main(){nm_test_var='a';nm_test_func();return(0);}
7225 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7226 (eval $ac_compile) 2>&5
7228 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7229 test $ac_status = 0; }; then
7230 # Now try to grab the symbols.
7232 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7233 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7235 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7236 test $ac_status = 0; } && test -s "$nlist"; then
7237 # Try sorting and uniquifying the output.
7238 if sort "$nlist" | uniq > "$nlist"T; then
7239 mv -f "$nlist"T "$nlist"
7244 # Make sure that we snagged all the symbols we need.
7245 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7246 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7247 cat <<_LT_EOF > conftest.$ac_ext
7253 # Now generate the symbol file.
7254 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7256 cat <<_LT_EOF >> conftest.$ac_ext
7258 /* The mapping between symbol names and symbols. */
7263 lt__PROGRAM__LTX_preloaded_symbols[] =
7265 { "@PROGRAM@
", (void *) 0 },
7267 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7268 cat <<\_LT_EOF >> conftest.$ac_ext
7272 /* This works around a problem in FreeBSD linker */
7273 #ifdef FREEBSD_WORKAROUND
7274 static const void *lt_preloaded_setup() {
7275 return lt__PROGRAM__LTX_preloaded_symbols;
7283 # Now try linking the two files.
7284 mv conftest.$ac_objext conftstm.$ac_objext
7285 lt_save_LIBS="$LIBS"
7286 lt_save_CFLAGS="$CFLAGS"
7287 LIBS="conftstm.
$ac_objext"
7288 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7289 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7290 (eval $ac_link) 2>&5
7292 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7293 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7296 LIBS="$lt_save_LIBS"
7297 CFLAGS="$lt_save_CFLAGS"
7299 echo "cannot
find nm_test_func
in $nlist" >&5
7302 echo "cannot
find nm_test_var
in $nlist" >&5
7305 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7308 echo "$progname: failed program was
:" >&5
7309 cat conftest.$ac_ext >&5
7311 rm -rf conftest* conftst*
7313 # Do not use the global_symbol_pipe unless it works.
7314 if test "$pipe_works" = yes; then
7317 lt_cv_sys_global_symbol_pipe=
7323 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7324 lt_cv_sys_global_symbol_to_cdecl=
7326 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7328 $as_echo "failed
" >&6; }
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7331 $as_echo "ok
" >&6; }
7355 # Check whether --enable-libtool-lock was given.
7356 if test "${enable_libtool_lock+set}" = set; then :
7357 enableval=$enable_libtool_lock;
7360 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7362 # Some flags need to be propagated to the compiler or linker for good
7366 # Find out which ABI we are using.
7367 echo 'int i;' > conftest.$ac_ext
7368 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7369 (eval $ac_compile) 2>&5
7371 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7372 test $ac_status = 0; }; then
7373 case `/usr/bin/file conftest.$ac_objext` in
7385 # Find out which ABI we are using.
7386 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7387 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7388 (eval $ac_compile) 2>&5
7390 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7391 test $ac_status = 0; }; then
7392 if test "$lt_cv_prog_gnu_ld" = yes; then
7393 case `/usr/bin/file conftest.$ac_objext` in
7395 LD="${LD-ld} -melf32bsmip"
7398 LD="${LD-ld} -melf32bmipn32"
7401 LD="${LD-ld} -melf64bmip"
7405 case `/usr/bin/file conftest.$ac_objext` in
7421 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7422 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7423 # Find out which ABI we are using.
7424 echo 'int i;' > conftest.$ac_ext
7425 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7426 (eval $ac_compile) 2>&5
7428 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7429 test $ac_status = 0; }; then
7430 case `/usr/bin/file conftest.o` in
7433 x86_64-*kfreebsd*-gnu)
7434 LD="${LD-ld} -m elf_i386_fbsd
"
7437 case `/usr/bin/file conftest.o` in
7439 LD="${LD-ld} -m elf32_x86_64
"
7442 LD="${LD-ld} -m elf_i386
"
7446 powerpc64le-*linux*)
7447 LD="${LD-ld} -m elf32lppclinux
"
7450 LD="${LD-ld} -m elf32ppclinux
"
7453 LD="${LD-ld} -m elf_s390
"
7456 LD="${LD-ld} -m elf32_sparc
"
7462 x86_64-*kfreebsd*-gnu)
7463 LD="${LD-ld} -m elf_x86_64_fbsd
"
7466 LD="${LD-ld} -m elf_x86_64
"
7469 LD="${LD-ld} -m elf64lppc
"
7472 LD="${LD-ld} -m elf64ppc
"
7474 s390*-*linux*|s390*-*tpf*)
7475 LD="${LD-ld} -m elf64_s390
"
7478 LD="${LD-ld} -m elf64_sparc
"
7488 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7489 SAVE_CFLAGS="$CFLAGS"
7490 CFLAGS="$CFLAGS -belf"
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7492 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7493 if ${lt_cv_cc_needs_belf+:} false; then :
7494 $as_echo_n "(cached
) " >&6
7497 ac_cpp='$CPP $CPPFLAGS'
7498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h. */
7513 if ac_fn_c_try_link "$LINENO"; then :
7514 lt_cv_cc_needs_belf=yes
7516 lt_cv_cc_needs_belf=no
7518 rm -f core conftest.err conftest.$ac_objext \
7519 conftest$ac_exeext conftest.$ac_ext
7521 ac_cpp='$CPP $CPPFLAGS'
7522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7528 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7529 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7530 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7531 CFLAGS="$SAVE_CFLAGS"
7535 # Find out which ABI we are using.
7536 echo 'int i;' > conftest.$ac_ext
7537 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7538 (eval $ac_compile) 2>&5
7540 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7541 test $ac_status = 0; }; then
7542 case `/usr/bin/file conftest.o` in
7544 case $lt_cv_prog_gnu_ld in
7545 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7547 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7559 need_locks="$enable_libtool_lock"
7563 rhapsody* | darwin*)
7564 if test -n "$ac_tool_prefix"; then
7565 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7566 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7568 $as_echo_n "checking
for $ac_word...
" >&6; }
7569 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7570 $as_echo_n "(cached
) " >&6
7572 if test -n "$DSYMUTIL"; then
7573 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7583 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7592 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7593 if test -n "$DSYMUTIL"; then
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7595 $as_echo "$DSYMUTIL" >&6; }
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7598 $as_echo "no
" >&6; }
7603 if test -z "$ac_cv_prog_DSYMUTIL"; then
7604 ac_ct_DSYMUTIL=$DSYMUTIL
7605 # Extract the first word of "dsymutil
", so it can be a program name with args.
7606 set dummy dsymutil; ac_word=$2
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7608 $as_echo_n "checking
for $ac_word...
" >&6; }
7609 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7610 $as_echo_n "(cached
) " >&6
7612 if test -n "$ac_ct_DSYMUTIL"; then
7613 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7622 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7623 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7632 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7633 if test -n "$ac_ct_DSYMUTIL"; then
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7635 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7638 $as_echo "no
" >&6; }
7641 if test "x
$ac_ct_DSYMUTIL" = x; then
7644 case $cross_compiling:$ac_tool_warned in
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7647 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7648 ac_tool_warned=yes ;;
7650 DSYMUTIL=$ac_ct_DSYMUTIL
7653 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7656 if test -n "$ac_tool_prefix"; then
7657 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7658 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7660 $as_echo_n "checking
for $ac_word...
" >&6; }
7661 if ${ac_cv_prog_NMEDIT+:} false; then :
7662 $as_echo_n "(cached
) " >&6
7664 if test -n "$NMEDIT"; then
7665 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7674 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7684 NMEDIT=$ac_cv_prog_NMEDIT
7685 if test -n "$NMEDIT"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7687 $as_echo "$NMEDIT" >&6; }
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7690 $as_echo "no
" >&6; }
7695 if test -z "$ac_cv_prog_NMEDIT"; then
7696 ac_ct_NMEDIT=$NMEDIT
7697 # Extract the first word of "nmedit
", so it can be a program name with args.
7698 set dummy nmedit; ac_word=$2
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7700 $as_echo_n "checking
for $ac_word...
" >&6; }
7701 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7702 $as_echo_n "(cached
) " >&6
7704 if test -n "$ac_ct_NMEDIT"; then
7705 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7715 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7724 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7725 if test -n "$ac_ct_NMEDIT"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7727 $as_echo "$ac_ct_NMEDIT" >&6; }
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7730 $as_echo "no
" >&6; }
7733 if test "x
$ac_ct_NMEDIT" = x; then
7736 case $cross_compiling:$ac_tool_warned in
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7739 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7740 ac_tool_warned=yes ;;
7742 NMEDIT=$ac_ct_NMEDIT
7745 NMEDIT="$ac_cv_prog_NMEDIT"
7748 if test -n "$ac_tool_prefix"; then
7749 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7750 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7752 $as_echo_n "checking
for $ac_word...
" >&6; }
7753 if ${ac_cv_prog_LIPO+:} false; then :
7754 $as_echo_n "(cached
) " >&6
7756 if test -n "$LIPO"; then
7757 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7766 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7776 LIPO=$ac_cv_prog_LIPO
7777 if test -n "$LIPO"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7779 $as_echo "$LIPO" >&6; }
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7782 $as_echo "no
" >&6; }
7787 if test -z "$ac_cv_prog_LIPO"; then
7789 # Extract the first word of "lipo
", so it can be a program name with args.
7790 set dummy lipo; ac_word=$2
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7792 $as_echo_n "checking
for $ac_word...
" >&6; }
7793 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7794 $as_echo_n "(cached
) " >&6
7796 if test -n "$ac_ct_LIPO"; then
7797 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806 ac_cv_prog_ac_ct_LIPO="lipo
"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7816 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7817 if test -n "$ac_ct_LIPO"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7819 $as_echo "$ac_ct_LIPO" >&6; }
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7822 $as_echo "no
" >&6; }
7825 if test "x
$ac_ct_LIPO" = x; then
7828 case $cross_compiling:$ac_tool_warned in
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7831 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7832 ac_tool_warned=yes ;;
7837 LIPO="$ac_cv_prog_LIPO"
7840 if test -n "$ac_tool_prefix"; then
7841 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7842 set dummy ${ac_tool_prefix}otool; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7844 $as_echo_n "checking
for $ac_word...
" >&6; }
7845 if ${ac_cv_prog_OTOOL+:} false; then :
7846 $as_echo_n "(cached
) " >&6
7848 if test -n "$OTOOL"; then
7849 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7858 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7868 OTOOL=$ac_cv_prog_OTOOL
7869 if test -n "$OTOOL"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7871 $as_echo "$OTOOL" >&6; }
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7874 $as_echo "no
" >&6; }
7879 if test -z "$ac_cv_prog_OTOOL"; then
7881 # Extract the first word of "otool
", so it can be a program name with args.
7882 set dummy otool; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7884 $as_echo_n "checking
for $ac_word...
" >&6; }
7885 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7886 $as_echo_n "(cached
) " >&6
7888 if test -n "$ac_ct_OTOOL"; then
7889 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898 ac_cv_prog_ac_ct_OTOOL="otool
"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7908 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7909 if test -n "$ac_ct_OTOOL"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7911 $as_echo "$ac_ct_OTOOL" >&6; }
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7914 $as_echo "no
" >&6; }
7917 if test "x
$ac_ct_OTOOL" = x; then
7920 case $cross_compiling:$ac_tool_warned in
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7923 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7924 ac_tool_warned=yes ;;
7929 OTOOL="$ac_cv_prog_OTOOL"
7932 if test -n "$ac_tool_prefix"; then
7933 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7934 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7936 $as_echo_n "checking
for $ac_word...
" >&6; }
7937 if ${ac_cv_prog_OTOOL64+:} false; then :
7938 $as_echo_n "(cached
) " >&6
7940 if test -n "$OTOOL64"; then
7941 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7950 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7960 OTOOL64=$ac_cv_prog_OTOOL64
7961 if test -n "$OTOOL64"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7963 $as_echo "$OTOOL64" >&6; }
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7966 $as_echo "no
" >&6; }
7971 if test -z "$ac_cv_prog_OTOOL64"; then
7972 ac_ct_OTOOL64=$OTOOL64
7973 # Extract the first word of "otool64
", so it can be a program name with args.
7974 set dummy otool64; ac_word=$2
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7976 $as_echo_n "checking
for $ac_word...
" >&6; }
7977 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7978 $as_echo_n "(cached
) " >&6
7980 if test -n "$ac_ct_OTOOL64"; then
7981 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8000 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8001 if test -n "$ac_ct_OTOOL64"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
8003 $as_echo "$ac_ct_OTOOL64" >&6; }
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8006 $as_echo "no
" >&6; }
8009 if test "x
$ac_ct_OTOOL64" = x; then
8012 case $cross_compiling:$ac_tool_warned in
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8015 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8016 ac_tool_warned=yes ;;
8018 OTOOL64=$ac_ct_OTOOL64
8021 OTOOL64="$ac_cv_prog_OTOOL64"
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
8051 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
8052 if ${lt_cv_apple_cc_single_mod+:} false; then :
8053 $as_echo_n "(cached
) " >&6
8055 lt_cv_apple_cc_single_mod=no
8056 if test -z "${LT_MULTI_MODULE}"; then
8057 # By default we will add the -single_module flag. You can override
8058 # by either setting the environment variable LT_MULTI_MODULE
8059 # non-empty at configure time, or by adding -multi_module to the
8061 rm -rf libconftest.dylib*
8062 echo "int foo
(void
){return 1;}" > conftest.c
8063 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8064 -dynamiclib -Wl,-single_module conftest.c
" >&5
8065 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8066 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8068 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8069 lt_cv_apple_cc_single_mod=yes
8071 cat conftest.err >&5
8073 rm -rf libconftest.dylib*
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
8078 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
8080 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
8081 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8082 $as_echo_n "(cached
) " >&6
8084 lt_cv_ld_exported_symbols_list=no
8085 save_LDFLAGS=$LDFLAGS
8086 echo "_main
" > conftest.sym
8087 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089 /* end confdefs.h. */
8099 if ac_fn_c_try_link "$LINENO"; then :
8100 lt_cv_ld_exported_symbols_list=yes
8102 lt_cv_ld_exported_symbols_list=no
8104 rm -f core conftest.err conftest.$ac_objext \
8105 conftest$ac_exeext conftest.$ac_ext
8106 LDFLAGS="$save_LDFLAGS"
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
8110 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
8112 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
8113 if ${lt_cv_ld_force_load+:} false; then :
8114 $as_echo_n "(cached
) " >&6
8116 lt_cv_ld_force_load=no
8117 cat > conftest.c << _LT_EOF
8118 int forced_loaded() { return 2;}
8120 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
8121 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8122 echo "$AR cru libconftest.a conftest.o
" >&5
8123 $AR cru libconftest.a conftest.o 2>&5
8124 cat > conftest.c << _LT_EOF
8125 int main() { return 0;}
8127 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
8128 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8130 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8131 lt_cv_ld_force_load=yes
8133 cat conftest.err >&5
8135 rm -f conftest.err libconftest.a conftest conftest.c
8136 rm -rf conftest.dSYM
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
8140 $as_echo "$lt_cv_ld_force_load" >&6; }
8141 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8142 # build without first building modern cctools / linker.
8143 case $host_cpu-$host_os in
8144 *-rhapsody* | *-darwin1.[012])
8145 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8147 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8149 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8150 # deployment target is forced to an earlier version.
8151 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8152 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8155 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8162 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8163 _lt_dar_single_mod='$single_module'
8165 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8166 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8168 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8170 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
8171 _lt_dsymutil='~$DSYMUTIL $lib || :'
8178 for ac_header in dlfcn.h
8180 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
8182 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
8183 cat >>confdefs.h <<_ACEOF
8184 #define HAVE_DLFCN_H 1
8206 # Check whether --enable-shared was given.
8207 if test "${enable_shared+set}" = set; then :
8208 enableval=$enable_shared; p=${PACKAGE-default}
8210 yes) enable_shared=yes ;;
8211 no) enable_shared=no ;;
8214 # Look at the argument we got. We use all the common list separators.
8215 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8216 for pkg in $enableval; do
8218 if test "X
$pkg" = "X
$p"; then
8237 # Check whether --enable-static was given.
8238 if test "${enable_static+set}" = set; then :
8239 enableval=$enable_static; p=${PACKAGE-default}
8241 yes) enable_static=yes ;;
8242 no) enable_static=no ;;
8245 # Look at the argument we got. We use all the common list separators.
8246 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8247 for pkg in $enableval; do
8249 if test "X
$pkg" = "X
$p"; then
8269 # Check whether --with-pic was given.
8270 if test "${with_pic+set}" = set; then :
8271 withval=$with_pic; pic_mode="$withval"
8277 test -z "$pic_mode" && pic_mode=default
8285 # Check whether --enable-fast-install was given.
8286 if test "${enable_fast_install+set}" = set; then :
8287 enableval=$enable_fast_install; p=${PACKAGE-default}
8289 yes) enable_fast_install=yes ;;
8290 no) enable_fast_install=no ;;
8292 enable_fast_install=no
8293 # Look at the argument we got. We use all the common list separators.
8294 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8295 for pkg in $enableval; do
8297 if test "X
$pkg" = "X
$p"; then
8298 enable_fast_install=yes
8305 enable_fast_install=yes
8318 # This can be used to rebuild libtool when needed
8319 LIBTOOL_DEPS="$ltmain"
8321 # Always use our own libtool.
8322 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8349 test -z "$LN_S" && LN_S="ln -s"
8364 if test -n "${ZSH_VERSION+set}" ; then
8365 setopt NO_GLOB_SUBST
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
8369 $as_echo_n "checking
for objdir...
" >&6; }
8370 if ${lt_cv_objdir+:} false; then :
8371 $as_echo_n "(cached
) " >&6
8373 rm -f .libs 2>/dev/null
8374 mkdir .libs 2>/dev/null
8375 if test -d .libs; then
8378 # MS-DOS does not allow filenames that begin with a dot.
8381 rmdir .libs 2>/dev/null
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
8384 $as_echo "$lt_cv_objdir" >&6; }
8385 objdir=$lt_cv_objdir
8391 cat >>confdefs.h <<_ACEOF
8392 #define LT_OBJDIR "$lt_cv_objdir/"
8400 # AIX sometimes has problems with the GCC collect2 program. For some
8401 # reason, if we set the COLLECT_NAMES environment variable, the problems
8402 # vanish in a puff of smoke.
8403 if test "X
${COLLECT_NAMES+set}" != Xset; then
8405 export COLLECT_NAMES
8412 can_build_shared=yes
8414 # All known linkers require a `.a' archive for static linking (except MSVC,
8415 # which needs '.lib').
8418 with_gnu_ld="$lt_cv_prog_gnu_ld"
8421 old_CFLAGS="$CFLAGS"
8423 # Set sane defaults for various variables
8424 test -z "$CC" && CC=cc
8425 test -z "$LTCC" && LTCC=$CC
8426 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8427 test -z "$LD" && LD=ld
8428 test -z "$ac_objext" && ac_objext=o
8430 for cc_temp in $compiler""; do
8432 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8433 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8438 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
8441 # Only perform the check for file, if the check method requires it
8442 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8443 case $deplibs_check_method in
8445 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
8447 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
8448 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8449 $as_echo_n "(cached
) " >&6
8453 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8456 lt_save_MAGIC_CMD="$MAGIC_CMD"
8457 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8458 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8459 for ac_dir in $ac_dummy; do
8461 test -z "$ac_dir" && ac_dir=.
8462 if test -f $ac_dir/${ac_tool_prefix}file; then
8463 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8464 if test -n "$file_magic_test_file"; then
8465 case $deplibs_check_method in
8467 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8469 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8470 $EGREP "$file_magic_regex" > /dev/null; then
8475 *** Warning: the command libtool uses to detect shared libraries,
8476 *** $file_magic_cmd, produces output that libtool cannot recognize.
8477 *** The result is that libtool may fail to recognize shared libraries
8478 *** as such. This will affect the creation of libtool libraries that
8479 *** depend on shared libraries, but programs linked with such libtool
8480 *** libraries will work regardless of this problem. Nevertheless, you
8481 *** may want to report the problem to your system manager and/or to
8482 *** bug-libtool@gnu.org
8492 MAGIC_CMD="$lt_save_MAGIC_CMD"
8497 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8498 if test -n "$MAGIC_CMD"; then
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8500 $as_echo "$MAGIC_CMD" >&6; }
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8503 $as_echo "no
" >&6; }
8510 if test -z "$lt_cv_path_MAGIC_CMD"; then
8511 if test -n "$ac_tool_prefix"; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
8513 $as_echo_n "checking
for file...
" >&6; }
8514 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8515 $as_echo_n "(cached
) " >&6
8519 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8522 lt_save_MAGIC_CMD="$MAGIC_CMD"
8523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8524 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8525 for ac_dir in $ac_dummy; do
8527 test -z "$ac_dir" && ac_dir=.
8528 if test -f $ac_dir/file; then
8529 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8530 if test -n "$file_magic_test_file"; then
8531 case $deplibs_check_method in
8533 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8534 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8535 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8536 $EGREP "$file_magic_regex" > /dev/null; then
8541 *** Warning: the command libtool uses to detect shared libraries,
8542 *** $file_magic_cmd, produces output that libtool cannot recognize.
8543 *** The result is that libtool may fail to recognize shared libraries
8544 *** as such. This will affect the creation of libtool libraries that
8545 *** depend on shared libraries, but programs linked with such libtool
8546 *** libraries will work regardless of this problem. Nevertheless, you
8547 *** may want to report the problem to your system manager and/or to
8548 *** bug-libtool@gnu.org
8558 MAGIC_CMD="$lt_save_MAGIC_CMD"
8563 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8564 if test -n "$MAGIC_CMD"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8566 $as_echo "$MAGIC_CMD" >&6; }
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8569 $as_echo "no
" >&6; }
8582 # Use C for the default configuration in the libtool script
8586 ac_cpp='$CPP $CPPFLAGS'
8587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8592 # Source file extension for C test sources.
8595 # Object file extension for compiled C test sources.
8599 # Code to be used in simple compile tests
8600 lt_simple_compile_test_code="int some_variable
= 0;"
8602 # Code to be used in simple link tests
8603 lt_simple_link_test_code='int main(){return(0);}'
8611 # If no C compiler was specified, use CC.
8614 # If no C compiler flags were specified, use CFLAGS.
8615 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8617 # Allow CC to be a program name with arguments.
8620 # Save the default compiler, since it gets overwritten when the other
8621 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8622 compiler_DEFAULT=$CC
8624 # save warnings/boilerplate of simple test code
8625 ac_outfile=conftest.$ac_objext
8626 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8627 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8628 _lt_compiler_boilerplate=`cat conftest.err`
8631 ac_outfile=conftest.$ac_objext
8632 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8633 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8634 _lt_linker_boilerplate=`cat conftest.err`
8639 ## There is no encapsulation within the following macros, do not change
8640 ## the running order or otherwise move them around unless you know exactly
8641 ## what you are doing...
8642 if test -n "$compiler"; then
8644 lt_prog_compiler_no_builtin_flag=
8646 if test "$GCC" = yes; then
8647 case $cc_basename in
8649 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8651 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
8655 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
8656 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8657 $as_echo_n "(cached
) " >&6
8659 lt_cv_prog_compiler_rtti_exceptions=no
8660 ac_outfile=conftest.$ac_objext
8661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8662 lt_compiler_flag="-fno-rtti -fno-exceptions"
8663 # Insert the option either (1) after the last *FLAGS variable, or
8664 # (2) before a word containing "conftest.
", or (3) at the end.
8665 # Note that $ac_compile itself does not contain backslashes and begins
8666 # with a dollar sign (not a hyphen), so the echo should work correctly.
8667 # The option is referenced via a variable to avoid confusing sed.
8668 lt_compile=`echo "$ac_compile" | $SED \
8669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8671 -e 's:$: $lt_compiler_flag:'`
8672 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8673 (eval "$lt_compile" 2>conftest.err)
8675 cat conftest.err >&5
8676 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8677 if (exit $ac_status) && test -s "$ac_outfile"; then
8678 # The compiler can only warn and ignore the option if not recognized
8679 # So say no if there are warnings other than the usual output.
8680 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8682 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8683 lt_cv_prog_compiler_rtti_exceptions=yes
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
8690 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8692 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8693 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8705 lt_prog_compiler_wl=
8706 lt_prog_compiler_pic=
8707 lt_prog_compiler_static=
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
8710 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
8712 if test "$GCC" = yes; then
8713 lt_prog_compiler_wl='-Wl,'
8714 lt_prog_compiler_static='-static'
8718 # All AIX code is PIC.
8719 if test "$host_cpu" = ia64; then
8720 # AIX 5 now supports IA64 processor
8721 lt_prog_compiler_static='-Bstatic'
8723 lt_prog_compiler_pic='-fPIC'
8729 # see comment about AmigaOS4 .so support
8730 lt_prog_compiler_pic='-fPIC'
8733 # FIXME: we need at least 68020 code to build shared libraries, but
8734 # adding the `-m68020' flag to GCC prevents building anything better,
8736 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8741 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8742 # PIC is the default for these OSes.
8745 mingw* | cygwin* | pw32* | os2* | cegcc*)
8746 # This hack is so that the source file can tell whether it is being
8747 # built for inclusion in a dll (and should export symbols for example).
8748 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8749 # (--disable-auto-import) libraries
8750 lt_prog_compiler_pic='-DDLL_EXPORT'
8753 darwin* | rhapsody*)
8754 # PIC is the default on this platform
8755 # Common symbols not allowed in MH_DYLIB files
8756 lt_prog_compiler_pic='-fno-common'
8760 # PIC is the default for Haiku.
8761 # The "-static" flag exists, but is broken.
8762 lt_prog_compiler_static=
8766 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8767 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8768 # sets the default TLS model and affects inlining.
8774 lt_prog_compiler_pic='-fPIC'
8780 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8781 # Instead, we relocate shared libraries at runtime.
8785 # Just because we use GCC doesn't mean we suddenly get shared libraries
8786 # on systems that don't support them.
8787 lt_prog_compiler_can_build_shared=no
8792 # QNX uses GNU C++, but need to define -shared option too, otherwise
8794 lt_prog_compiler_pic='-fPIC -shared'
8798 if test -d /usr/nec; then
8799 lt_prog_compiler_pic=-Kconform_pic
8804 lt_prog_compiler_pic='-fPIC'
8808 case $cc_basename in
8809 nvcc*) # Cuda Compiler Driver 2.2
8810 lt_prog_compiler_wl='-Xlinker '
8811 lt_prog_compiler_pic='-Xcompiler -fPIC'
8815 # PORTME Check for flag to pass linker flags through the system compiler.
8818 lt_prog_compiler_wl='-Wl,'
8819 if test "$host_cpu" = ia64; then
8820 # AIX 5 now supports IA64 processor
8821 lt_prog_compiler_static='-Bstatic'
8823 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8827 mingw* | cygwin* | pw32* | os2* | cegcc*)
8828 # This hack is so that the source file can tell whether it is being
8829 # built for inclusion in a dll (and should export symbols for example).
8830 lt_prog_compiler_pic='-DDLL_EXPORT'
8833 hpux9* | hpux10* | hpux11*)
8834 lt_prog_compiler_wl='-Wl,'
8835 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8842 lt_prog_compiler_pic='+Z'
8845 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8846 lt_prog_compiler_static='${wl}-a ${wl}archive'
8849 irix5* | irix6* | nonstopux*)
8850 lt_prog_compiler_wl='-Wl,'
8851 # PIC (with -KPIC) is the default.
8852 lt_prog_compiler_static='-non_shared'
8855 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8856 case $cc_basename in
8857 # old Intel for x86_64 which still supported -KPIC.
8859 lt_prog_compiler_wl='-Wl,'
8860 lt_prog_compiler_pic='-KPIC'
8861 lt_prog_compiler_static='-static'
8863 # icc used to be incompatible with GCC.
8864 # ICC 10 doesn't accept -KPIC any more.
8866 lt_prog_compiler_wl='-Wl,'
8867 lt_prog_compiler_pic='-fPIC'
8868 lt_prog_compiler_static='-static'
8870 # Lahey Fortran 8.1.
8872 lt_prog_compiler_wl='-Wl,'
8873 lt_prog_compiler_pic='--shared'
8874 lt_prog_compiler_static='--static'
8876 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8877 # Portland Group compilers (*not* the Pentium gcc compiler,
8878 # which looks to be a dead project)
8879 lt_prog_compiler_wl='-Wl,'
8880 lt_prog_compiler_pic='-fpic'
8881 lt_prog_compiler_static='-Bstatic'
8884 lt_prog_compiler_wl='-Wl,'
8885 # All Alpha code is PIC.
8886 lt_prog_compiler_static='-non_shared'
8888 xl* | bgxl* | bgf* | mpixl*)
8889 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8890 lt_prog_compiler_wl='-Wl,'
8891 lt_prog_compiler_pic='-qpic'
8892 lt_prog_compiler_static='-qstaticlink'
8895 case `$CC -V 2>&1 | sed 5q` in
8896 *Sun\ F* | *Sun*Fortran*)
8897 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8898 lt_prog_compiler_pic='-KPIC'
8899 lt_prog_compiler_static='-Bstatic'
8900 lt_prog_compiler_wl=''
8904 lt_prog_compiler_pic='-KPIC'
8905 lt_prog_compiler_static='-Bstatic'
8906 lt_prog_compiler_wl='-Wl,'
8914 lt_prog_compiler_pic='-KPIC'
8915 lt_prog_compiler_static='-Bstatic'
8919 # QNX uses GNU C++, but need to define -shared option too, otherwise
8921 lt_prog_compiler_pic='-fPIC -shared'
8924 osf3* | osf4* | osf5*)
8925 lt_prog_compiler_wl='-Wl,'
8926 # All OSF/1 code is PIC.
8927 lt_prog_compiler_static='-non_shared'
8931 lt_prog_compiler_static='-non_shared'
8935 lt_prog_compiler_pic='-KPIC'
8936 lt_prog_compiler_static='-Bstatic'
8937 case $cc_basename in
8939 lt_prog_compiler_wl='-Qoption ld ';;
8941 lt_prog_compiler_wl='-Wl,';;
8946 lt_prog_compiler_wl='-Qoption ld '
8947 lt_prog_compiler_pic='-PIC'
8948 lt_prog_compiler_static='-Bstatic'
8951 sysv4 | sysv4.2uw2* | sysv4.3*)
8952 lt_prog_compiler_wl='-Wl,'
8953 lt_prog_compiler_pic='-KPIC'
8954 lt_prog_compiler_static='-Bstatic'
8958 if test -d /usr/nec ;then
8959 lt_prog_compiler_pic='-Kconform_pic'
8960 lt_prog_compiler_static='-Bstatic'
8964 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8965 lt_prog_compiler_wl='-Wl,'
8966 lt_prog_compiler_pic='-KPIC'
8967 lt_prog_compiler_static='-Bstatic'
8971 lt_prog_compiler_wl='-Wl,'
8972 lt_prog_compiler_can_build_shared=no
8976 lt_prog_compiler_pic='-pic'
8977 lt_prog_compiler_static='-Bstatic'
8981 lt_prog_compiler_can_build_shared=no
8987 # For platforms which do not support PIC, -DPIC is meaningless:
8989 lt_prog_compiler_pic=
8992 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
8996 $as_echo "$lt_prog_compiler_pic" >&6; }
9004 # Check to make sure the PIC flag actually works.
9006 if test -n "$lt_prog_compiler_pic"; then
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
9008 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
9009 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9010 $as_echo_n "(cached
) " >&6
9012 lt_cv_prog_compiler_pic_works=no
9013 ac_outfile=conftest.$ac_objext
9014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9015 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9016 # Insert the option either (1) after the last *FLAGS variable, or
9017 # (2) before a word containing "conftest.
", or (3) at the end.
9018 # Note that $ac_compile itself does not contain backslashes and begins
9019 # with a dollar sign (not a hyphen), so the echo should work correctly.
9020 # The option is referenced via a variable to avoid confusing sed.
9021 lt_compile=`echo "$ac_compile" | $SED \
9022 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9024 -e 's:$: $lt_compiler_flag:'`
9025 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9026 (eval "$lt_compile" 2>conftest.err)
9028 cat conftest.err >&5
9029 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9030 if (exit $ac_status) && test -s "$ac_outfile"; then
9031 # The compiler can only warn and ignore the option if not recognized
9032 # So say no if there are warnings other than the usual output.
9033 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9035 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9036 lt_cv_prog_compiler_pic_works=yes
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
9043 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9045 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9046 case $lt_prog_compiler_pic in
9048 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9051 lt_prog_compiler_pic=
9052 lt_prog_compiler_can_build_shared=no
9063 # Check to make sure the static flag actually works.
9065 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
9067 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
9068 if ${lt_cv_prog_compiler_static_works+:} false; then :
9069 $as_echo_n "(cached
) " >&6
9071 lt_cv_prog_compiler_static_works=no
9072 save_LDFLAGS="$LDFLAGS"
9073 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9074 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9075 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9076 # The linker can only warn and ignore the option if not recognized
9077 # So say no if there are warnings
9078 if test -s conftest.err; then
9079 # Append any errors to the config.log.
9080 cat conftest.err 1>&5
9081 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9083 if diff conftest.exp conftest.er2 >/dev/null; then
9084 lt_cv_prog_compiler_static_works=yes
9087 lt_cv_prog_compiler_static_works=yes
9091 LDFLAGS="$save_LDFLAGS"
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
9095 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9097 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9100 lt_prog_compiler_static=
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9110 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9111 if ${lt_cv_prog_compiler_c_o+:} false; then :
9112 $as_echo_n "(cached
) " >&6
9114 lt_cv_prog_compiler_c_o=no
9115 $RM -r conftest 2>/dev/null
9119 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9121 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9122 # Insert the option either (1) after the last *FLAGS variable, or
9123 # (2) before a word containing "conftest.
", or (3) at the end.
9124 # Note that $ac_compile itself does not contain backslashes and begins
9125 # with a dollar sign (not a hyphen), so the echo should work correctly.
9126 lt_compile=`echo "$ac_compile" | $SED \
9127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9129 -e 's:$: $lt_compiler_flag:'`
9130 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9131 (eval "$lt_compile" 2>out/conftest.err)
9133 cat out/conftest.err >&5
9134 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9135 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9137 # The compiler can only warn and ignore the option if not recognized
9138 # So say no if there are warnings
9139 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9140 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9141 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9142 lt_cv_prog_compiler_c_o=yes
9147 # SGI C++ compiler will create directory out/ii_files/ for
9148 # template instantiation
9149 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9150 $RM out/* && rmdir out
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9157 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9165 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9166 if ${lt_cv_prog_compiler_c_o+:} false; then :
9167 $as_echo_n "(cached
) " >&6
9169 lt_cv_prog_compiler_c_o=no
9170 $RM -r conftest 2>/dev/null
9174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9176 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9177 # Insert the option either (1) after the last *FLAGS variable, or
9178 # (2) before a word containing "conftest.
", or (3) at the end.
9179 # Note that $ac_compile itself does not contain backslashes and begins
9180 # with a dollar sign (not a hyphen), so the echo should work correctly.
9181 lt_compile=`echo "$ac_compile" | $SED \
9182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9184 -e 's:$: $lt_compiler_flag:'`
9185 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9186 (eval "$lt_compile" 2>out/conftest.err)
9188 cat out/conftest.err >&5
9189 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9190 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9192 # The compiler can only warn and ignore the option if not recognized
9193 # So say no if there are warnings
9194 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9195 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9196 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9197 lt_cv_prog_compiler_c_o=yes
9202 # SGI C++ compiler will create directory out/ii_files/ for
9203 # template instantiation
9204 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9205 $RM out/* && rmdir out
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9212 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9217 hard_links="nottested
"
9218 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9219 # do not overwrite the value of need_locks provided by the user
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
9221 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
9224 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9226 ln conftest.a conftest.b 2>&5 || hard_links=no
9227 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
9229 $as_echo "$hard_links" >&6; }
9230 if test "$hard_links" = no; then
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
9232 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
9245 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
9248 allow_undefined_flag=
9249 always_export_symbols=no
9251 archive_expsym_cmds=
9252 compiler_needs_object=no
9253 enable_shared_with_static_runtimes=no
9254 export_dynamic_flag_spec=
9255 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9256 hardcode_automatic=no
9258 hardcode_direct_absolute=no
9259 hardcode_libdir_flag_spec=
9260 hardcode_libdir_flag_spec_ld=
9261 hardcode_libdir_separator=
9263 hardcode_shlibpath_var=unsupported
9265 link_all_deplibs=unknown
9268 old_archive_from_new_cmds=
9269 old_archive_from_expsyms_cmds=
9270 thread_safe_flag_spec=
9271 whole_archive_flag_spec=
9272 # include_expsyms should be a list of space-separated symbols to be *always*
9273 # included in the symbol list
9275 # exclude_expsyms can be an extended regexp of symbols to exclude
9276 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9277 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9278 # as well as any symbol that contains `d'.
9279 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9280 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9281 # platforms (ab)use it in PIC code, but their linkers get confused if
9282 # the symbol is explicitly referenced. Since portable code cannot
9283 # rely on this symbol name, it's probably fine to never include it in
9284 # preloaded symbol tables.
9285 # Exclude shared library initialization/finalization symbols.
9286 extract_expsyms_cmds=
9289 cygwin* | mingw* | pw32* | cegcc*)
9290 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9291 # When not using gcc, we currently assume that we are using
9292 # Microsoft Visual C++.
9293 if test "$GCC" != yes; then
9298 # we just hope/assume this is gcc and not c89 (= MSVC++)
9308 # On some targets, GNU ld is compatible enough with the native linker
9309 # that we're better off using the native interface for both.
9310 lt_use_gnu_ld_interface=no
9311 if test "$with_gnu_ld" = yes; then
9314 # The AIX port of GNU ld has always aspired to compatibility
9315 # with the native linker. However, as the warning in the GNU ld
9316 # block says, versions before 2.19.5* couldn't really create working
9317 # shared libraries, regardless of the interface used.
9318 case `$LD -v 2>&1` in
9319 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9320 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9321 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9323 lt_use_gnu_ld_interface=yes
9328 lt_use_gnu_ld_interface=yes
9333 if test "$lt_use_gnu_ld_interface" = yes; then
9334 # If archive_cmds runs LD, not CC, wlarc should be empty
9337 # Set some defaults for GNU ld with shared library support. These
9338 # are reset later if shared libraries are not supported. Putting them
9339 # here allows them to be overridden if necessary.
9340 runpath_var=LD_RUN_PATH
9341 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9342 export_dynamic_flag_spec='${wl}--export-dynamic'
9343 # ancient GNU ld didn't support --whole-archive et. al.
9344 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9345 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9347 whole_archive_flag_spec=
9349 supports_anon_versioning=no
9350 case `$LD -v 2>&1` in
9351 *GNU\ gold*) supports_anon_versioning=yes ;;
9352 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9353 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9354 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9355 *\ 2.11.*) ;; # other 2.11 versions
9356 *) supports_anon_versioning=yes ;;
9359 # See if GNU ld supports shared libraries.
9362 # On AIX/PPC, the GNU linker is very broken
9363 if test "$host_cpu" != ia64; then
9367 *** Warning: the GNU linker, at least up to release 2.19, is reported
9368 *** to be unable to reliably create shared libraries on AIX.
9369 *** Therefore, libtool is disabling shared libraries support. If you
9370 *** really care for shared libraries, you may want to install binutils
9371 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9372 *** You will then need to restart the configuration process.
9381 # see comment about AmigaOS4 .so support
9382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9383 archive_expsym_cmds=''
9386 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)'
9387 hardcode_libdir_flag_spec
='-L$libdir'
9388 hardcode_minus_L
=yes
9394 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9395 allow_undefined_flag
=unsupported
9396 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9397 # support --undefined. This deserves some investigation. FIXME
9398 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9404 cygwin
* | mingw
* | pw32
* | cegcc
*)
9405 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9406 # as there is no search path for DLLs.
9407 hardcode_libdir_flag_spec
='-L$libdir'
9408 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9409 allow_undefined_flag
=unsupported
9410 always_export_symbols
=no
9411 enable_shared_with_static_runtimes
=yes
9412 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9414 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9415 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9416 # If the export-symbols file already is a .def file (1st line
9417 # is EXPORTS), use it as is; otherwise, prepend...
9418 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9419 cp $export_symbols $output_objdir/$soname.def;
9421 echo EXPORTS > $output_objdir/$soname.def;
9422 cat $export_symbols >> $output_objdir/$soname.def;
9424 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9431 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9432 link_all_deplibs
=yes
9437 hardcode_shlibpath_var
=no
9438 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9439 export_dynamic_flag_spec
='${wl}-E'
9440 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9441 # Instead, shared libraries are loaded at an image base (0x10000000 by
9442 # default) and relocated if they conflict, which is a slow very memory
9443 # consuming and fragmenting process. To avoid this, we pick a random,
9444 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9445 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9446 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9447 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'
9450 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
9452 if test "$host_os" = linux-dietlibc
; then
9453 case $cc_basename in
9454 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9457 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9458 && test "$tmp_diet" = no
9460 tmp_addflag
=' $pic_flag'
9461 tmp_sharedflag
='-shared'
9462 case $cc_basename,$host_cpu in
9463 pgcc
*) # Portland Group C compiler
9464 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'
9465 tmp_addflag
=' $pic_flag'
9467 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9468 # Portland Group f77 and f90 compilers
9469 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'
9470 tmp_addflag
=' $pic_flag -Mnomain' ;;
9471 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9472 tmp_addflag
=' -i_dynamic' ;;
9473 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9474 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9475 ifc
* | ifort
*) # Intel Fortran compiler
9476 tmp_addflag
=' -nofor_main' ;;
9477 lf95
*) # Lahey Fortran 8.1
9478 whole_archive_flag_spec
=
9479 tmp_sharedflag
='--shared' ;;
9480 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9481 tmp_sharedflag
='-qmkshrobj'
9483 nvcc
*) # Cuda Compiler Driver 2.2
9484 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'
9485 compiler_needs_object
=yes
9488 case `$CC -V 2>&1 | sed 5q` in
9489 *Sun\ C
*) # Sun C 5.9
9490 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'
9491 compiler_needs_object
=yes
9492 tmp_sharedflag
='-G' ;;
9493 *Sun\ F
*) # Sun Fortran 8.3
9494 tmp_sharedflag
='-G' ;;
9496 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9498 if test "x$supports_anon_versioning" = xyes
; then
9499 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9500 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9501 echo "local: *; };" >> $output_objdir/$libname.ver~
9502 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9505 case $cc_basename in
9506 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9507 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9508 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9509 hardcode_libdir_flag_spec
=
9510 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9511 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9512 if test "x$supports_anon_versioning" = xyes
; then
9513 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9514 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9515 echo "local: *; };" >> $output_objdir/$libname.ver~
9516 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9526 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9527 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9530 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9531 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9536 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9540 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9541 *** create shared libraries on Solaris systems. Therefore, libtool
9542 *** is disabling shared libraries support. We urge you to upgrade GNU
9543 *** binutils to release 2.9.1 or newer. Another option is to modify
9544 *** your PATH or compiler configuration so that the native linker is
9545 *** used, and then restart.
9548 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9549 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9550 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9556 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9557 case `$LD -v 2>&1` in
9558 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9562 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9563 *** reliably create shared libraries on SCO systems. Therefore, libtool
9564 *** is disabling shared libraries support. We urge you to upgrade GNU
9565 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9566 *** your PATH or compiler configuration so that the native linker is
9567 *** used, and then restart.
9572 # For security reasons, it is highly recommended that you always
9573 # use absolute paths for naming shared libraries, and exclude the
9574 # DT_RUNPATH tag from executables and libraries. But doing so
9575 # requires that you compile everything twice, which is a pain.
9576 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9577 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9578 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9579 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9588 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9591 hardcode_shlibpath_var
=no
9595 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9596 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9604 if test "$ld_shlibs" = no
; then
9606 hardcode_libdir_flag_spec
=
9607 export_dynamic_flag_spec
=
9608 whole_archive_flag_spec
=
9611 # PORTME fill in a description of your system's linker (not GNU ld)
9614 allow_undefined_flag
=unsupported
9615 always_export_symbols
=yes
9616 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'
9617 # Note: this linker hardcodes the directories in LIBPATH if there
9618 # are no directories specified by -L.
9619 hardcode_minus_L
=yes
9620 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9621 # Neither direct hardcoding nor static linking is supported with a
9623 hardcode_direct
=unsupported
9628 if test "$host_cpu" = ia64
; then
9629 # On IA64, the linker does run time linking by default, so we don't
9630 # have to do anything special.
9631 aix_use_runtimelinking
=no
9632 exp_sym_flag
='-Bexport'
9635 # If we're using GNU nm, then we don't want the "-C" option.
9636 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9637 # Also, AIX nm treats weak defined symbols like other global
9638 # defined symbols, whereas GNU nm marks them as "W".
9639 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9640 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'
9642 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'
9644 aix_use_runtimelinking
=no
9646 # Test if we are trying to use run time linking or normal
9647 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9648 # need to do runtime linking.
9649 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9650 for ld_flag
in $LDFLAGS; do
9651 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9652 aix_use_runtimelinking
=yes
9659 exp_sym_flag
='-bexport'
9660 no_entry_flag
='-bnoentry'
9663 # When large executables or shared objects are built, AIX ld can
9664 # have problems creating the table of contents. If linking a library
9665 # or program results in "error TOC overflow" add -mminimal-toc to
9666 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9667 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9671 hardcode_direct_absolute
=yes
9672 hardcode_libdir_separator
=':'
9673 link_all_deplibs
=yes
9674 file_list_spec
='${wl}-f,'
9676 if test "$GCC" = yes; then
9677 case $host_os in aix4.
[012]|aix4.
[012].
*)
9678 # We only want to do this on AIX 4.2 and lower, the check
9679 # below for broken collect2 doesn't work under 4.3+
9680 collect2name
=`${CC} -print-prog-name=collect2`
9681 if test -f "$collect2name" &&
9682 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9684 # We have reworked collect2
9687 # We have old collect2
9688 hardcode_direct
=unsupported
9689 # It fails to find uninstalled libraries when the uninstalled
9690 # path is not listed in the libpath. Setting hardcode_minus_L
9691 # to unsupported forces relinking
9692 hardcode_minus_L
=yes
9693 hardcode_libdir_flag_spec
='-L$libdir'
9694 hardcode_libdir_separator
=
9698 shared_flag
='-shared'
9699 if test "$aix_use_runtimelinking" = yes; then
9700 shared_flag
="$shared_flag "'${wl}-G'
9704 if test "$host_cpu" = ia64
; then
9705 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9706 # chokes on -Wl,-G. The following line is correct:
9709 if test "$aix_use_runtimelinking" = yes; then
9710 shared_flag
='${wl}-G'
9712 shared_flag
='${wl}-bM:SRE'
9717 export_dynamic_flag_spec
='${wl}-bexpall'
9718 # It seems that -bexpall does not export symbols beginning with
9719 # underscore (_), so it is better to generate a list of symbols to export.
9720 always_export_symbols
=yes
9721 if test "$aix_use_runtimelinking" = yes; then
9722 # Warning - without using the other runtime loading flags (-brtl),
9723 # -berok will link without error, but may produce a broken library.
9724 allow_undefined_flag
='-berok'
9725 # Determine the default libpath from the value encoded in an
9727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9738 if ac_fn_c_try_link
"$LINENO"; then :
9740 lt_aix_libpath_sed
='
9741 /Import File Strings/,/^$/ {
9747 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9748 # Check for a 64-bit object if we didn't find anything.
9749 if test -z "$aix_libpath"; then
9750 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9753 rm -f core conftest.err conftest.
$ac_objext \
9754 conftest
$ac_exeext conftest.
$ac_ext
9755 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9757 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9758 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"
9760 if test "$host_cpu" = ia64
; then
9761 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9762 allow_undefined_flag
="-z nodefs"
9763 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"
9765 # Determine the default libpath from the value encoded in an
9767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9778 if ac_fn_c_try_link
"$LINENO"; then :
9780 lt_aix_libpath_sed
='
9781 /Import File Strings/,/^$/ {
9787 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9788 # Check for a 64-bit object if we didn't find anything.
9789 if test -z "$aix_libpath"; then
9790 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9793 rm -f core conftest.err conftest.
$ac_objext \
9794 conftest
$ac_exeext conftest.
$ac_ext
9795 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9797 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9798 # Warning - without using the other run time loading flags,
9799 # -berok will link without error, but may produce a broken library.
9800 no_undefined_flag
=' ${wl}-bernotok'
9801 allow_undefined_flag
=' ${wl}-berok'
9802 if test "$with_gnu_ld" = yes; then
9803 # We only use this code for GNU lds that support --whole-archive.
9804 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9806 # Exported symbols can be pulled into shared objects from archives
9807 whole_archive_flag_spec
='$convenience'
9809 archive_cmds_need_lc
=yes
9810 # This is similar to how AIX traditionally builds its shared libraries.
9811 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'
9819 # see comment about AmigaOS4 .so support
9820 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9821 archive_expsym_cmds
=''
9824 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)'
9825 hardcode_libdir_flag_spec
='-L$libdir'
9826 hardcode_minus_L
=yes
9832 export_dynamic_flag_spec
=-rdynamic
9835 cygwin
* | mingw
* | pw32
* | cegcc
*)
9836 # When not using gcc, we currently assume that we are using
9837 # Microsoft Visual C++.
9838 # hardcode_libdir_flag_spec is actually meaningless, as there is
9839 # no search path for DLLs.
9840 hardcode_libdir_flag_spec
=' '
9841 allow_undefined_flag
=unsupported
9842 # Tell ltmain to make .lib files, not .a files.
9844 # Tell ltmain to make .dll files, not .so files.
9846 # FIXME: Setting linknames here is a bad hack.
9847 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9848 # The linker will automatically build a .lib file if we build a DLL.
9849 old_archive_from_new_cmds
='true'
9850 # FIXME: Should let the user specify the lib program.
9851 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9852 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9853 enable_shared_with_static_runtimes
=yes
9856 darwin
* | rhapsody
*)
9859 archive_cmds_need_lc
=no
9861 hardcode_automatic
=yes
9862 hardcode_shlibpath_var
=unsupported
9863 if test "$lt_cv_ld_force_load" = "yes"; then
9864 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\"`'
9866 whole_archive_flag_spec
=''
9868 link_all_deplibs
=yes
9869 allow_undefined_flag
="$_lt_dar_allow_undefined"
9870 case $cc_basename in
9871 ifort
*) _lt_dar_can_shared
=yes ;;
9872 *) _lt_dar_can_shared
=$GCC ;;
9874 if test "$_lt_dar_can_shared" = "yes"; then
9875 output_verbose_link_cmd
=func_echo_all
9876 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9877 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9878 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}"
9879 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}"
9888 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9889 hardcode_libdir_flag_spec
='-L$libdir'
9890 hardcode_shlibpath_var
=no
9893 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9894 # support. Future versions do this automatically, but an explicit c++rt0.o
9895 # does not break anything, and helps significantly (at the cost of a little
9898 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9899 hardcode_libdir_flag_spec
='-R$libdir'
9901 hardcode_shlibpath_var
=no
9904 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9906 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9908 hardcode_minus_L
=yes
9909 hardcode_shlibpath_var
=no
9912 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9913 freebsd
* | dragonfly
*)
9914 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9915 hardcode_libdir_flag_spec
='-R$libdir'
9917 hardcode_shlibpath_var
=no
9921 if test "$GCC" = yes; then
9922 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'
9924 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'
9926 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9927 hardcode_libdir_separator
=:
9930 # hardcode_minus_L: Not really in the search PATH,
9931 # but as the default location of the library.
9932 hardcode_minus_L
=yes
9933 export_dynamic_flag_spec
='${wl}-E'
9937 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9938 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9940 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9942 if test "$with_gnu_ld" = no
; then
9943 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9944 hardcode_libdir_flag_spec_ld
='+b $libdir'
9945 hardcode_libdir_separator
=:
9947 hardcode_direct_absolute
=yes
9948 export_dynamic_flag_spec
='${wl}-E'
9949 # hardcode_minus_L: Not really in the search PATH,
9950 # but as the default location of the library.
9951 hardcode_minus_L
=yes
9956 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9959 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9962 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9965 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9971 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9974 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9978 # Older versions of the 11.00 compiler do not understand -b yet
9979 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9981 $as_echo_n "checking if $CC understands -b... " >&6; }
9982 if ${lt_cv_prog_compiler__b+:} false
; then :
9983 $as_echo_n "(cached) " >&6
9985 lt_cv_prog_compiler__b
=no
9986 save_LDFLAGS
="$LDFLAGS"
9987 LDFLAGS
="$LDFLAGS -b"
9988 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9989 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9990 # The linker can only warn and ignore the option if not recognized
9991 # So say no if there are warnings
9992 if test -s conftest.err
; then
9993 # Append any errors to the config.log.
9994 cat conftest.err
1>&5
9995 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9996 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9997 if diff conftest.exp conftest.er2
>/dev
/null
; then
9998 lt_cv_prog_compiler__b
=yes
10001 lt_cv_prog_compiler__b
=yes
10005 LDFLAGS
="$save_LDFLAGS"
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10009 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10011 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
10012 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10014 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10020 if test "$with_gnu_ld" = no
; then
10021 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10022 hardcode_libdir_separator
=:
10027 hardcode_shlibpath_var
=no
10030 hardcode_direct
=yes
10031 hardcode_direct_absolute
=yes
10032 export_dynamic_flag_spec
='${wl}-E'
10034 # hardcode_minus_L: Not really in the search PATH,
10035 # but as the default location of the library.
10036 hardcode_minus_L
=yes
10042 irix5
* | irix6
* | nonstopux
*)
10043 if test "$GCC" = yes; then
10044 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'
10045 # Try to use the -exported_symbol ld option, if it does not
10046 # work, assume that -exports_file does not work either and
10047 # implicitly export all symbols.
10048 save_LDFLAGS
="$LDFLAGS"
10049 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10051 /* end confdefs.h. */
10054 if ac_fn_c_try_link
"$LINENO"; then :
10055 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'
10058 rm -f core conftest.err conftest.
$ac_objext \
10059 conftest
$ac_exeext conftest.
$ac_ext
10060 LDFLAGS
="$save_LDFLAGS"
10062 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'
10063 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'
10065 archive_cmds_need_lc
='no'
10066 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10067 hardcode_libdir_separator
=:
10069 link_all_deplibs
=yes
10073 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10074 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10076 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10078 hardcode_libdir_flag_spec
='-R$libdir'
10079 hardcode_direct
=yes
10080 hardcode_shlibpath_var
=no
10084 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10085 hardcode_direct
=yes
10086 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10087 hardcode_libdir_separator
=:
10088 hardcode_shlibpath_var
=no
10095 if test -f /usr
/libexec
/ld.so
; then
10096 hardcode_direct
=yes
10097 hardcode_shlibpath_var
=no
10098 hardcode_direct_absolute
=yes
10099 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10100 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10101 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10102 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10103 export_dynamic_flag_spec
='${wl}-E'
10106 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10107 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10108 hardcode_libdir_flag_spec
='-R$libdir'
10111 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10112 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10122 hardcode_libdir_flag_spec
='-L$libdir'
10123 hardcode_minus_L
=yes
10124 allow_undefined_flag
=unsupported
10125 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'
10126 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10130 if test "$GCC" = yes; then
10131 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10132 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'
10134 allow_undefined_flag
=' -expect_unresolved \*'
10135 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'
10137 archive_cmds_need_lc
='no'
10138 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10139 hardcode_libdir_separator
=:
10142 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10143 if test "$GCC" = yes; then
10144 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10145 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'
10146 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10148 allow_undefined_flag
=' -expect_unresolved \*'
10149 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'
10150 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~
10151 $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'
10153 # Both c and cxx compiler support -rpath directly
10154 hardcode_libdir_flag_spec
='-rpath $libdir'
10156 archive_cmds_need_lc
='no'
10157 hardcode_libdir_separator
=:
10161 no_undefined_flag
=' -z defs'
10162 if test "$GCC" = yes; then
10164 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10165 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10166 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10168 case `$CC -V 2>&1` in
10171 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10172 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10173 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10177 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10178 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10179 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10183 hardcode_libdir_flag_spec
='-R$libdir'
10184 hardcode_shlibpath_var
=no
10186 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10188 # The compiler driver will combine and reorder linker options,
10189 # but understands `-z linker_flag'. GCC discards it without `$wl',
10190 # but is careful enough not to reorder.
10191 # Supported since Solaris 2.6 (maybe 2.5.1?)
10192 if test "$GCC" = yes; then
10193 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10195 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10199 link_all_deplibs
=yes
10203 if test "x$host_vendor" = xsequent
; then
10204 # Use $CC to link under sequent, because it throws in some extra .o
10205 # files that make .init and .fini sections work.
10206 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10208 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10210 hardcode_libdir_flag_spec
='-L$libdir'
10211 hardcode_direct
=yes
10212 hardcode_minus_L
=yes
10213 hardcode_shlibpath_var
=no
10217 case $host_vendor in
10219 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10220 hardcode_direct
=yes # is this really true???
10223 ## LD is ld it makes a PLAMLIB
10224 ## CC just makes a GrossModule.
10225 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10226 reload_cmds
='$CC -r -o $output$reload_objs'
10230 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10231 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10234 runpath_var
='LD_RUN_PATH'
10235 hardcode_shlibpath_var
=no
10239 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10240 hardcode_shlibpath_var
=no
10241 export_dynamic_flag_spec
='-Bexport'
10245 if test -d /usr
/nec
; then
10246 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10247 hardcode_shlibpath_var
=no
10248 runpath_var
=LD_RUN_PATH
10249 hardcode_runpath_var
=yes
10254 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10255 no_undefined_flag
='${wl}-z,text'
10256 archive_cmds_need_lc
=no
10257 hardcode_shlibpath_var
=no
10258 runpath_var
='LD_RUN_PATH'
10260 if test "$GCC" = yes; then
10261 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10262 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10265 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10269 sysv5
* | sco3.2v5
* | sco5v6
*)
10270 # Note: We can NOT use -z defs as we might desire, because we do not
10271 # link with -lc, and that would cause any symbols used from libc to
10272 # always be unresolved, which means just about no library would
10273 # ever link correctly. If we're not using GNU ld we use -z text
10274 # though, which does catch some bad symbols but isn't as heavy-handed
10276 no_undefined_flag
='${wl}-z,text'
10277 allow_undefined_flag
='${wl}-z,nodefs'
10278 archive_cmds_need_lc
=no
10279 hardcode_shlibpath_var
=no
10280 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10281 hardcode_libdir_separator
=':'
10282 link_all_deplibs
=yes
10283 export_dynamic_flag_spec
='${wl}-Bexport'
10284 runpath_var
='LD_RUN_PATH'
10286 if test "$GCC" = yes; then
10287 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10288 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10290 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10291 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10296 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10297 hardcode_libdir_flag_spec
='-L$libdir'
10298 hardcode_shlibpath_var
=no
10306 if test x
$host_vendor = xsni
; then
10308 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10309 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10316 $as_echo "$ld_shlibs" >&6; }
10317 test "$ld_shlibs" = no
&& can_build_shared
=no
10319 with_gnu_ld
=$with_gnu_ld
10336 # Do we need to explicitly link libc?
10338 case "x$archive_cmds_need_lc" in
10340 # Assume -lc should be added
10341 archive_cmds_need_lc
=yes
10343 if test "$enable_shared" = yes && test "$GCC" = yes; then
10344 case $archive_cmds in
10346 # FIXME: we may have to deal with multi-command sequences.
10349 # Test whether the compiler implicitly links with -lc since on some
10350 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10351 # to ld, don't add -lc before -lgcc.
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10353 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10354 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10355 $as_echo_n "(cached) " >&6
10358 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10361 (eval $ac_compile) 2>&5
10363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10364 test $ac_status = 0; } 2>conftest.err
; then
10367 libobjs
=conftest.
$ac_objext
10369 wl
=$lt_prog_compiler_wl
10370 pic_flag
=$lt_prog_compiler_pic
10376 lt_save_allow_undefined_flag
=$allow_undefined_flag
10377 allow_undefined_flag
=
10378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10379 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10382 test $ac_status = 0; }
10384 lt_cv_archive_cmds_need_lc
=no
10386 lt_cv_archive_cmds_need_lc
=yes
10388 allow_undefined_flag
=$lt_save_allow_undefined_flag
10390 cat conftest.err
1>&5
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10396 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10397 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10561 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10563 if test "$GCC" = yes; then
10565 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10566 *) lt_awk_arg
="/^libraries:/" ;;
10569 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10570 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10572 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10573 case $lt_search_path_spec in
10575 # if the path contains ";" then we assume it to be the separator
10576 # otherwise default to the standard path separator (i.e. ":") - it is
10577 # assumed that no part of a normal pathname contains ";" but that should
10578 # okay in the real world where ";" in dirpaths is itself problematic.
10579 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10582 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10585 # Ok, now we have the path, separated by spaces, we can step through it
10586 # and add multilib dir if necessary.
10587 lt_tmp_lt_search_path_spec
=
10588 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10589 for lt_sys_path
in $lt_search_path_spec; do
10590 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10591 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10593 test -d "$lt_sys_path" && \
10594 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10597 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10598 BEGIN {RS=" "; FS="/|\n";} {
10601 for (lt_i = NF; lt_i > 0; lt_i--) {
10602 if ($lt_i != "" && $lt_i != ".") {
10603 if ($lt_i == "..") {
10606 if (lt_count == 0) {
10607 lt_foo="/" $lt_i lt_foo;
10614 if (lt_foo != "") { lt_freq[lt_foo]++; }
10615 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10617 # AWK program above erroneously prepends '/' to C:/dos/paths
10620 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10621 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10623 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10625 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10627 library_names_spec
=
10628 libname_spec
='lib$name'
10632 postuninstall_cmds
=
10636 shlibpath_overrides_runpath
=unknown
10638 dynamic_linker
="$host_os ld.so"
10639 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10640 need_lib_prefix
=unknown
10641 hardcode_into_libs
=no
10643 # when you set need_version to no, make sure it does not cause -set_version
10644 # flags to be left without arguments
10645 need_version
=unknown
10650 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10651 shlibpath_var
=LIBPATH
10653 # AIX 3 has no versioning support, so we append a major version to the name.
10654 soname_spec
='${libname}${release}${shared_ext}$major'
10661 hardcode_into_libs
=yes
10662 if test "$host_cpu" = ia64
; then
10663 # AIX 5 supports IA64
10664 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10665 shlibpath_var
=LD_LIBRARY_PATH
10667 # With GCC up to 2.95.x, collect2 would create an import file
10668 # for dependence libraries. The import file would start with
10669 # the line `#! .'. This would cause the generated library to
10670 # depend on `.', always an invalid library. This was fixed in
10671 # development snapshots of GCC prior to 3.0.
10673 aix4 | aix4.
[01] | aix4.
[01].
*)
10674 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10676 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10679 can_build_shared
=no
10683 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10684 # soname into executable. Probably we can add versioning support to
10685 # collect2, so additional links can be useful in future.
10686 if test "$aix_use_runtimelinking" = yes; then
10687 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10688 # instead of lib<name>.a to let people know that these are not
10689 # typical AIX shared libraries.
10690 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692 # We preserve .a as extension for shared libraries through AIX4.2
10693 # and later when we are not doing run time linking.
10694 library_names_spec
='${libname}${release}.a $libname.a'
10695 soname_spec
='${libname}${release}${shared_ext}$major'
10697 shlibpath_var
=LIBPATH
10704 # Since July 2007 AmigaOS4 officially supports .so libraries.
10705 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10706 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10709 library_names_spec
='$libname.ixlibrary $libname.a'
10710 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10711 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'
10717 library_names_spec
='${libname}${shared_ext}'
10718 dynamic_linker
="$host_os ld.so"
10719 shlibpath_var
=LIBRARY_PATH
10725 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10726 soname_spec
='${libname}${release}${shared_ext}$major'
10727 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10728 shlibpath_var
=LD_LIBRARY_PATH
10729 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10730 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10731 # the default ld.so.conf also contains /usr/contrib/lib and
10732 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10733 # libtool to hard-code these into programs
10736 cygwin
* | mingw
* | pw32
* | cegcc
*)
10737 version_type
=windows
10742 case $GCC,$host_os in
10743 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10744 library_names_spec
='$libname.dll.a'
10745 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10746 postinstall_cmds
='base_file=`basename \${file}`~
10747 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10748 dldir=$destdir/`dirname \$dlpath`~
10749 test -d \$dldir || mkdir -p \$dldir~
10750 $install_prog $dir/$dlname \$dldir/$dlname~
10751 chmod a+x \$dldir/$dlname~
10752 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10753 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10755 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10756 dlpath=$dir/\$dldll~
10758 shlibpath_overrides_runpath
=yes
10762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10763 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10765 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10768 # MinGW DLLs use traditional 'lib' prefix
10769 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10772 # pw32 DLLs use 'pw' prefix rather than 'lib'
10773 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10779 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10782 dynamic_linker
='Win32 ld.exe'
10783 # FIXME: first we should search . and the directory the executable is in
10787 darwin
* | rhapsody
*)
10788 dynamic_linker
="$host_os dyld"
10789 version_type
=darwin
10792 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10793 soname_spec
='${libname}${release}${major}$shared_ext'
10794 shlibpath_overrides_runpath
=yes
10795 shlibpath_var
=DYLD_LIBRARY_PATH
10796 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10798 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10799 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10806 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10807 soname_spec
='${libname}${release}${shared_ext}$major'
10808 shlibpath_var
=LD_LIBRARY_PATH
10811 freebsd
* | dragonfly
*)
10812 # DragonFly does not have aout. When/if they implement a new
10813 # versioning mechanism, adjust this.
10814 if test -x /usr
/bin
/objformat
; then
10815 objformat
=`/usr/bin/objformat`
10818 freebsd
[23].
*) objformat
=aout
;;
10819 *) objformat
=elf
;;
10822 version_type
=freebsd-
$objformat
10823 case $version_type in
10825 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10830 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10834 shlibpath_var
=LD_LIBRARY_PATH
10837 shlibpath_overrides_runpath
=yes
10839 freebsd3.
[01]* | freebsdelf3.
[01]*)
10840 shlibpath_overrides_runpath
=yes
10841 hardcode_into_libs
=yes
10843 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10844 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10845 shlibpath_overrides_runpath
=no
10846 hardcode_into_libs
=yes
10848 *) # from 4.6 on, and DragonFly
10849 shlibpath_overrides_runpath
=yes
10850 hardcode_into_libs
=yes
10859 dynamic_linker
="$host_os runtime_loader"
10860 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10861 soname_spec
='${libname}${release}${shared_ext}$major'
10862 shlibpath_var
=LIBRARY_PATH
10863 shlibpath_overrides_runpath
=yes
10864 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10865 hardcode_into_libs
=yes
10868 hpux9
* | hpux10
* | hpux11
*)
10869 # Give a soname corresponding to the major version so that dld.sl refuses to
10870 # link against other versions.
10877 hardcode_into_libs
=yes
10878 dynamic_linker
="$host_os dld.so"
10879 shlibpath_var
=LD_LIBRARY_PATH
10880 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10881 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10882 soname_spec
='${libname}${release}${shared_ext}$major'
10883 if test "X$HPUX_IA64_MODE" = X32
; then
10884 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10886 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10888 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10892 hardcode_into_libs
=yes
10893 dynamic_linker
="$host_os dld.sl"
10894 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10895 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10896 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10897 soname_spec
='${libname}${release}${shared_ext}$major'
10898 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10899 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10903 dynamic_linker
="$host_os dld.sl"
10904 shlibpath_var
=SHLIB_PATH
10905 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10906 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10907 soname_spec
='${libname}${release}${shared_ext}$major'
10910 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10911 postinstall_cmds
='chmod 555 $lib'
10912 # or fails outright, so override atomically:
10913 install_override_mode
=555
10920 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10921 soname_spec
='${libname}${release}${shared_ext}$major'
10922 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10923 shlibpath_var
=LD_LIBRARY_PATH
10924 shlibpath_overrides_runpath
=no
10925 hardcode_into_libs
=yes
10928 irix5
* | irix6
* | nonstopux
*)
10930 nonstopux
*) version_type
=nonstopux
;;
10932 if test "$lt_cv_prog_gnu_ld" = yes; then
10940 soname_spec
='${libname}${release}${shared_ext}$major'
10941 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10943 irix5
* | nonstopux
*)
10944 libsuff
= shlibsuff
=
10947 case $LD in # libtool.m4 will add one of these switches to LD
10948 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10949 libsuff
= shlibsuff
= libmagic
=32-bit;;
10950 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10951 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10952 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10953 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10954 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10958 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10959 shlibpath_overrides_runpath
=no
10960 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10961 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10962 hardcode_into_libs
=yes
10965 # No shared lib support for Linux oldld, aout, or coff.
10966 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10970 # This must be Linux ELF.
10972 # uclinux* changes (here and below) have been submitted to the libtool
10973 # project, but have not yet been accepted: they are GCC-local changes
10974 # for the time being. (See
10975 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10976 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
10980 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10981 soname_spec
='${libname}${release}${shared_ext}$major'
10982 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10983 shlibpath_var
=LD_LIBRARY_PATH
10984 shlibpath_overrides_runpath
=no
10986 # Some binutils ld are patched to set DT_RUNPATH
10987 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10988 $as_echo_n "(cached) " >&6
10990 lt_cv_shlibpath_overrides_runpath
=no
10991 save_LDFLAGS
=$LDFLAGS
10992 save_libdir
=$libdir
10993 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10994 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
11006 if ac_fn_c_try_link
"$LINENO"; then :
11007 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11008 lt_cv_shlibpath_overrides_runpath
=yes
11011 rm -f core conftest.err conftest.
$ac_objext \
11012 conftest
$ac_exeext conftest.
$ac_ext
11013 LDFLAGS
=$save_LDFLAGS
11014 libdir
=$save_libdir
11018 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11020 # This implies no fast_install, which is unacceptable.
11021 # Some rework will be needed to allow for fast_install
11022 # before this can be enabled.
11023 hardcode_into_libs
=yes
11025 # Append ld.so.conf contents to the search path
11026 if test -f /etc
/ld.so.conf
; then
11027 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' ' '`
11028 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11031 # We used to test for /lib/ld.so.1 and disable shared libraries on
11032 # powerpc, because MkLinux only supported shared libraries with the
11033 # GNU dynamic linker. Since this was broken with cross compilers,
11034 # most powerpc-linux boxes support dynamic linking these days and
11035 # people can always --disable-shared, the test was removed, and we
11036 # assume the GNU/Linux dynamic linker is in use.
11037 dynamic_linker
='GNU/Linux ld.so'
11044 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11045 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11046 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11047 dynamic_linker
='NetBSD (a.out) ld.so'
11049 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11050 soname_spec
='${libname}${release}${shared_ext}$major'
11051 dynamic_linker
='NetBSD ld.elf_so'
11053 shlibpath_var
=LD_LIBRARY_PATH
11054 shlibpath_overrides_runpath
=yes
11055 hardcode_into_libs
=yes
11060 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11061 shlibpath_var
=LD_LIBRARY_PATH
11062 shlibpath_overrides_runpath
=yes
11069 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11070 soname_spec
='${libname}${release}${shared_ext}$major'
11071 shlibpath_var
=LD_LIBRARY_PATH
11072 shlibpath_overrides_runpath
=no
11073 hardcode_into_libs
=yes
11074 dynamic_linker
='ldqnx.so'
11079 sys_lib_dlsearch_path_spec
="/usr/lib"
11081 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11083 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
11084 *) need_version
=no
;;
11086 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11087 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11088 shlibpath_var
=LD_LIBRARY_PATH
11089 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11091 openbsd2.
[89] | openbsd2.
[89].
*)
11092 shlibpath_overrides_runpath
=no
11095 shlibpath_overrides_runpath
=yes
11099 shlibpath_overrides_runpath
=yes
11104 libname_spec
='$name'
11107 library_names_spec
='$libname${shared_ext} $libname.a'
11108 dynamic_linker
='OS/2 ld.exe'
11109 shlibpath_var
=LIBPATH
11112 osf3
* | osf4
* | osf5
*)
11116 soname_spec
='${libname}${release}${shared_ext}$major'
11117 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11118 shlibpath_var
=LD_LIBRARY_PATH
11119 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11120 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11131 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11132 soname_spec
='${libname}${release}${shared_ext}$major'
11133 shlibpath_var
=LD_LIBRARY_PATH
11134 shlibpath_overrides_runpath
=yes
11135 hardcode_into_libs
=yes
11136 # ldd complains unless libraries are executable
11137 postinstall_cmds
='chmod +x $lib'
11142 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11143 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11144 shlibpath_var
=LD_LIBRARY_PATH
11145 shlibpath_overrides_runpath
=yes
11146 if test "$with_gnu_ld" = yes; then
11154 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155 soname_spec
='${libname}${release}${shared_ext}$major'
11156 shlibpath_var
=LD_LIBRARY_PATH
11157 case $host_vendor in
11159 shlibpath_overrides_runpath
=no
11161 runpath_var
=LD_RUN_PATH
11169 shlibpath_overrides_runpath
=no
11170 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11176 if test -d /usr
/nec
;then
11178 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11179 soname_spec
='$libname${shared_ext}.$major'
11180 shlibpath_var
=LD_LIBRARY_PATH
11184 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11185 version_type
=freebsd-elf
11188 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11189 soname_spec
='${libname}${release}${shared_ext}$major'
11190 shlibpath_var
=LD_LIBRARY_PATH
11191 shlibpath_overrides_runpath
=yes
11192 hardcode_into_libs
=yes
11193 if test "$with_gnu_ld" = yes; then
11194 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11196 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11199 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11203 sys_lib_dlsearch_path_spec
='/usr/lib'
11207 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11211 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11212 shlibpath_var
=LD_LIBRARY_PATH
11213 shlibpath_overrides_runpath
=no
11214 hardcode_into_libs
=yes
11219 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11220 soname_spec
='${libname}${release}${shared_ext}$major'
11221 shlibpath_var
=LD_LIBRARY_PATH
11224 # Shared libraries for VwWorks, >= 7 only at this stage
11225 # and (fpic) still incompatible with "large" code models
11226 # in a few configurations. Only for RTP mode in any case,
11227 # and upon explicit request at configure time.
11230 case ${with_multisubdir}-${enable_shared} in
11237 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11238 soname_spec
='${libname}${release}${shared_ext}$major'
11239 dynamic_linker
="$host_os module_loader"
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11248 $as_echo "$dynamic_linker" >&6; }
11249 test "$dynamic_linker" = no
&& can_build_shared
=no
11251 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11252 if test "$GCC" = yes; then
11253 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11256 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11257 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11259 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11260 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11355 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11357 if test -n "$hardcode_libdir_flag_spec" ||
11358 test -n "$runpath_var" ||
11359 test "X$hardcode_automatic" = "Xyes" ; then
11361 # We can hardcode non-existent directories.
11362 if test "$hardcode_direct" != no
&&
11363 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11364 # have to relink, otherwise we might link with an installed library
11365 # when we should be linking with a yet-to-be-installed one
11366 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11367 test "$hardcode_minus_L" != no
; then
11368 # Linking always hardcodes the temporary library directory.
11369 hardcode_action
=relink
11371 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11372 hardcode_action
=immediate
11375 # We cannot hardcode anything, or else we can only hardcode existing
11377 hardcode_action
=unsupported
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11380 $as_echo "$hardcode_action" >&6; }
11382 if test "$hardcode_action" = relink ||
11383 test "$inherit_rpath" = yes; then
11384 # Fast installation is not supported
11385 enable_fast_install
=no
11386 elif test "$shlibpath_overrides_runpath" = yes ||
11387 test "$enable_shared" = no
; then
11388 # Fast installation is not necessary
11389 enable_fast_install
=needless
11397 if test "x$enable_dlopen" != xyes
; then
11398 enable_dlopen
=unknown
11399 enable_dlopen_self
=unknown
11400 enable_dlopen_self_static
=unknown
11407 lt_cv_dlopen
="load_add_on"
11409 lt_cv_dlopen_self
=yes
11412 mingw
* | pw32
* | cegcc
*)
11413 lt_cv_dlopen
="LoadLibrary"
11418 lt_cv_dlopen
="dlopen"
11423 # if libdl is installed we need to link against it
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11425 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11426 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11427 $as_echo_n "(cached) " >&6
11429 ac_check_lib_save_LIBS
=$LIBS
11431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11432 /* end confdefs.h. */
11434 /* Override any GCC internal prototype to avoid an error.
11435 Use char because int might match the return type of a GCC
11436 builtin and then its argument prototype would still apply. */
11449 if ac_fn_c_try_link
"$LINENO"; then :
11450 ac_cv_lib_dl_dlopen
=yes
11452 ac_cv_lib_dl_dlopen
=no
11454 rm -f core conftest.err conftest.
$ac_objext \
11455 conftest
$ac_exeext conftest.
$ac_ext
11456 LIBS
=$ac_check_lib_save_LIBS
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11459 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11460 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11461 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11464 lt_cv_dlopen
="dyld"
11466 lt_cv_dlopen_self
=yes
11473 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11474 if test "x$ac_cv_func_shl_load" = xyes
; then :
11475 lt_cv_dlopen
="shl_load"
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11478 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11479 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11480 $as_echo_n "(cached) " >&6
11482 ac_check_lib_save_LIBS
=$LIBS
11484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11485 /* end confdefs.h. */
11487 /* Override any GCC internal prototype to avoid an error.
11488 Use char because int might match the return type of a GCC
11489 builtin and then its argument prototype would still apply. */
11497 return shl_load ();
11502 if ac_fn_c_try_link
"$LINENO"; then :
11503 ac_cv_lib_dld_shl_load
=yes
11505 ac_cv_lib_dld_shl_load
=no
11507 rm -f core conftest.err conftest.
$ac_objext \
11508 conftest
$ac_exeext conftest.
$ac_ext
11509 LIBS
=$ac_check_lib_save_LIBS
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11512 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11513 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11514 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11516 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11517 if test "x$ac_cv_func_dlopen" = xyes
; then :
11518 lt_cv_dlopen
="dlopen"
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11521 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11522 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11523 $as_echo_n "(cached) " >&6
11525 ac_check_lib_save_LIBS
=$LIBS
11527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11528 /* end confdefs.h. */
11530 /* Override any GCC internal prototype to avoid an error.
11531 Use char because int might match the return type of a GCC
11532 builtin and then its argument prototype would still apply. */
11545 if ac_fn_c_try_link
"$LINENO"; then :
11546 ac_cv_lib_dl_dlopen
=yes
11548 ac_cv_lib_dl_dlopen
=no
11550 rm -f core conftest.err conftest.
$ac_objext \
11551 conftest
$ac_exeext conftest.
$ac_ext
11552 LIBS
=$ac_check_lib_save_LIBS
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11555 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11556 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11557 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11560 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11561 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11562 $as_echo_n "(cached) " >&6
11564 ac_check_lib_save_LIBS
=$LIBS
11565 LIBS
="-lsvld $LIBS"
11566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11567 /* end confdefs.h. */
11569 /* Override any GCC internal prototype to avoid an error.
11570 Use char because int might match the return type of a GCC
11571 builtin and then its argument prototype would still apply. */
11584 if ac_fn_c_try_link
"$LINENO"; then :
11585 ac_cv_lib_svld_dlopen
=yes
11587 ac_cv_lib_svld_dlopen
=no
11589 rm -f core conftest.err conftest.
$ac_objext \
11590 conftest
$ac_exeext conftest.
$ac_ext
11591 LIBS
=$ac_check_lib_save_LIBS
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11594 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11595 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11596 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11599 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11600 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11601 $as_echo_n "(cached) " >&6
11603 ac_check_lib_save_LIBS
=$LIBS
11605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11608 /* Override any GCC internal prototype to avoid an error.
11609 Use char because int might match the return type of a GCC
11610 builtin and then its argument prototype would still apply. */
11618 return dld_link ();
11623 if ac_fn_c_try_link
"$LINENO"; then :
11624 ac_cv_lib_dld_dld_link
=yes
11626 ac_cv_lib_dld_dld_link
=no
11628 rm -f core conftest.err conftest.
$ac_objext \
11629 conftest
$ac_exeext conftest.
$ac_ext
11630 LIBS
=$ac_check_lib_save_LIBS
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11633 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11634 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11635 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11656 if test "x$lt_cv_dlopen" != xno
; then
11662 case $lt_cv_dlopen in
11664 save_CPPFLAGS
="$CPPFLAGS"
11665 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11667 save_LDFLAGS
="$LDFLAGS"
11668 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11671 LIBS
="$lt_cv_dlopen_libs $LIBS"
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11674 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11675 if ${lt_cv_dlopen_self+:} false
; then :
11676 $as_echo_n "(cached) " >&6
11678 if test "$cross_compiling" = yes; then :
11679 lt_cv_dlopen_self
=cross
11681 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11682 lt_status
=$lt_dlunknown
11683 cat > conftest.
$ac_ext <<_LT_EOF
11684 #line 11684 "configure"
11685 #include "confdefs.h"
11694 # define LT_DLGLOBAL RTLD_GLOBAL
11697 # define LT_DLGLOBAL DL_GLOBAL
11699 # define LT_DLGLOBAL 0
11703 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11704 find out it does not work in some platform. */
11705 #ifndef LT_DLLAZY_OR_NOW
11707 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11710 # define LT_DLLAZY_OR_NOW DL_LAZY
11713 # define LT_DLLAZY_OR_NOW RTLD_NOW
11716 # define LT_DLLAZY_OR_NOW DL_NOW
11718 # define LT_DLLAZY_OR_NOW 0
11725 /* When -fvisbility=hidden is used, assume the code has been annotated
11726 correspondingly for the symbols needed. */
11727 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11728 void fnord () __attribute__((visibility("default")));
11731 void fnord () { int i=42; }
11734 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11735 int status = $lt_dlunknown;
11739 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11742 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11743 else puts (dlerror ());
11745 /* dlclose (self); */
11753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11754 (eval $ac_link) 2>&5
11756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11757 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11758 (.
/conftest
; exit; ) >&5 2>/dev
/null
11760 case x
$lt_status in
11761 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11762 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11763 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11766 # compilation failed
11767 lt_cv_dlopen_self
=no
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11775 $as_echo "$lt_cv_dlopen_self" >&6; }
11777 if test "x$lt_cv_dlopen_self" = xyes
; then
11778 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11780 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11781 if ${lt_cv_dlopen_self_static+:} false
; then :
11782 $as_echo_n "(cached) " >&6
11784 if test "$cross_compiling" = yes; then :
11785 lt_cv_dlopen_self_static
=cross
11787 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11788 lt_status
=$lt_dlunknown
11789 cat > conftest.
$ac_ext <<_LT_EOF
11790 #line 11790 "configure"
11791 #include "confdefs.h"
11800 # define LT_DLGLOBAL RTLD_GLOBAL
11803 # define LT_DLGLOBAL DL_GLOBAL
11805 # define LT_DLGLOBAL 0
11809 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11810 find out it does not work in some platform. */
11811 #ifndef LT_DLLAZY_OR_NOW
11813 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11816 # define LT_DLLAZY_OR_NOW DL_LAZY
11819 # define LT_DLLAZY_OR_NOW RTLD_NOW
11822 # define LT_DLLAZY_OR_NOW DL_NOW
11824 # define LT_DLLAZY_OR_NOW 0
11831 /* When -fvisbility=hidden is used, assume the code has been annotated
11832 correspondingly for the symbols needed. */
11833 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11834 void fnord () __attribute__((visibility("default")));
11837 void fnord () { int i=42; }
11840 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11841 int status = $lt_dlunknown;
11845 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11848 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11849 else puts (dlerror ());
11851 /* dlclose (self); */
11859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11860 (eval $ac_link) 2>&5
11862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11863 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11864 (.
/conftest
; exit; ) >&5 2>/dev
/null
11866 case x
$lt_status in
11867 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11868 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11869 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11872 # compilation failed
11873 lt_cv_dlopen_self_static
=no
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11881 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11884 CPPFLAGS
="$save_CPPFLAGS"
11885 LDFLAGS
="$save_LDFLAGS"
11890 case $lt_cv_dlopen_self in
11891 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11892 *) enable_dlopen_self
=unknown
;;
11895 case $lt_cv_dlopen_self_static in
11896 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11897 *) enable_dlopen_self_static
=unknown
;;
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11920 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11921 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11922 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11923 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11925 $as_echo "yes" >&6; }
11927 # FIXME - insert some real tests, host_os isn't really good enough
11930 if test -n "$STRIP" ; then
11931 striplib
="$STRIP -x"
11932 old_striplib
="$STRIP -S"
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11934 $as_echo "yes" >&6; }
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937 $as_echo "no" >&6; }
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942 $as_echo "no" >&6; }
11958 # Report which library types will actually be built
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11960 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11962 $as_echo "$can_build_shared" >&6; }
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11965 $as_echo_n "checking whether to build shared libraries... " >&6; }
11966 test "$can_build_shared" = "no" && enable_shared
=no
11968 # On AIX, shared libraries and static libraries use the same namespace, and
11969 # are all built from PIC.
11972 test "$enable_shared" = yes && enable_static
=no
11973 if test -n "$RANLIB"; then
11974 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11975 postinstall_cmds
='$RANLIB $lib'
11980 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11981 test "$enable_shared" = yes && enable_static
=no
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11986 $as_echo "$enable_shared" >&6; }
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11989 $as_echo_n "checking whether to build static libraries... " >&6; }
11990 # Make sure either enable_shared or enable_static is yes.
11991 test "$enable_shared" = yes || enable_static
=yes
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11993 $as_echo "$enable_static" >&6; }
12000 ac_cpp
='$CPP $CPPFLAGS'
12001 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12002 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12003 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12007 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12008 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12009 (test "X$CXX" != "Xg++"))) ; then
12011 ac_cpp
='$CXXCPP $CPPFLAGS'
12012 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12013 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12014 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12016 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12017 if test -z "$CXXCPP"; then
12018 if ${ac_cv_prog_CXXCPP+:} false
; then :
12019 $as_echo_n "(cached) " >&6
12021 # Double quotes because CXXCPP needs to be expanded
12022 for CXXCPP
in "$CXX -E" "/lib/cpp"
12024 ac_preproc_ok
=false
12025 for ac_cxx_preproc_warn_flag
in '' yes
12027 # Use a header file that comes with gcc, so configuring glibc
12028 # with a fresh cross-compiler works.
12029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12030 # <limits.h> exists even on freestanding compilers.
12031 # On the NeXT, cc -E runs the code through the compiler's parser,
12032 # not just through cpp. "Syntax error" is here to catch this case.
12033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12034 /* end confdefs.h. */
12036 # include <limits.h>
12038 # include <assert.h>
12042 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12045 # Broken: fails on valid input.
12048 rm -f conftest.err conftest.i conftest.
$ac_ext
12050 # OK, works on sane cases. Now check whether nonexistent headers
12051 # can be detected and how.
12052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12053 /* end confdefs.h. */
12054 #include <ac_nonexistent.h>
12056 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12057 # Broken: success on invalid input.
12060 # Passes both tests.
12064 rm -f conftest.err conftest.i conftest.
$ac_ext
12067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12068 rm -f conftest.i conftest.err conftest.
$ac_ext
12069 if $ac_preproc_ok; then :
12074 ac_cv_prog_CXXCPP
=$CXXCPP
12077 CXXCPP
=$ac_cv_prog_CXXCPP
12079 ac_cv_prog_CXXCPP
=$CXXCPP
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12082 $as_echo "$CXXCPP" >&6; }
12083 ac_preproc_ok
=false
12084 for ac_cxx_preproc_warn_flag
in '' yes
12086 # Use a header file that comes with gcc, so configuring glibc
12087 # with a fresh cross-compiler works.
12088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12089 # <limits.h> exists even on freestanding compilers.
12090 # On the NeXT, cc -E runs the code through the compiler's parser,
12091 # not just through cpp. "Syntax error" is here to catch this case.
12092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h. */
12095 # include <limits.h>
12097 # include <assert.h>
12101 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12104 # Broken: fails on valid input.
12107 rm -f conftest.err conftest.i conftest.
$ac_ext
12109 # OK, works on sane cases. Now check whether nonexistent headers
12110 # can be detected and how.
12111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12112 /* end confdefs.h. */
12113 #include <ac_nonexistent.h>
12115 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12116 # Broken: success on invalid input.
12119 # Passes both tests.
12123 rm -f conftest.err conftest.i conftest.
$ac_ext
12126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12127 rm -f conftest.i conftest.err conftest.
$ac_ext
12128 if $ac_preproc_ok; then :
12131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12133 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
12134 See \`config.log' for more details" "$LINENO" 5; }
12138 ac_cpp
='$CPP $CPPFLAGS'
12139 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12140 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12141 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12144 _lt_caught_CXX_error
=yes
12148 ac_cpp
='$CXXCPP $CPPFLAGS'
12149 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12150 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12151 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12153 archive_cmds_need_lc_CXX
=no
12154 allow_undefined_flag_CXX
=
12155 always_export_symbols_CXX
=no
12156 archive_expsym_cmds_CXX
=
12157 compiler_needs_object_CXX
=no
12158 export_dynamic_flag_spec_CXX
=
12159 hardcode_direct_CXX
=no
12160 hardcode_direct_absolute_CXX
=no
12161 hardcode_libdir_flag_spec_CXX
=
12162 hardcode_libdir_flag_spec_ld_CXX
=
12163 hardcode_libdir_separator_CXX
=
12164 hardcode_minus_L_CXX
=no
12165 hardcode_shlibpath_var_CXX
=unsupported
12166 hardcode_automatic_CXX
=no
12167 inherit_rpath_CXX
=no
12169 module_expsym_cmds_CXX
=
12170 link_all_deplibs_CXX
=unknown
12171 old_archive_cmds_CXX
=$old_archive_cmds
12172 reload_flag_CXX
=$reload_flag
12173 reload_cmds_CXX
=$reload_cmds
12174 no_undefined_flag_CXX
=
12175 whole_archive_flag_spec_CXX
=
12176 enable_shared_with_static_runtimes_CXX
=no
12178 # Source file extension for C++ test sources.
12181 # Object file extension for compiled C++ test sources.
12185 # No sense in running all these tests if we already determined that
12186 # the CXX compiler isn't working. Some variables (like enable_shared)
12187 # are currently assumed to apply to all compilers on this platform,
12188 # and will be corrupted by setting them based on a non-working compiler.
12189 if test "$_lt_caught_CXX_error" != yes; then
12190 # Code to be used in simple compile tests
12191 lt_simple_compile_test_code
="int some_variable = 0;"
12193 # Code to be used in simple link tests
12194 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
12196 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12203 # If no C compiler was specified, use CC.
12206 # If no C compiler flags were specified, use CFLAGS.
12207 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12209 # Allow CC to be a program name with arguments.
12213 # save warnings/boilerplate of simple test code
12214 ac_outfile
=conftest.
$ac_objext
12215 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12216 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12217 _lt_compiler_boilerplate
=`cat conftest.err`
12220 ac_outfile
=conftest.
$ac_objext
12221 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12222 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12223 _lt_linker_boilerplate
=`cat conftest.err`
12227 # Allow CC to be a program name with arguments.
12232 lt_save_with_gnu_ld
=$with_gnu_ld
12233 lt_save_path_LD
=$lt_cv_path_LD
12234 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12235 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
12237 $as_unset lt_cv_prog_gnu_ld
12239 if test -n "${lt_cv_path_LDCXX+set}"; then
12240 lt_cv_path_LD
=$lt_cv_path_LDCXX
12242 $as_unset lt_cv_path_LD
12244 test -z "${LDCXX+set}" || LD
=$LDCXX
12248 for cc_temp
in $compiler""; do
12250 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12251 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12256 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12259 if test -n "$compiler"; then
12260 # We don't want -fno-exception when compiling C++ code, so set the
12261 # no_builtin_flag separately
12262 if test "$GXX" = yes; then
12263 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
12265 lt_prog_compiler_no_builtin_flag_CXX
=
12268 if test "$GXX" = yes; then
12269 # Set up default GNU C++ configuration
12273 # Check whether --with-gnu-ld was given.
12274 if test "${with_gnu_ld+set}" = set; then :
12275 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12281 if test "$GCC" = yes; then
12282 # Check if gcc -print-prog-name=ld gives a path.
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12284 $as_echo_n "checking for ld used by $CC... " >&6; }
12287 # gcc leaves a trailing carriage return which upsets mingw
12288 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12290 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12293 # Accept absolute paths.
12295 re_direlt
='/[^/][^/]*/\.\./'
12296 # Canonicalize the pathname of ld
12297 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12298 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12299 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12301 test -z "$LD" && LD
="$ac_prog"
12304 # If it fails, then pretend we aren't using GCC.
12308 # If it is relative, then search for the first ld in PATH.
12309 with_gnu_ld
=unknown
12312 elif test "$with_gnu_ld" = yes; then
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12314 $as_echo_n "checking for GNU ld... " >&6; }
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12317 $as_echo_n "checking for non-GNU ld... " >&6; }
12319 if ${lt_cv_path_LD+:} false
; then :
12320 $as_echo_n "(cached) " >&6
12322 if test -z "$LD"; then
12323 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12324 for ac_dir
in $PATH; do
12326 test -z "$ac_dir" && ac_dir
=.
12327 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12328 lt_cv_path_LD
="$ac_dir/$ac_prog"
12329 # Check to see if the program is GNU ld. I'd rather use --version,
12330 # but apparently some variants of GNU ld only accept -v.
12331 # Break only if it was the GNU/non-GNU ld that we prefer.
12332 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12333 *GNU
* |
*'with BFD'*)
12334 test "$with_gnu_ld" != no
&& break
12337 test "$with_gnu_ld" != yes && break
12344 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12348 LD
="$lt_cv_path_LD"
12349 if test -n "$LD"; then
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12351 $as_echo "$LD" >&6; }
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354 $as_echo "no" >&6; }
12356 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12358 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12359 if ${lt_cv_prog_gnu_ld+:} false
; then :
12360 $as_echo_n "(cached) " >&6
12362 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12363 case `$LD -v 2>&1 </dev/null` in
12364 *GNU
* |
*'with BFD'*)
12365 lt_cv_prog_gnu_ld
=yes
12368 lt_cv_prog_gnu_ld
=no
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12373 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12374 with_gnu_ld
=$lt_cv_prog_gnu_ld
12382 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12383 # archiving commands below assume that GNU ld is being used.
12384 if test "$with_gnu_ld" = yes; then
12385 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12386 archive_expsym_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12388 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12389 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12391 # If archive_cmds runs LD, not CC, wlarc should be empty
12392 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12393 # investigate it a little bit more. (MM)
12396 # ancient GNU ld didn't support --whole-archive et. al.
12397 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12398 $GREP 'no-whole-archive' > /dev
/null
; then
12399 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12401 whole_archive_flag_spec_CXX
=
12407 # A generic and very simple default shared library creation
12408 # command for GNU C++ for the case where it uses the native
12409 # linker, instead of GNU ld. If possible, this setting should
12410 # overridden to take advantage of the native linker features on
12411 # the platform it is being used on.
12412 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12415 # Commands to make compiler produce verbose output that lists
12416 # what "hidden" libraries, object files and flags are used when
12417 # linking a shared library.
12418 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12426 # PORTME: fill in a description of your system's C++ link characteristics
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12428 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12432 # FIXME: insert proper C++ library support
12436 if test "$host_cpu" = ia64
; then
12437 # On IA64, the linker does run time linking by default, so we don't
12438 # have to do anything special.
12439 aix_use_runtimelinking
=no
12440 exp_sym_flag
='-Bexport'
12443 aix_use_runtimelinking
=no
12445 # Test if we are trying to use run time linking or normal
12446 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12447 # need to do runtime linking.
12448 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12449 for ld_flag
in $LDFLAGS; do
12452 aix_use_runtimelinking
=yes
12460 exp_sym_flag
='-bexport'
12461 no_entry_flag
='-bnoentry'
12464 # When large executables or shared objects are built, AIX ld can
12465 # have problems creating the table of contents. If linking a library
12466 # or program results in "error TOC overflow" add -mminimal-toc to
12467 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12468 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12470 archive_cmds_CXX
=''
12471 hardcode_direct_CXX
=yes
12472 hardcode_direct_absolute_CXX
=yes
12473 hardcode_libdir_separator_CXX
=':'
12474 link_all_deplibs_CXX
=yes
12475 file_list_spec_CXX
='${wl}-f,'
12477 if test "$GXX" = yes; then
12478 case $host_os in aix4.
[012]|aix4.
[012].
*)
12479 # We only want to do this on AIX 4.2 and lower, the check
12480 # below for broken collect2 doesn't work under 4.3+
12481 collect2name
=`${CC} -print-prog-name=collect2`
12482 if test -f "$collect2name" &&
12483 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12485 # We have reworked collect2
12488 # We have old collect2
12489 hardcode_direct_CXX
=unsupported
12490 # It fails to find uninstalled libraries when the uninstalled
12491 # path is not listed in the libpath. Setting hardcode_minus_L
12492 # to unsupported forces relinking
12493 hardcode_minus_L_CXX
=yes
12494 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12495 hardcode_libdir_separator_CXX
=
12498 shared_flag
='-shared'
12499 if test "$aix_use_runtimelinking" = yes; then
12500 shared_flag
="$shared_flag "'${wl}-G'
12504 if test "$host_cpu" = ia64
; then
12505 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12506 # chokes on -Wl,-G. The following line is correct:
12509 if test "$aix_use_runtimelinking" = yes; then
12510 shared_flag
='${wl}-G'
12512 shared_flag
='${wl}-bM:SRE'
12517 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
12518 # It seems that -bexpall does not export symbols beginning with
12519 # underscore (_), so it is better to generate a list of symbols to
12521 always_export_symbols_CXX
=yes
12522 if test "$aix_use_runtimelinking" = yes; then
12523 # Warning - without using the other runtime loading flags (-brtl),
12524 # -berok will link without error, but may produce a broken library.
12525 allow_undefined_flag_CXX
='-berok'
12526 # Determine the default libpath from the value encoded in an empty
12528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h. */
12539 if ac_fn_cxx_try_link
"$LINENO"; then :
12541 lt_aix_libpath_sed
='
12542 /Import File Strings/,/^$/ {
12548 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12549 # Check for a 64-bit object if we didn't find anything.
12550 if test -z "$aix_libpath"; then
12551 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12554 rm -f core conftest.err conftest.
$ac_objext \
12555 conftest
$ac_exeext conftest.
$ac_ext
12556 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12558 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12560 archive_expsym_cmds_CXX
='$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"
12562 if test "$host_cpu" = ia64
; then
12563 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
12564 allow_undefined_flag_CXX
="-z nodefs"
12565 archive_expsym_cmds_CXX
="\$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"
12567 # Determine the default libpath from the value encoded in an
12568 # empty executable.
12569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12570 /* end confdefs.h. */
12580 if ac_fn_cxx_try_link
"$LINENO"; then :
12582 lt_aix_libpath_sed
='
12583 /Import File Strings/,/^$/ {
12589 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12590 # Check for a 64-bit object if we didn't find anything.
12591 if test -z "$aix_libpath"; then
12592 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12595 rm -f core conftest.err conftest.
$ac_objext \
12596 conftest
$ac_exeext conftest.
$ac_ext
12597 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12599 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12600 # Warning - without using the other run time loading flags,
12601 # -berok will link without error, but may produce a broken library.
12602 no_undefined_flag_CXX
=' ${wl}-bernotok'
12603 allow_undefined_flag_CXX
=' ${wl}-berok'
12604 if test "$with_gnu_ld" = yes; then
12605 # We only use this code for GNU lds that support --whole-archive.
12606 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12608 # Exported symbols can be pulled into shared objects from archives
12609 whole_archive_flag_spec_CXX
='$convenience'
12611 archive_cmds_need_lc_CXX
=yes
12612 # This is similar to how AIX traditionally builds its shared
12614 archive_expsym_cmds_CXX
="\$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'
12620 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12621 allow_undefined_flag_CXX
=unsupported
12622 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12623 # support --undefined. This deserves some investigation. FIXME
12624 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12631 case $cc_basename in
12633 # FIXME: insert proper C++ library support
12639 cygwin
* | mingw
* | pw32
* | cegcc
*)
12640 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12641 # as there is no search path for DLLs.
12642 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12643 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
12644 allow_undefined_flag_CXX
=unsupported
12645 always_export_symbols_CXX
=no
12646 enable_shared_with_static_runtimes_CXX
=yes
12648 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12649 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12650 # If the export-symbols file already is a .def file (1st line
12651 # is EXPORTS), use it as is; otherwise, prepend...
12652 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12653 cp $export_symbols $output_objdir/$soname.def;
12655 echo EXPORTS > $output_objdir/$soname.def;
12656 cat $export_symbols >> $output_objdir/$soname.def;
12658 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12663 darwin
* | rhapsody
*)
12666 archive_cmds_need_lc_CXX
=no
12667 hardcode_direct_CXX
=no
12668 hardcode_automatic_CXX
=yes
12669 hardcode_shlibpath_var_CXX
=unsupported
12670 if test "$lt_cv_ld_force_load" = "yes"; then
12671 whole_archive_flag_spec_CXX
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12673 whole_archive_flag_spec_CXX
=''
12675 link_all_deplibs_CXX
=yes
12676 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
12677 case $cc_basename in
12678 ifort
*) _lt_dar_can_shared
=yes ;;
12679 *) _lt_dar_can_shared
=$GCC ;;
12681 if test "$_lt_dar_can_shared" = "yes"; then
12682 output_verbose_link_cmd
=func_echo_all
12683 archive_cmds_CXX
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12684 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12685 archive_expsym_cmds_CXX
="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}"
12686 module_expsym_cmds_CXX
="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}"
12687 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12688 archive_cmds_CXX
="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12689 archive_expsym_cmds_CXX
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12699 case $cc_basename in
12701 # FIXME: insert proper C++ library support
12705 # Green Hills C++ Compiler
12706 # FIXME: insert proper C++ library support
12710 # FIXME: insert proper C++ library support
12717 # C++ shared libraries reported to be fairly broken before
12723 archive_cmds_need_lc_CXX
=no
12726 freebsd
* | dragonfly
*)
12727 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12736 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12737 link_all_deplibs_CXX
=yes
12741 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
12742 hardcode_libdir_separator_CXX
=:
12743 export_dynamic_flag_spec_CXX
='${wl}-E'
12744 hardcode_direct_CXX
=yes
12745 hardcode_minus_L_CXX
=yes # Not in the search PATH,
12746 # but as the default
12747 # location of the library.
12749 case $cc_basename in
12751 # FIXME: insert proper C++ library support
12755 archive_cmds_CXX
='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12756 # Commands to make compiler produce verbose output that lists
12757 # what "hidden" libraries, object files and flags are used when
12758 # linking a shared library.
12760 # There doesn't appear to be a way to prevent this compiler from
12761 # explicitly linking system object files so we need to strip them
12762 # from the output so that they don't get included in the library
12764 output_verbose_link_cmd
='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12767 if test "$GXX" = yes; then
12768 archive_cmds_CXX
='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12770 # FIXME: insert proper C++ library support
12778 if test $with_gnu_ld = no
; then
12779 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
12780 hardcode_libdir_separator_CXX
=:
12786 export_dynamic_flag_spec_CXX
='${wl}-E'
12792 hardcode_direct_CXX
=no
12793 hardcode_shlibpath_var_CXX
=no
12796 hardcode_direct_CXX
=yes
12797 hardcode_direct_absolute_CXX
=yes
12798 hardcode_minus_L_CXX
=yes # Not in the search PATH,
12799 # but as the default
12800 # location of the library.
12804 case $cc_basename in
12806 # FIXME: insert proper C++ library support
12812 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12815 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12818 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12821 # Commands to make compiler produce verbose output that lists
12822 # what "hidden" libraries, object files and flags are used when
12823 # linking a shared library.
12825 # There doesn't appear to be a way to prevent this compiler from
12826 # explicitly linking system object files so we need to strip them
12827 # from the output so that they don't get included in the library
12829 output_verbose_link_cmd
='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12832 if test "$GXX" = yes; then
12833 if test $with_gnu_ld = no
; then
12836 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12839 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12842 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12847 # FIXME: insert proper C++ library support
12855 hardcode_direct_CXX
=no
12856 hardcode_shlibpath_var_CXX
=no
12857 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12858 export_dynamic_flag_spec_CXX
='${wl}-E'
12859 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12860 # Instead, shared libraries are loaded at an image base (0x10000000 by
12861 # default) and relocated if they conflict, which is a slow very memory
12862 # consuming and fragmenting process. To avoid this, we pick a random,
12863 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12864 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12865 archive_cmds_CXX
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12866 archive_expsym_cmds_CXX
='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'
12869 case $cc_basename in
12872 archive_cmds_CXX
='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12874 # Archives containing C++ object files must be created using
12875 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12876 # necessary to make sure instantiated templates are included
12878 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
12881 if test "$GXX" = yes; then
12882 if test "$with_gnu_ld" = no
; then
12883 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12885 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12888 link_all_deplibs_CXX
=yes
12891 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12892 hardcode_libdir_separator_CXX
=:
12893 inherit_rpath_CXX
=yes
12896 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12897 case $cc_basename in
12899 # Kuck and Associates, Inc. (KAI) C++ Compiler
12901 # KCC will only create a shared library if the output file
12902 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12903 # to its proper name (with version) after linking.
12904 archive_cmds_CXX
='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12905 archive_expsym_cmds_CXX
='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12906 # Commands to make compiler produce verbose output that lists
12907 # what "hidden" libraries, object files and flags are used when
12908 # linking a shared library.
12910 # There doesn't appear to be a way to prevent this compiler from
12911 # explicitly linking system object files so we need to strip them
12912 # from the output so that they don't get included in the library
12914 output_verbose_link_cmd
='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12916 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12917 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12919 # Archives containing C++ object files must be created using
12920 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12921 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
12926 # version 8.0 and above of icpc choke on multiply defined symbols
12927 # if we add $predep_objects and $postdep_objects, however 7.1 and
12928 # earlier do not add the objects themselves.
12929 case `$CC -V 2>&1` in
12931 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12932 archive_expsym_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12934 *) # Version 8.0 or newer
12937 ia64
*) tmp_idyn
=' -i_dynamic';;
12939 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12940 archive_expsym_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12943 archive_cmds_need_lc_CXX
=no
12944 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12945 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12946 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12949 # Portland Group C++ compiler
12951 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
12952 prelink_cmds_CXX
='tpldir=Template.dir~
12954 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12955 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12956 old_archive_cmds_CXX
='tpldir=Template.dir~
12958 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12959 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12961 archive_cmds_CXX
='tpldir=Template.dir~
12963 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12964 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12965 archive_expsym_cmds_CXX
='tpldir=Template.dir~
12967 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12968 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12970 *) # Version 6 and above use weak symbols
12971 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12972 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12976 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
12977 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12978 whole_archive_flag_spec_CXX
='${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'
12982 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12983 archive_expsym_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12985 runpath_var
=LD_RUN_PATH
12986 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12987 hardcode_libdir_separator_CXX
=:
12989 # Commands to make compiler produce verbose output that lists
12990 # what "hidden" libraries, object files and flags are used when
12991 # linking a shared library.
12993 # There doesn't appear to be a way to prevent this compiler from
12994 # explicitly linking system object files so we need to strip them
12995 # from the output so that they don't get included in the library
12997 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12999 xl
* | mpixl
* | bgxl
*)
13000 # IBM XL 8.0 on PPC, with GNU ld
13001 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13002 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13003 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13004 if test "x$supports_anon_versioning" = xyes
; then
13005 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
13006 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13007 echo "local: *; };" >> $output_objdir/$libname.ver~
13008 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13012 case `$CC -V 2>&1 | sed 5q` in
13015 no_undefined_flag_CXX
=' -zdefs'
13016 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13017 archive_expsym_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13018 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13019 whole_archive_flag_spec_CXX
='${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'
13020 compiler_needs_object_CXX
=yes
13022 # Not sure whether something based on
13023 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13025 output_verbose_link_cmd
='func_echo_all'
13027 # Archives containing C++ object files must be created using
13028 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13029 # necessary to make sure instantiated templates are included
13031 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
13039 # FIXME: insert proper C++ library support
13044 # FIXME: insert proper C++ library support
13049 case $cc_basename in
13051 # FIXME: insert proper C++ library support
13055 # FIXME: insert proper C++ library support
13062 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13063 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13065 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13066 hardcode_direct_CXX
=yes
13067 hardcode_shlibpath_var_CXX
=no
13069 # Workaround some broken pre-1.5 toolchains
13070 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13078 # C++ shared libraries are fairly broken
13083 if test -f /usr
/libexec
/ld.so
; then
13084 hardcode_direct_CXX
=yes
13085 hardcode_shlibpath_var_CXX
=no
13086 hardcode_direct_absolute_CXX
=yes
13087 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13088 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13089 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13090 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13091 export_dynamic_flag_spec_CXX
='${wl}-E'
13092 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13094 output_verbose_link_cmd
=func_echo_all
13100 osf3
* | osf4
* | osf5
*)
13101 case $cc_basename in
13103 # Kuck and Associates, Inc. (KAI) C++ Compiler
13105 # KCC will only create a shared library if the output file
13106 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13107 # to its proper name (with version) after linking.
13108 archive_cmds_CXX
='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13110 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13111 hardcode_libdir_separator_CXX
=:
13113 # Archives containing C++ object files must be created using
13114 # the KAI C++ compiler.
13116 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
13117 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
13121 # Rational C++ 2.4.1
13122 # FIXME: insert proper C++ library support
13128 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
13129 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13130 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13133 allow_undefined_flag_CXX
=' -expect_unresolved \*'
13134 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13135 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13136 echo "-hidden">> $lib.exp~
13137 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13139 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
13143 hardcode_libdir_separator_CXX
=:
13145 # Commands to make compiler produce verbose output that lists
13146 # what "hidden" libraries, object files and flags are used when
13147 # linking a shared library.
13149 # There doesn't appear to be a way to prevent this compiler from
13150 # explicitly linking system object files so we need to strip them
13151 # from the output so that they don't get included in the library
13153 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13156 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
13157 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
13160 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13163 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13167 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13168 hardcode_libdir_separator_CXX
=:
13170 # Commands to make compiler produce verbose output that lists
13171 # what "hidden" libraries, object files and flags are used when
13172 # linking a shared library.
13173 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13176 # FIXME: insert proper C++ library support
13184 # FIXME: insert proper C++ library support
13189 case $cc_basename in
13192 # FIXME: insert proper C++ library support
13197 # FIXME: insert proper C++ library support
13201 # FIXME: insert proper C++ library support
13208 case $cc_basename in
13210 # Sun C++ 4.2, 5.x and Centerline C++
13211 archive_cmds_need_lc_CXX
=yes
13212 no_undefined_flag_CXX
=' -zdefs'
13213 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13214 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13215 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13217 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13218 hardcode_shlibpath_var_CXX
=no
13220 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13222 # The compiler driver will combine and reorder linker options,
13223 # but understands `-z linker_flag'.
13224 # Supported since Solaris 2.6 (maybe 2.5.1?)
13225 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
13228 link_all_deplibs_CXX
=yes
13230 output_verbose_link_cmd
='func_echo_all'
13232 # Archives containing C++ object files must be created using
13233 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13234 # necessary to make sure instantiated templates are included
13236 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
13239 # Green Hills C++ Compiler
13240 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13242 # The C++ compiler must be used to create the archive.
13243 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13246 # GNU C++ compiler with Solaris linker
13247 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
13248 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
13249 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
13250 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13251 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13252 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13254 # Commands to make compiler produce verbose output that lists
13255 # what "hidden" libraries, object files and flags are used when
13256 # linking a shared library.
13257 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13259 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13261 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13262 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13263 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13265 # Commands to make compiler produce verbose output that lists
13266 # what "hidden" libraries, object files and flags are used when
13267 # linking a shared library.
13268 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13271 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
13273 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13275 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13283 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13284 no_undefined_flag_CXX
='${wl}-z,text'
13285 archive_cmds_need_lc_CXX
=no
13286 hardcode_shlibpath_var_CXX
=no
13287 runpath_var
='LD_RUN_PATH'
13289 case $cc_basename in
13291 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13292 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13295 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13296 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13301 sysv5
* | sco3.2v5
* | sco5v6
*)
13302 # Note: We can NOT use -z defs as we might desire, because we do not
13303 # link with -lc, and that would cause any symbols used from libc to
13304 # always be unresolved, which means just about no library would
13305 # ever link correctly. If we're not using GNU ld we use -z text
13306 # though, which does catch some bad symbols but isn't as heavy-handed
13308 no_undefined_flag_CXX
='${wl}-z,text'
13309 allow_undefined_flag_CXX
='${wl}-z,nodefs'
13310 archive_cmds_need_lc_CXX
=no
13311 hardcode_shlibpath_var_CXX
=no
13312 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
13313 hardcode_libdir_separator_CXX
=':'
13314 link_all_deplibs_CXX
=yes
13315 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
13316 runpath_var
='LD_RUN_PATH'
13318 case $cc_basename in
13320 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13321 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13322 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
13323 '"$old_archive_cmds_CXX"
13324 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
13325 '"$reload_cmds_CXX"
13328 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13329 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13335 case $cc_basename in
13337 # NonStop-UX NCC 3.20
13338 # FIXME: insert proper C++ library support
13342 # FIXME: insert proper C++ library support
13349 # For VxWorks ports, we assume the use of a GNU linker with
13350 # standard elf conventions.
13355 # FIXME: insert proper C++ library support
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13361 $as_echo "$ld_shlibs_CXX" >&6; }
13362 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13368 ## There is no encapsulation within the following macros, do not change
13369 ## the running order or otherwise move them around unless you know exactly
13370 ## what you are doing...
13371 # Dependencies to place before and after the object being linked:
13372 predep_objects_CXX
=
13373 postdep_objects_CXX
=
13376 compiler_lib_search_path_CXX
=
13378 cat > conftest.
$ac_ext <<_LT_EOF
13382 Foo (void) { a = 0; }
13388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13389 (eval $ac_compile) 2>&5
13391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13392 test $ac_status = 0; }; then
13393 # Parse the compiler output and extract the necessary
13394 # objects, libraries and library flags.
13396 # Sentinel used to keep track of whether or not we are before
13397 # the conftest object file.
13398 pre_test_object_deps_done
=no
13400 for p
in `eval "$output_verbose_link_cmd"`; do
13404 # Some compilers place space between "-{L,R}" and the path.
13405 # Remove the space.
13406 if test $p = "-L" ||
13407 test $p = "-R"; then
13414 if test "$pre_test_object_deps_done" = no
; then
13417 # Internal compiler library paths should come after those
13418 # provided the user. The postdeps already come after the
13419 # user supplied libs so there is no need to process them.
13420 if test -z "$compiler_lib_search_path_CXX"; then
13421 compiler_lib_search_path_CXX
="${prev}${p}"
13423 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
13426 # The "-l" case would never come before the object being
13427 # linked, so don't bother handling this case.
13430 if test -z "$postdeps_CXX"; then
13431 postdeps_CXX
="${prev}${p}"
13433 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
13439 # This assumes that the test object file only shows up
13440 # once in the compiler output.
13441 if test "$p" = "conftest.$objext"; then
13442 pre_test_object_deps_done
=yes
13446 if test "$pre_test_object_deps_done" = no
; then
13447 if test -z "$predep_objects_CXX"; then
13448 predep_objects_CXX
="$p"
13450 predep_objects_CXX
="$predep_objects_CXX $p"
13453 if test -z "$postdep_objects_CXX"; then
13454 postdep_objects_CXX
="$p"
13456 postdep_objects_CXX
="$postdep_objects_CXX $p"
13461 *) ;; # Ignore the rest.
13469 echo "libtool.m4: error: problem compiling CXX test program"
13472 $RM -f confest.
$objext
13474 # PORTME: override above test on systems where it is broken
13477 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13478 # hack all around it, let's just trust "g++" to DTRT.
13479 predep_objects_CXX
=
13480 postdep_objects_CXX
=
13485 case `$CC -V 2>&1 | sed 5q` in
13489 # The more standards-conforming stlport4 library is
13490 # incompatible with the Cstd library. Avoid specifying
13491 # it if it's in CXXFLAGS. Ignore libCrun as
13492 # -library=stlport4 depends on it.
13493 case " $CXX $CXXFLAGS " in
13494 *" -library=stlport4 "*)
13495 solaris_use_stlport4
=yes
13499 if test "$solaris_use_stlport4" != yes; then
13500 postdeps_CXX
='-library=Cstd -library=Crun'
13507 case $cc_basename in
13509 # The more standards-conforming stlport4 library is
13510 # incompatible with the Cstd library. Avoid specifying
13511 # it if it's in CXXFLAGS. Ignore libCrun as
13512 # -library=stlport4 depends on it.
13513 case " $CXX $CXXFLAGS " in
13514 *" -library=stlport4 "*)
13515 solaris_use_stlport4
=yes
13519 # Adding this requires a known-good setup of shared libraries for
13520 # Sun compiler versions before 5.6, else PIC objects from an old
13521 # archive will be linked into the output, leading to subtle bugs.
13522 if test "$solaris_use_stlport4" != yes; then
13523 postdeps_CXX
='-library=Cstd -library=Crun'
13531 case " $postdeps_CXX " in
13532 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
13534 compiler_lib_search_dirs_CXX
=
13535 if test -n "${compiler_lib_search_path_CXX}"; then
13536 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13569 lt_prog_compiler_wl_CXX
=
13570 lt_prog_compiler_pic_CXX
=
13571 lt_prog_compiler_static_CXX
=
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13574 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13576 # C++ specific cases for pic, static, wl, etc.
13577 if test "$GXX" = yes; then
13578 lt_prog_compiler_wl_CXX
='-Wl,'
13579 lt_prog_compiler_static_CXX
='-static'
13583 # All AIX code is PIC.
13584 if test "$host_cpu" = ia64
; then
13585 # AIX 5 now supports IA64 processor
13586 lt_prog_compiler_static_CXX
='-Bstatic'
13588 lt_prog_compiler_pic_CXX
='-fPIC'
13594 # see comment about AmigaOS4 .so support
13595 lt_prog_compiler_pic_CXX
='-fPIC'
13598 # FIXME: we need at least 68020 code to build shared libraries, but
13599 # adding the `-m68020' flag to GCC prevents building anything better,
13601 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
13606 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13607 # PIC is the default for these OSes.
13609 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
13610 # This hack is so that the source file can tell whether it is being
13611 # built for inclusion in a dll (and should export symbols for example).
13612 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13613 # (--disable-auto-import) libraries
13614 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
13616 darwin
* | rhapsody
*)
13617 # PIC is the default on this platform
13618 # Common symbols not allowed in MH_DYLIB files
13619 lt_prog_compiler_pic_CXX
='-fno-common'
13622 # DJGPP does not support shared libraries at all
13623 lt_prog_compiler_pic_CXX
=
13626 # PIC is the default for Haiku.
13627 # The "-static" flag exists, but is broken.
13628 lt_prog_compiler_static_CXX
=
13631 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13632 # Instead, we relocate shared libraries at runtime.
13635 if test -d /usr
/nec
; then
13636 lt_prog_compiler_pic_CXX
=-Kconform_pic
13640 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13641 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13642 # sets the default TLS model and affects inlining.
13647 lt_prog_compiler_pic_CXX
='-fPIC'
13652 # QNX uses GNU C++, but need to define -shared option too, otherwise
13653 # it will coredump.
13654 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13657 lt_prog_compiler_pic_CXX
='-fPIC'
13663 # All AIX code is PIC.
13664 if test "$host_cpu" = ia64
; then
13665 # AIX 5 now supports IA64 processor
13666 lt_prog_compiler_static_CXX
='-Bstatic'
13668 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
13672 case $cc_basename in
13674 # Green Hills C++ Compiler
13675 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13680 case $cc_basename in
13682 lt_prog_compiler_pic_CXX
='-KPIC'
13685 # Green Hills C++ Compiler
13686 lt_prog_compiler_pic_CXX
='-pic'
13692 freebsd
* | dragonfly
*)
13693 # FreeBSD uses GNU C++
13695 hpux9
* | hpux10
* | hpux11
*)
13696 case $cc_basename in
13698 lt_prog_compiler_wl_CXX
='-Wl,'
13699 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13700 if test "$host_cpu" != ia64
; then
13701 lt_prog_compiler_pic_CXX
='+Z'
13705 lt_prog_compiler_wl_CXX
='-Wl,'
13706 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13712 lt_prog_compiler_pic_CXX
='+Z'
13721 # This is c89, which is MS Visual C++ (no shared libs)
13722 # Anyone wants to do a port?
13724 irix5
* | irix6
* | nonstopux
*)
13725 case $cc_basename in
13727 lt_prog_compiler_wl_CXX
='-Wl,'
13728 lt_prog_compiler_static_CXX
='-non_shared'
13729 # CC pic flag -KPIC is the default.
13735 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
13736 case $cc_basename in
13739 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13740 lt_prog_compiler_pic_CXX
='-fPIC'
13743 # old Intel C++ for x86_64 which still supported -KPIC.
13744 lt_prog_compiler_wl_CXX
='-Wl,'
13745 lt_prog_compiler_pic_CXX
='-KPIC'
13746 lt_prog_compiler_static_CXX
='-static'
13749 # Intel C++, used to be incompatible with GCC.
13750 # ICC 10 doesn't accept -KPIC any more.
13751 lt_prog_compiler_wl_CXX
='-Wl,'
13752 lt_prog_compiler_pic_CXX
='-fPIC'
13753 lt_prog_compiler_static_CXX
='-static'
13756 # Portland Group C++ compiler
13757 lt_prog_compiler_wl_CXX
='-Wl,'
13758 lt_prog_compiler_pic_CXX
='-fpic'
13759 lt_prog_compiler_static_CXX
='-Bstatic'
13763 # Make sure the PIC flag is empty. It appears that all Alpha
13764 # Linux and Compaq Tru64 Unix objects are PIC.
13765 lt_prog_compiler_pic_CXX
=
13766 lt_prog_compiler_static_CXX
='-non_shared'
13768 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
13769 # IBM XL 8.0, 9.0 on PPC and BlueGene
13770 lt_prog_compiler_wl_CXX
='-Wl,'
13771 lt_prog_compiler_pic_CXX
='-qpic'
13772 lt_prog_compiler_static_CXX
='-qstaticlink'
13775 case `$CC -V 2>&1 | sed 5q` in
13778 lt_prog_compiler_pic_CXX
='-KPIC'
13779 lt_prog_compiler_static_CXX
='-Bstatic'
13780 lt_prog_compiler_wl_CXX
='-Qoption ld '
13791 case $cc_basename in
13793 lt_prog_compiler_pic_CXX
='-W c,exportall'
13802 # QNX uses GNU C++, but need to define -shared option too, otherwise
13803 # it will coredump.
13804 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13806 osf3
* | osf4
* | osf5
*)
13807 case $cc_basename in
13809 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13812 # Rational C++ 2.4.1
13813 lt_prog_compiler_pic_CXX
='-pic'
13816 # Digital/Compaq C++
13817 lt_prog_compiler_wl_CXX
='-Wl,'
13818 # Make sure the PIC flag is empty. It appears that all Alpha
13819 # Linux and Compaq Tru64 Unix objects are PIC.
13820 lt_prog_compiler_pic_CXX
=
13821 lt_prog_compiler_static_CXX
='-non_shared'
13830 case $cc_basename in
13832 # Sun C++ 4.2, 5.x and Centerline C++
13833 lt_prog_compiler_pic_CXX
='-KPIC'
13834 lt_prog_compiler_static_CXX
='-Bstatic'
13835 lt_prog_compiler_wl_CXX
='-Qoption ld '
13838 # Green Hills C++ Compiler
13839 lt_prog_compiler_pic_CXX
='-PIC'
13846 case $cc_basename in
13849 lt_prog_compiler_pic_CXX
='-pic'
13850 lt_prog_compiler_static_CXX
='-Bstatic'
13854 lt_prog_compiler_pic_CXX
='-pic'
13860 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13861 case $cc_basename in
13863 lt_prog_compiler_wl_CXX
='-Wl,'
13864 lt_prog_compiler_pic_CXX
='-KPIC'
13865 lt_prog_compiler_static_CXX
='-Bstatic'
13870 case $cc_basename in
13872 # NonStop-UX NCC 3.20
13873 lt_prog_compiler_pic_CXX
='-KPIC'
13882 lt_prog_compiler_can_build_shared_CXX
=no
13888 # For platforms which do not support PIC, -DPIC is meaningless:
13890 lt_prog_compiler_pic_CXX
=
13893 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13897 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13902 # Check to make sure the PIC flag actually works.
13904 if test -n "$lt_prog_compiler_pic_CXX"; then
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13906 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13907 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
13908 $as_echo_n "(cached) " >&6
13910 lt_cv_prog_compiler_pic_works_CXX
=no
13911 ac_outfile
=conftest.
$ac_objext
13912 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13913 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
13914 # Insert the option either (1) after the last *FLAGS variable, or
13915 # (2) before a word containing "conftest.", or (3) at the end.
13916 # Note that $ac_compile itself does not contain backslashes and begins
13917 # with a dollar sign (not a hyphen), so the echo should work correctly.
13918 # The option is referenced via a variable to avoid confusing sed.
13919 lt_compile
=`echo "$ac_compile" | $SED \
13920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13922 -e 's:$: $lt_compiler_flag:'`
13923 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13924 (eval "$lt_compile" 2>conftest.err
)
13926 cat conftest.err
>&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 if (exit $ac_status) && test -s "$ac_outfile"; then
13929 # The compiler can only warn and ignore the option if not recognized
13930 # So say no if there are warnings other than the usual output.
13931 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
13932 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13933 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
13934 lt_cv_prog_compiler_pic_works_CXX
=yes
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13941 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13943 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
13944 case $lt_prog_compiler_pic_CXX in
13946 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
13949 lt_prog_compiler_pic_CXX
=
13950 lt_prog_compiler_can_build_shared_CXX
=no
13958 # Check to make sure the static flag actually works.
13960 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13962 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13963 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
13964 $as_echo_n "(cached) " >&6
13966 lt_cv_prog_compiler_static_works_CXX
=no
13967 save_LDFLAGS
="$LDFLAGS"
13968 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
13969 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
13970 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
13971 # The linker can only warn and ignore the option if not recognized
13972 # So say no if there are warnings
13973 if test -s conftest.err
; then
13974 # Append any errors to the config.log.
13975 cat conftest.err
1>&5
13976 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
13977 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13978 if diff conftest.exp conftest.er2
>/dev
/null
; then
13979 lt_cv_prog_compiler_static_works_CXX
=yes
13982 lt_cv_prog_compiler_static_works_CXX
=yes
13986 LDFLAGS
="$save_LDFLAGS"
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13990 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13992 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
13995 lt_prog_compiler_static_CXX
=
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14002 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14003 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
14004 $as_echo_n "(cached) " >&6
14006 lt_cv_prog_compiler_c_o_CXX
=no
14007 $RM -r conftest
2>/dev
/null
14011 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14013 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14014 # Insert the option either (1) after the last *FLAGS variable, or
14015 # (2) before a word containing "conftest.", or (3) at the end.
14016 # Note that $ac_compile itself does not contain backslashes and begins
14017 # with a dollar sign (not a hyphen), so the echo should work correctly.
14018 lt_compile
=`echo "$ac_compile" | $SED \
14019 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14021 -e 's:$: $lt_compiler_flag:'`
14022 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14023 (eval "$lt_compile" 2>out
/conftest.err
)
14025 cat out
/conftest.err
>&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14029 # The compiler can only warn and ignore the option if not recognized
14030 # So say no if there are warnings
14031 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
14032 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14033 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14034 lt_cv_prog_compiler_c_o_CXX
=yes
14039 # SGI C++ compiler will create directory out/ii_files/ for
14040 # template instantiation
14041 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
14042 $RM out
/* && rmdir out
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14049 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14054 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14055 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
14056 $as_echo_n "(cached) " >&6
14058 lt_cv_prog_compiler_c_o_CXX
=no
14059 $RM -r conftest
2>/dev
/null
14063 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14065 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14066 # Insert the option either (1) after the last *FLAGS variable, or
14067 # (2) before a word containing "conftest.", or (3) at the end.
14068 # Note that $ac_compile itself does not contain backslashes and begins
14069 # with a dollar sign (not a hyphen), so the echo should work correctly.
14070 lt_compile
=`echo "$ac_compile" | $SED \
14071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14073 -e 's:$: $lt_compiler_flag:'`
14074 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14075 (eval "$lt_compile" 2>out
/conftest.err
)
14077 cat out
/conftest.err
>&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14081 # The compiler can only warn and ignore the option if not recognized
14082 # So say no if there are warnings
14083 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
14084 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14085 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14086 lt_cv_prog_compiler_c_o_CXX
=yes
14091 # SGI C++ compiler will create directory out/ii_files/ for
14092 # template instantiation
14093 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
14094 $RM out
/* && rmdir out
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14101 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14106 hard_links
="nottested"
14107 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
14108 # do not overwrite the value of need_locks provided by the user
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14110 $as_echo_n "checking if we can lock with hard links... " >&6; }
14113 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14115 ln conftest.a conftest.b
2>&5 || hard_links
=no
14116 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14118 $as_echo "$hard_links" >&6; }
14119 if test "$hard_links" = no
; then
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14121 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14131 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14133 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14136 # If we're using GNU nm, then we don't want the "-C" option.
14137 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14138 # Also, AIX nm treats weak defined symbols like other global defined
14139 # symbols, whereas GNU nm marks them as "W".
14140 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
14141 export_symbols_cmds_CXX
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14143 export_symbols_cmds_CXX
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14147 export_symbols_cmds_CXX
="$ltdll_cmds"
14149 cygwin
* | mingw
* | cegcc
*)
14150 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14153 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14156 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14159 $as_echo "$ld_shlibs_CXX" >&6; }
14160 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
14162 with_gnu_ld_CXX
=$with_gnu_ld
14170 # Do we need to explicitly link libc?
14172 case "x$archive_cmds_need_lc_CXX" in
14174 # Assume -lc should be added
14175 archive_cmds_need_lc_CXX
=yes
14177 if test "$enable_shared" = yes && test "$GCC" = yes; then
14178 case $archive_cmds_CXX in
14180 # FIXME: we may have to deal with multi-command sequences.
14183 # Test whether the compiler implicitly links with -lc since on some
14184 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14185 # to ld, don't add -lc before -lgcc.
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14187 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14188 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
14189 $as_echo_n "(cached) " >&6
14192 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14195 (eval $ac_compile) 2>&5
14197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14198 test $ac_status = 0; } 2>conftest.err
; then
14201 libobjs
=conftest.
$ac_objext
14203 wl
=$lt_prog_compiler_wl_CXX
14204 pic_flag
=$lt_prog_compiler_pic_CXX
14210 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
14211 allow_undefined_flag_CXX
=
14212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14213 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14216 test $ac_status = 0; }
14218 lt_cv_archive_cmds_need_lc_CXX
=no
14220 lt_cv_archive_cmds_need_lc_CXX
=yes
14222 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
14224 cat conftest.err
1>&5
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14230 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14231 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14302 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14304 library_names_spec
=
14305 libname_spec
='lib$name'
14309 postuninstall_cmds
=
14313 shlibpath_overrides_runpath
=unknown
14315 dynamic_linker
="$host_os ld.so"
14316 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14317 need_lib_prefix
=unknown
14318 hardcode_into_libs
=no
14320 # when you set need_version to no, make sure it does not cause -set_version
14321 # flags to be left without arguments
14322 need_version
=unknown
14327 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14328 shlibpath_var
=LIBPATH
14330 # AIX 3 has no versioning support, so we append a major version to the name.
14331 soname_spec
='${libname}${release}${shared_ext}$major'
14338 hardcode_into_libs
=yes
14339 if test "$host_cpu" = ia64
; then
14340 # AIX 5 supports IA64
14341 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14342 shlibpath_var
=LD_LIBRARY_PATH
14344 # With GCC up to 2.95.x, collect2 would create an import file
14345 # for dependence libraries. The import file would start with
14346 # the line `#! .'. This would cause the generated library to
14347 # depend on `.', always an invalid library. This was fixed in
14348 # development snapshots of GCC prior to 3.0.
14350 aix4 | aix4.
[01] | aix4.
[01].
*)
14351 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14353 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14356 can_build_shared
=no
14360 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14361 # soname into executable. Probably we can add versioning support to
14362 # collect2, so additional links can be useful in future.
14363 if test "$aix_use_runtimelinking" = yes; then
14364 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14365 # instead of lib<name>.a to let people know that these are not
14366 # typical AIX shared libraries.
14367 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14369 # We preserve .a as extension for shared libraries through AIX4.2
14370 # and later when we are not doing run time linking.
14371 library_names_spec
='${libname}${release}.a $libname.a'
14372 soname_spec
='${libname}${release}${shared_ext}$major'
14374 shlibpath_var
=LIBPATH
14381 # Since July 2007 AmigaOS4 officially supports .so libraries.
14382 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14383 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14386 library_names_spec
='$libname.ixlibrary $libname.a'
14387 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14388 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'
14394 library_names_spec
='${libname}${shared_ext}'
14395 dynamic_linker
="$host_os ld.so"
14396 shlibpath_var
=LIBRARY_PATH
14402 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14403 soname_spec
='${libname}${release}${shared_ext}$major'
14404 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14405 shlibpath_var
=LD_LIBRARY_PATH
14406 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14407 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14408 # the default ld.so.conf also contains /usr/contrib/lib and
14409 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14410 # libtool to hard-code these into programs
14413 cygwin
* | mingw
* | pw32
* | cegcc
*)
14414 version_type
=windows
14419 case $GCC,$host_os in
14420 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14421 library_names_spec
='$libname.dll.a'
14422 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14423 postinstall_cmds
='base_file=`basename \${file}`~
14424 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14425 dldir=$destdir/`dirname \$dlpath`~
14426 test -d \$dldir || mkdir -p \$dldir~
14427 $install_prog $dir/$dlname \$dldir/$dlname~
14428 chmod a+x \$dldir/$dlname~
14429 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14430 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14432 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14433 dlpath=$dir/\$dldll~
14435 shlibpath_overrides_runpath
=yes
14439 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14440 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14444 # MinGW DLLs use traditional 'lib' prefix
14445 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14448 # pw32 DLLs use 'pw' prefix rather than 'lib'
14449 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14455 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14458 dynamic_linker
='Win32 ld.exe'
14459 # FIXME: first we should search . and the directory the executable is in
14463 darwin
* | rhapsody
*)
14464 dynamic_linker
="$host_os dyld"
14465 version_type
=darwin
14468 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14469 soname_spec
='${libname}${release}${major}$shared_ext'
14470 shlibpath_overrides_runpath
=yes
14471 shlibpath_var
=DYLD_LIBRARY_PATH
14472 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14474 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14481 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14482 soname_spec
='${libname}${release}${shared_ext}$major'
14483 shlibpath_var
=LD_LIBRARY_PATH
14486 freebsd
* | dragonfly
*)
14487 # DragonFly does not have aout. When/if they implement a new
14488 # versioning mechanism, adjust this.
14489 if test -x /usr
/bin
/objformat
; then
14490 objformat
=`/usr/bin/objformat`
14493 freebsd
[23].
*) objformat
=aout
;;
14494 *) objformat
=elf
;;
14497 version_type
=freebsd-
$objformat
14498 case $version_type in
14500 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14505 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14509 shlibpath_var
=LD_LIBRARY_PATH
14512 shlibpath_overrides_runpath
=yes
14514 freebsd3.
[01]* | freebsdelf3.
[01]*)
14515 shlibpath_overrides_runpath
=yes
14516 hardcode_into_libs
=yes
14518 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14519 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14520 shlibpath_overrides_runpath
=no
14521 hardcode_into_libs
=yes
14523 *) # from 4.6 on, and DragonFly
14524 shlibpath_overrides_runpath
=yes
14525 hardcode_into_libs
=yes
14534 dynamic_linker
="$host_os runtime_loader"
14535 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14536 soname_spec
='${libname}${release}${shared_ext}$major'
14537 shlibpath_var
=LIBRARY_PATH
14538 shlibpath_overrides_runpath
=yes
14539 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14540 hardcode_into_libs
=yes
14543 hpux9
* | hpux10
* | hpux11
*)
14544 # Give a soname corresponding to the major version so that dld.sl refuses to
14545 # link against other versions.
14552 hardcode_into_libs
=yes
14553 dynamic_linker
="$host_os dld.so"
14554 shlibpath_var
=LD_LIBRARY_PATH
14555 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14556 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14557 soname_spec
='${libname}${release}${shared_ext}$major'
14558 if test "X$HPUX_IA64_MODE" = X32
; then
14559 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14561 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14563 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14567 hardcode_into_libs
=yes
14568 dynamic_linker
="$host_os dld.sl"
14569 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14570 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14571 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14572 soname_spec
='${libname}${release}${shared_ext}$major'
14573 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14574 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14578 dynamic_linker
="$host_os dld.sl"
14579 shlibpath_var
=SHLIB_PATH
14580 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14581 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14582 soname_spec
='${libname}${release}${shared_ext}$major'
14585 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14586 postinstall_cmds
='chmod 555 $lib'
14587 # or fails outright, so override atomically:
14588 install_override_mode
=555
14595 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14596 soname_spec
='${libname}${release}${shared_ext}$major'
14597 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14598 shlibpath_var
=LD_LIBRARY_PATH
14599 shlibpath_overrides_runpath
=no
14600 hardcode_into_libs
=yes
14603 irix5
* | irix6
* | nonstopux
*)
14605 nonstopux
*) version_type
=nonstopux
;;
14607 if test "$lt_cv_prog_gnu_ld" = yes; then
14615 soname_spec
='${libname}${release}${shared_ext}$major'
14616 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14618 irix5
* | nonstopux
*)
14619 libsuff
= shlibsuff
=
14622 case $LD in # libtool.m4 will add one of these switches to LD
14623 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14624 libsuff
= shlibsuff
= libmagic
=32-bit;;
14625 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14626 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14627 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14628 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14629 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14633 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14634 shlibpath_overrides_runpath
=no
14635 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14636 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14637 hardcode_into_libs
=yes
14640 # No shared lib support for Linux oldld, aout, or coff.
14641 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14645 # This must be Linux ELF.
14647 # uclinux* changes (here and below) have been submitted to the libtool
14648 # project, but have not yet been accepted: they are GCC-local changes
14649 # for the time being. (See
14650 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14651 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
14655 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14656 soname_spec
='${libname}${release}${shared_ext}$major'
14657 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14658 shlibpath_var
=LD_LIBRARY_PATH
14659 shlibpath_overrides_runpath
=no
14661 # Some binutils ld are patched to set DT_RUNPATH
14662 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
14663 $as_echo_n "(cached) " >&6
14665 lt_cv_shlibpath_overrides_runpath
=no
14666 save_LDFLAGS
=$LDFLAGS
14667 save_libdir
=$libdir
14668 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14669 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14671 /* end confdefs.h. */
14681 if ac_fn_cxx_try_link
"$LINENO"; then :
14682 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14683 lt_cv_shlibpath_overrides_runpath
=yes
14686 rm -f core conftest.err conftest.
$ac_objext \
14687 conftest
$ac_exeext conftest.
$ac_ext
14688 LDFLAGS
=$save_LDFLAGS
14689 libdir
=$save_libdir
14693 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14695 # This implies no fast_install, which is unacceptable.
14696 # Some rework will be needed to allow for fast_install
14697 # before this can be enabled.
14698 hardcode_into_libs
=yes
14700 # Append ld.so.conf contents to the search path
14701 if test -f /etc
/ld.so.conf
; then
14702 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' ' '`
14703 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14706 # We used to test for /lib/ld.so.1 and disable shared libraries on
14707 # powerpc, because MkLinux only supported shared libraries with the
14708 # GNU dynamic linker. Since this was broken with cross compilers,
14709 # most powerpc-linux boxes support dynamic linking these days and
14710 # people can always --disable-shared, the test was removed, and we
14711 # assume the GNU/Linux dynamic linker is in use.
14712 dynamic_linker
='GNU/Linux ld.so'
14719 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14720 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14721 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14722 dynamic_linker
='NetBSD (a.out) ld.so'
14724 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14725 soname_spec
='${libname}${release}${shared_ext}$major'
14726 dynamic_linker
='NetBSD ld.elf_so'
14728 shlibpath_var
=LD_LIBRARY_PATH
14729 shlibpath_overrides_runpath
=yes
14730 hardcode_into_libs
=yes
14735 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14736 shlibpath_var
=LD_LIBRARY_PATH
14737 shlibpath_overrides_runpath
=yes
14744 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14745 soname_spec
='${libname}${release}${shared_ext}$major'
14746 shlibpath_var
=LD_LIBRARY_PATH
14747 shlibpath_overrides_runpath
=no
14748 hardcode_into_libs
=yes
14749 dynamic_linker
='ldqnx.so'
14754 sys_lib_dlsearch_path_spec
="/usr/lib"
14756 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14758 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14759 *) need_version
=no
;;
14761 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14762 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14763 shlibpath_var
=LD_LIBRARY_PATH
14764 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14766 openbsd2.
[89] | openbsd2.
[89].
*)
14767 shlibpath_overrides_runpath
=no
14770 shlibpath_overrides_runpath
=yes
14774 shlibpath_overrides_runpath
=yes
14779 libname_spec
='$name'
14782 library_names_spec
='$libname${shared_ext} $libname.a'
14783 dynamic_linker
='OS/2 ld.exe'
14784 shlibpath_var
=LIBPATH
14787 osf3
* | osf4
* | osf5
*)
14791 soname_spec
='${libname}${release}${shared_ext}$major'
14792 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14793 shlibpath_var
=LD_LIBRARY_PATH
14794 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14795 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14806 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14807 soname_spec
='${libname}${release}${shared_ext}$major'
14808 shlibpath_var
=LD_LIBRARY_PATH
14809 shlibpath_overrides_runpath
=yes
14810 hardcode_into_libs
=yes
14811 # ldd complains unless libraries are executable
14812 postinstall_cmds
='chmod +x $lib'
14817 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14818 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14819 shlibpath_var
=LD_LIBRARY_PATH
14820 shlibpath_overrides_runpath
=yes
14821 if test "$with_gnu_ld" = yes; then
14829 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14830 soname_spec
='${libname}${release}${shared_ext}$major'
14831 shlibpath_var
=LD_LIBRARY_PATH
14832 case $host_vendor in
14834 shlibpath_overrides_runpath
=no
14836 runpath_var
=LD_RUN_PATH
14844 shlibpath_overrides_runpath
=no
14845 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14851 if test -d /usr
/nec
;then
14853 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14854 soname_spec
='$libname${shared_ext}.$major'
14855 shlibpath_var
=LD_LIBRARY_PATH
14859 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14860 version_type
=freebsd-elf
14863 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14864 soname_spec
='${libname}${release}${shared_ext}$major'
14865 shlibpath_var
=LD_LIBRARY_PATH
14866 shlibpath_overrides_runpath
=yes
14867 hardcode_into_libs
=yes
14868 if test "$with_gnu_ld" = yes; then
14869 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14871 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14874 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14878 sys_lib_dlsearch_path_spec
='/usr/lib'
14882 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14886 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14887 shlibpath_var
=LD_LIBRARY_PATH
14888 shlibpath_overrides_runpath
=no
14889 hardcode_into_libs
=yes
14894 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14895 soname_spec
='${libname}${release}${shared_ext}$major'
14896 shlibpath_var
=LD_LIBRARY_PATH
14899 # Shared libraries for VwWorks, >= 7 only at this stage
14900 # and (fpic) still incompatible with "large" code models
14901 # in a few configurations. Only for RTP mode in any case,
14902 # and upon explicit request at configure time.
14905 case ${with_multisubdir}-${enable_shared} in
14912 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14913 soname_spec
='${libname}${release}${shared_ext}$major'
14914 dynamic_linker
="$host_os module_loader"
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14923 $as_echo "$dynamic_linker" >&6; }
14924 test "$dynamic_linker" = no
&& can_build_shared
=no
14926 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14927 if test "$GCC" = yes; then
14928 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14931 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14932 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14934 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14935 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14976 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14977 hardcode_action_CXX
=
14978 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14979 test -n "$runpath_var_CXX" ||
14980 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14982 # We can hardcode non-existent directories.
14983 if test "$hardcode_direct_CXX" != no
&&
14984 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14985 # have to relink, otherwise we might link with an installed library
14986 # when we should be linking with a yet-to-be-installed one
14987 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14988 test "$hardcode_minus_L_CXX" != no
; then
14989 # Linking always hardcodes the temporary library directory.
14990 hardcode_action_CXX
=relink
14992 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14993 hardcode_action_CXX
=immediate
14996 # We cannot hardcode anything, or else we can only hardcode existing
14998 hardcode_action_CXX
=unsupported
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15001 $as_echo "$hardcode_action_CXX" >&6; }
15003 if test "$hardcode_action_CXX" = relink ||
15004 test "$inherit_rpath_CXX" = yes; then
15005 # Fast installation is not supported
15006 enable_fast_install
=no
15007 elif test "$shlibpath_overrides_runpath" = yes ||
15008 test "$enable_shared" = no
; then
15009 # Fast installation is not necessary
15010 enable_fast_install
=needless
15019 fi # test -n "$compiler"
15025 with_gnu_ld
=$lt_save_with_gnu_ld
15026 lt_cv_path_LDCXX
=$lt_cv_path_LD
15027 lt_cv_path_LD
=$lt_save_path_LD
15028 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
15029 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
15030 fi # test "$_lt_caught_CXX_error" != yes
15033 ac_cpp
='$CPP $CPPFLAGS'
15034 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15035 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15036 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15050 ac_config_commands
="$ac_config_commands libtool"
15055 # Only expand once:
15059 # The tests for host and target for $enable_largefile require
15064 # As the $enable_largefile decision depends on --enable-plugins we must set it
15065 # even in directories otherwise not depending on the $plugins option.
15069 for ac_header
in dlfcn.h
15071 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15073 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
15074 cat >>confdefs.h
<<_ACEOF
15075 #define HAVE_DLFCN_H 1
15082 for ac_header
in windows.h
15084 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15086 if test "x$ac_cv_header_windows_h" = xyes
; then :
15087 cat >>confdefs.h
<<_ACEOF
15088 #define HAVE_WINDOWS_H 1
15096 # Check whether --enable-plugins was given.
15097 if test "${enable_plugins+set}" = set; then :
15098 enableval
=$enable_plugins; case "${enableval}" in
15101 if test "$maybe_plugins" != "yes" ; then
15102 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15106 plugins
=$maybe_plugins
15110 if test "$plugins" = "yes"; then
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
15112 $as_echo_n "checking for library containing dlsym... " >&6; }
15113 if ${ac_cv_search_dlsym+:} false
; then :
15114 $as_echo_n "(cached) " >&6
15116 ac_func_search_save_LIBS
=$LIBS
15117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15118 /* end confdefs.h. */
15120 /* Override any GCC internal prototype to avoid an error.
15121 Use char because int might match the return type of a GCC
15122 builtin and then its argument prototype would still apply. */
15135 for ac_lib
in '' dl
; do
15136 if test -z "$ac_lib"; then
15137 ac_res
="none required"
15140 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15142 if ac_fn_c_try_link
"$LINENO"; then :
15143 ac_cv_search_dlsym
=$ac_res
15145 rm -f core conftest.err conftest.
$ac_objext \
15147 if ${ac_cv_search_dlsym+:} false
; then :
15151 if ${ac_cv_search_dlsym+:} false
; then :
15154 ac_cv_search_dlsym
=no
15156 rm conftest.
$ac_ext
15157 LIBS
=$ac_func_search_save_LIBS
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
15160 $as_echo "$ac_cv_search_dlsym" >&6; }
15161 ac_res
=$ac_cv_search_dlsym
15162 if test "$ac_res" != no
; then :
15163 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15171 sparc-
*-solaris*|i?
86-*-solaris*)
15172 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
15173 # were mutually exclusive until Solaris 11.3. Without procfs support,
15174 # the bfd/ elf module cannot provide certain routines such as
15175 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
15176 # explicitly requested large-file support through the
15177 # --enable-largefile switch, disable large-file support in favor of
15180 # Check if <sys/procfs.h> is incompatible with large-file support.
15181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15182 /* end confdefs.h. */
15183 #define _FILE_OFFSET_BITS 64
15184 #define _STRUCTURED_PROC 1
15185 #include <sys/procfs.h>
15194 if ac_fn_c_try_compile
"$LINENO"; then :
15195 acx_cv_procfs_lfs
=yes
15197 acx_cv_procfs_lfs
=no
15199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15201 # Forcefully disable large-file support only if necessary, gdb is in
15202 # tree and enabled.
15203 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
15204 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
15205 : ${enable_largefile="no"}
15206 if test "$plugins" = yes; then
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15208 plugin support disabled; require large-file support which is incompatible with GDB." >&5
15209 $as_echo "$as_me: WARNING:
15210 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
15215 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
15216 # benefit of g++ 9+ which predefines it on Solaris.
15217 if test "$enable_largefile" = no
; then
15218 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
15224 # Check whether --enable-largefile was given.
15225 if test "${enable_largefile+set}" = set; then :
15226 enableval
=$enable_largefile;
15229 if test "$enable_largefile" != no
; then
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15232 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15233 if ${ac_cv_sys_largefile_CC+:} false
; then :
15234 $as_echo_n "(cached) " >&6
15236 ac_cv_sys_largefile_CC
=no
15237 if test "$GCC" != yes; then
15240 # IRIX 6.2 and later do not support large files by default,
15241 # so use the C compiler's -n32 option if that helps.
15242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15243 /* end confdefs.h. */
15244 #include <sys/types.h>
15245 /* Check that off_t can represent 2**63 - 1 correctly.
15246 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15247 since some C++ compilers masquerading as C compilers
15248 incorrectly reject 9223372036854775807. */
15249 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15250 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15251 && LARGE_OFF_T % 2147483647 == 1)
15261 if ac_fn_c_try_compile
"$LINENO"; then :
15264 rm -f core conftest.err conftest.
$ac_objext
15266 if ac_fn_c_try_compile
"$LINENO"; then :
15267 ac_cv_sys_largefile_CC
=' -n32'; break
15269 rm -f core conftest.err conftest.
$ac_objext
15273 rm -f conftest.
$ac_ext
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15277 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15278 if test "$ac_cv_sys_largefile_CC" != no
; then
15279 CC
=$CC$ac_cv_sys_largefile_CC
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15283 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15284 if ${ac_cv_sys_file_offset_bits+:} false
; then :
15285 $as_echo_n "(cached) " >&6
15288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15289 /* end confdefs.h. */
15290 #include <sys/types.h>
15291 /* Check that off_t can represent 2**63 - 1 correctly.
15292 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15293 since some C++ compilers masquerading as C compilers
15294 incorrectly reject 9223372036854775807. */
15295 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15296 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15297 && LARGE_OFF_T % 2147483647 == 1)
15307 if ac_fn_c_try_compile
"$LINENO"; then :
15308 ac_cv_sys_file_offset_bits
=no
; break
15310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15313 #define _FILE_OFFSET_BITS 64
15314 #include <sys/types.h>
15315 /* Check that off_t can represent 2**63 - 1 correctly.
15316 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15317 since some C++ compilers masquerading as C compilers
15318 incorrectly reject 9223372036854775807. */
15319 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15320 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15321 && LARGE_OFF_T % 2147483647 == 1)
15331 if ac_fn_c_try_compile
"$LINENO"; then :
15332 ac_cv_sys_file_offset_bits
=64; break
15334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15335 ac_cv_sys_file_offset_bits
=unknown
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15340 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15341 case $ac_cv_sys_file_offset_bits in #(
15344 cat >>confdefs.h
<<_ACEOF
15345 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15350 if test $ac_cv_sys_file_offset_bits = unknown
; then
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15352 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15353 if ${ac_cv_sys_large_files+:} false
; then :
15354 $as_echo_n "(cached) " >&6
15357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15358 /* end confdefs.h. */
15359 #include <sys/types.h>
15360 /* Check that off_t can represent 2**63 - 1 correctly.
15361 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15362 since some C++ compilers masquerading as C compilers
15363 incorrectly reject 9223372036854775807. */
15364 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15365 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15366 && LARGE_OFF_T % 2147483647 == 1)
15376 if ac_fn_c_try_compile
"$LINENO"; then :
15377 ac_cv_sys_large_files
=no
; break
15379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h. */
15382 #define _LARGE_FILES 1
15383 #include <sys/types.h>
15384 /* Check that off_t can represent 2**63 - 1 correctly.
15385 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15386 since some C++ compilers masquerading as C compilers
15387 incorrectly reject 9223372036854775807. */
15388 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15389 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15390 && LARGE_OFF_T % 2147483647 == 1)
15400 if ac_fn_c_try_compile
"$LINENO"; then :
15401 ac_cv_sys_large_files
=1; break
15403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15404 ac_cv_sys_large_files
=unknown
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15409 $as_echo "$ac_cv_sys_large_files" >&6; }
15410 case $ac_cv_sys_large_files in #(
15413 cat >>confdefs.h
<<_ACEOF
15414 #define _LARGE_FILES $ac_cv_sys_large_files
15427 .
${srcdir}/..
/bfd
/development.sh
15428 test "$development" = true
&& ac_checking
=yes
15429 # Check whether --enable-checking was given.
15430 if test "${enable_checking+set}" = set; then :
15431 enableval
=$enable_checking; case "${enableval}" in
15432 no|none
) ac_checking
= ;;
15433 *) ac_checking
=yes ;;
15436 if test x
$ac_checking != x
; then
15438 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
15443 # Check whether --with-lib-path was given.
15444 if test "${with_lib_path+set}" = set; then :
15445 withval
=$with_lib_path; LIB_PATH
=$withval
15448 # Check whether --enable-targets was given.
15449 if test "${enable_targets+set}" = set; then :
15450 enableval
=$enable_targets; case "${enableval}" in
15451 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
15453 no
) enable_targets
= ;;
15454 *) enable_targets
=$enableval ;;
15458 # Check whether --enable-64-bit-bfd was given.
15459 if test "${enable_64_bit_bfd+set}" = set; then :
15460 enableval
=$enable_64_bit_bfd; case $enableval in #(
15464 as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
15469 enable_64_bit_bfd
=no
15473 if test "x$enable_64_bit_bfd" = "xno"; then :
15474 # The cast to long int works around a bug in the HP C Compiler
15475 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15476 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15477 # This bug is HP SR number 8606223364.
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15479 $as_echo_n "checking size of void *... " >&6; }
15480 if ${ac_cv_sizeof_void_p+:} false
; then :
15481 $as_echo_n "(cached) " >&6
15483 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15486 if test "$ac_cv_type_void_p" = yes; then
15487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15489 as_fn_error
77 "cannot compute sizeof (void *)
15490 See \`config.log' for more details" "$LINENO" 5; }
15492 ac_cv_sizeof_void_p
=0
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15498 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15502 cat >>confdefs.h
<<_ACEOF
15503 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15507 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
15508 enable_64_bit_bfd
=yes
15513 if test "x$enable_64_bit_bfd" = "xyes"; then
15514 ENABLE_BFD_64_BIT_TRUE
=
15515 ENABLE_BFD_64_BIT_FALSE
='#'
15517 ENABLE_BFD_64_BIT_TRUE
='#'
15518 ENABLE_BFD_64_BIT_FALSE
=
15524 # Check whether --with-sysroot was given.
15525 if test "${with_sysroot+set}" = set; then :
15526 withval
=$with_sysroot;
15527 case ${with_sysroot} in
15528 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
15529 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
15532 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15535 if test "x$prefix" = xNONE
; then
15536 test_prefix
=/usr
/local
15538 test_prefix
=$prefix
15540 if test "x$exec_prefix" = xNONE
; then
15541 test_exec_prefix
=$test_prefix
15543 test_exec_prefix
=$exec_prefix
15545 case ${TARGET_SYSTEM_ROOT} in
15546 "${test_prefix}"|
"${test_prefix}/"*|\
15547 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
15548 '${prefix}'|
'${prefix}/'*|\
15549 '${exec_prefix}'|
'${exec_prefix}/'*)
15550 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15551 TARGET_SYSTEM_ROOT_DEFINE
="$t"
15558 TARGET_SYSTEM_ROOT
=
15559 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
15567 # Check whether --enable-gold was given.
15568 if test "${enable_gold+set}" = set; then :
15569 enableval
=$enable_gold; case "${enableval}" in
15571 install_as_default
=no
15572 installed_linker
=ld.bfd
15575 install_as_default
=yes
15576 installed_linker
=ld.bfd
15579 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
15583 install_as_default
=yes
15584 installed_linker
=ld.bfd
15590 # Check whether --enable-got was given.
15591 if test "${enable_got+set}" = set; then :
15592 enableval
=$enable_got; case "${enableval}" in
15593 target | single | negative | multigot
) got_handling
=$enableval ;;
15594 *) as_fn_error $?
"bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15597 got_handling
=target
15601 case "${got_handling}" in
15604 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15608 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15612 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15616 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15618 *) as_fn_error $?
"bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15622 # Decide the default method for compressing debug sections.
15623 ac_default_compressed_debug_sections
=unset
15624 # Provide a configure time option to override our default.
15625 # Check whether --enable-compressed_debug_sections was given.
15626 if test "${enable_compressed_debug_sections+set}" = set; then :
15627 enableval
=$enable_compressed_debug_sections; case ,"${enableval}", in
15628 ,yes, |
,all
, |
*,ld
,*) ac_default_compressed_debug_sections
=yes ;;
15629 ,no
, |
,none
,) ac_default_compressed_debug_sections
=no
;;
15633 # Select default compression algorithm.
15634 ac_default_compressed_debug_sections_algorithm
=COMPRESS_DEBUG_GABI_ZLIB
15635 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
15636 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
15637 enableval
=$enable_default_compressed_debug_sections_algorithm; case "${enableval}" in
15638 zstd
) ac_default_compressed_debug_sections_algorithm
=COMPRESS_DEBUG_ZSTD
;;
15642 # Decide setting DT_RUNPATH instead of DT_RPATH by default
15643 ac_default_new_dtags
=unset
15644 # Provide a configure time option to override our default.
15645 # Check whether --enable-new_dtags was given.
15646 if test "${enable_new_dtags+set}" = set; then :
15647 enableval
=$enable_new_dtags; case "${enableval}" in
15648 yes) ac_default_new_dtags
=1 ;;
15649 no
) ac_default_new_dtags
=0 ;;
15653 # Decide if -z relro should be enabled in ELF linker by default.
15654 ac_default_ld_z_relro
=unset
15655 # Provide a configure time option to override our default.
15656 # Check whether --enable-relro was given.
15657 if test "${enable_relro+set}" = set; then :
15658 enableval
=$enable_relro; case "${enableval}" in
15659 yes) ac_default_ld_z_relro
=1 ;;
15660 no
) ac_default_ld_z_relro
=0 ;;
15664 # Decide if DT_TEXTREL check should be enabled in ELF linker.
15665 ac_default_ld_textrel_check
=unset
15666 # Check whether --enable-textrel-check was given.
15667 if test "${enable_textrel_check+set}" = set; then :
15668 enableval
=$enable_textrel_check; case "${enableval}" in
15669 yes|no|warning|error
) ac_default_ld_textrel_check
=${enableval} ;;
15674 # Decide if -z separate-code should be enabled in ELF linker by default.
15675 ac_default_ld_z_separate_code
=unset
15676 # Check whether --enable-separate-code was given.
15677 if test "${enable_separate_code+set}" = set; then :
15678 enableval
=$enable_separate_code; case "${enableval}" in
15679 yes) ac_default_ld_z_separate_code
=1 ;;
15680 no
) ac_default_ld_z_separate_code
=0 ;;
15686 # By default warn when an executable stack is created due to object files
15687 # requesting such, not when the user specifies -z execstack.
15688 ac_default_ld_warn_execstack
=2
15689 # Check whether --enable-warn-execstack was given.
15690 if test "${enable_warn_execstack+set}" = set; then :
15691 enableval
=$enable_warn_execstack; case "${enableval}" in
15692 yes) ac_default_ld_warn_execstack
=1 ;;
15693 no
) ac_default_ld_warn_execstack
=0 ;;
15698 ac_default_ld_error_execstack
=0
15699 # Check whether --enable-error-execstack was given.
15700 if test "${enable_error_execstack+set}" = set; then :
15701 enableval
=$enable_error_execstack; case "${enableval}" in
15702 yes) ac_default_ld_error_execstack
=1 ;;
15703 no
) ac_default_ld_error_execstack
=0 ;;
15708 ac_default_ld_warn_rwx_segments
=unset
15709 # Check whether --enable-warn-rwx-segments was given.
15710 if test "${enable_warn_rwx_segments+set}" = set; then :
15711 enableval
=$enable_warn_rwx_segments; case "${enableval}" in
15712 yes) ac_default_ld_warn_rwx_segments
=1 ;;
15713 no
) ac_default_ld_warn_rwx_segments
=0 ;;
15718 ac_default_ld_error_rwx_segments
=0
15719 # Check whether --enable-error-rwx-segments was given.
15720 if test "${enable_error_rwx_segments+set}" = set; then :
15721 enableval
=$enable_error_rwx_segments; case "${enableval}" in
15722 yes) ac_default_ld_error_rwx_segments
=1 ;;
15723 no
) ac_default_ld_error_rwx_segments
=0 ;;
15728 ac_default_ld_default_execstack
=unset
15729 # Check whether --enable-default-execstack was given.
15730 if test "${enable_default_execstack+set}" = set; then :
15731 enableval
=$enable_default_execstack; case "${enableval}" in
15732 yes) ac_default_ld_default_execstack
=1 ;;
15733 no
) ac_default_ld_default_execstack
=0 ;;
15739 # Decide if --error-handling-script should be supported.
15740 ac_support_error_handling_script
=unset
15741 # Check whether --enable-error-handling-script was given.
15742 if test "${enable_error_handling_script+set}" = set; then :
15743 enableval
=$enable_error_handling_script; case "${enableval}" in
15744 yes) ac_support_error_handling_script
=1 ;;
15745 no
) ac_support_error_handling_script
=0 ;;
15750 # Decide which "--hash-style" to use by default
15751 # Provide a configure time option to override our default.
15752 # Check whether --enable-default-hash-style was given.
15753 if test "${enable_default_hash_style+set}" = set; then :
15754 enableval
=$enable_default_hash_style; case "${enable_default_hash_style}" in
15755 sysv | gnu | both
) ;;
15756 *) as_fn_error $?
"bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
15759 case "${target}" in
15760 # Enable gnu hash only on GNU targets, but not mips
15761 mips
*-*-*) enable_default_hash_style
=sysv
;;
15762 *-*-gnu* |
*-*-linux* |
*-*-nacl*) enable_default_hash_style
=both
;;
15763 *) enable_default_hash_style
=sysv
;;
15768 case "${enable_default_hash_style}" in
15769 sysv | both
) ac_default_emit_sysv_hash
=1 ;;
15770 *) ac_default_emit_sysv_hash
=0 ;;
15773 case "${enable_default_hash_style}" in
15774 gnu | both
) ac_default_emit_gnu_hash
=1 ;;
15775 *) ac_default_emit_gnu_hash
=0 ;;
15778 # Check whether --enable-initfini-array was given.
15779 if test "${enable_initfini_array+set}" = set; then :
15780 enableval
=$enable_initfini_array; case "${enableval}" in
15782 *) as_fn_error $?
"invalid --enable-initfini-array argument" "$LINENO" 5 ;;
15785 enable_initfini_array
=yes
15789 if test $enable_initfini_array = yes; then
15791 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
15795 # Check whether --enable-libctf was given.
15796 if test "${enable_libctf+set}" = set; then :
15797 enableval
=$enable_libctf;
15798 case "$enableval" in
15800 *) as_fn_error $?
"Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
15808 if test "${enable_libctf}" = yes; then
15810 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
15813 if test "${enable_libctf}" = yes; then
15814 ENABLE_LIBCTF_TRUE
=
15815 ENABLE_LIBCTF_FALSE
='#'
15817 ENABLE_LIBCTF_TRUE
='#'
15818 ENABLE_LIBCTF_FALSE
=
15823 # Used to validate --package-metadata= input. Disabled by default.
15824 # Check whether --enable-jansson was given.
15825 if test "${enable_jansson+set}" = set; then :
15826 enableval
=$enable_jansson; enable_jansson
=$enableval
15828 enable_jansson
="no"
15832 if test "x$enable_jansson" != "xno"; then :
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
15836 $as_echo_n "checking for jansson... " >&6; }
15838 if test -n "$JANSSON_CFLAGS"; then
15839 pkg_cv_JANSSON_CFLAGS
="$JANSSON_CFLAGS"
15840 elif test -n "$PKG_CONFIG"; then
15841 if test -n "$PKG_CONFIG" && \
15842 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15843 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15846 test $ac_status = 0; }; then
15847 pkg_cv_JANSSON_CFLAGS
=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
15848 test "x$?" != "x0" && pkg_failed
=yes
15855 if test -n "$JANSSON_LIBS"; then
15856 pkg_cv_JANSSON_LIBS
="$JANSSON_LIBS"
15857 elif test -n "$PKG_CONFIG"; then
15858 if test -n "$PKG_CONFIG" && \
15859 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15860 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15863 test $ac_status = 0; }; then
15864 pkg_cv_JANSSON_LIBS
=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
15865 test "x$?" != "x0" && pkg_failed
=yes
15873 if test $pkg_failed = no
; then
15874 pkg_save_LDFLAGS
="$LDFLAGS"
15875 LDFLAGS
="$LDFLAGS $pkg_cv_JANSSON_LIBS"
15876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15877 /* end confdefs.h. */
15887 if ac_fn_c_try_link
"$LINENO"; then :
15892 rm -f core conftest.err conftest.
$ac_objext \
15893 conftest
$ac_exeext conftest.
$ac_ext
15894 LDFLAGS
=$pkg_save_LDFLAGS
15899 if test $pkg_failed = yes; then
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15901 $as_echo "no" >&6; }
15903 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15904 _pkg_short_errors_supported
=yes
15906 _pkg_short_errors_supported
=no
15908 if test $_pkg_short_errors_supported = yes; then
15909 JANSSON_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
15911 JANSSON_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
15913 # Put the nasty error message in config.log where it belongs
15914 echo "$JANSSON_PKG_ERRORS" >&5
15916 as_fn_error $?
"Cannot find jansson library" "$LINENO" 5
15917 elif test $pkg_failed = untried
; then
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15919 $as_echo "no" >&6; }
15920 as_fn_error $?
"Cannot find jansson library" "$LINENO" 5
15922 JANSSON_CFLAGS
=$pkg_cv_JANSSON_CFLAGS
15923 JANSSON_LIBS
=$pkg_cv_JANSSON_LIBS
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15925 $as_echo "yes" >&6; }
15928 $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
15938 # Set the 'development' global.
15939 .
$srcdir/..
/bfd
/development.sh
15941 # Set acp_cpp_for_build variable
15942 ac_cpp_for_build
="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
15944 # Default set of GCC warnings to enable.
15945 GCC_WARN_CFLAGS
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15946 GCC_WARN_CFLAGS_FOR_BUILD
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15948 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15950 /* end confdefs.h. */
15953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15954 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
15957 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wshadow"
15962 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15964 /* end confdefs.h. */
15967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15968 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev
/null
2>&1; then :
15971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15972 /* end confdefs.h. */
15975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15976 $EGREP "^__clang__$" >/dev
/null
2>&1; then :
15977 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15985 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15986 WARN_WRITE_STRINGS
=""
15987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15988 /* end confdefs.h. */
15991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15992 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
15995 WARN_WRITE_STRINGS
="-Wwrite-strings"
16000 # Verify CC_FOR_BUILD to be compatible with warning flags
16002 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
16003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16004 /* end confdefs.h. */
16007 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16008 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
16011 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
16016 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
16017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16018 /* end confdefs.h. */
16021 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16022 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev
/null
2>&1; then :
16025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16026 /* end confdefs.h. */
16029 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16030 $EGREP "^__clang__$" >/dev
/null
2>&1; then :
16031 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
16039 # Check whether --enable-werror was given.
16040 if test "${enable_werror+set}" = set; then :
16041 enableval
=$enable_werror; case "${enableval}" in
16042 yes | y
) ERROR_ON_WARNING
="yes" ;;
16043 no | n
) ERROR_ON_WARNING
="no" ;;
16044 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16049 # Disable -Wformat by default when using gcc on mingw
16052 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16053 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wno-format"
16054 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
16060 # Enable -Werror by default when using gcc. Turn it off for releases.
16061 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true
; then
16062 ERROR_ON_WARNING
=yes
16066 if test "${ERROR_ON_WARNING}" = yes ; then
16067 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Werror"
16068 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
16069 NO_WERROR
="-Wno-error"
16072 if test "${GCC}" = yes ; then
16073 WARN_CFLAGS
="${GCC_WARN_CFLAGS}"
16074 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD}"
16077 # Check whether --enable-build-warnings was given.
16078 if test "${enable_build_warnings+set}" = set; then :
16079 enableval
=$enable_build_warnings; case "${enableval}" in
16080 yes) WARN_CFLAGS
="${GCC_WARN_CFLAGS}"
16081 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD}";;
16082 no
) if test "${GCC}" = yes ; then
16084 WARN_CFLAGS_FOR_BUILD
="-w"
16086 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16087 WARN_CFLAGS
="${GCC_WARN_CFLAGS} ${t}"
16088 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
16089 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16090 WARN_CFLAGS
="${t} ${GCC_WARN_CFLAGS}"
16091 WARN_CFLAGS_FOR_BUILD
="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
16092 *) WARN_CFLAGS
=`echo "${enableval}" | sed -e "s/,/ /g"`
16093 WARN_CFLAGS_FOR_BUILD
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16098 if test x
"$silent" != x
"yes" && test x
"$WARN_CFLAGS" != x
""; then
16099 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
16110 $as_echo_n "checking for LC_MESSAGES... " >&6; }
16111 if ${am_cv_val_LC_MESSAGES+:} false
; then :
16112 $as_echo_n "(cached) " >&6
16114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16115 /* end confdefs.h. */
16116 #include <locale.h>
16125 if ac_fn_c_try_link
"$LINENO"; then :
16126 am_cv_val_LC_MESSAGES
=yes
16128 am_cv_val_LC_MESSAGES
=no
16130 rm -f core conftest.err conftest.
$ac_objext \
16131 conftest
$ac_exeext conftest.
$ac_ext
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
16134 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
16135 if test $am_cv_val_LC_MESSAGES = yes; then
16137 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
16142 ac_config_headers
="$ac_config_headers config.h:config.in"
16148 if test -z "$target" ; then
16149 as_fn_error $?
"Unrecognized target system type; please check config.sub." "$LINENO" 5
16151 if test -z "$host" ; then
16152 as_fn_error $?
"Unrecognized host system type; please check config.sub." "$LINENO" 5
16155 # host-specific stuff:
16157 ALL_LINGUAS
="bg da de es fi fr ga id it ja pt_BR ru sr sv tr uk vi zh_CN zh_TW"
16160 if test -n "$ac_aux_dir"; then
16161 case "$ac_aux_dir" in
16162 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
16163 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16166 if test -z "$MKINSTALLDIRS"; then
16167 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16173 $as_echo_n "checking whether NLS is requested... " >&6; }
16174 # Check whether --enable-nls was given.
16175 if test "${enable_nls+set}" = set; then :
16176 enableval
=$enable_nls; USE_NLS
=$enableval
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16182 $as_echo "$USE_NLS" >&6; }
16189 # Prepare PATH_SEPARATOR.
16190 # The user is always right.
16191 if test "${PATH_SEPARATOR+set}" != set; then
16192 echo "#! /bin/sh" >conf$$.sh
16193 echo "exit 0" >>conf$$.sh
16195 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16203 # Find out how to test for executable files. Don't use a zero-byte file,
16204 # as systems may use methods other than mode bits to determine executability.
16205 cat >conf$$.
file <<_ASEOF
16209 chmod +x conf$$.
file
16210 if test -x conf$$.
file >/dev
/null
2>&1; then
16211 ac_executable_p
="test -x"
16213 ac_executable_p
="test -f"
16217 # Extract the first word of "msgfmt", so it can be a program name with args.
16218 set dummy msgfmt
; ac_word
=$2
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16220 $as_echo_n "checking for $ac_word... " >&6; }
16221 if ${ac_cv_path_MSGFMT+:} false
; then :
16222 $as_echo_n "(cached) " >&6
16226 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
16229 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
16230 for ac_dir
in $PATH; do
16232 test -z "$ac_dir" && ac_dir
=.
16233 for ac_exec_ext
in '' $ac_executable_extensions; do
16234 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16235 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
16236 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
16237 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
16244 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
16248 MSGFMT
="$ac_cv_path_MSGFMT"
16249 if test "$MSGFMT" != ":"; then
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16251 $as_echo "$MSGFMT" >&6; }
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16254 $as_echo "no" >&6; }
16257 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16258 set dummy gmsgfmt
; ac_word
=$2
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16260 $as_echo_n "checking for $ac_word... " >&6; }
16261 if ${ac_cv_path_GMSGFMT+:} false
; then :
16262 $as_echo_n "(cached) " >&6
16266 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
16269 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16270 for as_dir
in $PATH
16273 test -z "$as_dir" && as_dir
=.
16274 for ac_exec_ext
in '' $ac_executable_extensions; do
16275 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16276 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
16277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16284 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
16288 GMSGFMT
=$ac_cv_path_GMSGFMT
16289 if test -n "$GMSGFMT"; then
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16291 $as_echo "$GMSGFMT" >&6; }
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16294 $as_echo "no" >&6; }
16300 # Prepare PATH_SEPARATOR.
16301 # The user is always right.
16302 if test "${PATH_SEPARATOR+set}" != set; then
16303 echo "#! /bin/sh" >conf$$.sh
16304 echo "exit 0" >>conf$$.sh
16306 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16314 # Find out how to test for executable files. Don't use a zero-byte file,
16315 # as systems may use methods other than mode bits to determine executability.
16316 cat >conf$$.
file <<_ASEOF
16320 chmod +x conf$$.
file
16321 if test -x conf$$.
file >/dev
/null
2>&1; then
16322 ac_executable_p
="test -x"
16324 ac_executable_p
="test -f"
16328 # Extract the first word of "xgettext", so it can be a program name with args.
16329 set dummy xgettext
; ac_word
=$2
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16331 $as_echo_n "checking for $ac_word... " >&6; }
16332 if ${ac_cv_path_XGETTEXT+:} false
; then :
16333 $as_echo_n "(cached) " >&6
16335 case "$XGETTEXT" in
16337 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
16340 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
16341 for ac_dir
in $PATH; do
16343 test -z "$ac_dir" && ac_dir
=.
16344 for ac_exec_ext
in '' $ac_executable_extensions; do
16345 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16346 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
16347 (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
16348 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
16355 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
16359 XGETTEXT
="$ac_cv_path_XGETTEXT"
16360 if test "$XGETTEXT" != ":"; then
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16362 $as_echo "$XGETTEXT" >&6; }
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16365 $as_echo "no" >&6; }
16371 # Prepare PATH_SEPARATOR.
16372 # The user is always right.
16373 if test "${PATH_SEPARATOR+set}" != set; then
16374 echo "#! /bin/sh" >conf$$.sh
16375 echo "exit 0" >>conf$$.sh
16377 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16385 # Find out how to test for executable files. Don't use a zero-byte file,
16386 # as systems may use methods other than mode bits to determine executability.
16387 cat >conf$$.
file <<_ASEOF
16391 chmod +x conf$$.
file
16392 if test -x conf$$.
file >/dev
/null
2>&1; then
16393 ac_executable_p
="test -x"
16395 ac_executable_p
="test -f"
16399 # Extract the first word of "msgmerge", so it can be a program name with args.
16400 set dummy msgmerge
; ac_word
=$2
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16402 $as_echo_n "checking for $ac_word... " >&6; }
16403 if ${ac_cv_path_MSGMERGE+:} false
; then :
16404 $as_echo_n "(cached) " >&6
16406 case "$MSGMERGE" in
16408 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
16411 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
16412 for ac_dir
in $PATH; do
16414 test -z "$ac_dir" && ac_dir
=.
16415 for ac_exec_ext
in '' $ac_executable_extensions; do
16416 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16417 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
16418 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
16425 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
16429 MSGMERGE
="$ac_cv_path_MSGMERGE"
16430 if test "$MSGMERGE" != ":"; then
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16432 $as_echo "$MSGMERGE" >&6; }
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16435 $as_echo "no" >&6; }
16439 if test "$GMSGFMT" != ":"; then
16440 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
16441 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
16444 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16446 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16451 if test "$XGETTEXT" != ":"; then
16452 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
16453 (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
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16457 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16463 ac_config_commands
="$ac_config_commands default-1"
16467 if test "X$prefix" = "XNONE"; then
16468 acl_final_prefix
="$ac_default_prefix"
16470 acl_final_prefix
="$prefix"
16472 if test "X$exec_prefix" = "XNONE"; then
16473 acl_final_exec_prefix
='${prefix}'
16475 acl_final_exec_prefix
="$exec_prefix"
16477 acl_save_prefix
="$prefix"
16478 prefix
="$acl_final_prefix"
16479 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
16480 prefix
="$acl_save_prefix"
16483 # Check whether --with-gnu-ld was given.
16484 if test "${with_gnu_ld+set}" = set; then :
16485 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
16490 # Prepare PATH_SEPARATOR.
16491 # The user is always right.
16492 if test "${PATH_SEPARATOR+set}" != set; then
16493 echo "#! /bin/sh" >conf$$.sh
16494 echo "exit 0" >>conf$$.sh
16496 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16504 if test "$GCC" = yes; then
16505 # Check if gcc -print-prog-name=ld gives a path.
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16507 $as_echo_n "checking for ld used by GCC... " >&6; }
16510 # gcc leaves a trailing carriage return which upsets mingw
16511 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16513 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
16516 # Accept absolute paths.
16517 [\\/]* |
[A-Za-z
]:[\\/]*)
16518 re_direlt
='/[^/][^/]*/\.\./'
16519 # Canonicalize the path of ld
16520 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
16521 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
16522 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
16524 test -z "$LD" && LD
="$ac_prog"
16527 # If it fails, then pretend we aren't using GCC.
16531 # If it is relative, then search for the first ld in PATH.
16532 with_gnu_ld
=unknown
16535 elif test "$with_gnu_ld" = yes; then
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16537 $as_echo_n "checking for GNU ld... " >&6; }
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16540 $as_echo_n "checking for non-GNU ld... " >&6; }
16542 if ${acl_cv_path_LD+:} false
; then :
16543 $as_echo_n "(cached) " >&6
16545 if test -z "$LD"; then
16546 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16547 for ac_dir
in $PATH; do
16548 test -z "$ac_dir" && ac_dir
=.
16549 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
16550 acl_cv_path_LD
="$ac_dir/$ac_prog"
16551 # Check to see if the program is GNU ld. I'd rather use --version,
16552 # but apparently some GNU ld's only accept -v.
16553 # Break only if it was the GNU/non-GNU ld that we prefer.
16554 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
$EGREP '(GNU|with BFD)' > /dev
/null
; then
16555 test "$with_gnu_ld" != no
&& break
16557 test "$with_gnu_ld" != yes && break
16563 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
16567 LD
="$acl_cv_path_LD"
16568 if test -n "$LD"; then
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16570 $as_echo "$LD" >&6; }
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16573 $as_echo "no" >&6; }
16575 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16577 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16578 if ${acl_cv_prog_gnu_ld+:} false
; then :
16579 $as_echo_n "(cached) " >&6
16581 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16582 if $LD -v 2>&1 </dev
/null |
$EGREP '(GNU|with BFD)' 1>&5; then
16583 acl_cv_prog_gnu_ld
=yes
16585 acl_cv_prog_gnu_ld
=no
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16589 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16590 with_gnu_ld
=$acl_cv_prog_gnu_ld
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16595 $as_echo_n "checking for shared library run path origin... " >&6; }
16596 if ${acl_cv_rpath+:} false
; then :
16597 $as_echo_n "(cached) " >&6
16600 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
16601 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16603 rm -f .
/conftest.sh
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16608 $as_echo "$acl_cv_rpath" >&6; }
16610 libext
="$acl_cv_libext"
16611 shlibext
="$acl_cv_shlibext"
16612 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
16613 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
16614 hardcode_direct
="$acl_cv_hardcode_direct"
16615 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
16616 # Check whether --enable-rpath was given.
16617 if test "${enable_rpath+set}" = set; then :
16618 enableval
=$enable_rpath; :
16632 acl_save_prefix
="$prefix"
16633 prefix
="$acl_final_prefix"
16634 acl_save_exec_prefix
="$exec_prefix"
16635 exec_prefix
="$acl_final_exec_prefix"
16637 eval additional_includedir
=\"$includedir\"
16638 eval additional_libdir
=\"$libdir\"
16640 exec_prefix
="$acl_save_exec_prefix"
16641 prefix
="$acl_save_prefix"
16644 # Check whether --with-libiconv-prefix was given.
16645 if test "${with_libiconv_prefix+set}" = set; then :
16646 withval
=$with_libiconv_prefix;
16647 if test "X$withval" = "Xno"; then
16650 if test "X$withval" = "X"; then
16652 acl_save_prefix
="$prefix"
16653 prefix
="$acl_final_prefix"
16654 acl_save_exec_prefix
="$exec_prefix"
16655 exec_prefix
="$acl_final_exec_prefix"
16657 eval additional_includedir
=\"$includedir\"
16658 eval additional_libdir
=\"$libdir\"
16660 exec_prefix
="$acl_save_exec_prefix"
16661 prefix
="$acl_save_prefix"
16664 additional_includedir
="$withval/include"
16665 additional_libdir
="$withval/lib"
16672 # Check whether --with-libiconv-type was given.
16673 if test "${with_libiconv_type+set}" = set; then :
16674 withval
=$with_libiconv_type; with_libiconv_type
=$withval
16676 with_libiconv_type
=auto
16679 lib_type
=`eval echo \$with_libiconv_type`
16686 names_already_handled
=
16687 names_next_round
='iconv '
16688 while test -n "$names_next_round"; do
16689 names_this_round
="$names_next_round"
16691 for name
in $names_this_round; do
16693 for n
in $names_already_handled; do
16694 if test "$n" = "$name"; then
16695 already_handled
=yes
16699 if test -z "$already_handled"; then
16700 names_already_handled
="$names_already_handled $name"
16701 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16702 eval value
=\"\
$HAVE_LIB$uppername\"
16703 if test -n "$value"; then
16704 if test "$value" = yes; then
16705 eval value
=\"\
$LIB$uppername\"
16706 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
16707 eval value
=\"\
$LTLIB$uppername\"
16708 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
16717 if test $use_additional = yes; then
16718 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
16719 found_dir
="$additional_libdir"
16720 found_so
="$additional_libdir/lib$name.$shlibext"
16721 if test -f "$additional_libdir/lib$name.la"; then
16722 found_la
="$additional_libdir/lib$name.la"
16724 elif test x
$lib_type != xshared
; then
16725 if test -f "$additional_libdir/lib$name.$libext"; then
16726 found_dir
="$additional_libdir"
16727 found_a
="$additional_libdir/lib$name.$libext"
16728 if test -f "$additional_libdir/lib$name.la"; then
16729 found_la
="$additional_libdir/lib$name.la"
16734 if test "X$found_dir" = "X"; then
16735 for x
in $LDFLAGS $LTLIBICONV; do
16737 acl_save_prefix
="$prefix"
16738 prefix
="$acl_final_prefix"
16739 acl_save_exec_prefix
="$exec_prefix"
16740 exec_prefix
="$acl_final_exec_prefix"
16742 exec_prefix
="$acl_save_exec_prefix"
16743 prefix
="$acl_save_prefix"
16747 dir
=`echo "X$x" | sed -e 's/^X-L//'`
16748 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
16750 found_so
="$dir/lib$name.$shlibext"
16751 if test -f "$dir/lib$name.la"; then
16752 found_la
="$dir/lib$name.la"
16754 elif test x
$lib_type != xshared
; then
16755 if test -f "$dir/lib$name.$libext"; then
16757 found_a
="$dir/lib$name.$libext"
16758 if test -f "$dir/lib$name.la"; then
16759 found_la
="$dir/lib$name.la"
16765 if test "X$found_dir" != "X"; then
16770 if test "X$found_dir" != "X"; then
16771 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16772 if test "X$found_so" != "X"; then
16773 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
16774 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16777 for x
in $ltrpathdirs; do
16778 if test "X$x" = "X$found_dir"; then
16783 if test -z "$haveit"; then
16784 ltrpathdirs
="$ltrpathdirs $found_dir"
16786 if test "$hardcode_direct" = yes; then
16787 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16789 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
16790 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16792 for x
in $rpathdirs; do
16793 if test "X$x" = "X$found_dir"; then
16798 if test -z "$haveit"; then
16799 rpathdirs
="$rpathdirs $found_dir"
16803 for x
in $LDFLAGS $LIBICONV; do
16805 acl_save_prefix
="$prefix"
16806 prefix
="$acl_final_prefix"
16807 acl_save_exec_prefix
="$exec_prefix"
16808 exec_prefix
="$acl_final_exec_prefix"
16810 exec_prefix
="$acl_save_exec_prefix"
16811 prefix
="$acl_save_prefix"
16813 if test "X$x" = "X-L$found_dir"; then
16818 if test -z "$haveit"; then
16819 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16821 if test "$hardcode_minus_L" != no
; then
16822 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
16824 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
16830 if test "X$found_a" != "X"; then
16831 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
16833 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16836 additional_includedir
=
16837 case "$found_dir" in
16839 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16840 additional_includedir
="$basedir/include"
16843 if test "X$additional_includedir" != "X"; then
16844 if test "X$additional_includedir" != "X/usr/include"; then
16846 if test "X$additional_includedir" = "X/usr/local/include"; then
16847 if test -n "$GCC"; then
16849 linux
*) haveit
=yes;;
16853 if test -z "$haveit"; then
16854 for x
in $CPPFLAGS $INCICONV; do
16856 acl_save_prefix
="$prefix"
16857 prefix
="$acl_final_prefix"
16858 acl_save_exec_prefix
="$exec_prefix"
16859 exec_prefix
="$acl_final_exec_prefix"
16861 exec_prefix
="$acl_save_exec_prefix"
16862 prefix
="$acl_save_prefix"
16864 if test "X$x" = "X-I$additional_includedir"; then
16869 if test -z "$haveit"; then
16870 if test -d "$additional_includedir"; then
16871 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16877 if test -n "$found_la"; then
16878 save_libdir
="$libdir"
16879 case "$found_la" in
16880 */* |
*\\*) .
"$found_la" ;;
16881 *) .
"./$found_la" ;;
16883 libdir
="$save_libdir"
16884 for dep
in $dependency_libs; do
16887 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16888 if test "X$additional_libdir" != "X/usr/lib"; then
16890 if test "X$additional_libdir" = "X/usr/local/lib"; then
16891 if test -n "$GCC"; then
16893 linux
*) haveit
=yes;;
16897 if test -z "$haveit"; then
16899 for x
in $LDFLAGS $LIBICONV; do
16901 acl_save_prefix
="$prefix"
16902 prefix
="$acl_final_prefix"
16903 acl_save_exec_prefix
="$exec_prefix"
16904 exec_prefix
="$acl_final_exec_prefix"
16906 exec_prefix
="$acl_save_exec_prefix"
16907 prefix
="$acl_save_prefix"
16909 if test "X$x" = "X-L$additional_libdir"; then
16914 if test -z "$haveit"; then
16915 if test -d "$additional_libdir"; then
16916 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16920 for x
in $LDFLAGS $LTLIBICONV; do
16922 acl_save_prefix
="$prefix"
16923 prefix
="$acl_final_prefix"
16924 acl_save_exec_prefix
="$exec_prefix"
16925 exec_prefix
="$acl_final_exec_prefix"
16927 exec_prefix
="$acl_save_exec_prefix"
16928 prefix
="$acl_save_prefix"
16930 if test "X$x" = "X-L$additional_libdir"; then
16935 if test -z "$haveit"; then
16936 if test -d "$additional_libdir"; then
16937 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16944 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16945 if test "$enable_rpath" != no
; then
16947 for x
in $rpathdirs; do
16948 if test "X$x" = "X$dir"; then
16953 if test -z "$haveit"; then
16954 rpathdirs
="$rpathdirs $dir"
16957 for x
in $ltrpathdirs; do
16958 if test "X$x" = "X$dir"; then
16963 if test -z "$haveit"; then
16964 ltrpathdirs
="$ltrpathdirs $dir"
16969 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16972 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16975 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
16976 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16982 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
16983 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
16984 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16986 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
16987 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
16994 if test "X$rpathdirs" != "X"; then
16995 if test -n "$hardcode_libdir_separator"; then
16997 for found_dir
in $rpathdirs; do
16998 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17000 acl_save_libdir
="$libdir"
17002 eval flag
=\"$hardcode_libdir_flag_spec\"
17003 libdir
="$acl_save_libdir"
17004 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
17006 for found_dir
in $rpathdirs; do
17007 acl_save_libdir
="$libdir"
17008 libdir
="$found_dir"
17009 eval flag
=\"$hardcode_libdir_flag_spec\"
17010 libdir
="$acl_save_libdir"
17011 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
17015 if test "X$ltrpathdirs" != "X"; then
17016 for found_dir
in $ltrpathdirs; do
17017 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17025 if test -f ..
/gettext
/uninstalled-config.sh
; then
17026 relative_builddir
='$(top_builddir)/../gettext'
17027 . ..
/gettext
/uninstalled-config.sh
17029 # The sister gettext directory doesn't exist and won't collect information on
17030 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17055 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17056 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false
; then :
17057 $as_echo_n "(cached) " >&6
17059 gt_save_LIBS
="$LIBS"
17060 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
17061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17062 /* end confdefs.h. */
17063 #include <CoreFoundation/CFPreferences.h>
17067 CFPreferencesCopyAppValue(NULL, NULL)
17072 if ac_fn_c_try_link
"$LINENO"; then :
17073 gt_cv_func_CFPreferencesCopyAppValue
=yes
17075 gt_cv_func_CFPreferencesCopyAppValue
=no
17077 rm -f core conftest.err conftest.
$ac_objext \
17078 conftest
$ac_exeext conftest.
$ac_ext
17079 LIBS
="$gt_save_LIBS"
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17082 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17083 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17085 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
17089 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
17090 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false
; then :
17091 $as_echo_n "(cached) " >&6
17093 gt_save_LIBS
="$LIBS"
17094 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
17095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17096 /* end confdefs.h. */
17097 #include <CoreFoundation/CFLocale.h>
17101 CFLocaleCopyPreferredLanguages();
17106 if ac_fn_c_try_link
"$LINENO"; then :
17107 gt_cv_func_CFLocaleCopyPreferredLanguages
=yes
17109 gt_cv_func_CFLocaleCopyPreferredLanguages
=no
17111 rm -f core conftest.err conftest.
$ac_objext \
17112 conftest
$ac_exeext conftest.
$ac_ext
17113 LIBS
="$gt_save_LIBS"
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
17116 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
17117 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17119 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
17123 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
17124 ||
test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17125 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
17137 case " $gt_needs " in
17138 *" need-formatstring-macros "*) gt_api_version
=3 ;;
17139 *" need-ngettext "*) gt_api_version
=2 ;;
17140 *) gt_api_version
=1 ;;
17142 gt_func_gnugettext_libc
="gt_cv_func_gnugettext${gt_api_version}_libc"
17143 gt_func_gnugettext_libintl
="gt_cv_func_gnugettext${gt_api_version}_libintl"
17145 if test "$USE_NLS" = "yes"; then
17146 gt_use_preinstalled_gnugettext
=no
17149 if test $gt_api_version -ge 3; then
17150 gt_revision_test_code
='
17151 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17152 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
17154 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
17157 gt_revision_test_code
=
17159 if test $gt_api_version -ge 2; then
17160 gt_expression_test_code
=' + * ngettext ("", "", 0)'
17162 gt_expression_test_code
=
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17166 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17167 if eval \
${$gt_func_gnugettext_libc+:} false
; then :
17168 $as_echo_n "(cached) " >&6
17170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17171 /* end confdefs.h. */
17173 #include <libintl.h>
17174 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17175 extern int _nl_msg_cat_cntr;
17176 extern int *_nl_domain_bindings;
17177 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
17179 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17181 $gt_revision_test_code
17187 bindtextdomain ("", "");
17188 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17194 if ac_fn_c_try_link
"$LINENO"; then :
17195 eval "$gt_func_gnugettext_libc=yes"
17197 eval "$gt_func_gnugettext_libc=no"
17199 rm -f core conftest.err conftest.
$ac_objext \
17200 conftest
$ac_exeext conftest.
$ac_ext
17202 eval ac_res
=\$
$gt_func_gnugettext_libc
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17204 $as_echo "$ac_res" >&6; }
17206 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
17212 am_save_CPPFLAGS
="$CPPFLAGS"
17214 for element
in $INCICONV; do
17216 for x
in $CPPFLAGS; do
17218 acl_save_prefix
="$prefix"
17219 prefix
="$acl_final_prefix"
17220 acl_save_exec_prefix
="$exec_prefix"
17221 exec_prefix
="$acl_final_exec_prefix"
17223 exec_prefix
="$acl_save_exec_prefix"
17224 prefix
="$acl_save_prefix"
17226 if test "X$x" = "X$element"; then
17231 if test -z "$haveit"; then
17232 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17238 $as_echo_n "checking for iconv... " >&6; }
17239 if ${am_cv_func_iconv+:} false
; then :
17240 $as_echo_n "(cached) " >&6
17243 am_cv_func_iconv
="no, consider installing GNU libiconv"
17245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17246 /* end confdefs.h. */
17248 #include <stdlib.h>
17254 iconv_t cd = iconv_open("","");
17255 iconv(cd,NULL,NULL,NULL,NULL);
17261 if ac_fn_c_try_link
"$LINENO"; then :
17262 am_cv_func_iconv
=yes
17264 rm -f core conftest.err conftest.
$ac_objext \
17265 conftest
$ac_exeext conftest.
$ac_ext
17266 if test "$am_cv_func_iconv" != yes; then
17267 am_save_LIBS
="$LIBS"
17268 LIBS
="$LIBS $LIBICONV"
17269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17270 /* end confdefs.h. */
17272 #include <stdlib.h>
17278 iconv_t cd = iconv_open("","");
17279 iconv(cd,NULL,NULL,NULL,NULL);
17285 if ac_fn_c_try_link
"$LINENO"; then :
17286 am_cv_lib_iconv
=yes
17287 am_cv_func_iconv
=yes
17289 rm -f core conftest.err conftest.
$ac_objext \
17290 conftest
$ac_exeext conftest.
$ac_ext
17291 LIBS
="$am_save_LIBS"
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17296 $as_echo "$am_cv_func_iconv" >&6; }
17297 if test "$am_cv_func_iconv" = yes; then
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17299 $as_echo_n "checking for working iconv... " >&6; }
17300 if ${am_cv_func_iconv_works+:} false
; then :
17301 $as_echo_n "(cached) " >&6
17304 am_save_LIBS
="$LIBS"
17305 if test $am_cv_lib_iconv = yes; then
17306 LIBS
="$LIBS $LIBICONV"
17308 am_cv_func_iconv_works
=no
17309 for ac_iconv_const
in '' 'const'; do
17310 if test "$cross_compiling" = yes; then :
17312 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
17313 *) am_cv_func_iconv_works
="guessing yes" ;;
17316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17317 /* end confdefs.h. */
17320 #include <string.h>
17322 #ifndef ICONV_CONST
17323 # define ICONV_CONST $ac_iconv_const
17330 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
17331 successful returns. This is even documented in
17332 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
17334 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17335 if (cd_utf8_to_88591 != (iconv_t)(-1))
17337 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
17339 ICONV_CONST char *inptr = input;
17340 size_t inbytesleft = strlen (input);
17341 char *outptr = buf;
17342 size_t outbytesleft = sizeof (buf);
17343 size_t res = iconv (cd_utf8_to_88591,
17344 &inptr, &inbytesleft,
17345 &outptr, &outbytesleft);
17348 iconv_close (cd_utf8_to_88591);
17351 /* Test against Solaris 10 bug: Failures are not distinguishable from
17352 successful returns. */
17354 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
17355 if (cd_ascii_to_88591 != (iconv_t)(-1))
17357 static ICONV_CONST char input[] = "\263";
17359 ICONV_CONST char *inptr = input;
17360 size_t inbytesleft = strlen (input);
17361 char *outptr = buf;
17362 size_t outbytesleft = sizeof (buf);
17363 size_t res = iconv (cd_ascii_to_88591,
17364 &inptr, &inbytesleft,
17365 &outptr, &outbytesleft);
17368 iconv_close (cd_ascii_to_88591);
17371 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
17373 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
17374 if (cd_88591_to_utf8 != (iconv_t)(-1))
17376 static ICONV_CONST char input[] = "\304";
17377 static char buf[2] = { (char)0xDE, (char)0xAD };
17378 ICONV_CONST char *inptr = input;
17379 size_t inbytesleft = 1;
17380 char *outptr = buf;
17381 size_t outbytesleft = 1;
17382 size_t res = iconv (cd_88591_to_utf8,
17383 &inptr, &inbytesleft,
17384 &outptr, &outbytesleft);
17385 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
17387 iconv_close (cd_88591_to_utf8);
17390 #if 0 /* This bug could be worked around by the caller. */
17391 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
17393 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17394 if (cd_88591_to_utf8 != (iconv_t)(-1))
17396 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17398 ICONV_CONST char *inptr = input;
17399 size_t inbytesleft = strlen (input);
17400 char *outptr = buf;
17401 size_t outbytesleft = sizeof (buf);
17402 size_t res = iconv (cd_88591_to_utf8,
17403 &inptr, &inbytesleft,
17404 &outptr, &outbytesleft);
17407 iconv_close (cd_88591_to_utf8);
17411 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17414 /* Try standardized names. */
17415 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
17416 /* Try IRIX, OSF/1 names. */
17417 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
17418 /* Try AIX names. */
17419 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
17420 /* Try HP-UX names. */
17421 iconv_t cd4 = iconv_open ("utf8", "eucJP");
17422 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
17423 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
17425 if (cd1 != (iconv_t)(-1))
17427 if (cd2 != (iconv_t)(-1))
17429 if (cd3 != (iconv_t)(-1))
17431 if (cd4 != (iconv_t)(-1))
17440 if ac_fn_c_try_run
"$LINENO"; then :
17441 am_cv_func_iconv_works
=yes
17443 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17444 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17447 test "$am_cv_func_iconv_works" = no ||
break
17449 LIBS
="$am_save_LIBS"
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17453 $as_echo "$am_cv_func_iconv_works" >&6; }
17454 case "$am_cv_func_iconv_works" in
17455 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
17456 *) am_func_iconv
=yes ;;
17459 am_func_iconv
=no am_cv_lib_iconv
=no
17461 if test "$am_func_iconv" = yes; then
17463 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17466 if test "$am_cv_lib_iconv" = yes; then
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17468 $as_echo_n "checking how to link with libiconv... " >&6; }
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17470 $as_echo "$LIBICONV" >&6; }
17472 CPPFLAGS
="$am_save_CPPFLAGS"
17484 acl_save_prefix
="$prefix"
17485 prefix
="$acl_final_prefix"
17486 acl_save_exec_prefix
="$exec_prefix"
17487 exec_prefix
="$acl_final_exec_prefix"
17489 eval additional_includedir
=\"$includedir\"
17490 eval additional_libdir
=\"$libdir\"
17492 exec_prefix
="$acl_save_exec_prefix"
17493 prefix
="$acl_save_prefix"
17496 # Check whether --with-libintl-prefix was given.
17497 if test "${with_libintl_prefix+set}" = set; then :
17498 withval
=$with_libintl_prefix;
17499 if test "X$withval" = "Xno"; then
17502 if test "X$withval" = "X"; then
17504 acl_save_prefix
="$prefix"
17505 prefix
="$acl_final_prefix"
17506 acl_save_exec_prefix
="$exec_prefix"
17507 exec_prefix
="$acl_final_exec_prefix"
17509 eval additional_includedir
=\"$includedir\"
17510 eval additional_libdir
=\"$libdir\"
17512 exec_prefix
="$acl_save_exec_prefix"
17513 prefix
="$acl_save_prefix"
17516 additional_includedir
="$withval/include"
17517 additional_libdir
="$withval/lib"
17524 # Check whether --with-libintl-type was given.
17525 if test "${with_libintl_type+set}" = set; then :
17526 withval
=$with_libintl_type; with_libintl_type
=$withval
17528 with_libintl_type
=auto
17531 lib_type
=`eval echo \$with_libintl_type`
17538 names_already_handled
=
17539 names_next_round
='intl '
17540 while test -n "$names_next_round"; do
17541 names_this_round
="$names_next_round"
17543 for name
in $names_this_round; do
17545 for n
in $names_already_handled; do
17546 if test "$n" = "$name"; then
17547 already_handled
=yes
17551 if test -z "$already_handled"; then
17552 names_already_handled
="$names_already_handled $name"
17553 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17554 eval value
=\"\
$HAVE_LIB$uppername\"
17555 if test -n "$value"; then
17556 if test "$value" = yes; then
17557 eval value
=\"\
$LIB$uppername\"
17558 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
17559 eval value
=\"\
$LTLIB$uppername\"
17560 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
17569 if test $use_additional = yes; then
17570 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17571 found_dir
="$additional_libdir"
17572 found_so
="$additional_libdir/lib$name.$shlibext"
17573 if test -f "$additional_libdir/lib$name.la"; then
17574 found_la
="$additional_libdir/lib$name.la"
17576 elif test x
$lib_type != xshared
; then
17577 if test -f "$additional_libdir/lib$name.$libext"; then
17578 found_dir
="$additional_libdir"
17579 found_a
="$additional_libdir/lib$name.$libext"
17580 if test -f "$additional_libdir/lib$name.la"; then
17581 found_la
="$additional_libdir/lib$name.la"
17586 if test "X$found_dir" = "X"; then
17587 for x
in $LDFLAGS $LTLIBINTL; do
17589 acl_save_prefix
="$prefix"
17590 prefix
="$acl_final_prefix"
17591 acl_save_exec_prefix
="$exec_prefix"
17592 exec_prefix
="$acl_final_exec_prefix"
17594 exec_prefix
="$acl_save_exec_prefix"
17595 prefix
="$acl_save_prefix"
17599 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17600 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17602 found_so
="$dir/lib$name.$shlibext"
17603 if test -f "$dir/lib$name.la"; then
17604 found_la
="$dir/lib$name.la"
17606 elif test x
$lib_type != xshared
; then
17607 if test -f "$dir/lib$name.$libext"; then
17609 found_a
="$dir/lib$name.$libext"
17610 if test -f "$dir/lib$name.la"; then
17611 found_la
="$dir/lib$name.la"
17617 if test "X$found_dir" != "X"; then
17622 if test "X$found_dir" != "X"; then
17623 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17624 if test "X$found_so" != "X"; then
17625 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17626 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17629 for x
in $ltrpathdirs; do
17630 if test "X$x" = "X$found_dir"; then
17635 if test -z "$haveit"; then
17636 ltrpathdirs
="$ltrpathdirs $found_dir"
17638 if test "$hardcode_direct" = yes; then
17639 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17641 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17642 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17644 for x
in $rpathdirs; do
17645 if test "X$x" = "X$found_dir"; then
17650 if test -z "$haveit"; then
17651 rpathdirs
="$rpathdirs $found_dir"
17655 for x
in $LDFLAGS $LIBINTL; do
17657 acl_save_prefix
="$prefix"
17658 prefix
="$acl_final_prefix"
17659 acl_save_exec_prefix
="$exec_prefix"
17660 exec_prefix
="$acl_final_exec_prefix"
17662 exec_prefix
="$acl_save_exec_prefix"
17663 prefix
="$acl_save_prefix"
17665 if test "X$x" = "X-L$found_dir"; then
17670 if test -z "$haveit"; then
17671 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17673 if test "$hardcode_minus_L" != no
; then
17674 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
17676 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
17682 if test "X$found_a" != "X"; then
17683 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
17685 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17688 additional_includedir
=
17689 case "$found_dir" in
17691 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17692 additional_includedir
="$basedir/include"
17695 if test "X$additional_includedir" != "X"; then
17696 if test "X$additional_includedir" != "X/usr/include"; then
17698 if test "X$additional_includedir" = "X/usr/local/include"; then
17699 if test -n "$GCC"; then
17701 linux
*) haveit
=yes;;
17705 if test -z "$haveit"; then
17706 for x
in $CPPFLAGS $INCINTL; do
17708 acl_save_prefix
="$prefix"
17709 prefix
="$acl_final_prefix"
17710 acl_save_exec_prefix
="$exec_prefix"
17711 exec_prefix
="$acl_final_exec_prefix"
17713 exec_prefix
="$acl_save_exec_prefix"
17714 prefix
="$acl_save_prefix"
17716 if test "X$x" = "X-I$additional_includedir"; then
17721 if test -z "$haveit"; then
17722 if test -d "$additional_includedir"; then
17723 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17729 if test -n "$found_la"; then
17730 save_libdir
="$libdir"
17731 case "$found_la" in
17732 */* |
*\\*) .
"$found_la" ;;
17733 *) .
"./$found_la" ;;
17735 libdir
="$save_libdir"
17736 for dep
in $dependency_libs; do
17739 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17740 if test "X$additional_libdir" != "X/usr/lib"; then
17742 if test "X$additional_libdir" = "X/usr/local/lib"; then
17743 if test -n "$GCC"; then
17745 linux
*) haveit
=yes;;
17749 if test -z "$haveit"; then
17751 for x
in $LDFLAGS $LIBINTL; do
17753 acl_save_prefix
="$prefix"
17754 prefix
="$acl_final_prefix"
17755 acl_save_exec_prefix
="$exec_prefix"
17756 exec_prefix
="$acl_final_exec_prefix"
17758 exec_prefix
="$acl_save_exec_prefix"
17759 prefix
="$acl_save_prefix"
17761 if test "X$x" = "X-L$additional_libdir"; then
17766 if test -z "$haveit"; then
17767 if test -d "$additional_libdir"; then
17768 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17772 for x
in $LDFLAGS $LTLIBINTL; do
17774 acl_save_prefix
="$prefix"
17775 prefix
="$acl_final_prefix"
17776 acl_save_exec_prefix
="$exec_prefix"
17777 exec_prefix
="$acl_final_exec_prefix"
17779 exec_prefix
="$acl_save_exec_prefix"
17780 prefix
="$acl_save_prefix"
17782 if test "X$x" = "X-L$additional_libdir"; then
17787 if test -z "$haveit"; then
17788 if test -d "$additional_libdir"; then
17789 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17796 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17797 if test "$enable_rpath" != no
; then
17799 for x
in $rpathdirs; do
17800 if test "X$x" = "X$dir"; then
17805 if test -z "$haveit"; then
17806 rpathdirs
="$rpathdirs $dir"
17809 for x
in $ltrpathdirs; do
17810 if test "X$x" = "X$dir"; then
17815 if test -z "$haveit"; then
17816 ltrpathdirs
="$ltrpathdirs $dir"
17821 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17824 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17827 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
17828 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17834 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
17835 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
17836 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17838 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
17839 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
17846 if test "X$rpathdirs" != "X"; then
17847 if test -n "$hardcode_libdir_separator"; then
17849 for found_dir
in $rpathdirs; do
17850 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17852 acl_save_libdir
="$libdir"
17854 eval flag
=\"$hardcode_libdir_flag_spec\"
17855 libdir
="$acl_save_libdir"
17856 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
17858 for found_dir
in $rpathdirs; do
17859 acl_save_libdir
="$libdir"
17860 libdir
="$found_dir"
17861 eval flag
=\"$hardcode_libdir_flag_spec\"
17862 libdir
="$acl_save_libdir"
17863 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
17867 if test "X$ltrpathdirs" != "X"; then
17868 for found_dir
in $ltrpathdirs; do
17869 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17874 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17875 if eval \
${$gt_func_gnugettext_libintl+:} false
; then :
17876 $as_echo_n "(cached) " >&6
17878 gt_save_CPPFLAGS
="$CPPFLAGS"
17879 CPPFLAGS
="$CPPFLAGS $INCINTL"
17880 gt_save_LIBS
="$LIBS"
17881 LIBS
="$LIBS $LIBINTL"
17882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17883 /* end confdefs.h. */
17885 #include <libintl.h>
17886 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17887 extern int _nl_msg_cat_cntr;
17892 const char *_nl_expand_alias (const char *);
17893 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
17895 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17897 $gt_revision_test_code
17903 bindtextdomain ("", "");
17904 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17910 if ac_fn_c_try_link
"$LINENO"; then :
17911 eval "$gt_func_gnugettext_libintl=yes"
17913 eval "$gt_func_gnugettext_libintl=no"
17915 rm -f core conftest.err conftest.
$ac_objext \
17916 conftest
$ac_exeext conftest.
$ac_ext
17917 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
17918 LIBS
="$LIBS $LIBICONV"
17919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17920 /* end confdefs.h. */
17922 #include <libintl.h>
17923 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17924 extern int _nl_msg_cat_cntr;
17929 const char *_nl_expand_alias (const char *);
17930 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
17932 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17934 $gt_revision_test_code
17940 bindtextdomain ("", "");
17941 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17947 if ac_fn_c_try_link
"$LINENO"; then :
17948 LIBINTL
="$LIBINTL $LIBICONV"
17949 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
17950 eval "$gt_func_gnugettext_libintl=yes"
17953 rm -f core conftest.err conftest.
$ac_objext \
17954 conftest
$ac_exeext conftest.
$ac_ext
17956 CPPFLAGS
="$gt_save_CPPFLAGS"
17957 LIBS
="$gt_save_LIBS"
17959 eval ac_res
=\$
$gt_func_gnugettext_libintl
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17961 $as_echo "$ac_res" >&6; }
17964 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
17965 ||
{ { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
17966 && test "$PACKAGE" != gettext-runtime \
17967 && test "$PACKAGE" != gettext-tools
; }; then
17968 gt_use_preinstalled_gnugettext
=yes
17977 if test -n "$INTL_MACOSX_LIBS"; then
17978 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17979 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
17980 LIBINTL
="$LIBINTL $INTL_MACOSX_LIBS"
17981 LTLIBINTL
="$LTLIBINTL $INTL_MACOSX_LIBS"
17985 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17986 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
17988 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17996 $as_echo_n "checking whether to use NLS... " >&6; }
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17998 $as_echo "$USE_NLS" >&6; }
17999 if test "$USE_NLS" = "yes"; then
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18001 $as_echo_n "checking where the gettext function comes from... " >&6; }
18002 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18003 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18004 gt_source
="external libintl"
18009 gt_source
="included intl directory"
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18012 $as_echo "$gt_source" >&6; }
18015 if test "$USE_NLS" = "yes"; then
18017 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18018 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18020 $as_echo_n "checking how to link with libintl... " >&6; }
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18022 $as_echo "$LIBINTL" >&6; }
18024 for element
in $INCINTL; do
18026 for x
in $CPPFLAGS; do
18028 acl_save_prefix
="$prefix"
18029 prefix
="$acl_final_prefix"
18030 acl_save_exec_prefix
="$exec_prefix"
18031 exec_prefix
="$acl_final_exec_prefix"
18033 exec_prefix
="$acl_save_exec_prefix"
18034 prefix
="$acl_save_prefix"
18036 if test "X$x" = "X$element"; then
18041 if test -z "$haveit"; then
18042 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
18049 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18052 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18061 INTLLIBS
="$LIBINTL"
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18081 $as_echo_n "checking whether NLS is requested... " >&6; }
18082 if test x
"$USE_NLS" != xyes
; then
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18084 $as_echo "no" >&6; }
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18087 $as_echo "yes" >&6; }
18089 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
18093 $as_echo_n "checking for catalogs to be installed... " >&6; }
18094 # Look for .po and .gmo files in the source directory.
18097 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
18098 # If there aren't any .gmo files the shell will give us the
18099 # literal string "../path/to/srcdir/po/*.gmo" which has to be
18101 case "$cat" in *\
**)
18104 # The quadruple backslash is collapsed to a double backslash
18105 # by the backticks, then collapsed again by the double quotes,
18106 # leaving us with one backslash in the sed expression (right
18107 # before the dot that mustn't act as a wildcard).
18108 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
18109 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
18110 # The user is allowed to set LINGUAS to a list of languages to
18111 # install catalogs for. If it's empty that means "all of them."
18112 if test "x$LINGUAS" = x
; then
18113 CATALOGS
="$CATALOGS $cat"
18114 XLINGUAS
="$XLINGUAS $lang"
18116 case "$LINGUAS" in *$lang*)
18117 CATALOGS
="$CATALOGS $cat"
18118 XLINGUAS
="$XLINGUAS $lang"
18123 LINGUAS
="$XLINGUAS"
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
18125 $as_echo "$LINGUAS" >&6; }
18141 # Prepare PATH_SEPARATOR.
18142 # The user is always right.
18143 if test "${PATH_SEPARATOR+set}" != set; then
18144 echo "#! /bin/sh" >conf$$.sh
18145 echo "exit 0" >>conf$$.sh
18147 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
18155 # Find out how to test for executable files. Don't use a zero-byte file,
18156 # as systems may use methods other than mode bits to determine executability.
18157 cat >conf$$.
file <<_ASEOF
18161 chmod +x conf$$.
file
18162 if test -x conf$$.
file >/dev
/null
2>&1; then
18163 ac_executable_p
="test -x"
18165 ac_executable_p
="test -f"
18169 # Extract the first word of "msgfmt", so it can be a program name with args.
18170 set dummy msgfmt
; ac_word
=$2
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18172 $as_echo_n "checking for $ac_word... " >&6; }
18173 if ${ac_cv_path_MSGFMT+:} false
; then :
18174 $as_echo_n "(cached) " >&6
18178 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
18181 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
18182 for ac_dir
in $PATH; do
18184 test -z "$ac_dir" && ac_dir
=.
18185 for ac_exec_ext
in '' $ac_executable_extensions; do
18186 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18187 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
18188 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
18189 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
18196 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
18200 MSGFMT
="$ac_cv_path_MSGFMT"
18201 if test "$MSGFMT" != ":"; then
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18203 $as_echo "$MSGFMT" >&6; }
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18206 $as_echo "no" >&6; }
18209 # Extract the first word of "gmsgfmt", so it can be a program name with args.
18210 set dummy gmsgfmt
; ac_word
=$2
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18212 $as_echo_n "checking for $ac_word... " >&6; }
18213 if ${ac_cv_path_GMSGFMT+:} false
; then :
18214 $as_echo_n "(cached) " >&6
18218 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
18221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18222 for as_dir
in $PATH
18225 test -z "$as_dir" && as_dir
=.
18226 for ac_exec_ext
in '' $ac_executable_extensions; do
18227 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18228 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
18229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18236 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
18240 GMSGFMT
=$ac_cv_path_GMSGFMT
18241 if test -n "$GMSGFMT"; then
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
18243 $as_echo "$GMSGFMT" >&6; }
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18246 $as_echo "no" >&6; }
18252 # Prepare PATH_SEPARATOR.
18253 # The user is always right.
18254 if test "${PATH_SEPARATOR+set}" != set; then
18255 echo "#! /bin/sh" >conf$$.sh
18256 echo "exit 0" >>conf$$.sh
18258 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
18266 # Find out how to test for executable files. Don't use a zero-byte file,
18267 # as systems may use methods other than mode bits to determine executability.
18268 cat >conf$$.
file <<_ASEOF
18272 chmod +x conf$$.
file
18273 if test -x conf$$.
file >/dev
/null
2>&1; then
18274 ac_executable_p
="test -x"
18276 ac_executable_p
="test -f"
18280 # Extract the first word of "xgettext", so it can be a program name with args.
18281 set dummy xgettext
; ac_word
=$2
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18283 $as_echo_n "checking for $ac_word... " >&6; }
18284 if ${ac_cv_path_XGETTEXT+:} false
; then :
18285 $as_echo_n "(cached) " >&6
18287 case "$XGETTEXT" in
18289 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
18292 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
18293 for ac_dir
in $PATH; do
18295 test -z "$ac_dir" && ac_dir
=.
18296 for ac_exec_ext
in '' $ac_executable_extensions; do
18297 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18298 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
18299 (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
18300 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
18307 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
18311 XGETTEXT
="$ac_cv_path_XGETTEXT"
18312 if test "$XGETTEXT" != ":"; then
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18314 $as_echo "$XGETTEXT" >&6; }
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18317 $as_echo "no" >&6; }
18323 # Prepare PATH_SEPARATOR.
18324 # The user is always right.
18325 if test "${PATH_SEPARATOR+set}" != set; then
18326 echo "#! /bin/sh" >conf$$.sh
18327 echo "exit 0" >>conf$$.sh
18329 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
18337 # Find out how to test for executable files. Don't use a zero-byte file,
18338 # as systems may use methods other than mode bits to determine executability.
18339 cat >conf$$.
file <<_ASEOF
18343 chmod +x conf$$.
file
18344 if test -x conf$$.
file >/dev
/null
2>&1; then
18345 ac_executable_p
="test -x"
18347 ac_executable_p
="test -f"
18351 # Extract the first word of "msgmerge", so it can be a program name with args.
18352 set dummy msgmerge
; ac_word
=$2
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18354 $as_echo_n "checking for $ac_word... " >&6; }
18355 if ${ac_cv_path_MSGMERGE+:} false
; then :
18356 $as_echo_n "(cached) " >&6
18358 case "$MSGMERGE" in
18360 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
18363 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
18364 for ac_dir
in $PATH; do
18366 test -z "$ac_dir" && ac_dir
=.
18367 for ac_exec_ext
in '' $ac_executable_extensions; do
18368 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18369 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
18370 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
18377 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
18381 MSGMERGE
="$ac_cv_path_MSGMERGE"
18382 if test "$MSGMERGE" != ":"; then
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18384 $as_echo "$MSGMERGE" >&6; }
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18387 $as_echo "no" >&6; }
18391 if test "$GMSGFMT" != ":"; then
18392 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
18393 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
18396 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
18398 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
18403 if test "$XGETTEXT" != ":"; then
18404 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
18405 (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
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
18409 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
18415 ac_config_commands
="$ac_config_commands default-2"
18421 for ac_prog
in 'bison -y' byacc
18423 # Extract the first word of "$ac_prog", so it can be a program name with args.
18424 set dummy
$ac_prog; ac_word
=$2
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18426 $as_echo_n "checking for $ac_word... " >&6; }
18427 if ${ac_cv_prog_YACC+:} false
; then :
18428 $as_echo_n "(cached) " >&6
18430 if test -n "$YACC"; then
18431 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
18433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18434 for as_dir
in $PATH
18437 test -z "$as_dir" && as_dir
=.
18438 for ac_exec_ext
in '' $ac_executable_extensions; do
18439 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18440 ac_cv_prog_YACC
="$ac_prog"
18441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18450 YACC
=$ac_cv_prog_YACC
18451 if test -n "$YACC"; then
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
18453 $as_echo "$YACC" >&6; }
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18456 $as_echo "no" >&6; }
18460 test -n "$YACC" && break
18462 test -n "$YACC" || YACC
="yacc"
18464 for ac_prog
in flex
lex
18466 # Extract the first word of "$ac_prog", so it can be a program name with args.
18467 set dummy
$ac_prog; ac_word
=$2
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18469 $as_echo_n "checking for $ac_word... " >&6; }
18470 if ${ac_cv_prog_LEX+:} false
; then :
18471 $as_echo_n "(cached) " >&6
18473 if test -n "$LEX"; then
18474 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
18476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18477 for as_dir
in $PATH
18480 test -z "$as_dir" && as_dir
=.
18481 for ac_exec_ext
in '' $ac_executable_extensions; do
18482 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18483 ac_cv_prog_LEX
="$ac_prog"
18484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18493 LEX
=$ac_cv_prog_LEX
18494 if test -n "$LEX"; then
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
18496 $as_echo "$LEX" >&6; }
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18499 $as_echo "no" >&6; }
18503 test -n "$LEX" && break
18505 test -n "$LEX" || LEX
=":"
18509 *) cat >conftest.l
<<_ACEOF
18515 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
18516 yyless ((input () != 0)); }
18517 f { unput (yytext[0]); }
18518 . { BEGIN INITIAL; }
18520 #ifdef YYTEXT_POINTER
18521 extern char *yytext;
18526 return ! yylex () + ! yywrap ();
18529 { { ac_try
="$LEX conftest.l"
18530 case "(($ac_try" in
18531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18532 *) ac_try_echo=$ac_try;;
18534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18535 $as_echo "$ac_try_echo"; } >&5
18536 (eval "$LEX conftest.l") 2>&5
18538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18539 test $ac_status = 0; }
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
18541 $as_echo_n "checking lex output file root... " >&6; }
18542 if ${ac_cv_prog_lex_root+:} false; then :
18543 $as_echo_n "(cached) " >&6
18546 if test -f lex.yy.c; then
18547 ac_cv_prog_lex_root=lex.yy
18548 elif test -f lexyy.c; then
18549 ac_cv_prog_lex_root=lexyy
18551 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
18555 $as_echo "$ac_cv_prog_lex_root" >&6; }
18556 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
18558 if test -z "${LEXLIB+set}"; then
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
18560 $as_echo_n "checking lex library... " >&6; }
18561 if ${ac_cv_lib_lex+:} false; then :
18562 $as_echo_n "(cached) " >&6
18566 ac_cv_lib_lex='none needed'
18567 for ac_lib in '' -lfl -ll; do
18568 LIBS="$ac_lib $ac_save_LIBS"
18569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18570 /* end confdefs.h. */
18571 `cat $LEX_OUTPUT_ROOT.c
`
18573 if ac_fn_c_try_link "$LINENO"; then :
18574 ac_cv_lib_lex=$ac_lib
18576 rm -f core conftest.err conftest.$ac_objext \
18577 conftest$ac_exeext conftest.$ac_ext
18578 test "$ac_cv_lib_lex" != 'none needed' && break
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
18584 $as_echo "$ac_cv_lib_lex" >&6; }
18585 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
18590 $as_echo_n "checking whether yytext is a pointer... " >&6; }
18591 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
18592 $as_echo_n "(cached) " >&6
18594 # POSIX says lex can declare yytext either as a pointer or an array; the
18595 # default is implementation-dependent. Figure out which it is, since
18596 # not all implementations provide the %pointer and %array declarations.
18597 ac_cv_prog_lex_yytext_pointer=no
18599 LIBS="$LEXLIB $ac_save_LIBS"
18600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18601 /* end confdefs.h. */
18603 #define YYTEXT_POINTER 1
18604 `cat $LEX_OUTPUT_ROOT.c
`
18606 if ac_fn_c_try_link "$LINENO"; then :
18607 ac_cv_prog_lex_yytext_pointer=yes
18609 rm -f core conftest.err conftest.$ac_objext \
18610 conftest$ac_exeext conftest.$ac_ext
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
18615 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
18616 if test $ac_cv_prog_lex_yytext_pointer = yes; then
18618 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
18621 rm -f conftest.l $LEX_OUTPUT_ROOT.c
18624 if test "$LEX" = :; then
18625 LEX=${am_missing_run}flex
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18630 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18631 # Check whether --enable-maintainer-mode was given.
18632 if test "${enable_maintainer_mode+set}" = set; then :
18633 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18635 USE_MAINTAINER_MODE=no
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18639 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18640 if test $USE_MAINTAINER_MODE = yes; then
18641 MAINTAINER_MODE_TRUE=
18642 MAINTAINER_MODE_FALSE='#'
18644 MAINTAINER_MODE_TRUE='#'
18645 MAINTAINER_MODE_FALSE=
18648 MAINT=$MAINTAINER_MODE_TRUE
18652 GENINSRC_NEVER_TRUE=
18653 GENINSRC_NEVER_FALSE='#'
18655 GENINSRC_NEVER_TRUE='#'
18656 GENINSRC_NEVER_FALSE=
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
18660 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
18661 if ${gcc_cv_prog_cmp_skip+:} false; then :
18662 $as_echo_n "(cached) " >&6
18666 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
18667 if cmp t1 t2 2 2 > /dev/null 2>&1; then
18668 if cmp t1 t2 1 1 > /dev/null 2>&1; then
18671 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
18674 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
18675 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
18678 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
18685 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
18686 do_compare="$gcc_cv_prog_cmp_skip"
18690 . ${srcdir}/configure.host
18695 # We use headers from include/ that check various HAVE_*_H macros, thus
18696 # should ensure they are set by configure. This is true even when C99
18697 # guarantees they are available.
18698 # sha1.h and md4.h test HAVE_LIMITS_H, HAVE_SYS_TYPES_H and HAVE_STDINT_H
18699 # plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
18700 # Besides those, we need to check anything used in ld/ not in C99.
18701 for ac_header in fcntl.h elf-hints.h limits.h inttypes.h stdint.h \
18702 sys/file.h sys/mman.h sys/param.h sys/stat.h sys/time.h \
18703 sys/types.h unistd.h
18705 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
18706 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18707 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18708 cat >>confdefs.h <<_ACEOF
18709 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
18716 for ac_func in close glob lseek mkstemp open realpath waitpid
18718 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18719 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18720 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18721 cat >>confdefs.h <<_ACEOF
18722 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18731 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
18733 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
18737 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
18738 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
18744 cat >>confdefs.h <<_ACEOF
18745 #define HAVE_DECL_ASPRINTF $ac_have_decl
18747 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
18748 if test "x$ac_cv_have_decl_environ" = xyes; then :
18754 cat >>confdefs.h <<_ACEOF
18755 #define HAVE_DECL_ENVIRON $ac_have_decl
18757 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
18758 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
18764 cat >>confdefs.h <<_ACEOF
18765 #define HAVE_DECL_STPCPY $ac_have_decl
18772 for ac_header in $ac_header_list
18774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
18775 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18777 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18778 cat >>confdefs.h <<_ACEOF
18779 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
18793 for ac_func in getpagesize
18795 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18796 if test "x$ac_cv_func_getpagesize" = xyes; then :
18797 cat >>confdefs.h <<_ACEOF
18798 #define HAVE_GETPAGESIZE 1
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18805 $as_echo_n "checking for working mmap... " >&6; }
18806 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
18807 $as_echo_n "(cached) " >&6
18809 if test "$cross_compiling" = yes; then :
18810 ac_cv_func_mmap_fixed_mapped=no
18812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18813 /* end confdefs.h. */
18814 $ac_includes_default
18815 /* malloc might have been renamed as rpl_malloc. */
18818 /* Thanks to Mike Haertel and Jim Avera for this test.
18819 Here is a matrix of mmap possibilities:
18820 mmap private not fixed
18821 mmap private fixed at somewhere currently unmapped
18822 mmap private fixed at somewhere already mapped
18823 mmap shared not fixed
18824 mmap shared fixed at somewhere currently unmapped
18825 mmap shared fixed at somewhere already mapped
18826 For private mappings, we should verify that changes cannot be read()
18827 back from the file, nor mmap's back from the file at a different
18828 address. (There have been systems where private was not correctly
18829 implemented like the infamous i386 svr4.0, and systems where the
18830 VM page cache was not coherent with the file system buffer cache
18831 like early versions of FreeBSD and possibly contemporary NetBSD.)
18832 For shared mappings, we should conversely verify that changes get
18833 propagated back to all the places they're supposed to be.
18835 Grep wants private fixed already mapped.
18836 The main things grep needs to know about mmap are:
18837 * does it exist and is it safe to write into the mmap'd area
18838 * how to use it (BSD variants) */
18841 #include <sys/mman.h>
18843 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18847 /* This mess was copied from the GNU getpagesize.h. */
18848 #ifndef HAVE_GETPAGESIZE
18849 # ifdef _SC_PAGESIZE
18850 # define getpagesize() sysconf(_SC_PAGESIZE)
18851 # else /* no _SC_PAGESIZE */
18852 # ifdef HAVE_SYS_PARAM_H
18853 # include <sys/param.h>
18854 # ifdef EXEC_PAGESIZE
18855 # define getpagesize() EXEC_PAGESIZE
18856 # else /* no EXEC_PAGESIZE */
18858 # define getpagesize() NBPG * CLSIZE
18861 # endif /* no CLSIZE */
18862 # else /* no NBPG */
18864 # define getpagesize() NBPC
18865 # else /* no NBPC */
18867 # define getpagesize() PAGESIZE
18868 # endif /* PAGESIZE */
18869 # endif /* no NBPC */
18870 # endif /* no NBPG */
18871 # endif /* no EXEC_PAGESIZE */
18872 # else /* no HAVE_SYS_PARAM_H */
18873 # define getpagesize() 8192 /* punt totally */
18874 # endif /* no HAVE_SYS_PARAM_H */
18875 # endif /* no _SC_PAGESIZE */
18877 #endif /* no HAVE_GETPAGESIZE */
18882 char *data, *data2, *data3;
18883 const char *cdata2;
18887 pagesize = getpagesize ();
18889 /* First, make a file with some known garbage in it. */
18890 data = (char *) malloc (pagesize);
18893 for (i = 0; i < pagesize; ++i)
18894 *(data + i) = rand ();
18896 fd = creat ("conftest.mmap", 0600);
18899 if (write (fd, data, pagesize) != pagesize)
18903 /* Next, check that the tail of a page is zero-filled. File must have
18904 non-zero length, otherwise we risk SIGBUS for entire page. */
18905 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18909 if (write (fd2, cdata2, 1) != 1)
18911 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18912 if (data2 == MAP_FAILED)
18914 for (i = 0; i < pagesize; ++i)
18918 if (munmap (data2, pagesize))
18921 /* Next, try to mmap the file at a fixed address which already has
18922 something else allocated at it. If we can, also make sure that
18923 we see the same garbage. */
18924 fd = open ("conftest.mmap", O_RDWR);
18927 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18928 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18930 for (i = 0; i < pagesize; ++i)
18931 if (*(data + i) != *(data2 + i))
18934 /* Finally, make sure that changes to the mapped area do not
18935 percolate back to the file as seen by read(). (This is a bug on
18936 some variants of i386 svr4.0.) */
18937 for (i = 0; i < pagesize; ++i)
18938 *(data2 + i) = *(data2 + i) + 1;
18939 data3 = (char *) malloc (pagesize);
18942 if (read (fd, data3, pagesize) != pagesize)
18944 for (i = 0; i < pagesize; ++i)
18945 if (*(data + i) != *(data3 + i))
18951 if ac_fn_c_try_run "$LINENO"; then :
18952 ac_cv_func_mmap_fixed_mapped=yes
18954 ac_cv_func_mmap_fixed_mapped=no
18956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18957 conftest.$ac_objext conftest.beam conftest.$ac_ext
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18962 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18963 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18965 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18968 rm -f conftest.mmap conftest.txt
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18972 $as_echo_n "checking for library containing dlopen... " >&6; }
18973 if ${ac_cv_search_dlopen+:} false; then :
18974 $as_echo_n "(cached) " >&6
18976 ac_func_search_save_LIBS=$LIBS
18977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18978 /* end confdefs.h. */
18980 /* Override any GCC internal prototype to avoid an error.
18981 Use char because int might match the return type of a GCC
18982 builtin and then its argument prototype would still apply. */
18995 for ac_lib in '' dl; do
18996 if test -z "$ac_lib"; then
18997 ac_res="none required"
19000 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19002 if ac_fn_c_try_link "$LINENO"; then :
19003 ac_cv_search_dlopen=$ac_res
19005 rm -f core conftest.err conftest.$ac_objext \
19007 if ${ac_cv_search_dlopen+:} false; then :
19011 if ${ac_cv_search_dlopen+:} false; then :
19014 ac_cv_search_dlopen=no
19016 rm conftest.$ac_ext
19017 LIBS=$ac_func_search_save_LIBS
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19020 $as_echo "$ac_cv_search_dlopen" >&6; }
19021 ac_res=$ac_cv_search_dlopen
19022 if test "$ac_res" != no; then :
19023 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
19029 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
19030 if ${ld_cv_decl_getopt_unistd_h+:} false; then :
19031 $as_echo_n "(cached) " >&6
19033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19034 /* end confdefs.h. */
19035 #include <unistd.h>
19039 extern int getopt (int, char *const*, const char *);
19044 if ac_fn_c_try_compile "$LINENO"; then :
19045 ld_cv_decl_getopt_unistd_h=yes
19047 ld_cv_decl_getopt_unistd_h=no
19049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
19053 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
19054 if test $ld_cv_decl_getopt_unistd_h = yes; then
19056 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
19060 # Link in zlib/zstd if we can. This allows us to read and write
19061 # compressed debug sections.
19063 # Use the system's zlib library.
19064 zlibdir="-L\$(top_builddir)/../zlib"
19065 zlibinc="-I\$(top_srcdir)/../zlib"
19067 # Check whether --with-system-zlib was given.
19068 if test "${with_system_zlib+set}" = set; then :
19069 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
19081 # Check whether --with-zstd was given.
19082 if test "${with_zstd+set}" = set; then :
19083 withval=$with_zstd;
19089 if test "$with_zstd" != no; then :
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
19093 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
19095 if test -n "$ZSTD_CFLAGS"; then
19096 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
19097 elif test -n "$PKG_CONFIG"; then
19098 if test -n "$PKG_CONFIG" && \
19099 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19100 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19103 test $ac_status = 0; }; then
19104 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev
/null
`
19105 test "x$?" != "x0" && pkg_failed=yes
19112 if test -n "$ZSTD_LIBS"; then
19113 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
19114 elif test -n "$PKG_CONFIG"; then
19115 if test -n "$PKG_CONFIG" && \
19116 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19117 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19120 test $ac_status = 0; }; then
19121 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev
/null
`
19122 test "x$?" != "x0" && pkg_failed=yes
19130 if test $pkg_failed = no; then
19131 pkg_save_LDFLAGS="$LDFLAGS"
19132 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
19133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19134 /* end confdefs.h. */
19144 if ac_fn_c_try_link "$LINENO"; then :
19149 rm -f core conftest.err conftest.$ac_objext \
19150 conftest$ac_exeext conftest.$ac_ext
19151 LDFLAGS=$pkg_save_LDFLAGS
19156 if test $pkg_failed = yes; then
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19158 $as_echo "no" >&6; }
19160 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19161 _pkg_short_errors_supported=yes
19163 _pkg_short_errors_supported=no
19165 if test $_pkg_short_errors_supported = yes; then
19166 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19168 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19170 # Put the nasty error message in config.log where it belongs
19171 echo "$ZSTD_PKG_ERRORS" >&5
19174 if test "$with_zstd" = yes; then
19175 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19178 elif test $pkg_failed = untried; then
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19180 $as_echo "no" >&6; }
19182 if test "$with_zstd" = yes; then
19183 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19187 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
19188 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19190 $as_echo "yes" >&6; }
19193 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
19201 # target-specific stuff:
19210 elf_list_options=false
19211 elf_shlib_list_options=false
19212 elf_plt_unwind_list_options=false
19213 for targ_alias in `echo $target_alias $enable_targets |
sed 's/,/ /g'`
19215 if test "$targ_alias" = "all"; then
19217 elf_list_options=true
19218 elf_shlib_list_options=true
19219 elf_plt_unwind_list_options=true
19221 # Canonicalize the secondary target names.
19222 result=`$ac_config_sub $targ_alias 2>/dev
/null
`
19223 if test -n "$result"; then
19229 . ${srcdir}/configure.tgt
19231 if test "$targ" = "$target"; then
19235 if test x${enable_64_bit_bfd} = xno; then
19236 . ${srcdir}/../bfd/config.bfd
19239 if test x${enable_64_bit_bfd} = xyes; then
19240 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
19241 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
19244 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
19245 case " $all_emuls " in
19248 all_emuls="$all_emuls e${i}.o"
19249 eval result=\$tdir_$i
19250 test -z "$result" && result=$targ_alias
19255 elf_list_options=true
19258 if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
19259 elf_list_options=true
19263 if test "$elf_list_options" = "true"; then
19268 source_sh ${srcdir}/emulparams/${i}.sh
19269 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
19270 elf_shlib_list_options=true
19272 if test x${PLT_UNWIND} = xyes; then
19273 elf_plt_unwind_list_options=true
19280 for i in $targ_emul $targ_extra_libpath; do
19281 case " $all_libpath " in
19284 if test -z "$all_libpath"; then
19287 all_libpath="$all_libpath ${i}"
19293 for i in $targ_extra_ofiles; do
19294 case " $all_emul_extras " in
19297 all_emul_extras="$all_emul_extras ${i}"
19305 if test x$ac_default_compressed_debug_sections = xyes ; then
19307 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
19312 cat >>confdefs.h <<_ACEOF
19313 #define DEFAULT_COMPRESSED_DEBUG_ALGORITHM $ac_default_compressed_debug_sections_algorithm
19317 if test "${ac_default_new_dtags}" = unset; then
19318 ac_default_new_dtags=0
19321 cat >>confdefs.h <<_ACEOF
19322 #define DEFAULT_NEW_DTAGS $ac_default_new_dtags
19326 if test "${ac_default_ld_z_relro}" = unset; then
19327 ac_default_ld_z_relro=0
19330 cat >>confdefs.h <<_ACEOF
19331 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
19335 ac_default_ld_textrel_check_warning=0
19336 case "${ac_default_ld_textrel_check}" in
19338 ac_default_ld_textrel_check=textrel_check_none
19341 ac_default_ld_textrel_check=textrel_check_warning
19342 ac_default_ld_textrel_check_warning=1
19345 ac_default_ld_textrel_check=textrel_check_error
19349 cat >>confdefs.h <<_ACEOF
19350 #define DEFAULT_LD_TEXTREL_CHECK $ac_default_ld_textrel_check
19354 cat >>confdefs.h <<_ACEOF
19355 #define DEFAULT_LD_TEXTREL_CHECK_WARNING $ac_default_ld_textrel_check_warning
19359 if test "${ac_default_ld_z_separate_code}" = unset; then
19360 ac_default_ld_z_separate_code=0
19363 cat >>confdefs.h <<_ACEOF
19364 #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
19370 cat >>confdefs.h <<_ACEOF
19371 #define DEFAULT_LD_WARN_EXECSTACK $ac_default_ld_warn_execstack
19376 cat >>confdefs.h <<_ACEOF
19377 #define DEFAULT_LD_ERROR_EXECSTACK $ac_default_ld_error_execstack
19381 if test "${ac_default_ld_warn_rwx_segments}" = unset; then
19382 ac_default_ld_warn_rwx_segments=1
19385 cat >>confdefs.h <<_ACEOF
19386 #define DEFAULT_LD_WARN_RWX_SEGMENTS $ac_default_ld_warn_rwx_segments
19391 cat >>confdefs.h <<_ACEOF
19392 #define DEFAULT_LD_ERROR_RWX_SEGMENTS $ac_default_ld_error_rwx_segments
19396 if test "${ac_default_ld_default_execstack}" = unset; then
19397 ac_default_ld_default_execstack=1
19400 cat >>confdefs.h <<_ACEOF
19401 #define DEFAULT_LD_EXECSTACK $ac_default_ld_default_execstack
19406 if test "${ac_support_error_handling_script}" = unset; then
19407 ac_support_error_handling_script=1
19410 cat >>confdefs.h <<_ACEOF
19411 #define SUPPORT_ERROR_HANDLING_SCRIPT $ac_support_error_handling_script
19416 cat >>confdefs.h <<_ACEOF
19417 #define DEFAULT_EMIT_SYSV_HASH $ac_default_emit_sysv_hash
19422 cat >>confdefs.h <<_ACEOF
19423 #define DEFAULT_EMIT_GNU_HASH $ac_default_emit_gnu_hash
19435 if test x${all_targets} = xtrue; then
19436 if test x${enable_64_bit_bfd} = xyes; then
19437 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
19438 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
19440 EMULATION_OFILES='$(ALL_EMULATIONS)'
19441 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
19444 EMULATION_OFILES=$all_emuls
19445 EMUL_EXTRA_OFILES=$all_emul_extras
19451 EMULATION_LIBPATH=$all_libpath
19454 if test x${enable_static} = xno; then
19455 TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
19456 TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
19457 TESTSFRAMELIB="-Wl,--rpath,../libsframe/.libs ../libsframe/.libs/libsframe.so"
19459 TESTBFDLIB="../bfd/.libs/libbfd.a"
19460 TESTCTFLIB="../libctf/.libs/libctf.a"
19461 TESTSFRAMELIB="../libsframe/.libs/libsframe.a"
19463 if test "${enable_libctf}" = no; then
19470 target_vendor=${target_vendor=$host_vendor}
19471 case "$target_vendor" in
19472 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
19473 *) EXTRA_SHLIB_EXTENSION= ;;
19476 case "$target_os" in
19477 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
19480 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
19482 cat >>confdefs.h <<_ACEOF
19483 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
19488 ac_config_commands="$ac_config_commands default"
19496 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
19498 cat >confcache <<\_ACEOF
19499 # This file is a shell script that caches the results of configure
19500 # tests run on this system so they can be shared between configure
19501 # scripts and configure runs, see configure's option --config-cache.
19502 # It is not useful on other systems. If it contains results you don't
19503 # want to keep, you may remove or edit it.
19505 # config.status only pays attention to the cache file if you give it
19506 # the --recheck option to rerun configure.
19508 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
19509 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19510 # following values.
19514 # The following way of writing the cache mishandles newlines in values,
19515 # but we know of no workaround that is simple, portable, and efficient.
19516 # So, we kill variables containing newlines.
19517 # Ultrix sh set writes to stderr and can't be redirected directly,
19518 # and sets the high bit in the cache file unless we assign to the vars.
19520 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19521 eval ac_val
=\$
$ac_var
19525 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19526 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19529 _ | IFS | as_nl
) ;; #(
19530 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19531 *) { eval $ac_var=; unset $ac_var;} ;;
19537 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19538 *${as_nl}ac_space
=\
*)
19539 # `set' does not quote correctly, so add quotes: double-quote
19540 # substitution turns \\\\ into \\, and sed turns \\ into \.
19543 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19546 # `set' quotes correctly as required by POSIX, so do not add quotes.
19547 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19556 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19558 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19560 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19561 if test -w "$cache_file"; then
19562 if test "x$cache_file" != "x/dev/null"; then
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19564 $as_echo "$as_me: updating cache $cache_file" >&6;}
19565 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19566 cat confcache
>"$cache_file"
19568 case $cache_file in #(
19570 mv -f confcache
"$cache_file"$$
&&
19571 mv -f "$cache_file"$$
"$cache_file" ;; #(
19573 mv -f confcache
"$cache_file" ;;
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19579 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19584 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19585 # Let make expand exec_prefix.
19586 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19588 DEFS
=-DHAVE_CONFIG_H
19593 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19594 # 1. Remove the extension, and $U if already installed.
19595 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19596 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19597 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19598 # will be set to the directory where LIBOBJS objects are built.
19599 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19600 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19602 LIBOBJS
=$ac_libobjs
19604 LTLIBOBJS
=$ac_ltlibobjs
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19608 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19609 if test -n "$am_sleep_pid"; then
19610 # Hide warnings about reused PIDs.
19611 wait $am_sleep_pid 2>/dev
/null
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19614 $as_echo "done" >&6; }
19615 if test -n "$EXEEXT"; then
19617 am__EXEEXT_FALSE
='#'
19619 am__EXEEXT_TRUE
='#'
19623 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19624 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
19625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19627 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19628 as_fn_error $?
"conditional \"AMDEP\" was never defined.
19629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19631 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19632 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
19633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19635 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19636 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
19637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19639 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
19640 as_fn_error $?
"conditional \"ENABLE_BFD_64_BIT\" was never defined.
19641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19643 if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
19644 as_fn_error $?
"conditional \"ENABLE_LIBCTF\" was never defined.
19645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19647 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19648 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
19649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19651 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
19652 as_fn_error $?
"conditional \"GENINSRC_NEVER\" was never defined.
19653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19656 : "${CONFIG_STATUS=./config.status}"
19658 ac_clean_files_save
=$ac_clean_files
19659 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19661 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19663 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19665 # Generated by $as_me.
19666 # Run this file to recreate the current configuration.
19667 # Compiler output produced by configure, useful for debugging
19668 # configure, is in config.log if it exists.
19671 ac_cs_recheck=false
19674 SHELL=\${CONFIG_SHELL-$SHELL}
19677 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19678 ## -------------------- ##
19679 ## M4sh Initialization. ##
19680 ## -------------------- ##
19682 # Be more Bourne compatible
19683 DUALCASE
=1; export DUALCASE
# for MKS sh
19684 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19687 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19688 # is contrary to our usage. Disable this feature.
19689 alias -g '${1+"$@"}'='"$@"'
19690 setopt NO_GLOB_SUBST
19692 case `(set -o) 2>/dev/null` in #(
19704 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19705 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19706 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19707 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19708 # Prefer a ksh shell builtin over an external printf program on Solaris,
19709 # but without wasting forks for bash or zsh.
19710 if test -z "$BASH_VERSION$ZSH_VERSION" \
19711 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19712 as_echo='print
-r --'
19713 as_echo_n='print
-rn --'
19714 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19715 as_echo='printf %s
\n'
19716 as_echo_n='printf %s
'
19718 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19719 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19720 as_echo_n='/usr
/ucb
/echo -n'
19722 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19723 as_echo_n_body='eval
19727 expr "X$arg" : "X\\(.*\\)$as_nl";
19728 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19730 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19732 export as_echo_n_body
19733 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19735 export as_echo_body
19736 as_echo='sh
-c $as_echo_body as_echo
'
19739 # The user is always right.
19740 if test "${PATH_SEPARATOR+set}" != set; then
19742 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19743 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19750 # We need space, tab and new line, in precisely that order. Quoting is
19751 # there to prevent editors from complaining about space-tab.
19752 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19753 # splitting by setting IFS to empty value.)
19756 # Find who we are. Look in the path if we contain no directory separator.
19759 *[\\/]* ) as_myself=$0 ;;
19760 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19761 for as_dir in $PATH
19764 test -z "$as_dir" && as_dir=.
19765 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19771 # We did not find ourselves, most probably we were run as `sh COMMAND'
19772 # in which case we are not to be found in the path.
19773 if test "x$as_myself" = x
; then
19776 if test ! -f "$as_myself"; then
19777 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19781 # Unset variables that we do not need and which cause bugs (e.g. in
19782 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19783 # suppresses any "Segmentation fault" message there. '((' could
19784 # trigger a bug in pdksh 5.2.14.
19785 for as_var
in BASH_ENV ENV MAIL MAILPATH
19786 do eval test x\
${$as_var+set} = xset \
19787 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19800 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19803 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19804 # ----------------------------------------
19805 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19806 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19807 # script with STATUS, using 1 if that was 0.
19810 as_status
=$1; test $as_status -eq 0 && as_status
=1
19812 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19813 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19815 $as_echo "$as_me: error: $2" >&2
19816 as_fn_exit
$as_status
19820 # as_fn_set_status STATUS
19821 # -----------------------
19822 # Set $? to STATUS, without forking.
19823 as_fn_set_status
()
19826 } # as_fn_set_status
19828 # as_fn_exit STATUS
19829 # -----------------
19830 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19834 as_fn_set_status
$1
19840 # Portably unset VAR.
19843 { eval $1=; unset $1;}
19845 as_unset
=as_fn_unset
19846 # as_fn_append VAR VALUE
19847 # ----------------------
19848 # Append the text in VALUE to the end of the definition contained in VAR. Take
19849 # advantage of any shell optimizations that allow amortized linear growth over
19850 # repeated appends, instead of the typical quadratic growth present in naive
19852 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19853 eval 'as_fn_append ()
19864 # as_fn_arith ARG...
19865 # ------------------
19866 # Perform arithmetic evaluation on the ARGs, and store the result in the
19867 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19868 # must be portable across $(()) and expr.
19869 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19870 eval 'as_fn_arith ()
19877 as_val
=`expr "$@" || test $? -eq 1`
19882 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19883 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19889 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19890 as_basename
=basename
19895 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19901 as_me
=`$as_basename -- "$0" ||
19902 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19903 X"$0" : 'X\(//\)$' \| \
19904 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19906 sed '/^.*\/\([^/][^/]*\)\/*$/{
19920 # Avoid depending upon Character Ranges.
19921 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19922 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19923 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19924 as_cr_digits
='0123456789'
19925 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19927 ECHO_C
= ECHO_N
= ECHO_T
=
19928 case `echo -n x` in #(((((
19930 case `echo 'xy\c'` in
19931 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19933 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19940 rm -f conf$$ conf$$.exe conf$$.
file
19941 if test -d conf$$.dir
; then
19942 rm -f conf$$.dir
/conf$$.
file
19945 mkdir conf$$.dir
2>/dev
/null
19947 if (echo >conf$$.
file) 2>/dev
/null
; then
19948 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19950 # ... but there are two gotchas:
19951 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19952 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19953 # In both cases, we have to default to `cp -pR'.
19954 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19956 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19964 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19965 rmdir conf$$.dir
2>/dev
/null
19970 # Create "$as_dir" as a directory, including parents if necessary.
19975 -*) as_dir
=.
/$as_dir;;
19977 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19981 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19982 *) as_qdir
=$as_dir;;
19984 as_dirs
="'$as_qdir' $as_dirs"
19985 as_dir
=`$as_dirname -- "$as_dir" ||
19986 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19987 X"$as_dir" : 'X\(//\)[^/]' \| \
19988 X"$as_dir" : 'X\(//\)$' \| \
19989 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19990 $as_echo X"$as_dir" |
19991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19995 /^X\(\/\/\)[^/].*/{
20008 test -d "$as_dir" && break
20010 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20011 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
20015 if mkdir
-p .
2>/dev
/null
; then
20016 as_mkdir_p
='mkdir -p "$as_dir"'
20018 test -d .
/-p && rmdir .
/-p
20023 # as_fn_executable_p FILE
20024 # -----------------------
20025 # Test if FILE is an executable regular file.
20026 as_fn_executable_p
()
20028 test -f "$1" && test -x "$1"
20029 } # as_fn_executable_p
20030 as_test_x
='test -x'
20031 as_executable_p
=as_fn_executable_p
20033 # Sed expression to map a string onto a valid CPP name.
20034 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20036 # Sed expression to map a string onto a valid variable name.
20037 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20041 ## ----------------------------------- ##
20042 ## Main body of $CONFIG_STATUS script. ##
20043 ## ----------------------------------- ##
20045 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20048 # Save the log message, to keep $0 and so on meaningful, and to
20049 # report actual input values of CONFIG_FILES etc. instead of their
20050 # values after options handling.
20052 This file was extended by ld $as_me 2.41.50, which was
20053 generated by GNU Autoconf 2.69. Invocation command line was
20055 CONFIG_FILES = $CONFIG_FILES
20056 CONFIG_HEADERS = $CONFIG_HEADERS
20057 CONFIG_LINKS = $CONFIG_LINKS
20058 CONFIG_COMMANDS = $CONFIG_COMMANDS
20061 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20066 case $ac_config_files in *"
20067 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20070 case $ac_config_headers in *"
20071 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20076 # Files that config.status was made for.
20077 config_files="$ac_config_files"
20078 config_headers="$ac_config_headers"
20079 config_commands="$ac_config_commands"
20083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20085 \`$as_me' instantiates files and other configuration actions
20086 from templates according to the current configuration. Unless the files
20087 and actions are specified as TAGs, all are instantiated by default.
20089 Usage: $0 [OPTION]... [TAG]...
20091 -h, --help print this help, then exit
20092 -V, --version print version number and configuration settings, then exit
20093 --config print configuration, then exit
20094 -q, --quiet, --silent
20095 do not print progress messages
20096 -d, --debug don't remove temporary files
20097 --recheck update $as_me by reconfiguring in the same conditions
20098 --file=FILE[:TEMPLATE]
20099 instantiate the configuration file FILE
20100 --header=FILE[:TEMPLATE]
20101 instantiate the configuration header FILE
20103 Configuration files:
20106 Configuration headers:
20109 Configuration commands:
20112 Report bugs to the package provider."
20115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20116 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20118 ld config.status 2.41.50
20119 configured by $0, generated by GNU Autoconf 2.69,
20120 with options \\"\$ac_cs_config\\"
20122 Copyright (C) 2012 Free Software Foundation, Inc.
20123 This config.status script is free software; the Free Software Foundation
20124 gives unlimited permission to copy, distribute and modify it."
20131 test -n "\$AWK" || AWK=awk
20134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20135 # The default lists apply if the user does not specify any file.
20141 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20142 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20146 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20158 # Handling of the options.
20159 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20161 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20162 $as_echo "$ac_cs_version"; exit ;;
20163 --config |
--confi |
--conf |
--con |
--co |
--c )
20164 $as_echo "$ac_cs_config"; exit ;;
20165 --debug |
--debu |
--deb |
--de |
--d |
-d )
20167 --file |
--fil |
--fi |
--f )
20170 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20171 '') as_fn_error $?
"missing file argument" ;;
20173 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20174 ac_need_defaults
=false
;;
20175 --header |
--heade |
--head |
--hea )
20178 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20180 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20181 ac_need_defaults
=false
;;
20183 # Conflict between --help and --header
20184 as_fn_error $?
"ambiguous option: \`$1'
20185 Try \`$0 --help' for more information.";;
20186 --help |
--hel |
-h )
20187 $as_echo "$ac_cs_usage"; exit ;;
20188 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20189 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20192 # This is an error.
20193 -*) as_fn_error $?
"unrecognized option: \`$1'
20194 Try \`$0 --help' for more information." ;;
20196 *) as_fn_append ac_config_targets
" $1"
20197 ac_need_defaults
=false
;;
20203 ac_configure_extra_args
=
20205 if $ac_cs_silent; then
20207 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20212 if \$ac_cs_recheck; then
20213 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20215 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20216 CONFIG_SHELL='$SHELL'
20217 export CONFIG_SHELL
20222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20226 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20227 ## Running $as_me. ##
20233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20237 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20240 # The HP-UX ksh and POSIX shell print the target directory to stdout
20241 # if CDPATH is set.
20242 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20244 sed_quote_subst='$sed_quote_subst'
20245 double_quote_subst='$double_quote_subst'
20246 delay_variable_subst='$delay_variable_subst'
20247 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20248 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20249 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20250 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20251 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20252 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20253 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20254 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20255 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20256 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20257 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20258 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20259 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20260 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20261 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20262 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20263 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20264 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20265 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20266 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20267 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20268 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20269 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20270 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20271 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20272 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20273 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20274 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20275 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20276 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20277 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20278 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20279 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20280 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20281 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20282 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20283 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20284 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20285 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20286 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20287 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20288 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20289 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20290 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20291 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20292 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20293 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20294 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20295 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"`'
20296 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20297 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20298 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20299 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20300 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20301 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20302 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20303 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20304 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20305 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20306 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20307 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20308 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20309 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20310 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20311 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20312 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20313 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20314 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20315 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20316 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20317 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20318 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20319 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20320 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20321 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20322 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20323 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20324 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20325 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20326 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20327 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20328 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20329 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20330 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20331 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20332 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20333 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20334 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20335 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20336 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
20337 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20338 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20339 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20340 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20341 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20342 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20343 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20344 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20345 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20346 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20347 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20348 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20349 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20350 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20351 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20352 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20353 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20354 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20355 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20356 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20357 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20358 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20359 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20360 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20361 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20362 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20363 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20364 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20365 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20366 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20367 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20368 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20369 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20370 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20371 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20372 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20373 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20374 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20375 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20376 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20377 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20378 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20379 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20380 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20381 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20382 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20383 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20384 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20385 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20386 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20387 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20388 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20389 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20390 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20391 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20392 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20393 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20394 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20395 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20396 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20397 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20398 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20399 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
20400 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20401 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20402 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20403 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20404 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20405 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20406 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20407 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20408 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
20409 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20410 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20411 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20412 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20413 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20414 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20415 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20416 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20417 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20418 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20419 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20420 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20421 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20424 LTCFLAGS='$LTCFLAGS'
20425 compiler='$compiler_DEFAULT'
20427 # A function that is used when there is no print builtin or printf.
20428 func_fallback_echo ()
20430 eval 'cat <<_LTECHO_EOF
20435 # Quote evaled strings.
20449 deplibs_check_method \
20458 lt_cv_sys_global_symbol_pipe \
20459 lt_cv_sys_global_symbol_to_cdecl \
20460 lt_cv_sys_global_symbol_to_c_name_address \
20461 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20462 lt_prog_compiler_no_builtin_flag \
20463 lt_prog_compiler_wl \
20464 lt_prog_compiler_pic \
20465 lt_prog_compiler_static \
20466 lt_cv_prog_compiler_c_o \
20474 export_dynamic_flag_spec \
20475 whole_archive_flag_spec \
20476 compiler_needs_object \
20478 allow_undefined_flag \
20479 no_undefined_flag \
20480 hardcode_libdir_flag_spec \
20481 hardcode_libdir_flag_spec_ld \
20482 hardcode_libdir_separator \
20487 variables_saved_for_relink \
20489 library_names_spec \
20491 install_override_mode \
20495 compiler_lib_search_dirs \
20500 compiler_lib_search_path \
20504 lt_prog_compiler_no_builtin_flag_CXX \
20505 lt_prog_compiler_wl_CXX \
20506 lt_prog_compiler_pic_CXX \
20507 lt_prog_compiler_static_CXX \
20508 lt_cv_prog_compiler_c_o_CXX \
20509 export_dynamic_flag_spec_CXX \
20510 whole_archive_flag_spec_CXX \
20511 compiler_needs_object_CXX \
20513 allow_undefined_flag_CXX \
20514 no_undefined_flag_CXX \
20515 hardcode_libdir_flag_spec_CXX \
20516 hardcode_libdir_flag_spec_ld_CXX \
20517 hardcode_libdir_separator_CXX \
20518 fix_srcfile_path_CXX \
20519 exclude_expsyms_CXX \
20520 include_expsyms_CXX \
20521 file_list_spec_CXX \
20522 compiler_lib_search_dirs_CXX \
20523 predep_objects_CXX \
20524 postdep_objects_CXX \
20527 compiler_lib_search_path_CXX; do
20528 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20529 *[\\\\\\\`\\"\\\$]*)
20530 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20533 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20538 # Double-quote double-evaled strings.
20539 for var in reload_cmds \
20540 old_postinstall_cmds \
20541 old_postuninstall_cmds \
20543 extract_expsyms_cmds \
20544 old_archive_from_new_cmds \
20545 old_archive_from_expsyms_cmds \
20547 archive_expsym_cmds \
20549 module_expsym_cmds \
20550 export_symbols_cmds \
20553 postuninstall_cmds \
20555 sys_lib_search_path_spec \
20556 sys_lib_dlsearch_path_spec \
20558 old_archive_cmds_CXX \
20559 old_archive_from_new_cmds_CXX \
20560 old_archive_from_expsyms_cmds_CXX \
20562 archive_expsym_cmds_CXX \
20564 module_expsym_cmds_CXX \
20565 export_symbols_cmds_CXX \
20566 prelink_cmds_CXX; do
20567 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20568 *[\\\\\\\`\\"\\\$]*)
20569 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20572 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20577 ac_aux_dir='$ac_aux_dir'
20578 xsi_shell='$xsi_shell'
20579 lt_shell_append='$lt_shell_append'
20581 # See if we are running on zsh, and set the options which allow our
20582 # commands through without removal of \ escapes INIT.
20583 if test -n "\${ZSH_VERSION+set}" ; then
20584 setopt NO_GLOB_SUBST
20590 TIMESTAMP='$TIMESTAMP'
20598 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20599 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20601 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20602 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20603 LINGUAS="${LINGUAS-%UNSET%}"
20605 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20606 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20608 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20609 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20610 LINGUAS="${LINGUAS-%UNSET%}"
20616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20618 # Handling of arguments.
20619 for ac_config_target
in $ac_config_targets
20621 case $ac_config_target in
20622 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20623 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
20624 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
20625 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
20626 "default-2") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-2" ;;
20627 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
20628 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20629 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
20631 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20636 # If the user did not use the arguments to specify the items to instantiate,
20637 # then the envvar interface is used. Set only those that are not.
20638 # We use the long form for the default assignment because of an extremely
20639 # bizarre bug on SunOS 4.1.3.
20640 if $ac_need_defaults; then
20641 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20642 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20643 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20646 # Have a temporary directory for convenience. Make it in the build tree
20647 # simply because there is no reason against having it here, and in addition,
20648 # creating and moving files from /tmp can sometimes cause problems.
20649 # Hook for its removal unless debugging.
20650 # Note that there is a small window in which the directory will not be cleaned:
20651 # after its creation but before its name has been assigned to `$tmp'.
20655 trap 'exit_status=$?
20656 : "${ac_tmp:=$tmp}"
20657 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20659 trap 'as_fn_exit 1' 1 2 13 15
20661 # Create a (secure) tmp directory for tmp files.
20664 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20668 tmp
=.
/conf$$
-$RANDOM
20669 (umask 077 && mkdir
"$tmp")
20670 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20673 # Set up the scripts for CONFIG_FILES section.
20674 # No need to generate them if there are no CONFIG_FILES.
20675 # This happens for instance with `./config.status config.h'.
20676 if test -n "$CONFIG_FILES"; then
20679 ac_cr
=`echo X | tr X '\015'`
20680 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20681 # But we know of no other shell where ac_cr would be empty at this
20682 # point, so we can use a bashism as a fallback.
20683 if test "x$ac_cr" = x
; then
20684 eval ac_cr
=\$
\'\\r
\'
20686 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20687 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20690 ac_cs_awk_cr
=$ac_cr
20693 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20698 echo "cat >conf$$subs.awk <<_ACEOF" &&
20699 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20701 } >conf$$subs.sh ||
20702 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20703 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20705 for ac_last_try in false false false false false :; do
20706 . ./conf$$subs.sh ||
20707 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20709 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20710 if test $ac_delim_n = $ac_delim_num; then
20712 elif $ac_last_try; then
20713 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20715 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20718 rm -f conf$$subs.sh
20720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20721 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20725 s/^/S["/; s
/!.
*/"]=/
20735 s/\(.\{148\}\)..*/\1/
20737 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20742 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20749 s/\(.\{148\}\)..*/\1/
20751 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20755 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20760 ' <conf$$subs.awk | sed '
20765 ' >>$CONFIG_STATUS || ac_write_fail=1
20766 rm -f conf$$subs.awk
20767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20769 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20770 for (key in S) S_is_set[key] = 1
20776 nfields = split(line, field, "@
")
20778 len = length(field[1])
20779 for (i = 2; i < nfields; i++) {
20781 keylen = length(key)
20782 if (S_is_set[key]) {
20784 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20785 len += length(value) + length(field[++i])
20796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20797 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20798 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20801 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20802 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20805 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20806 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20807 # trailing colons and then remove the whole line if VPATH becomes empty
20808 # (actually we leave an empty line to preserve line numbers).
20809 if test "x
$srcdir" = x.; then
20810 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20829 fi # test -n "$CONFIG_FILES"
20831 # Set up the scripts for CONFIG_HEADERS section.
20832 # No need to generate them if there are no CONFIG_HEADERS.
20833 # This happens for instance with `./config.status Makefile'.
20834 if test -n "$CONFIG_HEADERS"; then
20835 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20839 # Transform confdefs.h into an awk script `defines.awk', embedded as
20840 # here-document in config.status, that substitutes the proper values into
20841 # config.h.in to produce config.h.
20843 # Create a delimiter string that does not exist in confdefs.h, to ease
20844 # handling of long lines.
20846 for ac_last_try in false false :; do
20847 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20848 if test -z "$ac_tt"; then
20850 elif $ac_last_try; then
20851 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20853 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20857 # For the awk script, D is an array of macro values keyed by name,
20858 # likewise P contains macro parameters if any. Preserve backslash
20859 # newline sequences.
20861 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20863 s/.\{148\}/&'"$ac_delim"'/g
20866 s/^[ ]*#[ ]*define[ ][ ]*/ /
20873 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20875 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20879 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20880 D["\
1"]=" \
3\\\\\\n
"\\/p
20882 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20887 s/.\{148\}/&'"$ac_delim"'/g
20892 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20895 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20897 ' <confdefs.h | sed '
20898 s/'"$ac_delim"'/"\\\
20899 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20902 for (key in D) D_is_set[key] = 1
20905 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20907 split(line, arg, " ")
20908 if (arg[1] == "#") {
20912 defundef
= substr
(arg
[1], 2)
20915 split(mac1
, mac2
, "(") #)
20917 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20918 if (D_is_set
[macro
]) {
20919 # Preserve the white space surrounding the "#".
20920 print prefix
"define", macro P
[macro
] D
[macro
]
20923 # Replace #undef with comments. This is necessary, for example,
20924 # in the case of _POSIX_SOURCE, which is predefined and required
20925 # on some systems where configure will not decide to define it.
20926 if (defundef
== "undef") {
20927 print
"/*", prefix defundef
, macro
, "*/"
20935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20936 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20937 fi # test -n "$CONFIG_HEADERS"
20940 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20945 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20947 case $ac_mode$ac_tag in
20949 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20950 :[FH
]-) ac_tag
=-:-;;
20951 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20968 -) ac_f
="$ac_tmp/stdin";;
20969 *) # Look for the file first in the build tree, then in the source tree
20970 # (if the path is not absolute). The absolute path cannot be DOS-style,
20971 # because $ac_f cannot contain `:'.
20975 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20977 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20979 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20980 as_fn_append ac_file_inputs
" '$ac_f'"
20983 # Let's still pretend it is `configure' which instantiates (i.e., don't
20984 # use $as_me), people would be surprised to read:
20985 # /* config.h. Generated by config.status. */
20986 configure_input
='Generated from '`
20987 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20989 if test x
"$ac_file" != x-
; then
20990 configure_input
="$ac_file. $configure_input"
20991 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20992 $as_echo "$as_me: creating $ac_file" >&6;}
20994 # Neutralize special characters interpreted by sed in replacement strings.
20995 case $configure_input in #(
20996 *\
&* |
*\|
* |
*\\* )
20997 ac_sed_conf_input
=`$as_echo "$configure_input" |
20998 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20999 *) ac_sed_conf_input
=$configure_input;;
21003 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
21004 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
21009 ac_dir
=`$as_dirname -- "$ac_file" ||
21010 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21011 X"$ac_file" : 'X\(//\)[^/]' \| \
21012 X"$ac_file" : 'X\(//\)$' \| \
21013 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21014 $as_echo X"$ac_file" |
21015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21019 /^X\(\/\/\)[^/].*/{
21032 as_dir
="$ac_dir"; as_fn_mkdir_p
21036 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21038 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21039 # A ".." for each directory in $ac_dir_suffix.
21040 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21041 case $ac_top_builddir_sub in
21042 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21043 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21046 ac_abs_top_builddir
=$ac_pwd
21047 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21048 # for backward compatibility:
21049 ac_top_builddir
=$ac_top_build_prefix
21052 .
) # We are building in place.
21054 ac_top_srcdir
=$ac_top_builddir_sub
21055 ac_abs_top_srcdir
=$ac_pwd ;;
21056 [\\/]* | ?
:[\\/]* ) # Absolute name.
21057 ac_srcdir
=$srcdir$ac_dir_suffix;
21058 ac_top_srcdir
=$srcdir
21059 ac_abs_top_srcdir
=$srcdir ;;
21060 *) # Relative name.
21061 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21062 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21063 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21065 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21075 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21076 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21078 ac_MKDIR_P
=$MKDIR_P
21080 [\\/$
]* | ?
:[\\/]* ) ;;
21081 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
21085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21086 # If the template does not know about datarootdir, expand it.
21087 # FIXME: This hack should be removed a few years after 2.60.
21088 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21099 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21100 *datarootdir
*) ac_datarootdir_seen
=yes;;
21101 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21103 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21106 ac_datarootdir_hack='
21107 s&@datadir@&$datadir&g
21108 s&@docdir@&$docdir&g
21109 s&@infodir@&$infodir&g
21110 s&@localedir@&$localedir&g
21111 s&@mandir@&$mandir&g
21112 s&\\\${datarootdir}&$datarootdir&g' ;;
21116 # Neutralize VPATH when `$srcdir' = `.'.
21117 # Shell code in configure.ac might set extrasub.
21118 # FIXME: do we really want to maintain this feature?
21119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21120 ac_sed_extra="$ac_vpsub
21123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21125 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21126 s|@configure_input@|
$ac_sed_conf_input|
;t t
21127 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21128 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21129 s
&@srcdir@
&$ac_srcdir&;t t
21130 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21131 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21132 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21133 s
&@builddir@
&$ac_builddir&;t t
21134 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21135 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21136 s
&@INSTALL@
&$ac_INSTALL&;t t
21137 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
21138 $ac_datarootdir_hack
21140 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
21141 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
21143 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21144 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
21145 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21146 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21148 which seems to be undefined. Please make sure it is defined" >&5
21149 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21150 which seems to be undefined. Please make sure it is defined" >&2;}
21152 rm -f "$ac_tmp/stdin"
21154 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21155 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21157 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21163 if test x"$ac_file" != x-; then
21165 $as_echo "/* $configure_input */" \
21166 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21167 } >"$ac_tmp/config.h" \
21168 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21169 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21171 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21174 mv "$ac_tmp/config.h" "$ac_file" \
21175 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21178 $as_echo "/* $configure_input */" \
21179 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21180 || as_fn_error $? "could not create -" "$LINENO" 5
21182 # Compute "$ac_file"'s index
in $config_headers.
21185 for _am_header
in $config_headers :; do
21186 case $_am_header in
21187 $_am_arg |
$_am_arg:* )
21190 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
21193 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21194 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21195 X"$_am_arg" : 'X\(//\)[^/]' \| \
21196 X"$_am_arg" : 'X\(//\)$' \| \
21197 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21198 $as_echo X"$_am_arg" |
21199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21203 /^X\(\/\/\)[^/].*/{
21215 s/.*/./; q'`/stamp-h
$_am_stamp_count
21218 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21219 $as_echo "$as_me: executing $ac_file commands" >&6;}
21224 case $ac_file$ac_mode in
21225 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
21226 # Older Autoconf quotes --file arguments for eval, but not when files
21227 # are listed without --file. Let's play safe and only enable the eval
21228 # if we detect the quoting.
21229 case $CONFIG_FILES in
21230 *\'*) eval set x
"$CONFIG_FILES" ;;
21231 *) set x
$CONFIG_FILES ;;
21236 # Strip MF so we end up with the name of the file.
21237 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21238 # Check whether this is an Automake generated Makefile or not.
21239 # We used to match only the files named 'Makefile.in', but
21240 # some people rename them; so instead we look at the file content.
21241 # Grep'ing the first line is not enough: some people post-process
21242 # each Makefile.in and add a new line on top of each file to say so.
21243 # Grep'ing the whole file is not good either: AIX grep has a line
21244 # limit of 2048, but all sed's we know have understand at least 4000.
21245 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
21246 dirpart
=`$as_dirname -- "$mf" ||
21247 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21248 X"$mf" : 'X\(//\)[^/]' \| \
21249 X"$mf" : 'X\(//\)$' \| \
21250 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21256 /^X\(\/\/\)[^/].*/{
21272 # Extract the definition of DEPDIR, am__include, and am__quote
21273 # from the Makefile without running 'make'.
21274 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21275 test -z "$DEPDIR" && continue
21276 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21277 test -z "$am__include" && continue
21278 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21279 # Find all dependency output files, they are included files with
21280 # $(DEPDIR) in their names. We invoke sed twice because it is the
21281 # simplest approach to changing $(DEPDIR) to its actual value in the
21283 for file in `sed -n "
21284 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21285 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21286 # Make sure the directory exists.
21287 test -f "$dirpart/$file" && continue
21288 fdir
=`$as_dirname -- "$file" ||
21289 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21290 X"$file" : 'X\(//\)[^/]' \| \
21291 X"$file" : 'X\(//\)$' \| \
21292 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21293 $as_echo X"$file" |
21294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21298 /^X\(\/\/\)[^/].*/{
21311 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
21312 # echo "creating $dirpart/$file"
21313 echo '# dummy' > "$dirpart/$file"
21320 # See if we are running on zsh, and set the options which allow our
21321 # commands through without removal of \ escapes.
21322 if test -n "${ZSH_VERSION+set}" ; then
21323 setopt NO_GLOB_SUBST
21326 cfgfile
="${ofile}T"
21327 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21330 cat <<_LT_EOF >> "$cfgfile"
21333 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21334 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21335 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21336 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21338 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21339 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
21340 # Written by Gordon Matzigkeit, 1996
21342 # This file is part of GNU Libtool.
21344 # GNU Libtool is free software; you can redistribute it and/or
21345 # modify it under the terms of the GNU General Public License as
21346 # published by the Free Software Foundation; either version 2 of
21347 # the License, or (at your option) any later version.
21349 # As a special exception to the GNU General Public License,
21350 # if you distribute this file as part of a program or library that
21351 # is built using GNU Libtool, you may include this file under the
21352 # same distribution terms that you use for the rest of that program.
21354 # GNU Libtool is distributed in the hope that it will be useful,
21355 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21356 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21357 # GNU General Public License for more details.
21359 # You should have received a copy of the GNU General Public License
21360 # along with GNU Libtool; see the file COPYING. If not, a copy
21361 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21362 # obtained by writing to the Free Software Foundation, Inc.,
21363 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21366 # The names of the tagged configurations supported by this script.
21367 available_tags="CXX "
21369 # ### BEGIN LIBTOOL CONFIG
21371 # Which release of libtool.m4 was used?
21372 macro_version=$macro_version
21373 macro_revision=$macro_revision
21375 # Whether or not to build shared libraries.
21376 build_libtool_libs=$enable_shared
21378 # Whether or not to build static libraries.
21379 build_old_libs=$enable_static
21381 # What type of objects to build.
21384 # Whether or not to optimize for fast installation.
21385 fast_install=$enable_fast_install
21387 # Shell to use when invoking shell scripts.
21390 # An echo program that protects backslashes.
21394 host_alias=$host_alias
21398 # The build system.
21399 build_alias=$build_alias
21403 # A sed program that does not truncate output.
21406 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21407 Xsed="\$SED -e 1s/^X//"
21409 # A grep program that handles long lines.
21415 # A literal string matcher.
21418 # A BSD- or MS-compatible name lister.
21421 # Whether we need soft or hard links.
21424 # What is the maximum length of a command?
21425 max_cmd_len=$max_cmd_len
21427 # Object file suffix (normally "o").
21430 # Executable file suffix (normally "").
21433 # whether the shell understands "unset".
21436 # turn spaces into newlines.
21439 # turn newlines into spaces.
21442 # An object symbol dumper.
21443 OBJDUMP=$lt_OBJDUMP
21445 # Method to check whether dependent libraries are shared objects.
21446 deplibs_check_method=$lt_deplibs_check_method
21448 # Command to use when deplibs_check_method == "file_magic".
21449 file_magic_cmd=$lt_file_magic_cmd
21453 AR_FLAGS=$lt_AR_FLAGS
21455 # A symbol stripping program.
21458 # Commands used to install an old-style archive.
21460 old_postinstall_cmds=$lt_old_postinstall_cmds
21461 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21463 # Whether to use a lock for old archive extraction.
21464 lock_old_archive_extraction=$lock_old_archive_extraction
21469 # LTCC compiler flags.
21470 LTCFLAGS=$lt_CFLAGS
21472 # Take the output of nm and produce a listing of raw symbols and C names.
21473 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21475 # Transform the output of nm in a proper C declaration.
21476 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21478 # Transform the output of nm in a C name address pair.
21479 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21481 # Transform the output of nm in a C name address pair when lib prefix is needed.
21482 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21484 # The name of the directory that contains temporary libtool files.
21487 # Used to examine libraries when file_magic_cmd begins with "file".
21488 MAGIC_CMD=$MAGIC_CMD
21490 # Must we lock files when doing compilation?
21491 need_locks=$lt_need_locks
21493 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21494 DSYMUTIL=$lt_DSYMUTIL
21496 # Tool to change global to local symbols on Mac OS X.
21499 # Tool to manipulate fat objects and archives on Mac OS X.
21502 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21505 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21506 OTOOL64=$lt_OTOOL64
21508 # Old archive suffix (normally "a").
21511 # Shared library suffix (normally ".so").
21512 shrext_cmds=$lt_shrext_cmds
21514 # The commands to extract the exported symbol list from a shared archive.
21515 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21517 # Variables whose values should be saved in libtool wrapper scripts and
21518 # restored at link time.
21519 variables_saved_for_relink=$lt_variables_saved_for_relink
21521 # Do we need the "lib" prefix for modules?
21522 need_lib_prefix=$need_lib_prefix
21524 # Do we need a version for libraries?
21525 need_version=$need_version
21527 # Library versioning type.
21528 version_type=$version_type
21530 # Shared library runtime path variable.
21531 runpath_var=$runpath_var
21533 # Shared library path variable.
21534 shlibpath_var=$shlibpath_var
21536 # Is shlibpath searched before the hard-coded library search path?
21537 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21539 # Format of library name prefix.
21540 libname_spec=$lt_libname_spec
21542 # List of archive names. First name is the real one, the rest are links.
21543 # The last name is the one that the linker finds with -lNAME
21544 library_names_spec=$lt_library_names_spec
21546 # The coded name of the library, if different from the real name.
21547 soname_spec=$lt_soname_spec
21549 # Permission mode override for installation of shared libraries.
21550 install_override_mode=$lt_install_override_mode
21552 # Command to use after installation of a shared archive.
21553 postinstall_cmds=$lt_postinstall_cmds
21555 # Command to use after uninstallation of a shared archive.
21556 postuninstall_cmds=$lt_postuninstall_cmds
21558 # Commands used to finish a libtool library installation in a directory.
21559 finish_cmds=$lt_finish_cmds
21561 # As "finish_cmds", except a single script fragment to be evaled but
21563 finish_eval=$lt_finish_eval
21565 # Whether we should hardcode library paths into libraries.
21566 hardcode_into_libs=$hardcode_into_libs
21568 # Compile-time system search path for libraries.
21569 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21571 # Run-time system search path for libraries.
21572 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21574 # Whether dlopen is supported.
21575 dlopen_support=$enable_dlopen
21577 # Whether dlopen of programs is supported.
21578 dlopen_self=$enable_dlopen_self
21580 # Whether dlopen of statically linked programs is supported.
21581 dlopen_self_static=$enable_dlopen_self_static
21583 # Commands to strip libraries.
21584 old_striplib=$lt_old_striplib
21585 striplib=$lt_striplib
21588 # The linker used to build libraries.
21591 # How to create reloadable object files.
21592 reload_flag=$lt_reload_flag
21593 reload_cmds=$lt_reload_cmds
21595 # Commands used to build an old-style archive.
21596 old_archive_cmds=$lt_old_archive_cmds
21598 # A language specific compiler.
21601 # Is the compiler the GNU compiler?
21604 # Compiler flag to turn off builtin functions.
21605 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21607 # How to pass a linker flag through the compiler.
21608 wl=$lt_lt_prog_compiler_wl
21610 # Additional compiler flags for building library objects.
21611 pic_flag=$lt_lt_prog_compiler_pic
21613 # Compiler flag to prevent dynamic linking.
21614 link_static_flag=$lt_lt_prog_compiler_static
21616 # Does compiler simultaneously support -c and -o options?
21617 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21619 # Whether or not to add -lc for building shared libraries.
21620 build_libtool_need_lc=$archive_cmds_need_lc
21622 # Whether or not to disallow shared libs when runtime libs are static.
21623 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21625 # Compiler flag to allow reflexive dlopens.
21626 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21628 # Compiler flag to generate shared objects directly from archives.
21629 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21631 # Whether the compiler copes with passing no objects directly.
21632 compiler_needs_object=$lt_compiler_needs_object
21634 # Create an old-style archive from a shared archive.
21635 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21637 # Create a temporary old-style archive to link instead of a shared archive.
21638 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21640 # Commands used to build a shared archive.
21641 archive_cmds=$lt_archive_cmds
21642 archive_expsym_cmds=$lt_archive_expsym_cmds
21644 # Commands used to build a loadable module if different from building
21645 # a shared archive.
21646 module_cmds=$lt_module_cmds
21647 module_expsym_cmds=$lt_module_expsym_cmds
21649 # Whether we are building with GNU ld or not.
21650 with_gnu_ld=$lt_with_gnu_ld
21652 # Flag that allows shared libraries with undefined symbols to be built.
21653 allow_undefined_flag=$lt_allow_undefined_flag
21655 # Flag that enforces no undefined symbols.
21656 no_undefined_flag=$lt_no_undefined_flag
21658 # Flag to hardcode \$libdir into a binary during linking.
21659 # This must work even if \$libdir does not exist
21660 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21662 # If ld is used when linking, flag to hardcode \$libdir into a binary
21663 # during linking. This must work even if \$libdir does not exist.
21664 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21666 # Whether we need a single "-rpath" flag with a separated argument.
21667 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21669 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21670 # DIR into the resulting binary.
21671 hardcode_direct=$hardcode_direct
21673 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21674 # DIR into the resulting binary and the resulting library dependency is
21675 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21676 # library is relocated.
21677 hardcode_direct_absolute=$hardcode_direct_absolute
21679 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21680 # into the resulting binary.
21681 hardcode_minus_L=$hardcode_minus_L
21683 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21684 # into the resulting binary.
21685 hardcode_shlibpath_var=$hardcode_shlibpath_var
21687 # Set to "yes" if building a shared library automatically hardcodes DIR
21688 # into the library and all subsequent libraries and executables linked
21690 hardcode_automatic=$hardcode_automatic
21692 # Set to yes if linker adds runtime paths of dependent libraries
21693 # to runtime path list.
21694 inherit_rpath=$inherit_rpath
21696 # Whether libtool must link a program against all its dependency libraries.
21697 link_all_deplibs=$link_all_deplibs
21699 # Fix the shell variable \$srcfile for the compiler.
21700 fix_srcfile_path=$lt_fix_srcfile_path
21702 # Set to "yes" if exported symbols are required.
21703 always_export_symbols=$always_export_symbols
21705 # The commands to list exported symbols.
21706 export_symbols_cmds=$lt_export_symbols_cmds
21708 # Symbols that should not be listed in the preloaded symbols.
21709 exclude_expsyms=$lt_exclude_expsyms
21711 # Symbols that must always be exported.
21712 include_expsyms=$lt_include_expsyms
21714 # Commands necessary for linking programs (against libraries) with templates.
21715 prelink_cmds=$lt_prelink_cmds
21717 # Specify filename containing input files.
21718 file_list_spec=$lt_file_list_spec
21720 # How to hardcode a shared library path into an executable.
21721 hardcode_action=$hardcode_action
21723 # The directories searched by this compiler when creating a shared library.
21724 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21726 # Dependencies to place before and after the objects being linked to
21727 # create a shared library.
21728 predep_objects=$lt_predep_objects
21729 postdep_objects=$lt_postdep_objects
21730 predeps=$lt_predeps
21731 postdeps=$lt_postdeps
21733 # The library search path used internally by the compiler when linking
21734 # a shared library.
21735 compiler_lib_search_path=$lt_compiler_lib_search_path
21737 # ### END LIBTOOL CONFIG
21743 cat <<\_LT_EOF
>> "$cfgfile"
21744 # AIX sometimes has problems with the GCC collect2 program. For some
21745 # reason, if we set the COLLECT_NAMES environment variable, the problems
21746 # vanish in a puff of smoke.
21747 if test "X${COLLECT_NAMES+set}" != Xset
; then
21749 export COLLECT_NAMES
21756 ltmain
="$ac_aux_dir/ltmain.sh"
21759 # We use sed instead of cat because bash on DJGPP gets confused if
21760 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21761 # text mode, it properly converts lines to CR/LF. This bash problem
21762 # is reportedly fixed, but why not run on old versions too?
21763 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21764 ||
(rm -f "$cfgfile"; exit 1)
21768 cat << \_LT_EOF
>> "$cfgfile"
21770 # func_dirname file append nondir_replacement
21771 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21772 # otherwise set result to NONDIR_REPLACEMENT.
21776 */*) func_dirname_result
="${1%/*}${2}" ;;
21777 * ) func_dirname_result
="${3}" ;;
21781 # func_basename file
21784 func_basename_result
="${1##*/}"
21787 # func_dirname_and_basename file append nondir_replacement
21788 # perform func_basename and func_dirname in a single function
21790 # dirname: Compute the dirname of FILE. If nonempty,
21791 # add APPEND to the result, otherwise set result
21792 # to NONDIR_REPLACEMENT.
21793 # value returned in "$func_dirname_result"
21794 # basename: Compute filename of FILE.
21795 # value retuned in "$func_basename_result"
21796 # Implementation must be kept synchronized with func_dirname
21797 # and func_basename. For efficiency, we do not delegate to
21798 # those functions but instead duplicate the functionality here.
21799 func_dirname_and_basename
()
21802 */*) func_dirname_result
="${1%/*}${2}" ;;
21803 * ) func_dirname_result
="${3}" ;;
21805 func_basename_result
="${1##*/}"
21808 # func_stripname prefix suffix name
21809 # strip PREFIX and SUFFIX off of NAME.
21810 # PREFIX and SUFFIX must not contain globbing or regex special
21811 # characters, hashes, percent signs, but SUFFIX may contain a leading
21812 # dot (in which case that matches only a dot).
21815 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21816 # positional parameters, so assign one to ordinary parameter first.
21817 func_stripname_result
=${3}
21818 func_stripname_result
=${func_stripname_result#"${1}"}
21819 func_stripname_result
=${func_stripname_result%"${2}"}
21825 func_opt_split_opt
=${1%%=*}
21826 func_opt_split_arg
=${1#*=}
21833 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
21834 *) func_lo2o_result
=${1} ;;
21838 # func_xform libobj-or-source
21841 func_xform_result
=${1%.*}.lo
21844 # func_arith arithmetic-term...
21847 func_arith_result
=$
(( $
* ))
21851 # STRING may not start with a hyphen.
21854 func_len_result
=${#1}
21859 *) # Bourne compatible functions.
21860 cat << \_LT_EOF
>> "$cfgfile"
21862 # func_dirname file append nondir_replacement
21863 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21864 # otherwise set result to NONDIR_REPLACEMENT.
21867 # Extract subdirectory from the argument.
21868 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
21869 if test "X$func_dirname_result" = "X${1}"; then
21870 func_dirname_result
="${3}"
21872 func_dirname_result
="$func_dirname_result${2}"
21876 # func_basename file
21879 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
21883 # func_stripname prefix suffix name
21884 # strip PREFIX and SUFFIX off of NAME.
21885 # PREFIX and SUFFIX must not contain globbing or regex special
21886 # characters, hashes, percent signs, but SUFFIX may contain a leading
21887 # dot (in which case that matches only a dot).
21888 # func_strip_suffix prefix name
21892 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
21893 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
21898 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
21899 my_sed_long_arg
='1s/^-[^=]*=//'
21904 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
21905 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
21911 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
21914 # func_xform libobj-or-source
21917 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
21920 # func_arith arithmetic-term...
21923 func_arith_result
=`expr "$@"`
21927 # STRING may not start with a hyphen.
21930 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21936 case $lt_shell_append in
21938 cat << \_LT_EOF
>> "$cfgfile"
21940 # func_append var value
21941 # Append VALUE to the end of shell variable VAR.
21949 cat << \_LT_EOF
>> "$cfgfile"
21951 # func_append var value
21952 # Append VALUE to the end of shell variable VAR.
21963 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21964 ||
(rm -f "$cfgfile"; exit 1)
21966 mv -f "$cfgfile" "$ofile" ||
21967 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21971 cat <<_LT_EOF >> "$ofile"
21973 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21975 # The linker used to build libraries.
21978 # How to create reloadable object files.
21979 reload_flag=$lt_reload_flag_CXX
21980 reload_cmds=$lt_reload_cmds_CXX
21982 # Commands used to build an old-style archive.
21983 old_archive_cmds=$lt_old_archive_cmds_CXX
21985 # A language specific compiler.
21986 CC=$lt_compiler_CXX
21988 # Is the compiler the GNU compiler?
21991 # Compiler flag to turn off builtin functions.
21992 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21994 # How to pass a linker flag through the compiler.
21995 wl=$lt_lt_prog_compiler_wl_CXX
21997 # Additional compiler flags for building library objects.
21998 pic_flag=$lt_lt_prog_compiler_pic_CXX
22000 # Compiler flag to prevent dynamic linking.
22001 link_static_flag=$lt_lt_prog_compiler_static_CXX
22003 # Does compiler simultaneously support -c and -o options?
22004 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22006 # Whether or not to add -lc for building shared libraries.
22007 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22009 # Whether or not to disallow shared libs when runtime libs are static.
22010 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22012 # Compiler flag to allow reflexive dlopens.
22013 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22015 # Compiler flag to generate shared objects directly from archives.
22016 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22018 # Whether the compiler copes with passing no objects directly.
22019 compiler_needs_object=$lt_compiler_needs_object_CXX
22021 # Create an old-style archive from a shared archive.
22022 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22024 # Create a temporary old-style archive to link instead of a shared archive.
22025 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22027 # Commands used to build a shared archive.
22028 archive_cmds=$lt_archive_cmds_CXX
22029 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22031 # Commands used to build a loadable module if different from building
22032 # a shared archive.
22033 module_cmds=$lt_module_cmds_CXX
22034 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22036 # Whether we are building with GNU ld or not.
22037 with_gnu_ld=$lt_with_gnu_ld_CXX
22039 # Flag that allows shared libraries with undefined symbols to be built.
22040 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22042 # Flag that enforces no undefined symbols.
22043 no_undefined_flag=$lt_no_undefined_flag_CXX
22045 # Flag to hardcode \$libdir into a binary during linking.
22046 # This must work even if \$libdir does not exist
22047 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22049 # If ld is used when linking, flag to hardcode \$libdir into a binary
22050 # during linking. This must work even if \$libdir does not exist.
22051 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22053 # Whether we need a single "-rpath" flag with a separated argument.
22054 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22056 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22057 # DIR into the resulting binary.
22058 hardcode_direct=$hardcode_direct_CXX
22060 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22061 # DIR into the resulting binary and the resulting library dependency is
22062 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22063 # library is relocated.
22064 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22066 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22067 # into the resulting binary.
22068 hardcode_minus_L=$hardcode_minus_L_CXX
22070 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22071 # into the resulting binary.
22072 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22074 # Set to "yes" if building a shared library automatically hardcodes DIR
22075 # into the library and all subsequent libraries and executables linked
22077 hardcode_automatic=$hardcode_automatic_CXX
22079 # Set to yes if linker adds runtime paths of dependent libraries
22080 # to runtime path list.
22081 inherit_rpath=$inherit_rpath_CXX
22083 # Whether libtool must link a program against all its dependency libraries.
22084 link_all_deplibs=$link_all_deplibs_CXX
22086 # Fix the shell variable \$srcfile for the compiler.
22087 fix_srcfile_path=$lt_fix_srcfile_path_CXX
22089 # Set to "yes" if exported symbols are required.
22090 always_export_symbols=$always_export_symbols_CXX
22092 # The commands to list exported symbols.
22093 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22095 # Symbols that should not be listed in the preloaded symbols.
22096 exclude_expsyms=$lt_exclude_expsyms_CXX
22098 # Symbols that must always be exported.
22099 include_expsyms=$lt_include_expsyms_CXX
22101 # Commands necessary for linking programs (against libraries) with templates.
22102 prelink_cmds=$lt_prelink_cmds_CXX
22104 # Specify filename containing input files.
22105 file_list_spec=$lt_file_list_spec_CXX
22107 # How to hardcode a shared library path into an executable.
22108 hardcode_action=$hardcode_action_CXX
22110 # The directories searched by this compiler when creating a shared library.
22111 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22113 # Dependencies to place before and after the objects being linked to
22114 # create a shared library.
22115 predep_objects=$lt_predep_objects_CXX
22116 postdep_objects=$lt_postdep_objects_CXX
22117 predeps=$lt_predeps_CXX
22118 postdeps=$lt_postdeps_CXX
22120 # The library search path used internally by the compiler when linking
22121 # a shared library.
22122 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22124 # ### END LIBTOOL TAG CONFIG: CXX
22129 for ac_file
in $CONFIG_FILES; do
22130 # Support "outfile[:infile[:infile...]]"
22132 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
22134 # PO directories have a Makefile.in generated from Makefile.in.in.
22135 case "$ac_file" in */Makefile.
in)
22136 # Adjust a relative srcdir.
22137 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22138 ac_dir_suffix
=/`echo "$ac_dir"|sed 's%^\./%%'`
22139 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22140 # In autoconf-2.13 it is called $ac_given_srcdir.
22141 # In autoconf-2.50 it is called $srcdir.
22142 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
22143 case "$ac_given_srcdir" in
22144 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
22145 /*) top_srcdir
="$ac_given_srcdir" ;;
22146 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
22148 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22149 rm -f "$ac_dir/POTFILES"
22150 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
22151 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22152 POMAKEFILEDEPS
="POTFILES.in"
22153 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22154 # on $ac_dir but don't depend on user-specified configuration
22156 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22157 # The LINGUAS file contains the set of available languages.
22158 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22159 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
22161 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22162 # Hide the ALL_LINGUAS assigment from automake.
22163 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22164 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
22166 # The set of available languages was given in configure.ac.
22167 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22169 case "$ac_given_srcdir" in
22171 *) srcdirpre
='$(srcdir)/' ;;
22177 for lang
in $ALL_LINGUAS; do
22178 POFILES
="$POFILES $srcdirpre$lang.po"
22179 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
22180 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
22181 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
22183 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22184 # environment variable.
22186 if test -n "$ALL_LINGUAS"; then
22187 for presentlang
in $ALL_LINGUAS; do
22189 if test "%UNSET%" != "$LINGUAS"; then
22190 desiredlanguages
="$LINGUAS"
22192 desiredlanguages
="$ALL_LINGUAS"
22194 for desiredlang
in $desiredlanguages; do
22195 # Use the presentlang catalog if desiredlang is
22196 # a. equal to presentlang, or
22197 # b. a variant of presentlang (because in this case,
22198 # presentlang can be used as a fallback for messages
22199 # which are not translated in the desiredlang catalog).
22200 case "$desiredlang" in
22201 "$presentlang"*) useit
=yes;;
22204 if test $useit = yes; then
22205 INST_LINGUAS
="$INST_LINGUAS $presentlang"
22210 if test -n "$INST_LINGUAS"; then
22211 for lang
in $INST_LINGUAS; do
22212 CATALOGS
="$CATALOGS $lang.gmo"
22215 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
22216 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"
22217 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
22218 if test -f "$f"; then
22220 *.orig |
*.bak |
*~
) ;;
22221 *) cat "$f" >> "$ac_dir/Makefile" ;;
22230 for ac_file
in $CONFIG_FILES; do
22231 # Support "outfile[:infile[:infile...]]"
22233 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
22235 # PO directories have a Makefile.in generated from Makefile.in.in.
22236 case "$ac_file" in */Makefile.
in)
22237 # Adjust a relative srcdir.
22238 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22239 ac_dir_suffix
=/`echo "$ac_dir"|sed 's%^\./%%'`
22240 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22241 # In autoconf-2.13 it is called $ac_given_srcdir.
22242 # In autoconf-2.50 it is called $srcdir.
22243 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
22244 case "$ac_given_srcdir" in
22245 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
22246 /*) top_srcdir
="$ac_given_srcdir" ;;
22247 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
22249 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22250 rm -f "$ac_dir/POTFILES"
22251 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
22252 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22253 POMAKEFILEDEPS
="POTFILES.in"
22254 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22255 # on $ac_dir but don't depend on user-specified configuration
22257 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22258 # The LINGUAS file contains the set of available languages.
22259 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22260 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
22262 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22263 # Hide the ALL_LINGUAS assigment from automake.
22264 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22265 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
22267 # The set of available languages was given in configure.ac.
22268 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22270 case "$ac_given_srcdir" in
22272 *) srcdirpre
='$(srcdir)/' ;;
22278 for lang
in $ALL_LINGUAS; do
22279 POFILES
="$POFILES $srcdirpre$lang.po"
22280 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
22281 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
22282 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
22284 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22285 # environment variable.
22287 if test -n "$ALL_LINGUAS"; then
22288 for presentlang
in $ALL_LINGUAS; do
22290 if test "%UNSET%" != "$LINGUAS"; then
22291 desiredlanguages
="$LINGUAS"
22293 desiredlanguages
="$ALL_LINGUAS"
22295 for desiredlang
in $desiredlanguages; do
22296 # Use the presentlang catalog if desiredlang is
22297 # a. equal to presentlang, or
22298 # b. a variant of presentlang (because in this case,
22299 # presentlang can be used as a fallback for messages
22300 # which are not translated in the desiredlang catalog).
22301 case "$desiredlang" in
22302 "$presentlang"*) useit
=yes;;
22305 if test $useit = yes; then
22306 INST_LINGUAS
="$INST_LINGUAS $presentlang"
22311 if test -n "$INST_LINGUAS"; then
22312 for lang
in $INST_LINGUAS; do
22313 CATALOGS
="$CATALOGS $lang.gmo"
22316 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
22317 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"
22318 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
22319 if test -f "$f"; then
22321 *.orig |
*.bak |
*~
) ;;
22322 *) cat "$f" >> "$ac_dir/Makefile" ;;
22333 *) srcdirpre
='$(srcdir)/' ;;
22337 for lang
in dummy
$OBSOLETE_ALL_LINGUAS; do
22338 if test $lang != dummy
; then
22339 POFILES
="$POFILES $srcdirpre$lang.po"
22340 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
22343 sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \
22344 -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \
22345 -e "s,@POFILES@,$POFILES," \
22346 -e "s,@GMOFILES@,$GMOFILES," \
22347 po
/Makefile.
in > po
/Makefile
;;
22355 ac_clean_files
=$ac_clean_files_save
22357 test $ac_write_fail = 0 ||
22358 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
22361 # configure is writing to config.log, and then calls config.status.
22362 # config.status does its own redirection, appending to config.log.
22363 # Unfortunately, on DOS this fails, as config.log is still kept open
22364 # by configure, so config.status won't be able to write to it; its
22365 # output is simply discarded. So we exec the FD to /dev/null,
22366 # effectively closing config.log, so it can be properly (re)opened and
22367 # appended to by config.status. When coming back to configure, we
22368 # need to make the FD available again.
22369 if test "$no_create" != yes; then
22371 ac_config_status_args
=
22372 test "$silent" = yes &&
22373 ac_config_status_args
="$ac_config_status_args --quiet"
22375 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
22377 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22378 # would make configure fail if this is the last instruction.
22379 $ac_cs_success || as_fn_exit
1
22381 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22383 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22388 touch config.status.tmp
22389 if touch --reference=config.status config.status.tmp
> /dev
/null
2>&1; then
22390 sed '/as_fn_exit 0/i \
22391 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
22392 touch --reference=Makefile Makefile.tmp \
22393 mv Makefile.tmp Makefile \
22394 ' config.status
> config.status.tmp
22395 touch --reference=config.status config.status.tmp
22396 mv config.status.tmp config.status
22397 chmod +x config.status
22398 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile
> Makefile.tmp
22399 touch --reference=Makefile Makefile.tmp
22400 mv Makefile.tmp Makefile
22402 rm -f config.status.tmp