2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for transmission 2.82.
5 # Report bugs to <http://trac.transmissionbt.com/newticket>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev
/null
; then :
215 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
220 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir
=.
227 for as_base
in sh bash ksh sh5
; do
228 # Try only shells that exist, to save several forks.
229 as_shell
=$as_dir/$as_base
230 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
232 CONFIG_SHELL
=$as_shell as_have_required
=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
241 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
243 CONFIG_SHELL
=$SHELL as_have_required
=yes
248 if test "x$CONFIG_SHELL" != x
; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
258 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x
$as_have_required = xno
; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x
${ZSH_VERSION+set} = xset
; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://trac.transmissionbt.com/newticket about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
287 SHELL
=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE
= GREP_OPTIONS
=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir
=.
/$as_dir;;
332 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
336 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs
="'$as_qdir' $as_dirs"
340 as_dir
=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
366 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p
()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
409 as_val
=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status
=$1; test $as_status -eq 0 && as_status
=1
423 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit
$as_status
430 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
437 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
449 as_me
=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits
='0123456789'
473 as_cr_alnum
=$as_cr_Letters$as_cr_digits
476 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
477 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x
"$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec
=no
; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C
= ECHO_N
= ECHO_T
=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
524 rm -f conf$$ conf$$.exe conf$$.
file
525 if test -d conf$$.dir
; then
526 rm -f conf$$.dir
/conf$$.
file
529 mkdir conf$$.dir
2>/dev
/null
531 if (echo >conf$$.
file) 2>/dev
/null
; then
532 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
540 elif ln conf$$.
file conf$$
2>/dev
/null
; then
548 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
549 rmdir conf$$.dir
2>/dev
/null
551 if mkdir
-p .
2>/dev
/null
; then
552 as_mkdir_p
='mkdir -p "$as_dir"'
554 test -d .
/-p && rmdir .
/-p
559 as_executable_p
=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL
=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix
=/usr
/local
583 ac_config_libobj_dir
=.
590 # Identity of this package.
591 PACKAGE_NAME
='transmission'
592 PACKAGE_TARNAME
='transmission'
593 PACKAGE_VERSION
='2.82'
594 PACKAGE_STRING
='transmission 2.82'
595 PACKAGE_BUGREPORT
='http://trac.transmissionbt.com/newticket'
598 ac_unique_file
="libtransmission/transmission.h"
599 # Factoring default headers for most tests.
600 ac_includes_default
="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars
='am__EXEEXT_FALSE
648 transmissionlocaledir
668 INTLTOOL_SERVICE_RULE
670 INTLTOOL_SCHEMAS_RULE
672 INTLTOOL_XML_NOMERGE_RULE
677 INTLTOOL_SOUNDLIST_RULE
684 INTLTOOL_DIRECTORY_RULE
685 INTLTOOL_DESKTOP_RULE
686 intltool__v_merge_options_0
687 intltool__v_merge_options_
688 INTLTOOL_V_MERGE_OPTIONS
697 LIBAPPINDICATOR_CFLAGS
720 SYSTEMD_DAEMON_CFLAGS
741 LIBAPPINDICATOR_MINIMUM
805 INSTALL_STRIP_PROGRAM
853 program_transform_name
868 enable_option_checking
874 enable_dependency_tracking
885 enable_external_natpmp
893 ac_precious_vars
='build_alias
913 SYSTEMD_DAEMON_CFLAGS
917 LIBAPPINDICATOR_CFLAGS
918 LIBAPPINDICATOR_LIBS'
921 # Initialize some variables set by options.
923 ac_init_version
=false
924 ac_unrecognized_opts
=
926 # The variables have the same names as the options, with
927 # dashes changed to underlines.
935 program_transform_name
=s
,x
,x
,
943 # Installation directory options.
944 # These are left unexpanded so users can "make install exec_prefix=/foo"
945 # and all the variables that are supposed to be based on exec_prefix
946 # by default will actually change.
947 # Use braces instead of parens because sh, perl, etc. also accept them.
948 # (The list follows the same order as the GNU Coding Standards.)
949 bindir
='${exec_prefix}/bin'
950 sbindir
='${exec_prefix}/sbin'
951 libexecdir
='${exec_prefix}/libexec'
952 datarootdir
='${prefix}/share'
953 datadir
='${datarootdir}'
954 sysconfdir
='${prefix}/etc'
955 sharedstatedir
='${prefix}/com'
956 localstatedir
='${prefix}/var'
957 includedir
='${prefix}/include'
958 oldincludedir
='/usr/include'
959 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
960 infodir
='${datarootdir}/info'
965 libdir
='${exec_prefix}/lib'
966 localedir
='${datarootdir}/locale'
967 mandir
='${datarootdir}/man'
973 # If the previous option needs an argument, assign it.
974 if test -n "$ac_prev"; then
975 eval $ac_prev=\
$ac_option
981 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
986 # Accept the important Cygnus configure options, so we can diagnose typos.
988 case $ac_dashdash$ac_option in
992 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
994 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
997 -build |
--build |
--buil |
--bui |
--bu)
998 ac_prev
=build_alias
;;
999 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1000 build_alias
=$ac_optarg ;;
1002 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1003 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1004 ac_prev
=cache_file
;;
1005 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1006 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1007 cache_file
=$ac_optarg ;;
1009 --config-cache |
-C)
1010 cache_file
=config.cache
;;
1012 -datadir |
--datadir |
--datadi |
--datad)
1014 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1015 datadir
=$ac_optarg ;;
1017 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1018 |
--dataroo |
--dataro |
--datar)
1019 ac_prev
=datarootdir
;;
1020 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1021 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1022 datarootdir
=$ac_optarg ;;
1024 -disable-* |
--disable-*)
1025 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1028 as_fn_error $?
"invalid feature name: $ac_useropt"
1029 ac_useropt_orig
=$ac_useropt
1030 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1033 "enable_
$ac_useropt"
1035 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1036 ac_unrecognized_sep
=', ';;
1038 eval enable_
$ac_useropt=no
;;
1040 -docdir |
--docdir |
--docdi |
--doc |
--do)
1042 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1043 docdir
=$ac_optarg ;;
1045 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1047 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1048 dvidir
=$ac_optarg ;;
1050 -enable-* |
--enable-*)
1051 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1054 as_fn_error $?
"invalid feature name: $ac_useropt"
1055 ac_useropt_orig
=$ac_useropt
1056 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1059 "enable_
$ac_useropt"
1061 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1062 ac_unrecognized_sep
=', ';;
1064 eval enable_
$ac_useropt=\
$ac_optarg ;;
1066 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1067 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1068 |
--exec |
--exe |
--ex)
1069 ac_prev
=exec_prefix
;;
1070 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1071 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1072 |
--exec=* |
--exe=* |
--ex=*)
1073 exec_prefix
=$ac_optarg ;;
1075 -gas |
--gas |
--ga |
--g)
1076 # Obsolete; use --with-gas.
1079 -help |
--help |
--hel |
--he |
-h)
1080 ac_init_help
=long
;;
1081 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1082 ac_init_help
=recursive
;;
1083 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1084 ac_init_help
=short
;;
1086 -host |
--host |
--hos |
--ho)
1087 ac_prev
=host_alias
;;
1088 -host=* |
--host=* |
--hos=* |
--ho=*)
1089 host_alias
=$ac_optarg ;;
1091 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1093 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1095 htmldir
=$ac_optarg ;;
1097 -includedir |
--includedir |
--includedi |
--included |
--include \
1098 |
--includ |
--inclu |
--incl |
--inc)
1099 ac_prev
=includedir
;;
1100 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1101 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1102 includedir
=$ac_optarg ;;
1104 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1106 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1107 infodir
=$ac_optarg ;;
1109 -libdir |
--libdir |
--libdi |
--libd)
1111 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1112 libdir
=$ac_optarg ;;
1114 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1115 |
--libexe |
--libex |
--libe)
1116 ac_prev
=libexecdir
;;
1117 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1118 |
--libexe=* |
--libex=* |
--libe=*)
1119 libexecdir
=$ac_optarg ;;
1121 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1122 ac_prev
=localedir
;;
1123 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1124 localedir
=$ac_optarg ;;
1126 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1127 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1128 ac_prev
=localstatedir
;;
1129 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1130 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1131 localstatedir
=$ac_optarg ;;
1133 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1135 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1136 mandir
=$ac_optarg ;;
1138 -nfp |
--nfp |
--nf)
1139 # Obsolete; use --without-fp.
1142 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1143 |
--no-cr |
--no-c |
-n)
1146 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1147 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1150 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1151 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1152 |
--oldin |
--oldi |
--old |
--ol |
--o)
1153 ac_prev
=oldincludedir
;;
1154 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1155 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1156 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1157 oldincludedir
=$ac_optarg ;;
1159 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1161 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1162 prefix
=$ac_optarg ;;
1164 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1165 |
--program-pre |
--program-pr |
--program-p)
1166 ac_prev
=program_prefix
;;
1167 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1168 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1169 program_prefix
=$ac_optarg ;;
1171 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1172 |
--program-suf |
--program-su |
--program-s)
1173 ac_prev
=program_suffix
;;
1174 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1175 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1176 program_suffix
=$ac_optarg ;;
1178 -program-transform-name |
--program-transform-name \
1179 |
--program-transform-nam |
--program-transform-na \
1180 |
--program-transform-n |
--program-transform- \
1181 |
--program-transform |
--program-transfor \
1182 |
--program-transfo |
--program-transf \
1183 |
--program-trans |
--program-tran \
1184 |
--progr-tra |
--program-tr |
--program-t)
1185 ac_prev
=program_transform_name
;;
1186 -program-transform-name=* |
--program-transform-name=* \
1187 |
--program-transform-nam=* |
--program-transform-na=* \
1188 |
--program-transform-n=* |
--program-transform-=* \
1189 |
--program-transform=* |
--program-transfor=* \
1190 |
--program-transfo=* |
--program-transf=* \
1191 |
--program-trans=* |
--program-tran=* \
1192 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1193 program_transform_name
=$ac_optarg ;;
1195 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1197 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1198 pdfdir
=$ac_optarg ;;
1200 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1202 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1205 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1206 |
-silent |
--silent |
--silen |
--sile |
--sil)
1209 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1211 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1213 sbindir
=$ac_optarg ;;
1215 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1216 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1217 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1219 ac_prev
=sharedstatedir
;;
1220 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1221 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1222 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1224 sharedstatedir
=$ac_optarg ;;
1226 -site |
--site |
--sit)
1228 -site=* |
--site=* |
--sit=*)
1231 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1233 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1234 srcdir
=$ac_optarg ;;
1236 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1237 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1238 ac_prev
=sysconfdir
;;
1239 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1240 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1241 sysconfdir
=$ac_optarg ;;
1243 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1244 ac_prev
=target_alias
;;
1245 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1246 target_alias
=$ac_optarg ;;
1248 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1251 -version |
--version |
--versio |
--versi |
--vers |
-V)
1252 ac_init_version
=: ;;
1255 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1258 as_fn_error $?
"invalid package name: $ac_useropt"
1259 ac_useropt_orig
=$ac_useropt
1260 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1265 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266 ac_unrecognized_sep
=', ';;
1268 eval with_
$ac_useropt=\
$ac_optarg ;;
1270 -without-* |
--without-*)
1271 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1274 as_fn_error $?
"invalid package name: $ac_useropt"
1275 ac_useropt_orig
=$ac_useropt
1276 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277 case $ac_user_opts in
1281 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282 ac_unrecognized_sep
=', ';;
1284 eval with_
$ac_useropt=no
;;
1287 # Obsolete; use --with-x.
1290 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1291 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1292 ac_prev
=x_includes
;;
1293 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1294 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1295 x_includes
=$ac_optarg ;;
1297 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1298 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1299 ac_prev
=x_libraries
;;
1300 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1301 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1302 x_libraries
=$ac_optarg ;;
1304 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1305 Try \`$0 --help' for more information"
1309 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1310 # Reject names that are not valid shell variable names.
1311 case $ac_envvar in #(
1312 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1313 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1315 eval $ac_envvar=\
$ac_optarg
1316 export $ac_envvar ;;
1319 # FIXME: should be removed in autoconf 3.0.
1320 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1322 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1329 if test -n "$ac_prev"; then
1330 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1331 as_fn_error $?
"missing argument to $ac_option"
1334 if test -n "$ac_unrecognized_opts"; then
1335 case $enable_option_checking in
1337 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1338 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1342 # Check all directory arguments for consistency.
1343 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344 datadir sysconfdir sharedstatedir localstatedir includedir \
1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346 libdir localedir mandir
1348 eval ac_val
=\$
$ac_var
1349 # Remove trailing slashes.
1352 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353 eval $ac_var=\
$ac_val;;
1355 # Be sure to have absolute directory names.
1357 [\\/$
]* | ?
:[\\/]* ) continue;;
1358 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1360 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1363 # There might be people who depend on the old broken behavior: `$host'
1364 # used to hold the argument of --host etc.
1365 # FIXME: To remove some day.
1368 target
=$target_alias
1370 # FIXME: To remove some day.
1371 if test "x$host_alias" != x
; then
1372 if test "x$build_alias" = x
; then
1373 cross_compiling
=maybe
1374 elif test "x$build_alias" != "x$host_alias"; then
1380 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1382 test "$silent" = yes && exec 6>/dev
/null
1385 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di
=`ls -di .` &&
1387 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1388 as_fn_error $?
"working directory cannot be determined"
1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390 as_fn_error $?
"pwd does not report name of working directory"
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395 ac_srcdir_defaulted
=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir
=`$as_dirname -- "$as_myself" ||
1398 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$as_myself" : 'X\(//\)[^/]' \| \
1400 X"$as_myself" : 'X\(//\)$' \| \
1401 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402 $as_echo X"$as_myself" |
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1425 ac_srcdir_defaulted
=no
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1429 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1431 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1435 # When building in place, set srcdir=.
1436 if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 # Remove unnecessary trailing slashes from srcdir.
1440 # Double slashes in file names in object file debugging info
1441 # mess up M-x gdb in Emacs.
1443 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445 for ac_var
in $ac_precious_vars; do
1446 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1448 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1453 # Report the --help message.
1455 if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1459 \`configure' configures transmission 2.82 to adapt to many kinds of systems.
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE. See below for descriptions of some of the useful variables.
1466 Defaults for the options are specified in brackets.
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking ...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1479 Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
1481 [$ac_default_prefix]
1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1490 For better control, use the options below.
1492 Fine tuning of the installation directories:
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/transmission]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
1517 --program-prefix=PREFIX prepend PREFIX to installed program names
1518 --program-suffix=SUFFIX append SUFFIX to installed program names
1519 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1522 --build=BUILD configure
for building on BUILD
[guessed
]
1523 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1527 if test -n "$ac_init_help"; then
1528 case $ac_init_help in
1529 short | recursive
) echo "Configuration of transmission 2.82:";;
1534 --disable-option-checking ignore unrecognized
--enable/--with options
1535 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1536 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1537 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1538 --disable-silent-rules verbose build output
(undo
: "make V=0")
1539 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1540 --enable-static[=PKGS
] build static libraries
[default
=yes]
1541 --enable-fast-install[=PKGS
]
1542 optimize
for fast installation
[default
=yes]
1543 --enable-dependency-tracking
1544 do not reject slow dependency extractors
1545 --disable-dependency-tracking
1546 speeds up one-time build
1547 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1548 --disable-largefile omit support
for large files
1549 --enable-utp build µTP support
1550 --enable-external-natpmp
1551 Use system external-natpmp
1552 --enable-nls enable native language support
1553 --disable-nls do not use Native Language Support
1554 --enable-lightweight optimize libtransmission
for low-resource systems
:
1555 smaller cache size
, prefer unencrypted peer
1557 --enable-cli build command-line client
1558 --enable-mac build Mac client
1559 --enable-daemon build daemon
1562 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1563 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1564 --with-pic[=PKGS
] try to use only PIC
/non-PIC objects
[default
=use
1566 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1567 --with-sysroot=DIR Search
for dependent libraries within DIR
1568 (or the compiler
's sysroot if not specified).
1569 --with-zlib=DIR search for ZLIB in DIR/include and DIR/lib
1570 --with-zlib-includes=DIR
1571 search for ZLIB includes in DIR
1572 --with-inotify Enable inotify support (default=auto)
1573 --with-kqueue Enable kqueue support (default=auto)
1574 --with-systemd-daemon Add support for systemd startup notification
1575 (default is autodetected)
1576 USE_SYSTEMD_DAEMON=$withval
1579 Some influential environment variables:
1580 CC C compiler command
1581 CFLAGS C compiler flags
1582 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1583 nonstandard directory <lib dir>
1584 LIBS libraries to pass to the linker, e.g. -l<library>
1585 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1586 you have headers in a nonstandard directory <include dir>
1588 CXX C++ compiler command
1589 CXXFLAGS C++ compiler flags
1590 CXXCPP C++ preprocessor
1591 PKG_CONFIG path to pkg-config utility
1593 C compiler flags for OPENSSL, overriding pkg-config
1595 linker flags for OPENSSL, overriding pkg-config
1597 C compiler flags for LIBCURL, overriding pkg-config
1599 linker flags for LIBCURL, overriding pkg-config
1601 C compiler flags for LIBEVENT, overriding pkg-config
1603 linker flags for LIBEVENT, overriding pkg-config
1604 SYSTEMD_DAEMON_CFLAGS
1605 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1607 linker flags for SYSTEMD_DAEMON, overriding pkg-config
1608 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1609 GTK_LIBS linker flags for GTK, overriding pkg-config
1610 LIBAPPINDICATOR_CFLAGS
1611 C compiler flags for LIBAPPINDICATOR, overriding pkg-config
1612 LIBAPPINDICATOR_LIBS
1613 linker flags for LIBAPPINDICATOR, overriding pkg-config
1615 Use these variables to override the choices made by `configure' or to
help
1616 it to
find libraries and programs with nonstandard names
/locations.
1618 Report bugs to
<http
://trac.transmissionbt.com
/newticket
>.
1623 if test "$ac_init_help" = "recursive"; then
1624 # If there are subdirs, report their specific --help.
1625 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1626 test -d "$ac_dir" ||
1627 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1632 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1634 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1635 # A ".." for each directory in $ac_dir_suffix.
1636 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1637 case $ac_top_builddir_sub in
1638 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1639 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1642 ac_abs_top_builddir
=$ac_pwd
1643 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1644 # for backward compatibility:
1645 ac_top_builddir
=$ac_top_build_prefix
1648 .
) # We are building in place.
1650 ac_top_srcdir
=$ac_top_builddir_sub
1651 ac_abs_top_srcdir
=$ac_pwd ;;
1652 [\\/]* | ?
:[\\/]* ) # Absolute name.
1653 ac_srcdir
=$srcdir$ac_dir_suffix;
1654 ac_top_srcdir
=$srcdir
1655 ac_abs_top_srcdir
=$srcdir ;;
1657 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1659 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1661 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1663 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1664 # Check for guested configure.
1665 if test -f "$ac_srcdir/configure.gnu"; then
1667 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668 elif test -f "$ac_srcdir/configure"; then
1670 $SHELL "$ac_srcdir/configure" --help=recursive
1672 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1674 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1678 test -n "$ac_init_help" && exit $ac_status
1679 if $ac_init_version; then
1681 transmission configure
2.82
1682 generated by GNU Autoconf
2.69
1684 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1685 This configure
script is free software
; the Free Software Foundation
1686 gives unlimited permission to copy
, distribute and modify it.
1691 ## ------------------------ ##
1692 ## Autoconf initialization. ##
1693 ## ------------------------ ##
1695 # ac_fn_c_try_compile LINENO
1696 # --------------------------
1697 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1698 ac_fn_c_try_compile
()
1700 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1701 rm -f conftest.
$ac_objext
1702 if { { ac_try
="$ac_compile"
1704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_compile") 2>conftest.err
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest.$ac_objext; then :
1723 $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status $ac_retval
1731 } # ac_fn_c_try_compile
1733 # ac_fn_c_try_link LINENO
1734 # -----------------------
1735 # Try to link conftest.$ac_ext, and return whether this succeeded.
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 rm -f conftest.$ac_objext conftest$ac_exeext
1740 if { { ac_try="$ac_link"
1742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1743 *) ac_try_echo
=$ac_try;;
1745 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_link") 2>conftest.err
1749 if test -s conftest.err
; then
1750 grep -v '^ *+' conftest.err
>conftest.er1
1751 cat conftest.er1
>&5
1752 mv -f conftest.er1 conftest.err
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && {
1756 test -z "$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1758 } && test -s conftest
$ac_exeext && {
1759 test "$cross_compiling" = yes ||
1760 test -x conftest
$ac_exeext
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.
$ac_ext >&5
1769 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1770 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1771 # interfere with the next link command; also delete a directory that is
1772 # left behind by Apple's compiler. We do this before executing the actions.
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status
$ac_retval
1777 } # ac_fn_c_try_link
1779 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1780 # -------------------------------------------------------
1781 # Tests whether HEADER exists and can be compiled using the include files in
1782 # INCLUDES, setting the cache variable VAR accordingly.
1783 ac_fn_c_check_header_compile
()
1785 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if eval \
${$3+:} false
; then :
1789 $as_echo_n "(cached) " >&6
1791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1796 if ac_fn_c_try_compile
"$LINENO"; then :
1801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 } # ac_fn_c_check_header_compile
1810 # ac_fn_c_try_cpp LINENO
1811 # ----------------------
1812 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1815 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1816 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } > conftest.i && {
1832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1833 test ! -s conftest.err
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status $ac_retval
1847 # ac_fn_c_try_run LINENO
1848 # ----------------------
1849 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1850 # that executables *can* be run.
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if { { ac_try="$ac_link"
1856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1857 *) ac_try_echo
=$ac_try;;
1859 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>&5
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1865 { { case "(($ac_try" in
1866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_try") 2>&5
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; }; }; then :
1877 $as_echo "$as_me: program exited with status $ac_status" >&5
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1881 ac_retval=$ac_status
1883 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885 as_fn_set_status $ac_retval
1889 # ac_fn_c_check_func LINENO FUNC VAR
1890 # ----------------------------------
1891 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1892 ac_fn_c_check_func ()
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if eval \${$3+:} false; then :
1898 $as_echo_n "(cached) " >&6
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1902 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1904 #define $2 innocuous_$2
1906 /* System header to define __stub macros and hopefully few prototypes,
1907 which can conflict with char $2 (); below.
1908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1909 <limits.h> exists even on freestanding compilers. */
1912 # include <limits.h>
1914 # include <assert.h>
1919 /* Override any GCC internal prototype to avoid an error.
1920 Use char because int might match the return type of a GCC
1921 builtin and then its argument prototype would still apply. */
1926 /* The GNU C library defines this for functions which it implements
1927 to always fail with ENOSYS. Some functions are actually named
1928 something starting with __ and the normal name is an alias. */
1929 #if defined __stub_$2 || defined __stub___$2
1941 if ac_fn_c_try_link "$LINENO"; then :
1946 rm -f core conftest.err conftest.$ac_objext \
1947 conftest$ac_exeext conftest.$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 } # ac_fn_c_check_func
1956 # ac_fn_cxx_try_compile LINENO
1957 # ----------------------------
1958 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1959 ac_fn_cxx_try_compile ()
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 rm -f conftest.$ac_objext
1963 if { { ac_try="$ac_compile"
1965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1966 *) ac_try_echo
=$ac_try;;
1968 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969 $as_echo "$ac_try_echo"; } >&5
1970 (eval "$ac_compile") 2>conftest.err
1972 if test -s conftest.err
; then
1973 grep -v '^ *+' conftest.err
>conftest.er1
1974 cat conftest.er1
>&5
1975 mv -f conftest.er1 conftest.err
1977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 test $ac_status = 0; } && {
1979 test -z "$ac_cxx_werror_flag" ||
1980 test ! -s conftest.err
1981 } && test -s conftest.
$ac_objext; then :
1984 $as_echo "$as_me: failed program was:" >&5
1985 sed 's/^/| /' conftest.
$ac_ext >&5
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990 as_fn_set_status
$ac_retval
1992 } # ac_fn_cxx_try_compile
1994 # ac_fn_cxx_try_cpp LINENO
1995 # ------------------------
1996 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1997 ac_fn_cxx_try_cpp
()
1999 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2000 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2009 if test -s conftest.err; then
2010 grep -v '^ *+' conftest.err >conftest.er1
2011 cat conftest.er1 >&5
2012 mv -f conftest.er1 conftest.err
2014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015 test $ac_status = 0; } > conftest.i && {
2016 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2017 test ! -s conftest.err
2021 $as_echo "$as_me: failed program was:" >&5
2022 sed 's/^/| /' conftest.$ac_ext >&5
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 as_fn_set_status $ac_retval
2029 } # ac_fn_cxx_try_cpp
2031 # ac_fn_cxx_try_link LINENO
2032 # -------------------------
2033 # Try to link conftest.$ac_ext, and return whether this succeeded.
2034 ac_fn_cxx_try_link ()
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 rm -f conftest.$ac_objext conftest$ac_exeext
2038 if { { ac_try="$ac_link"
2040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2041 *) ac_try_echo
=$ac_try;;
2043 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2044 $as_echo "$ac_try_echo"; } >&5
2045 (eval "$ac_link") 2>conftest.err
2047 if test -s conftest.err
; then
2048 grep -v '^ *+' conftest.err
>conftest.er1
2049 cat conftest.er1
>&5
2050 mv -f conftest.er1 conftest.err
2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 test $ac_status = 0; } && {
2054 test -z "$ac_cxx_werror_flag" ||
2055 test ! -s conftest.err
2056 } && test -s conftest
$ac_exeext && {
2057 test "$cross_compiling" = yes ||
2058 test -x conftest
$ac_exeext
2062 $as_echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.
$ac_ext >&5
2067 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2068 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2069 # interfere with the next link command; also delete a directory that is
2070 # left behind by Apple's compiler. We do this before executing the actions.
2071 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073 as_fn_set_status
$ac_retval
2075 } # ac_fn_cxx_try_link
2077 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2078 # -------------------------------------------------------
2079 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2080 # the include files in INCLUDES and setting the cache variable VAR
2082 ac_fn_c_check_header_mongrel
()
2084 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2085 if eval \
${$3+:} false
; then :
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087 $as_echo_n "checking for $2... " >&6; }
2088 if eval \
${$3+:} false
; then :
2089 $as_echo_n "(cached) " >&6
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2093 $as_echo "$ac_res" >&6; }
2095 # Is the header compilable?
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2097 $as_echo_n "checking $2 usability... " >&6; }
2098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2103 if ac_fn_c_try_compile
"$LINENO"; then :
2104 ac_header_compiler
=yes
2106 ac_header_compiler
=no
2108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2110 $as_echo "$ac_header_compiler" >&6; }
2112 # Is the header present?
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2114 $as_echo_n "checking $2 presence... " >&6; }
2115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2119 if ac_fn_c_try_cpp
"$LINENO"; then :
2120 ac_header_preproc
=yes
2122 ac_header_preproc
=no
2124 rm -f conftest.err conftest.i conftest.
$ac_ext
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2126 $as_echo "$ac_header_preproc" >&6; }
2128 # So? What about this header?
2129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2132 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2134 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2138 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2140 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2142 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2144 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2146 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2147 ( $as_echo "## ------------------------------------------------------- ##
2148 ## Report this to http://trac.transmissionbt.com/newticket ##
2149 ## ------------------------------------------------------- ##"
2150 ) |
sed "s/^/$as_me: WARNING: /" >&2
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2154 $as_echo_n "checking for $2... " >&6; }
2155 if eval \
${$3+:} false
; then :
2156 $as_echo_n "(cached) " >&6
2158 eval "$3=\$ac_header_compiler"
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166 } # ac_fn_c_check_header_mongrel
2168 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2169 # ---------------------------------------------
2170 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2172 ac_fn_c_check_decl
()
2174 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2175 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2176 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2178 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2179 if eval \
${$3+:} false
; then :
2180 $as_echo_n "(cached) " >&6
2182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2188 #ifndef $as_decl_name
2190 (void) $as_decl_use;
2192 (void) $as_decl_name;
2200 if ac_fn_c_try_compile
"$LINENO"; then :
2205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2209 $as_echo "$ac_res" >&6; }
2210 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212 } # ac_fn_c_check_decl
2213 cat >config.log
<<_ACEOF
2214 This file contains any messages produced by compilers while
2215 running configure, to aid debugging if configure makes a mistake.
2217 It was created by transmission $as_me 2.82, which was
2218 generated by GNU Autoconf 2.69. Invocation command line was
2230 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2231 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2232 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2233 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2234 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2236 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2237 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2239 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2240 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2241 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2242 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2243 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2244 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2245 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2249 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2253 test -z "$as_dir" && as_dir
=.
2254 $as_echo "PATH: $as_dir"
2270 # Keep a trace of the command line.
2271 # Strip out --no-create and --no-recursion so they do not pile up.
2272 # Strip out --silent because we don't want to record it for future runs.
2273 # Also quote any args containing shell meta-characters.
2274 # Make two passes to allow for proper duplicate-argument suppression.
2278 ac_must_keep_next
=false
2284 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2285 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2286 |
-silent |
--silent |
--silen |
--sile |
--sil)
2289 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2292 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2294 as_fn_append ac_configure_args1
" '$ac_arg'"
2295 if test $ac_must_keep_next = true
; then
2296 ac_must_keep_next
=false
# Got value, back to normal.
2299 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2300 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2301 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2302 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2303 case "$ac_configure_args0 " in
2304 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2307 -* ) ac_must_keep_next
=true
;;
2310 as_fn_append ac_configure_args
" '$ac_arg'"
2315 { ac_configure_args0
=; unset ac_configure_args0
;}
2316 { ac_configure_args1
=; unset ac_configure_args1
;}
2318 # When interrupted or exit'd, cleanup temporary files, and complete
2319 # config.log. We remove comments because anyway the quotes in there
2320 # would cause problems or look ugly.
2321 # WARNING: Use '\'' to represent an apostrophe within the trap.
2322 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2323 trap 'exit_status=$?
2324 # Save into config.log some information that might help in debugging.
2328 $as_echo "## ---------------- ##
2329 ## Cache variables. ##
2330 ## ---------------- ##"
2332 # The following way of writing the cache mishandles newlines in values,
2334 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2335 eval ac_val=\$$ac_var
2339 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2340 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2343 _ | IFS | as_nl) ;; #(
2344 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2345 *) { eval $ac_var=; unset $ac_var;} ;;
2350 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2351 *${as_nl}ac_space=\ *)
2353 "s/'\''/'\''\\\\'\'''\''/g;
2354 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2357 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2364 $as_echo "## ----------------- ##
2365 ## Output variables. ##
2366 ## ----------------- ##"
2368 for ac_var in $ac_subst_vars
2370 eval ac_val=\$$ac_var
2372 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2374 $as_echo "$ac_var='\''$ac_val'\''"
2378 if test -n "$ac_subst_files"; then
2379 $as_echo "## ------------------- ##
2380 ## File substitutions. ##
2381 ## ------------------- ##"
2383 for ac_var
in $ac_subst_files
2385 eval ac_val
=\$
$ac_var
2387 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2389 $as_echo "$ac_var='\''$ac_val'\''"
2394 if test -s confdefs.h; then
2395 $as_echo "## ----------- ##
2402 test "$ac_signal" != 0 &&
2403 $as_echo "$as_me: caught signal $ac_signal"
2404 $as_echo "$as_me: exit $exit_status"
2406 rm -f core *.core core.conftest.* &&
2407 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2410 for ac_signal
in 1 2 13 15; do
2411 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2415 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2416 rm -f -r conftest
* confdefs.h
2418 $as_echo "/* confdefs.h */" > confdefs.h
2420 # Predefined preprocessor variables.
2422 cat >>confdefs.h
<<_ACEOF
2423 #define PACKAGE_NAME "$PACKAGE_NAME"
2426 cat >>confdefs.h
<<_ACEOF
2427 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2430 cat >>confdefs.h
<<_ACEOF
2431 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2434 cat >>confdefs.h
<<_ACEOF
2435 #define PACKAGE_STRING "$PACKAGE_STRING"
2438 cat >>confdefs.h
<<_ACEOF
2439 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2442 cat >>confdefs.h
<<_ACEOF
2443 #define PACKAGE_URL "$PACKAGE_URL"
2447 # Let the site file select an alternate cache file if it wants to.
2448 # Prefer an explicitly selected file to automatically selected ones.
2451 if test -n "$CONFIG_SITE"; then
2452 # We do not want a PATH search for config.site.
2453 case $CONFIG_SITE in #((
2454 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2455 */*) ac_site_file1
=$CONFIG_SITE;;
2456 *) ac_site_file1
=.
/$CONFIG_SITE;;
2458 elif test "x$prefix" != xNONE
; then
2459 ac_site_file1
=$prefix/share
/config.site
2460 ac_site_file2
=$prefix/etc
/config.site
2462 ac_site_file1
=$ac_default_prefix/share
/config.site
2463 ac_site_file2
=$ac_default_prefix/etc
/config.site
2465 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2467 test "x$ac_site_file" = xNONE
&& continue
2468 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2470 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2471 sed 's/^/| /' "$ac_site_file" >&5
2473 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2475 as_fn_error $?
"failed to load site script $ac_site_file
2476 See \`config.log' for more details" "$LINENO" 5; }
2480 if test -r "$cache_file"; then
2481 # Some versions of bash will fail to source /dev/null (special files
2482 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2483 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2485 $as_echo "$as_me: loading cache $cache_file" >&6;}
2487 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2488 *) .
"./$cache_file";;
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2493 $as_echo "$as_me: creating cache $cache_file" >&6;}
2497 # Check that the precious variables saved in the cache have kept the same
2499 ac_cache_corrupted
=false
2500 for ac_var
in $ac_precious_vars; do
2501 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2502 eval ac_new_set
=\
$ac_env_${ac_var}_set
2503 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2504 eval ac_new_val
=\
$ac_env_${ac_var}_value
2505 case $ac_old_set,$ac_new_set in
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2508 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2509 ac_cache_corrupted
=: ;;
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2512 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2513 ac_cache_corrupted
=: ;;
2516 if test "x$ac_old_val" != "x$ac_new_val"; then
2517 # differences in whitespace do not lead to failure.
2518 ac_old_val_w
=`echo x $ac_old_val`
2519 ac_new_val_w
=`echo x $ac_new_val`
2520 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2522 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2523 ac_cache_corrupted
=:
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2526 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2527 eval $ac_var=\
$ac_old_val
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2530 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2532 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2535 # Pass precious variables to config.status.
2536 if test "$ac_new_set" = set; then
2538 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2539 *) ac_arg
=$ac_var=$ac_new_val ;;
2541 case " $ac_configure_args " in
2542 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2543 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2547 if $ac_cache_corrupted; then
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2551 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2552 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2554 ## -------------------- ##
2555 ## Main body of script. ##
2556 ## -------------------- ##
2559 ac_cpp
='$CPP $CPPFLAGS'
2560 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2561 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2562 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2565 USERAGENT_PREFIX
=2.82
2567 PEERID_PREFIX
=-TR2820-
2570 # Check whether --enable-silent-rules was given.
2571 if test "${enable_silent_rules+set}" = set; then :
2572 enableval
=$enable_silent_rules;
2575 case $enable_silent_rules in # (((
2576 yes) AM_DEFAULT_VERBOSITY
=0;;
2577 no
) AM_DEFAULT_VERBOSITY
=1;;
2578 *) AM_DEFAULT_VERBOSITY
=0;;
2580 am_make
=${MAKE-make}
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2582 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2583 if ${am_cv_make_support_nested_variables+:} false
; then :
2584 $as_echo_n "(cached) " >&6
2586 if $as_echo 'TRUE=$(BAR$(V))
2592 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
2593 am_cv_make_support_nested_variables
=yes
2595 am_cv_make_support_nested_variables
=no
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2599 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2600 if test $am_cv_make_support_nested_variables = yes; then
2602 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
2604 AM_V
=$AM_DEFAULT_VERBOSITY
2605 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
2613 am__api_version='1.13'
2616 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2617 if test -f "$ac_dir/install-sh"; then
2619 ac_install_sh="$ac_aux_dir/install-sh -c"
2621 elif test -f "$ac_dir/install.sh"; then
2623 ac_install_sh="$ac_aux_dir/install.sh -c"
2625 elif test -f "$ac_dir/shtool"; then
2627 ac_install_sh="$ac_aux_dir/shtool install -c"
2631 if test -z "$ac_aux_dir"; then
2632 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2635 # These three variables are undocumented and unsupported,
2636 # and are intended to be withdrawn in a future Autoconf release.
2637 # They can cause serious problems if a builder's
source tree is
in a directory
2638 # whose full name contains unusual characters.
2639 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2640 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2641 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2644 # Find a good install program. We prefer a C program (faster),
2645 # so one script is as good as another. But avoid the broken or
2646 # incompatible versions:
2647 # SysV /etc/install, /usr/sbin/install
2648 # SunOS /usr/etc/install
2649 # IRIX /sbin/install
2651 # AmigaOS /C/install, which installs bootblocks on floppy discs
2652 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2655 # OS/2's system install, which has a completely different semantic
2656 # ./install, which can be erroneously created by make from ./install.sh.
2657 # Reject install programs that cannot install multiple files.
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2659 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2660 if test -z "$INSTALL"; then
2661 if ${ac_cv_path_install+:} false
; then :
2662 $as_echo_n "(cached) " >&6
2664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2668 test -z "$as_dir" && as_dir
=.
2669 # Account for people who put trailing slashes in PATH elements.
2670 case $as_dir/ in #((
2671 .
/ | .
// |
/[cC
]/* | \
2672 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2673 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2676 # OSF1 and SCO ODT 3.0 have their own names for install.
2677 # Don't use installbsd from OSF since it installs stuff as root
2679 for ac_prog
in ginstall scoinst
install; do
2680 for ac_exec_ext
in '' $ac_executable_extensions; do
2681 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2682 if test $ac_prog = install &&
2683 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2684 # AIX install. It has an incompatible calling convention.
2686 elif test $ac_prog = install &&
2687 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2688 # program-specific install script used by HP pwplus--don't use.
2691 rm -rf conftest.one conftest.two conftest.dir
2692 echo one
> conftest.one
2693 echo two
> conftest.two
2695 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2696 test -s conftest.one
&& test -s conftest.two
&&
2697 test -s conftest.dir
/conftest.one
&&
2698 test -s conftest.dir
/conftest.two
2700 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2713 rm -rf conftest.one conftest.two conftest.dir
2716 if test "${ac_cv_path_install+set}" = set; then
2717 INSTALL
=$ac_cv_path_install
2719 # As a last resort, use the slow shell script. Don't cache a
2720 # value for INSTALL within a source directory, because that will
2721 # break other packages using the cache if that directory is
2722 # removed, or if the value is a relative name.
2723 INSTALL
=$ac_install_sh
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2727 $as_echo "$INSTALL" >&6; }
2729 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2730 # It thinks the first close brace ends the variable substitution.
2731 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2733 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2735 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2738 $as_echo_n "checking whether build environment is sane... " >&6; }
2739 # Reject unsafe characters in $srcdir or the absolute working directory
2740 # name. Accept space and tab only in the latter.
2744 *[\\\"\
#\$\&\'\`$am_lf]*)
2745 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2748 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2749 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2752 # Do 'set' in a subshell so we don't clobber the current shell's
2753 # arguments. Must try -L first in case configure is actually a
2754 # symlink; some systems play weird games with the mod time of symlinks
2755 # (eg FreeBSD returns the mod time of the symlink's containing
2759 for am_try
in 1 2; do
2760 echo "timestamp, slept: $am_has_slept" > conftest.
file
2761 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2762 if test "$*" = "X"; then
2764 set X
`ls -t "$srcdir/configure" conftest.file`
2766 if test "$*" != "X $srcdir/configure conftest.file" \
2767 && test "$*" != "X conftest.file $srcdir/configure"; then
2769 # If neither matched, then we have a broken ls. This can happen
2770 # if, for instance, CONFIG_SHELL is bash and it inherits a
2771 # broken ls alias from the environment. This has actually
2772 # happened. Such a system could not be considered "sane".
2773 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2774 alias in your environment" "$LINENO" 5
2776 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2783 test "$2" = conftest.
file
2789 as_fn_error $?
"newly created file is older than distributed files!
2790 Check your system clock" "$LINENO" 5
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2793 $as_echo "yes" >&6; }
2794 # If we didn't sleep, we still need to ensure time stamps of config.status and
2795 # generated files are strictly newer.
2797 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2804 test "$program_prefix" != NONE
&&
2805 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2806 # Use a double $ so make ignores it.
2807 test "$program_suffix" != NONE
&&
2808 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2809 # Double any \ or $.
2810 # By default was `s,x,x', remove it if useless.
2811 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2812 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2814 # expand $ac_aux_dir to an absolute path
2815 am_aux_dir
=`cd $ac_aux_dir && pwd`
2817 if test x
"${MISSING+set}" != xset
; then
2820 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2822 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2825 # Use eval to expand $SHELL
2826 if eval "$MISSING --is-lightweight"; then
2827 am_missing_run
="$MISSING "
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2831 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2834 if test x
"${install_sh}" != xset
; then
2837 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2839 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2843 # Installed binaries are usually stripped using 'strip' when the user
2844 # run "make install-strip". However 'strip' might not be the right
2845 # tool to use in cross-compilation environments, therefore Automake
2846 # will honor the 'STRIP' environment variable to overrule this program.
2847 if test "$cross_compiling" != no
; then
2848 if test -n "$ac_tool_prefix"; then
2849 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2850 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if ${ac_cv_prog_STRIP+:} false
; then :
2854 $as_echo_n "(cached) " >&6
2856 if test -n "$STRIP"; then
2857 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir
=.
2864 for ac_exec_ext
in '' $ac_executable_extensions; do
2865 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 STRIP
=$ac_cv_prog_STRIP
2877 if test -n "$STRIP"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2879 $as_echo "$STRIP" >&6; }
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2887 if test -z "$ac_cv_prog_STRIP"; then
2889 # Extract the first word of "strip", so it can be a program name with args.
2890 set dummy strip
; ac_word
=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2894 $as_echo_n "(cached) " >&6
2896 if test -n "$ac_ct_STRIP"; then
2897 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2903 test -z "$as_dir" && as_dir
=.
2904 for ac_exec_ext
in '' $ac_executable_extensions; do
2905 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_ac_ct_STRIP
="strip"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2917 if test -n "$ac_ct_STRIP"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2919 $as_echo "$ac_ct_STRIP" >&6; }
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2925 if test "x$ac_ct_STRIP" = x
; then
2928 case $cross_compiling:$ac_tool_warned in
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932 ac_tool_warned
=yes ;;
2937 STRIP
="$ac_cv_prog_STRIP"
2941 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2944 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2945 if test -z "$MKDIR_P"; then
2946 if ${ac_cv_path_mkdir+:} false
; then :
2947 $as_echo_n "(cached) " >&6
2949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2950 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2953 test -z "$as_dir" && as_dir
=.
2954 for ac_prog
in mkdir gmkdir
; do
2955 for ac_exec_ext
in '' $ac_executable_extensions; do
2956 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
2957 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2958 'mkdir (GNU coreutils) '* | \
2959 'mkdir (coreutils) '* | \
2960 'mkdir (fileutils) '4.1*)
2961 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2971 test -d .
/--version && rmdir .
/--version
2972 if test "${ac_cv_path_mkdir+set}" = set; then
2973 MKDIR_P
="$ac_cv_path_mkdir -p"
2975 # As a last resort, use the slow shell script. Don't cache a
2976 # value for MKDIR_P within a source directory, because that will
2977 # break other packages using the cache if that directory is
2978 # removed, or if the value is a relative name.
2979 MKDIR_P
="$ac_install_sh -d"
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2983 $as_echo "$MKDIR_P" >&6; }
2985 for ac_prog
in gawk mawk nawk
awk
2987 # Extract the first word of "$ac_prog", so it can be a program name with args.
2988 set dummy
$ac_prog; ac_word
=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_AWK+:} false
; then :
2992 $as_echo_n "(cached) " >&6
2994 if test -n "$AWK"; then
2995 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3001 test -z "$as_dir" && as_dir
=.
3002 for ac_exec_ext
in '' $ac_executable_extensions; do
3003 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_AWK
="$ac_prog"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 if test -n "$AWK"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3017 $as_echo "$AWK" >&6; }
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3024 test -n "$AWK" && break
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3028 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3030 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3031 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3032 $as_echo_n "(cached) " >&6
3034 cat >conftest.
make <<\_ACEOF
3037 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3039 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3040 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3042 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3044 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3048 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3050 $as_echo "yes" >&6; }
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3055 SET_MAKE
="MAKE=${MAKE-make}"
3058 rm -rf .tst
2>/dev
/null
3059 mkdir .tst
2>/dev
/null
3060 if test -d .tst
; then
3065 rmdir .tst
2>/dev
/null
3067 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3068 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3069 # is not polluted with repeated "-I."
3070 am__isrc
=' -I$(srcdir)'
3071 # test to see if srcdir already configured
3072 if test -f $srcdir/config.status
; then
3073 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3077 # test whether we have cygpath
3078 if test -z "$CYGPATH_W"; then
3079 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3080 CYGPATH_W
='cygpath -w'
3087 # Define the identity of the package.
3088 PACKAGE
='transmission'
3092 cat >>confdefs.h
<<_ACEOF
3093 #define PACKAGE "$PACKAGE"
3097 cat >>confdefs.h
<<_ACEOF
3098 #define VERSION "$VERSION"
3101 # Some tools Automake needs.
3103 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3106 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3109 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3112 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3115 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3117 # For better backward compatibility. To be removed once Automake 1.9.x
3118 # dies out for good. For more background, see:
3119 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3120 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3121 mkdir_p
='$(MKDIR_P)'
3123 # We need awk for the "check" target. The system "awk" is bad on
3125 # Always define AMTAR for backward compatibility. Yes, it's still used
3126 # in the wild :-( We should find a proper way to deprecate it ...
3130 # We'll loop over all known methods to create a tar archive until one works.
3131 _am_tools
='gnutar pax cpio none'
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3136 $as_echo_n "checking how to create a pax tar archive... " >&6; }
3138 # Go ahead even if we have the value already cached. We do so because we
3139 # need to set the values for the 'am__tar' and 'am__untar' variables.
3140 _am_tools
=${am_cv_prog_tar_pax-$_am_tools}
3142 for _am_tool
in $_am_tools; do
3145 for _am_tar
in tar gnutar gtar
; do
3146 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3147 ($_am_tar --version) >&5 2>&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); } && break
3152 am__tar
="$_am_tar --format=posix -chf - "'"$$tardir"'
3153 am__tar_
="$_am_tar --format=posix -chf - "'"$tardir"'
3154 am__untar
="$_am_tar -xf -"
3157 # Must skip GNU tar: if it does not support --format= it doesn't create
3158 # ustar tarball either.
3159 (tar --version) >/dev
/null
2>&1 && continue
3160 am__tar
='tar chf - "$$tardir"'
3161 am__tar_
='tar chf - "$tardir"'
3162 am__untar
='tar xf -'
3165 am__tar
='pax -L -x pax -w "$$tardir"'
3166 am__tar_
='pax -L -x pax -w "$tardir"'
3170 am__tar
='find "$$tardir" -print | cpio -o -H pax -L'
3171 am__tar_
='find "$tardir" -print | cpio -o -H pax -L'
3172 am__untar
='cpio -i -H pax -d'
3181 # If the value was cached, stop now. We just wanted to have am__tar
3182 # and am__untar set.
3183 test -n "${am_cv_prog_tar_pax}" && break
3185 # tar/untar a dummy directory, and stop if the command works.
3188 echo GrepMe
> conftest.dir
/file
3189 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3190 (tardir
=conftest.dir
&& eval $am__tar_ >conftest.
tar) >&5 2>&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }
3195 if test -s conftest.
tar; then
3196 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3197 ($am__untar <conftest.
tar) >&5 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }
3201 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3202 (cat conftest.dir
/file) >&5 2>&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }
3206 grep GrepMe conftest.dir
/file >/dev
/null
2>&1 && break
3211 if ${am_cv_prog_tar_pax+:} false
; then :
3212 $as_echo_n "(cached) " >&6
3214 am_cv_prog_tar_pax
=$_am_tool
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3218 $as_echo "$am_cv_prog_tar_pax" >&6; }
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3228 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3233 macro_version
='2.4.2'
3234 macro_revision
='1.3337'
3248 ltmain
="$ac_aux_dir/ltmain.sh"
3250 # Make sure we can run config.sub.
3251 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3252 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3255 $as_echo_n "checking build system type... " >&6; }
3256 if ${ac_cv_build+:} false
; then :
3257 $as_echo_n "(cached) " >&6
3259 ac_build_alias
=$build_alias
3260 test "x$ac_build_alias" = x
&&
3261 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3262 test "x$ac_build_alias" = x
&&
3263 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3264 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3265 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3269 $as_echo "$ac_cv_build" >&6; }
3270 case $ac_cv_build in
3272 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3275 ac_save_IFS
=$IFS; IFS
='-'
3281 # Remember, the first character of IFS is used to create $*,
3282 # except with old shells:
3285 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3289 $as_echo_n "checking host system type... " >&6; }
3290 if ${ac_cv_host+:} false
; then :
3291 $as_echo_n "(cached) " >&6
3293 if test "x$host_alias" = x
; then
3294 ac_cv_host
=$ac_cv_build
3296 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3297 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3302 $as_echo "$ac_cv_host" >&6; }
3305 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3308 ac_save_IFS
=$IFS; IFS
='-'
3314 # Remember, the first character of IFS is used to create $*,
3315 # except with old shells:
3318 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3321 # Backslashify metacharacters that are still active within
3322 # double-quoted strings.
3323 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
3325 # Same as above, but do not quote variable references.
3326 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
3328 # Sed substitution to delay expansion of an escaped shell variable in a
3329 # double_quote_subst'ed string.
3330 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
3332 # Sed substitution to delay expansion of an escaped single quote.
3333 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
3335 # Sed substitution to avoid accidental globbing in evaled expressions
3336 no_glob_subst
='s/\*/\\\*/g'
3338 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3339 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3340 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3343 $as_echo_n "checking how to print strings... " >&6; }
3344 # Test print first, because it will be a builtin if present.
3345 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3346 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3348 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3351 # Use this function as a fallback that always works.
3352 func_fallback_echo ()
3354 eval 'cat <<_LTECHO_EOF
3358 ECHO='func_fallback_echo
'
3361 # func_echo_all arg...
3362 # Invoke $ECHO with all args, space-separated.
3369 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3370 $as_echo "printf" >&6; } ;;
3371 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3372 $as_echo "print -r" >&6; } ;;
3373 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3374 $as_echo "cat" >&6; } ;;
3390 DEPDIR="${am__leading_dot}deps"
3392 ac_config_commands="$ac_config_commands depfiles"
3395 am_make=${MAKE-make}
3396 cat > confinc << 'END
'
3398 @echo this is the am__doit target
3401 # If we don't
find an include directive
, just comment out the code.
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3403 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3407 # First try GNU make style include.
3408 echo "include confinc" > confmf
3409 # Ignore all kinds of additional output from 'make'.
3410 case `$am_make -s -f confmf 2> /dev/null` in #(
3411 *the\ am__doit\ target
*)
3417 # Now try BSD make style include.
3418 if test "$am__include" = "#"; then
3419 echo '.include "confinc"' > confmf
3420 case `$am_make -s -f confmf 2> /dev/null` in #(
3421 *the\ am__doit\ target
*)
3422 am__include
=.include
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3431 $as_echo "$_am_result" >&6; }
3432 rm -f confinc confmf
3434 # Check whether --enable-dependency-tracking was given.
3435 if test "${enable_dependency_tracking+set}" = set; then :
3436 enableval
=$enable_dependency_tracking;
3439 if test "x$enable_dependency_tracking" != xno
; then
3440 am_depcomp
="$ac_aux_dir/depcomp"
3444 if test "x$enable_dependency_tracking" != xno; then
3454 ac_cpp
='$CPP $CPPFLAGS'
3455 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3458 if test -n "$ac_tool_prefix"; then
3459 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3460 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if ${ac_cv_prog_CC+:} false
; then :
3464 $as_echo_n "(cached) " >&6
3466 if test -n "$CC"; then
3467 ac_cv_prog_CC
="$CC" # Let the user override the test.
3469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3473 test -z "$as_dir" && as_dir
=.
3474 for ac_exec_ext
in '' $ac_executable_extensions; do
3475 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3476 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 if test -n "$CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3489 $as_echo "$CC" >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3497 if test -z "$ac_cv_prog_CC"; then
3499 # Extract the first word of "gcc", so it can be a program name with args.
3500 set dummy gcc
; ac_word
=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3504 $as_echo_n "(cached) " >&6
3506 if test -n "$ac_ct_CC"; then
3507 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3513 test -z "$as_dir" && as_dir
=.
3514 for ac_exec_ext
in '' $ac_executable_extensions; do
3515 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3516 ac_cv_prog_ac_ct_CC
="gcc"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3527 if test -n "$ac_ct_CC"; then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3529 $as_echo "$ac_ct_CC" >&6; }
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3535 if test "x$ac_ct_CC" = x
; then
3538 case $cross_compiling:$ac_tool_warned in
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3542 ac_tool_warned
=yes ;;
3550 if test -z "$CC"; then
3551 if test -n "$ac_tool_prefix"; then
3552 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3553 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if ${ac_cv_prog_CC+:} false
; then :
3557 $as_echo_n "(cached) " >&6
3559 if test -n "$CC"; then
3560 ac_cv_prog_CC
="$CC" # Let the user override the test.
3562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3566 test -z "$as_dir" && as_dir
=.
3567 for ac_exec_ext
in '' $ac_executable_extensions; do
3568 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3569 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 if test -n "$CC"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3582 $as_echo "$CC" >&6; }
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3591 if test -z "$CC"; then
3592 # Extract the first word of "cc", so it can be a program name with args.
3593 set dummy cc
; ac_word
=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if ${ac_cv_prog_CC+:} false
; then :
3597 $as_echo_n "(cached) " >&6
3599 if test -n "$CC"; then
3600 ac_cv_prog_CC
="$CC" # Let the user override the test.
3603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3607 test -z "$as_dir" && as_dir
=.
3608 for ac_exec_ext
in '' $ac_executable_extensions; do
3609 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3611 ac_prog_rejected
=yes
3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3622 if test $ac_prog_rejected = yes; then
3623 # We found a bogon in the path, so make sure we never use it.
3624 set dummy
$ac_cv_prog_CC
3626 if test $# != 0; then
3627 # We chose a different compiler from the bogus one.
3628 # However, it has the same basename, so the bogon will be chosen
3629 # first if we set CC to just the basename; use the full file name.
3631 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3637 if test -n "$CC"; then
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3639 $as_echo "$CC" >&6; }
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642 $as_echo "no" >&6; }
3647 if test -z "$CC"; then
3648 if test -n "$ac_tool_prefix"; then
3649 for ac_prog
in cl.exe
3651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3652 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if ${ac_cv_prog_CC+:} false
; then :
3656 $as_echo_n "(cached) " >&6
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC
="$CC" # Let the user override the test.
3661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3665 test -z "$as_dir" && as_dir
=.
3666 for ac_exec_ext
in '' $ac_executable_extensions; do
3667 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 if test -n "$CC"; then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 $as_echo "$CC" >&6; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3688 test -n "$CC" && break
3691 if test -z "$CC"; then
3693 for ac_prog
in cl.exe
3695 # Extract the first word of "$ac_prog", so it can be a program name with args.
3696 set dummy
$ac_prog; ac_word
=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3700 $as_echo_n "(cached) " >&6
3702 if test -n "$ac_ct_CC"; then
3703 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3709 test -z "$as_dir" && as_dir
=.
3710 for ac_exec_ext
in '' $ac_executable_extensions; do
3711 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3712 ac_cv_prog_ac_ct_CC
="$ac_prog"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3723 if test -n "$ac_ct_CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3725 $as_echo "$ac_ct_CC" >&6; }
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3732 test -n "$ac_ct_CC" && break
3735 if test "x$ac_ct_CC" = x
; then
3738 case $cross_compiling:$ac_tool_warned in
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3742 ac_tool_warned
=yes ;;
3751 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753 as_fn_error $?
"no acceptable C compiler found in \$PATH
3754 See \`config.log' for more details" "$LINENO" 5; }
3756 # Provide some information about the compiler.
3757 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3760 for ac_option
in --version -v -V -qversion; do
3761 { { ac_try
="$ac_compiler $ac_option >&5"
3763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3770 if test -s conftest.err; then
3772 ... rest of stderr output deleted ...
3773 10q' conftest.err >conftest.er1
3774 cat conftest.er1 >&5
3776 rm -f conftest.er1 conftest.err
3777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778 test $ac_status = 0; }
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3792 ac_clean_files_save=$ac_clean_files
3793 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3794 # Try to create an executable without -o first, disregard a.out.
3795 # It will help us diagnose broken compilers, and finding out an intuition
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3798 $as_echo_n "checking whether the C compiler works... " >&6; }
3799 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3801 # The possible output files:
3802 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3805 for ac_file in $ac_files
3808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3809 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3814 if { { ac_try="$ac_link_default"
3816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3817 *) ac_try_echo
=$ac_try;;
3819 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820 $as_echo "$ac_try_echo"; } >&5
3821 (eval "$ac_link_default") 2>&5
3823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824 test $ac_status = 0; }; then :
3825 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3826 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3827 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3828 # so that the user can short-circuit this test for compilers unknown to
3830 for ac_file
in $ac_files ''
3832 test -f "$ac_file" ||
continue
3834 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3837 # We found the default executable, but exeext='' is most
3841 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3843 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3845 # We set ac_cv_exeext here because the later test for it is not
3846 # safe: cross compilers may not add the suffix if given an `-o'
3847 # argument, so we may need to know it at that point already.
3848 # Even if this section looks crufty: it has the advantage of
3855 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3860 if test -z "$ac_file"; then :
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3863 $as_echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.
$ac_ext >&5
3866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error
77 "C compiler cannot create executables
3869 See \`config.log' for more details" "$LINENO" 5; }
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3872 $as_echo "yes" >&6; }
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3875 $as_echo_n "checking for C compiler default output file name... " >&6; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3877 $as_echo "$ac_file" >&6; }
3878 ac_exeext
=$ac_cv_exeext
3880 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3881 ac_clean_files
=$ac_clean_files_save
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3883 $as_echo_n "checking for suffix of executables... " >&6; }
3884 if { { ac_try
="$ac_link"
3886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_link") 2>&5
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }; then :
3895 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3896 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3897 # work properly (i.e., refer to `conftest.exe'), while it won't with
3899 for ac_file
in conftest.exe conftest conftest.
*; do
3900 test -f "$ac_file" ||
continue
3902 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3903 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3912 See \`config.log' for more details" "$LINENO" 5; }
3914 rm -f conftest conftest
$ac_cv_exeext
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3916 $as_echo "$ac_cv_exeext" >&6; }
3918 rm -f conftest.
$ac_ext
3919 EXEEXT
=$ac_cv_exeext
3921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3927 FILE *f = fopen ("conftest.out", "w");
3928 return ferror (f) || fclose (f) != 0;
3934 ac_clean_files
="$ac_clean_files conftest.out"
3935 # Check that the compiler produces executables we can run. If not, either
3936 # the compiler is broken, or we cross compile.
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3938 $as_echo_n "checking whether we are cross compiling... " >&6; }
3939 if test "$cross_compiling" != yes; then
3940 { { ac_try
="$ac_link"
3942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 $as_echo "$ac_try_echo"; } >&5
3947 (eval "$ac_link") 2>&5
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }
3951 if { ac_try='./conftest$ac_cv_exeext'
3952 { { case "(($ac_try" in
3953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3954 *) ac_try_echo
=$ac_try;;
3956 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_try") 2>&5
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }; }; then
3964 if test "$cross_compiling" = maybe
; then
3967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3969 as_fn_error $?
"cannot run C compiled programs.
3970 If you meant to cross compile, use \`--host'.
3971 See \`config.log' for more details" "$LINENO" 5; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3976 $as_echo "$cross_compiling" >&6; }
3978 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3979 ac_clean_files
=$ac_clean_files_save
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3981 $as_echo_n "checking for suffix of object files... " >&6; }
3982 if ${ac_cv_objext+:} false
; then :
3983 $as_echo_n "(cached) " >&6
3985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3996 rm -f conftest.o conftest.obj
3997 if { { ac_try
="$ac_compile"
3999 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 $as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_compile") 2>&5
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }; then :
4008 for ac_file in conftest.o conftest.obj conftest.*; do
4009 test -f "$ac_file" || continue;
4011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4012 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4017 $as_echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4023 See \
`config.log' for more details" "$LINENO" 5; }
4025 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4028 $as_echo "$ac_cv_objext" >&6; }
4029 OBJEXT=$ac_cv_objext
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4032 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4033 if ${ac_cv_c_compiler_gnu+:} false; then :
4034 $as_echo_n "(cached) " >&6
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4050 if ac_fn_c_try_compile "$LINENO"; then :
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4060 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4061 if test $ac_compiler_gnu = yes; then
4066 ac_test_CFLAGS=${CFLAGS+set}
4067 ac_save_CFLAGS=$CFLAGS
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4069 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4070 if ${ac_cv_prog_cc_g+:} false; then :
4071 $as_echo_n "(cached) " >&6
4073 ac_save_c_werror_flag=$ac_c_werror_flag
4074 ac_c_werror_flag=yes
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4088 if ac_fn_c_try_compile "$LINENO"; then :
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4103 if ac_fn_c_try_compile "$LINENO"; then :
4106 ac_c_werror_flag=$ac_save_c_werror_flag
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4119 if ac_fn_c_try_compile "$LINENO"; then :
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 ac_c_werror_flag=$ac_save_c_werror_flag
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4130 $as_echo "$ac_cv_prog_cc_g" >&6; }
4131 if test "$ac_test_CFLAGS" = set; then
4132 CFLAGS=$ac_save_CFLAGS
4133 elif test $ac_cv_prog_cc_g = yes; then
4134 if test "$GCC" = yes; then
4140 if test "$GCC" = yes; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4147 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4148 if ${ac_cv_prog_cc_c89+:} false; then :
4149 $as_echo_n "(cached) " >&6
4151 ac_cv_prog_cc_c89=no
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4158 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4159 struct buf { int x; };
4160 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4161 static char *e (p, i)
4167 static char *f (char * (*g) (char **, int), char **p, ...)
4172 s = g (p, va_arg (v,int));
4177 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4178 function prototypes and stuff, but not '\xHH' hex character constants.
4179 These don't provoke an error unfortunately, instead are silently treated
4180 as 'x'. The following induces an error, until -std is added to get
4181 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4182 array size at least. It's necessary to write '\x00'==0 to get something
4183 that's true only with -std. */
4184 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4186 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4187 inside strings and character constants. */
4189 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4191 int test (int i, double x);
4192 struct s1 {int (*f) (int a);};
4193 struct s2 {int (*f) (double a);};
4194 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4200 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4205 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4206 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4208 CC="$ac_save_CC $ac_arg"
4209 if ac_fn_c_try_compile "$LINENO"; then :
4210 ac_cv_prog_cc_c89=$ac_arg
4212 rm -f core conftest.err conftest.$ac_objext
4213 test "x$ac_cv_prog_cc_c89" != "xno" && break
4215 rm -f conftest.$ac_ext
4220 case "x$ac_cv_prog_cc_c89" in
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4223 $as_echo "none needed" >&6; } ;;
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4226 $as_echo "unsupported" >&6; } ;;
4228 CC="$CC $ac_cv_prog_cc_c89"
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4230 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4232 if test "x$ac_cv_prog_cc_c89" != xno; then :
4237 ac_cpp='$CPP $CPPFLAGS'
4238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242 depcc="$CC" am_compiler_list=
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4245 $as_echo_n "checking dependency style of $depcc... " >&6; }
4246 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4247 $as_echo_n "(cached) " >&6
4249 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4250 # We make a subdir and do the tests there. Otherwise we can end up
4251 # making bogus files that we don't know about and never remove. For
4252 # instance it was reported that on HP-UX the gcc test will end up
4253 # making a dummy file named 'D' -- because '-MD' means "put the output
4257 # Copy depcomp to subdir because otherwise we won't find it if we're
4258 # using a relative directory.
4259 cp "$am_depcomp" conftest.dir
4261 # We will build objects and dependencies in a subdirectory because
4262 # it helps to detect inapplicable dependency modes. For instance
4263 # both Tru64's cc and ICC support -MD to output dependencies as a
4264 # side effect of compilation, but ICC will put the dependencies in
4265 # the current directory while Tru64 will put them in the object
4269 am_cv_CC_dependencies_compiler_type=none
4270 if test "$am_compiler_list" = ""; then
4271 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4274 case " $depcc " in #(
4275 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4278 for depmode in $am_compiler_list; do
4279 # Setup a source with many dependencies, because some compilers
4280 # like to wrap large dependency lists on column 80 (with \), and
4281 # we should not choose a depcomp mode which is confused by this.
4283 # We need to recreate these files for each test, as the compiler may
4284 # overwrite some of them when testing with obscure command lines.
4285 # This happens at least with the AIX C compiler.
4287 for i in 1 2 3 4 5 6; do
4288 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4289 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4290 # Solaris 10 /bin/sh.
4291 echo '/* dummy */' > sub/conftst$i.h
4293 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4295 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4296 # mode. It turns out that the SunPro C++ compiler does not properly
4297 # handle '-M -o', and we need to detect this. Also, some Intel
4298 # versions had trouble with output in subdirs.
4299 am__obj=sub/conftest.${OBJEXT-o}
4300 am__minus_obj="-o $am__obj"
4303 # This depmode causes a compiler race in universal mode.
4304 test "$am__universal" = false || continue
4307 # After this tag, mechanisms are not by side-effect, so they'll
4308 # only be used when explicitly requested.
4309 if test "x$enable_dependency_tracking" = xyes; then
4315 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4316 # This compiler won't grok '-c -o', but also, the minuso test has
4317 # not run yet. These depmodes are late enough in the game, and
4318 # so weak that their functioning should not be impacted.
4319 am__obj=conftest.${OBJEXT-o}
4324 if depmode=$depmode \
4325 source=sub/conftest.c object=$am__obj \
4326 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4327 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4328 >/dev/null 2>conftest.err &&
4329 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4330 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4331 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4332 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4333 # icc doesn't choke on unknown options, it will just issue warnings
4334 # or remarks (even with -Werror). So we grep stderr for any message
4335 # that says an option was ignored or not supported.
4336 # When given -MP, icc 7.0 and 7.1 complain thusly:
4337 # icc: Command line warning: ignoring option '-M'; no argument required
4338 # The diagnosis changed in icc 8.0:
4339 # icc: Command line remark: option '-MP' not supported
4340 if (grep 'ignoring option' conftest.err ||
4341 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4342 am_cv_CC_dependencies_compiler_type=$depmode
4351 am_cv_CC_dependencies_compiler_type=none
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4356 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4357 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4360 test "x$enable_dependency_tracking" != xno \
4361 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4363 am__fastdepCC_FALSE='#'
4365 am__fastdepCC_TRUE='#'
4366 am__fastdepCC_FALSE=
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4371 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4372 if ${ac_cv_path_SED+:} false; then :
4373 $as_echo_n "(cached) " >&6
4375 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4376 for ac_i in 1 2 3 4 5 6 7; do
4377 ac_script="$ac_script$as_nl$ac_script"
4379 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4380 { ac_script=; unset ac_script;}
4381 if test -z "$SED"; then
4382 ac_path_SED_found=false
4383 # Loop through the user's path and test for each of PROGNAME-LIST
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 test -z "$as_dir" && as_dir=.
4389 for ac_prog in sed gsed; do
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4392 as_fn_executable_p "$ac_path_SED" || continue
4393 # Check for GNU ac_path_SED and select it if it is found.
4394 # Check for GNU $ac_path_SED
4395 case `"$ac_path_SED" --version 2>&1` in
4397 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4400 $as_echo_n 0123456789 >"conftest.in"
4403 cat "conftest.in" "conftest.in" >"conftest.tmp"
4404 mv "conftest.tmp" "conftest.in"
4405 cp "conftest.in" "conftest.nl"
4406 $as_echo '' >> "conftest.nl"
4407 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4408 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4409 as_fn_arith $ac_count + 1 && ac_count=$as_val
4410 if test $ac_count -gt ${ac_path_SED_max-0}; then
4411 # Best one so far, save it but keep looking for a better one
4412 ac_cv_path_SED="$ac_path_SED"
4413 ac_path_SED_max=$ac_count
4415 # 10*(2^10) chars as input seems more than enough
4416 test $ac_count -gt 10 && break
4418 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4421 $ac_path_SED_found && break 3
4426 if test -z "$ac_cv_path_SED"; then
4427 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4435 $as_echo "$ac_cv_path_SED" >&6; }
4436 SED="$ac_cv_path_SED"
4439 test -z "$SED" && SED=sed
4440 Xsed="$SED -e 1s/^X//"
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4453 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4454 if ${ac_cv_path_GREP+:} false; then :
4455 $as_echo_n "(cached) " >&6
4457 if test -z "$GREP"; then
4458 ac_path_GREP_found=false
4459 # Loop through the user's path and test for each of PROGNAME-LIST
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4464 test -z "$as_dir" && as_dir=.
4465 for ac_prog in grep ggrep; do
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4468 as_fn_executable_p "$ac_path_GREP" || continue
4469 # Check for GNU ac_path_GREP and select it if it is found.
4470 # Check for GNU $ac_path_GREP
4471 case `"$ac_path_GREP" --version 2>&1` in
4473 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4476 $as_echo_n 0123456789 >"conftest.in"
4479 cat "conftest.in" "conftest.in" >"conftest.tmp"
4480 mv "conftest.tmp" "conftest.in"
4481 cp "conftest.in" "conftest.nl"
4482 $as_echo 'GREP' >> "conftest.nl"
4483 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4485 as_fn_arith $ac_count + 1 && ac_count=$as_val
4486 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4487 # Best one so far, save it but keep looking for a better one
4488 ac_cv_path_GREP="$ac_path_GREP"
4489 ac_path_GREP_max=$ac_count
4491 # 10*(2^10) chars as input seems more than enough
4492 test $ac_count -gt 10 && break
4494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4497 $ac_path_GREP_found && break 3
4502 if test -z "$ac_cv_path_GREP"; then
4503 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4506 ac_cv_path_GREP=$GREP
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4511 $as_echo "$ac_cv_path_GREP" >&6; }
4512 GREP="$ac_cv_path_GREP"
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4516 $as_echo_n "checking for egrep... " >&6; }
4517 if ${ac_cv_path_EGREP+:} false; then :
4518 $as_echo_n "(cached) " >&6
4520 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4521 then ac_cv_path_EGREP="$GREP -E"
4523 if test -z "$EGREP"; then
4524 ac_path_EGREP_found=false
4525 # Loop through the user's path and test for each of PROGNAME-LIST
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4530 test -z "$as_dir" && as_dir=.
4531 for ac_prog in egrep; do
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4534 as_fn_executable_p "$ac_path_EGREP" || continue
4535 # Check for GNU ac_path_EGREP and select it if it is found.
4536 # Check for GNU $ac_path_EGREP
4537 case `"$ac_path_EGREP" --version 2>&1` in
4539 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4542 $as_echo_n 0123456789 >"conftest.in"
4545 cat "conftest.in" "conftest.in" >"conftest.tmp"
4546 mv "conftest.tmp" "conftest.in"
4547 cp "conftest.in" "conftest.nl"
4548 $as_echo 'EGREP' >> "conftest.nl"
4549 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4551 as_fn_arith $ac_count + 1 && ac_count=$as_val
4552 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4553 # Best one so far, save it but keep looking for a better one
4554 ac_cv_path_EGREP="$ac_path_EGREP"
4555 ac_path_EGREP_max=$ac_count
4557 # 10*(2^10) chars as input seems more than enough
4558 test $ac_count -gt 10 && break
4560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4563 $ac_path_EGREP_found && break 3
4568 if test -z "$ac_cv_path_EGREP"; then
4569 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4572 ac_cv_path_EGREP=$EGREP
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4578 $as_echo "$ac_cv_path_EGREP" >&6; }
4579 EGREP="$ac_cv_path_EGREP"
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4583 $as_echo_n "checking for fgrep... " >&6; }
4584 if ${ac_cv_path_FGREP+:} false; then :
4585 $as_echo_n "(cached) " >&6
4587 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4588 then ac_cv_path_FGREP="$GREP -F"
4590 if test -z "$FGREP"; then
4591 ac_path_FGREP_found=false
4592 # Loop through the user's path and test for each of PROGNAME-LIST
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4597 test -z "$as_dir" && as_dir=.
4598 for ac_prog in fgrep; do
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4601 as_fn_executable_p "$ac_path_FGREP" || continue
4602 # Check for GNU ac_path_FGREP and select it if it is found.
4603 # Check for GNU $ac_path_FGREP
4604 case `"$ac_path_FGREP" --version 2>&1` in
4606 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4609 $as_echo_n 0123456789 >"conftest.in"
4612 cat "conftest.in" "conftest.in" >"conftest.tmp"
4613 mv "conftest.tmp" "conftest.in"
4614 cp "conftest.in" "conftest.nl"
4615 $as_echo 'FGREP' >> "conftest.nl"
4616 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4617 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4618 as_fn_arith $ac_count + 1 && ac_count=$as_val
4619 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4620 # Best one so far, save it but keep looking for a better one
4621 ac_cv_path_FGREP="$ac_path_FGREP"
4622 ac_path_FGREP_max=$ac_count
4624 # 10*(2^10) chars as input seems more than enough
4625 test $ac_count -gt 10 && break
4627 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4630 $ac_path_FGREP_found && break 3
4635 if test -z "$ac_cv_path_FGREP"; then
4636 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4639 ac_cv_path_FGREP=$FGREP
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4645 $as_echo "$ac_cv_path_FGREP" >&6; }
4646 FGREP="$ac_cv_path_FGREP"
4649 test -z "$GREP" && GREP=grep
4669 # Check whether --with-gnu-ld was given.
4670 if test "${with_gnu_ld+set}" = set; then :
4671 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4677 if test "$GCC" = yes; then
4678 # Check if gcc -print-prog-name=ld gives a path.
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4680 $as_echo_n "checking for ld used by $CC... " >&6; }
4683 # gcc leaves a trailing carriage return which upsets mingw
4684 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
4686 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
4689 # Accept absolute paths.
4691 re_direlt='/[^/][^/]*/\.\./'
4692 # Canonicalize the pathname of ld
4693 ac_prog=`$ECHO "$ac_prog"|
$SED 's%\\\\%/%g'`
4694 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4695 ac_prog=`$ECHO $ac_prog|
$SED "s%$re_direlt%/%"`
4697 test -z "$LD" && LD="$ac_prog"
4700 # If it fails, then pretend we aren't using GCC.
4704 # If it is relative, then search for the first ld in PATH.
4708 elif test "$with_gnu_ld" = yes; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4710 $as_echo_n "checking for GNU ld... " >&6; }
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4713 $as_echo_n "checking for non-GNU ld... " >&6; }
4715 if ${lt_cv_path_LD+:} false; then :
4716 $as_echo_n "(cached) " >&6
4718 if test -z "$LD"; then
4719 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4720 for ac_dir in $PATH; do
4722 test -z "$ac_dir" && ac_dir=.
4723 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4724 lt_cv_path_LD="$ac_dir/$ac_prog"
4725 # Check to see if the program is GNU ld. I'd rather use --version,
4726 # but apparently some variants of GNU ld only accept -v.
4727 # Break only if it was the GNU/non-GNU ld that we prefer.
4728 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
4729 *GNU* | *'with BFD'*)
4730 test "$with_gnu_ld" != no && break
4733 test "$with_gnu_ld" != yes && break
4740 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4745 if test -n "$LD"; then
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4747 $as_echo "$LD" >&6; }
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4750 $as_echo "no" >&6; }
4752 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4754 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4755 if ${lt_cv_prog_gnu_ld+:} false; then :
4756 $as_echo_n "(cached) " >&6
4758 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4759 case `$LD -v 2>&1 </dev
/null
` in
4760 *GNU* | *'with BFD'*)
4761 lt_cv_prog_gnu_ld=yes
4764 lt_cv_prog_gnu_ld=no
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4769 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4770 with_gnu_ld=$lt_cv_prog_gnu_ld
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4781 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4782 if ${lt_cv_path_NM+:} false; then :
4783 $as_echo_n "(cached) " >&6
4785 if test -n "$NM"; then
4786 # Let the user override the test.
4789 lt_nm_to_check="${ac_tool_prefix}nm"
4790 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4791 lt_nm_to_check="$lt_nm_to_check nm"
4793 for lt_tmp_nm in $lt_nm_to_check; do
4794 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4795 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4797 test -z "$ac_dir" && ac_dir=.
4798 tmp_nm="$ac_dir/$lt_tmp_nm"
4799 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4800 # Check to see if the nm accepts a BSD-compat flag.
4801 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
4802 # nm: unknown option "B" ignored
4803 # Tru64's nm complains that
/dev
/null is an invalid object
file
4804 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4805 */dev
/null
* |
*'Invalid file or object type'*)
4806 lt_cv_path_NM
="$tmp_nm -B"
4810 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4812 lt_cv_path_NM
="$tmp_nm -p"
4816 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4817 continue # so that we can try to find one that supports BSD flags
4826 : ${lt_cv_path_NM=no}
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4830 $as_echo "$lt_cv_path_NM" >&6; }
4831 if test "$lt_cv_path_NM" != "no"; then
4834 # Didn't find any BSD compatible name lister, look for dumpbin.
4835 if test -n "$DUMPBIN"; then :
4836 # Let the user override the test.
4838 if test -n "$ac_tool_prefix"; then
4839 for ac_prog
in dumpbin
"link -dump"
4841 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4842 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if ${ac_cv_prog_DUMPBIN+:} false
; then :
4846 $as_echo_n "(cached) " >&6
4848 if test -n "$DUMPBIN"; then
4849 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
4851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4855 test -z "$as_dir" && as_dir
=.
4856 for ac_exec_ext
in '' $ac_executable_extensions; do
4857 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4858 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 DUMPBIN
=$ac_cv_prog_DUMPBIN
4869 if test -n "$DUMPBIN"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4871 $as_echo "$DUMPBIN" >&6; }
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4878 test -n "$DUMPBIN" && break
4881 if test -z "$DUMPBIN"; then
4882 ac_ct_DUMPBIN
=$DUMPBIN
4883 for ac_prog
in dumpbin
"link -dump"
4885 # Extract the first word of "$ac_prog", so it can be a program name with args.
4886 set dummy
$ac_prog; ac_word
=$2
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888 $as_echo_n "checking for $ac_word... " >&6; }
4889 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
4890 $as_echo_n "(cached) " >&6
4892 if test -n "$ac_ct_DUMPBIN"; then
4893 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
4895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4899 test -z "$as_dir" && as_dir
=.
4900 for ac_exec_ext
in '' $ac_executable_extensions; do
4901 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4902 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
4913 if test -n "$ac_ct_DUMPBIN"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4915 $as_echo "$ac_ct_DUMPBIN" >&6; }
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4922 test -n "$ac_ct_DUMPBIN" && break
4925 if test "x$ac_ct_DUMPBIN" = x
; then
4928 case $cross_compiling:$ac_tool_warned in
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4932 ac_tool_warned
=yes ;;
4934 DUMPBIN
=$ac_ct_DUMPBIN
4938 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4940 DUMPBIN
="$DUMPBIN -symbols"
4948 if test "$DUMPBIN" != ":"; then
4952 test -z "$NM" && NM
=nm
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4960 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4961 if ${lt_cv_nm_interface+:} false
; then :
4962 $as_echo_n "(cached) " >&6
4964 lt_cv_nm_interface
="BSD nm"
4965 echo "int some_variable = 0;" > conftest.
$ac_ext
4966 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4967 (eval "$ac_compile" 2>conftest.err
)
4968 cat conftest.err
>&5
4969 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4970 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
4971 cat conftest.err
>&5
4972 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4973 cat conftest.out
>&5
4974 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
4975 lt_cv_nm_interface
="MS dumpbin"
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4980 $as_echo "$lt_cv_nm_interface" >&6; }
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4983 $as_echo_n "checking whether ln -s works... " >&6; }
4985 if test "$LN_S" = "ln -s"; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4987 $as_echo "yes" >&6; }
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4990 $as_echo "no, using $LN_S" >&6; }
4993 # find the maximum length of command line arguments
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4995 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4996 if ${lt_cv_sys_max_cmd_len+:} false
; then :
4997 $as_echo_n "(cached) " >&6
5004 # On DJGPP, this test can blow up pretty badly due to problems in libc
5005 # (any single argument exceeding 2000 bytes causes a buffer overrun
5006 # during glob expansion). Even if it were fixed, the result of this
5007 # check would be larger than it should be.
5008 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5012 # Under GNU Hurd, this test is not required because there is
5013 # no limit to the length of command line arguments.
5014 # Libtool will interpret -1 as no limit whatsoever
5015 lt_cv_sys_max_cmd_len
=-1;
5018 cygwin
* | mingw
* | cegcc
*)
5019 # On Win9x/ME, this test blows up -- it succeeds, but takes
5020 # about 5 minutes as the teststring grows exponentially.
5021 # Worse, since 9x/ME are not pre-emptively multitasking,
5022 # you end up with a "frozen" computer, even though with patience
5023 # the test eventually succeeds (with a max line length of 256k).
5024 # Instead, let's just punt: use the minimum linelength reported by
5025 # all of the supported platforms: 8192 (on NT/2K/XP).
5026 lt_cv_sys_max_cmd_len
=8192;
5030 # On MiNT this can take a long time and run out of memory.
5031 lt_cv_sys_max_cmd_len
=8192;
5035 # On AmigaOS with pdksh, this test takes hours, literally.
5036 # So we just punt and use a minimum line length of 8192.
5037 lt_cv_sys_max_cmd_len
=8192;
5040 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5041 # This has been around since 386BSD, at least. Likely further.
5042 if test -x /sbin
/sysctl
; then
5043 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5044 elif test -x /usr
/sbin
/sysctl
; then
5045 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5047 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5049 # And add a safety zone
5050 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5051 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5055 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5056 lt_cv_sys_max_cmd_len
=196608
5060 # The test takes a long time on OS/2.
5061 lt_cv_sys_max_cmd_len
=8192
5065 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5066 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5067 # nice to cause kernel panics so lets avoid the loop below.
5068 # First set a reasonable default.
5069 lt_cv_sys_max_cmd_len
=16384
5071 if test -x /sbin
/sysconfig
; then
5072 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5073 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5078 lt_cv_sys_max_cmd_len
=102400
5080 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5081 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5082 if test -n "$kargmax"; then
5083 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5085 lt_cv_sys_max_cmd_len
=32768
5089 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5090 if test -n "$lt_cv_sys_max_cmd_len" && \
5091 test undefined
!= "$lt_cv_sys_max_cmd_len"; then
5092 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5093 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5095 # Make teststring a little bigger before we do anything with it.
5096 # a 1K string should be a reasonable start.
5097 for i
in 1 2 3 4 5 6 7 8 ; do
5098 teststring
=$teststring$teststring
5100 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5101 # If test is not a shell built-in, we'll probably end up computing a
5102 # maximum length that is only half of the actual maximum length, but
5104 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5105 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
5106 test $i != 17 # 1/2 MB should be enough
5109 teststring
=$teststring$teststring
5111 # Only check the string length outside the loop.
5112 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
5114 # Add a significant safety factor because C++ compilers can tack on
5115 # massive amounts of additional arguments before passing them to the
5116 # linker. It appears as though 1/2 is a usable value.
5117 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5124 if test -n $lt_cv_sys_max_cmd_len ; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5126 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5129 $as_echo "none" >&6; }
5131 max_cmd_len
=$lt_cv_sys_max_cmd_len
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5143 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5144 # Try some XSI features
5147 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5149 && eval 'test $(( 1 + 1 )) -eq 2 \
5150 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
5153 $as_echo "$xsi_shell" >&6; }
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
5157 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5159 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5161 && lt_shell_append=yes
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
5163 $as_echo "$lt_shell_append" >&6; }
5166 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5176 # test EBCDIC or ASCII
5177 case `echo X|tr X '\101'` in
5178 A) # ASCII based system
5179 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5180 lt_SP2NL='tr \040 \012'
5181 lt_NL2SP='tr \015\012 \040\040'
5183 *) # EBCDIC based system
5184 lt_SP2NL='tr \100 \n'
5185 lt_NL2SP='tr \r\n \100\100'
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to
$host format
" >&5
5198 $as_echo_n "checking how to convert
$build file names to
$host format...
" >&6; }
5199 if ${lt_cv_to_host_file_cmd+:} false; then :
5200 $as_echo_n "(cached
) " >&6
5205 *-*-mingw* ) # actually msys
5206 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5209 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5211 * ) # otherwise, assume *nix
5212 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5218 *-*-mingw* ) # actually msys
5219 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5222 lt_cv_to_host_file_cmd=func_convert_file_noop
5224 * ) # otherwise, assume *nix
5225 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5229 * ) # unhandled hosts (and "normal
" native builds)
5230 lt_cv_to_host_file_cmd=func_convert_file_noop
5236 to_host_file_cmd=$lt_cv_to_host_file_cmd
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_host_file_cmd" >&5
5238 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to toolchain format
" >&5
5245 $as_echo_n "checking how to convert
$build file names to toolchain format...
" >&6; }
5246 if ${lt_cv_to_tool_file_cmd+:} false; then :
5247 $as_echo_n "(cached
) " >&6
5249 #assume ordinary cross tools, or native build.
5250 lt_cv_to_tool_file_cmd=func_convert_file_noop
5254 *-*-mingw* ) # actually msys
5255 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5263 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_tool_file_cmd" >&5
5265 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5272 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5273 if ${lt_cv_ld_reload_flag+:} false; then :
5274 $as_echo_n "(cached
) " >&6
5276 lt_cv_ld_reload_flag='-r'
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5279 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5280 reload_flag=$lt_cv_ld_reload_flag
5281 case $reload_flag in
5283 *) reload_flag=" $reload_flag" ;;
5285 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5287 cygwin* | mingw* | pw32* | cegcc*)
5288 if test "$GCC" != yes; then
5293 if test "$GCC" = yes; then
5294 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5296 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5309 if test -n "$ac_tool_prefix"; then
5310 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5311 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5313 $as_echo_n "checking
for $ac_word...
" >&6; }
5314 if ${ac_cv_prog_OBJDUMP+:} false; then :
5315 $as_echo_n "(cached
) " >&6
5317 if test -n "$OBJDUMP"; then
5318 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5328 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5337 OBJDUMP=$ac_cv_prog_OBJDUMP
5338 if test -n "$OBJDUMP"; then
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5340 $as_echo "$OBJDUMP" >&6; }
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5343 $as_echo "no
" >&6; }
5348 if test -z "$ac_cv_prog_OBJDUMP"; then
5349 ac_ct_OBJDUMP=$OBJDUMP
5350 # Extract the first word of "objdump
", so it can be a program name with args.
5351 set dummy objdump; ac_word=$2
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5353 $as_echo_n "checking
for $ac_word...
" >&6; }
5354 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5355 $as_echo_n "(cached
) " >&6
5357 if test -n "$ac_ct_OBJDUMP"; then
5358 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5368 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5377 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5378 if test -n "$ac_ct_OBJDUMP"; then
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5380 $as_echo "$ac_ct_OBJDUMP" >&6; }
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5383 $as_echo "no
" >&6; }
5386 if test "x
$ac_ct_OBJDUMP" = x; then
5389 case $cross_compiling:$ac_tool_warned in
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5392 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5393 ac_tool_warned=yes ;;
5395 OBJDUMP=$ac_ct_OBJDUMP
5398 OBJDUMP="$ac_cv_prog_OBJDUMP"
5401 test -z "$OBJDUMP" && OBJDUMP=objdump
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5412 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5413 if ${lt_cv_deplibs_check_method+:} false; then :
5414 $as_echo_n "(cached
) " >&6
5416 lt_cv_file_magic_cmd='$MAGIC_CMD'
5417 lt_cv_file_magic_test_file=
5418 lt_cv_deplibs_check_method='unknown'
5419 # Need to set the preceding variable on all platforms that support
5420 # interlibrary dependencies.
5421 # 'none' -- dependencies not supported.
5422 # `unknown' -- same as none, but documents that we really don't know.
5423 # 'pass_all' -- all dependencies passed with no checks.
5424 # 'test_compile' -- check by making test program.
5425 # 'file_magic [[regex]]' -- check by looking for files in library path
5426 # which responds to the $file_magic_cmd with a given extended regex.
5427 # If you have `file' or equivalent on your system and you're not sure
5428 # whether `pass_all' will *always* work, you probably want this one.
5432 lt_cv_deplibs_check_method=pass_all
5436 lt_cv_deplibs_check_method=pass_all
5440 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5441 lt_cv_file_magic_cmd='/usr/bin/file -L'
5442 lt_cv_file_magic_test_file=/shlib/libc.so
5446 # func_win32_libid is a shell function defined in ltmain.sh
5447 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5448 lt_cv_file_magic_cmd='func_win32_libid'
5452 # Base MSYS/MinGW do not provide the 'file' command needed by
5453 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5454 # unless we find 'file', for example because we are cross-compiling.
5455 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5456 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
5457 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5458 lt_cv_file_magic_cmd='func_win32_libid'
5460 # Keep this pattern in sync with the one in func_win32_libid.
5461 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5462 lt_cv_file_magic_cmd='$OBJDUMP -f'
5467 # use the weaker test based on 'objdump'. See mingw*.
5468 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5469 lt_cv_file_magic_cmd='$OBJDUMP -f'
5472 darwin* | rhapsody*)
5473 lt_cv_deplibs_check_method=pass_all
5476 freebsd* | dragonfly*)
5477 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5480 # Not sure whether the presence of OpenBSD here was a mistake.
5481 # Let's accept both of them until this is cleared up.
5482 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5483 lt_cv_file_magic_cmd=/usr/bin/file
5484 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5488 lt_cv_deplibs_check_method=pass_all
5493 lt_cv_deplibs_check_method=pass_all
5496 hpux10.20* | hpux11*)
5497 lt_cv_file_magic_cmd=/usr/bin/file
5500 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5501 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5504 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]'
5505 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5508 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5509 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5515 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5516 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5519 irix5* | irix6* | nonstopux*)
5521 *-32|*"-32 ") libmagic=32-bit;;
5522 *-n32|*"-n32 ") libmagic=N32;;
5523 *-64|*"-64 ") libmagic=64-bit;;
5524 *) libmagic=never-match;;
5526 lt_cv_deplibs_check_method=pass_all
5529 # This must be glibc/ELF.
5530 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5531 lt_cv_deplibs_check_method=pass_all
5534 netbsd* | netbsdelf*-gnu)
5535 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5536 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5538 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5543 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5544 lt_cv_file_magic_cmd=/usr/bin/file
5545 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5549 lt_cv_deplibs_check_method=pass_all
5553 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5556 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5560 osf3* | osf4* | osf5*)
5561 lt_cv_deplibs_check_method=pass_all
5565 lt_cv_deplibs_check_method=pass_all
5569 lt_cv_deplibs_check_method=pass_all
5572 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5573 lt_cv_deplibs_check_method=pass_all
5577 case $host_vendor in
5579 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]'
5580 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5583 lt_cv_deplibs_check_method=pass_all
5586 lt_cv_file_magic_cmd='/bin/file'
5587 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5590 lt_cv_file_magic_cmd='/bin/file'
5591 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5592 lt_cv_file_magic_test_file=/lib/libc.so
5595 lt_cv_deplibs_check_method=pass_all
5598 lt_cv_deplibs_check_method=pass_all
5604 lt_cv_deplibs_check_method=pass_all
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5610 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5614 if test "$build" = "$host"; then
5617 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5620 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s
/\
(..\
)/s\
/[\
1]\
/[\
1]\
/g
;/g
"`
5626 file_magic_cmd=$lt_cv_file_magic_cmd
5627 deplibs_check_method=$lt_cv_deplibs_check_method
5628 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5651 if test -n "$ac_tool_prefix"; then
5652 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
5653 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5655 $as_echo_n "checking
for $ac_word...
" >&6; }
5656 if ${ac_cv_prog_DLLTOOL+:} false; then :
5657 $as_echo_n "(cached
) " >&6
5659 if test -n "$DLLTOOL"; then
5660 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5669 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
5670 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5679 DLLTOOL=$ac_cv_prog_DLLTOOL
5680 if test -n "$DLLTOOL"; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
5682 $as_echo "$DLLTOOL" >&6; }
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5685 $as_echo "no
" >&6; }
5690 if test -z "$ac_cv_prog_DLLTOOL"; then
5691 ac_ct_DLLTOOL=$DLLTOOL
5692 # Extract the first word of "dlltool
", so it can be a program name with args.
5693 set dummy dlltool; ac_word=$2
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5695 $as_echo_n "checking
for $ac_word...
" >&6; }
5696 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5697 $as_echo_n "(cached
) " >&6
5699 if test -n "$ac_ct_DLLTOOL"; then
5700 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 test -z "$as_dir" && as_dir=.
5707 for ac_exec_ext in '' $ac_executable_extensions; do
5708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5709 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
5710 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5719 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5720 if test -n "$ac_ct_DLLTOOL"; then
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
5722 $as_echo "$ac_ct_DLLTOOL" >&6; }
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5725 $as_echo "no
" >&6; }
5728 if test "x
$ac_ct_DLLTOOL" = x; then
5731 case $cross_compiling:$ac_tool_warned in
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5734 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5735 ac_tool_warned=yes ;;
5737 DLLTOOL=$ac_ct_DLLTOOL
5740 DLLTOOL="$ac_cv_prog_DLLTOOL"
5743 test -z "$DLLTOOL" && DLLTOOL=dlltool
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries
" >&5
5755 $as_echo_n "checking how to associate runtime and link libraries...
" >&6; }
5756 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5757 $as_echo_n "(cached
) " >&6
5759 lt_cv_sharedlib_from_linklib_cmd='unknown'
5762 cygwin* | mingw* | pw32* | cegcc*)
5763 # two different shell functions defined in ltmain.sh
5764 # decide which to use based on capabilities of $DLLTOOL
5765 case `$DLLTOOL --help 2>&1` in
5766 *--identify-strict*)
5767 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5770 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5775 # fallback: assume linklib IS sharedlib
5776 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sharedlib_from_linklib_cmd" >&5
5782 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5783 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5784 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5793 if test -n "$ac_tool_prefix"; then
5796 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5797 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5799 $as_echo_n "checking
for $ac_word...
" >&6; }
5800 if ${ac_cv_prog_AR+:} false; then :
5801 $as_echo_n "(cached
) " >&6
5803 if test -n "$AR"; then
5804 ac_cv_prog_AR="$AR" # Let the user override the test.
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5814 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5824 if test -n "$AR"; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5826 $as_echo "$AR" >&6; }
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5829 $as_echo "no
" >&6; }
5833 test -n "$AR" && break
5836 if test -z "$AR"; then
5840 # Extract the first word of "$ac_prog", so it can be a program name with args.
5841 set dummy $ac_prog; ac_word=$2
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5843 $as_echo_n "checking
for $ac_word...
" >&6; }
5844 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5845 $as_echo_n "(cached
) " >&6
5847 if test -n "$ac_ct_AR"; then
5848 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857 ac_cv_prog_ac_ct_AR="$ac_prog"
5858 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5867 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5868 if test -n "$ac_ct_AR"; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5870 $as_echo "$ac_ct_AR" >&6; }
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5873 $as_echo "no
" >&6; }
5877 test -n "$ac_ct_AR" && break
5880 if test "x
$ac_ct_AR" = x; then
5883 case $cross_compiling:$ac_tool_warned in
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5886 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5887 ac_tool_warned=yes ;;
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for archiver @FILE support
" >&5
5907 $as_echo_n "checking
for archiver @FILE support...
" >&6; }
5908 if ${lt_cv_ar_at_file+:} false; then :
5909 $as_echo_n "(cached
) " >&6
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5923 if ac_fn_c_try_compile "$LINENO"; then :
5924 echo conftest.$ac_objext > conftest.lst
5925 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5926 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5927 (eval $lt_ar_try) 2>&5
5929 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5930 test $ac_status = 0; }
5931 if test "$ac_status" -eq 0; then
5932 # Ensure the archiver fails upon bogus file names.
5933 rm -f conftest.$ac_objext libconftest.a
5934 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5935 (eval $lt_ar_try) 2>&5
5937 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5938 test $ac_status = 0; }
5939 if test "$ac_status" -ne 0; then
5943 rm -f conftest.* libconftest.a
5946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ar_at_file" >&5
5950 $as_echo "$lt_cv_ar_at_file" >&6; }
5952 if test "x
$lt_cv_ar_at_file" = xno; then
5955 archiver_list_spec=$lt_cv_ar_at_file
5964 if test -n "$ac_tool_prefix"; then
5965 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5966 set dummy ${ac_tool_prefix}strip; ac_word=$2
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5968 $as_echo_n "checking
for $ac_word...
" >&6; }
5969 if ${ac_cv_prog_STRIP+:} false; then :
5970 $as_echo_n "(cached
) " >&6
5972 if test -n "$STRIP"; then
5973 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5983 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5992 STRIP=$ac_cv_prog_STRIP
5993 if test -n "$STRIP"; then
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
5995 $as_echo "$STRIP" >&6; }
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5998 $as_echo "no
" >&6; }
6003 if test -z "$ac_cv_prog_STRIP"; then
6005 # Extract the first word of "strip
", so it can be a program name with args.
6006 set dummy strip; ac_word=$2
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6008 $as_echo_n "checking
for $ac_word...
" >&6; }
6009 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6010 $as_echo_n "(cached
) " >&6
6012 if test -n "$ac_ct_STRIP"; then
6013 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6022 ac_cv_prog_ac_ct_STRIP="strip
"
6023 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6032 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6033 if test -n "$ac_ct_STRIP"; then
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6035 $as_echo "$ac_ct_STRIP" >&6; }
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6038 $as_echo "no
" >&6; }
6041 if test "x
$ac_ct_STRIP" = x; then
6044 case $cross_compiling:$ac_tool_warned in
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6047 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6048 ac_tool_warned=yes ;;
6053 STRIP="$ac_cv_prog_STRIP"
6056 test -z "$STRIP" && STRIP=:
6063 if test -n "$ac_tool_prefix"; then
6064 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6065 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6067 $as_echo_n "checking
for $ac_word...
" >&6; }
6068 if ${ac_cv_prog_RANLIB+:} false; then :
6069 $as_echo_n "(cached
) " >&6
6071 if test -n "$RANLIB"; then
6072 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6081 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6082 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6091 RANLIB=$ac_cv_prog_RANLIB
6092 if test -n "$RANLIB"; then
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6094 $as_echo "$RANLIB" >&6; }
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6097 $as_echo "no
" >&6; }
6102 if test -z "$ac_cv_prog_RANLIB"; then
6103 ac_ct_RANLIB=$RANLIB
6104 # Extract the first word of "ranlib
", so it can be a program name with args.
6105 set dummy ranlib; ac_word=$2
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6107 $as_echo_n "checking
for $ac_word...
" >&6; }
6108 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6109 $as_echo_n "(cached
) " >&6
6111 if test -n "$ac_ct_RANLIB"; then
6112 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6122 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6131 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6132 if test -n "$ac_ct_RANLIB"; then
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6134 $as_echo "$ac_ct_RANLIB" >&6; }
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6137 $as_echo "no
" >&6; }
6140 if test "x
$ac_ct_RANLIB" = x; then
6143 case $cross_compiling:$ac_tool_warned in
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6146 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6147 ac_tool_warned=yes ;;
6149 RANLIB=$ac_ct_RANLIB
6152 RANLIB="$ac_cv_prog_RANLIB"
6155 test -z "$RANLIB" && RANLIB=:
6162 # Determine commands to create old-style static archives.
6163 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6164 old_postinstall_cmds='chmod 644 $oldlib'
6165 old_postuninstall_cmds=
6167 if test -n "$RANLIB"; then
6170 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$tool_oldlib"
6173 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$tool_oldlib"
6176 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$tool_oldlib"
6181 lock_old_archive_extraction=yes ;;
6183 lock_old_archive_extraction=no ;;
6224 # If no C compiler was specified, use CC.
6227 # If no C compiler flags were specified, use CFLAGS.
6228 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6230 # Allow CC to be a program name with arguments.
6234 # Check for command to grab the raw symbol name followed by C symbol from nm.
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6236 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6237 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6238 $as_echo_n "(cached
) " >&6
6241 # These are sane defaults that work on at least a few old systems.
6242 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6244 # Character class describing NM global symbol codes.
6245 symcode='[BCDEGRST]'
6247 # Regexp to match symbols that can be accessed directly from C.
6248 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6250 # Define system-specific variables.
6255 cygwin* | mingw* | pw32* | cegcc*)
6256 symcode='[ABCDGISTW]'
6259 if test "$host_cpu" = ia64; then
6260 symcode='[ABCDEGRST]'
6264 symcode='[BCDEGRST]'
6267 symcode='[BCDEGQRST]'
6278 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6286 # If we're using GNU nm, then use its standard symbol codes.
6287 case `$NM -V 2>&1` in
6288 *GNU* | *'with BFD'*)
6289 symcode='[ABCDGIRSTW]' ;;
6292 # Transform an extracted symbol line into a proper C declaration.
6293 # Some systems (esp. on ia64) link data and code symbols differently,
6294 # so use this general approach.
6295 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6297 # Transform an extracted symbol line into symbol name and symbol address
6298 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6299 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'"
6301 # Handle CRLF in mingw tool chain
6305 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6309 # Try without a prefix underscore, then with it.
6310 for ac_symprfx in "" "_
"; do
6312 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6313 symxfrm="\\1 $ac_symprfx\\2 \\2"
6315 # Write the raw and C identifiers.
6316 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6317 # Fake it for dumpbin and say T for any non-static function
6318 # and D for any global variable.
6319 # Also find C++ and __fastcall symbols from MSVC++,
6320 # which start with @ or ?.
6321 lt_cv_sys_global_symbol_pipe="$AWK '"\
6322 " {last_section=section; section=\$ 3};"\
6323 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6324 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6325 " \$ 0!~/External *\|/{next};"\
6326 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6327 " {if(hide[section]) next};"\
6328 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6329 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6330 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6331 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6332 " ' prfx
=^
$ac_symprfx"
6334 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6336 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe |
sed '/ __gnu_lto/d'"
6338 # Check to see that the pipe works correctly.
6342 cat > conftest.$ac_ext <<_LT_EOF
6347 void nm_test_func(void);
6348 void nm_test_func(void){}
6352 int main(){nm_test_var='a';nm_test_func();return(0);}
6355 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6356 (eval $ac_compile) 2>&5
6358 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6359 test $ac_status = 0; }; then
6360 # Now try to grab the symbols.
6362 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6363 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6365 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6366 test $ac_status = 0; } && test -s "$nlist"; then
6367 # Try sorting and uniquifying the output.
6368 if sort "$nlist" | uniq > "$nlist"T; then
6369 mv -f "$nlist"T "$nlist"
6374 # Make sure that we snagged all the symbols we need.
6375 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6376 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6377 cat <<_LT_EOF > conftest.$ac_ext
6378 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6379 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6380 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6381 relocations are performed -- see ld's documentation on pseudo-relocs. */
6382 # define LT_DLSYM_CONST
6383 #elif defined(__osf__)
6384 /* This system does not cope well with relocations in const data. */
6385 # define LT_DLSYM_CONST
6387 # define LT_DLSYM_CONST const
6395 # Now generate the symbol file.
6396 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6398 cat <<_LT_EOF >> conftest.$ac_ext
6400 /* The mapping between symbol names and symbols. */
6401 LT_DLSYM_CONST struct {
6405 lt__PROGRAM__LTX_preloaded_symbols[] =
6407 { "@PROGRAM@
", (void *) 0 },
6409 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6410 cat <<\_LT_EOF >> conftest.$ac_ext
6414 /* This works around a problem in FreeBSD linker */
6415 #ifdef FREEBSD_WORKAROUND
6416 static const void *lt_preloaded_setup() {
6417 return lt__PROGRAM__LTX_preloaded_symbols;
6425 # Now try linking the two files.
6426 mv conftest.$ac_objext conftstm.$ac_objext
6427 lt_globsym_save_LIBS=$LIBS
6428 lt_globsym_save_CFLAGS=$CFLAGS
6429 LIBS="conftstm.
$ac_objext"
6430 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6431 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6432 (eval $ac_link) 2>&5
6434 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6435 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6438 LIBS=$lt_globsym_save_LIBS
6439 CFLAGS=$lt_globsym_save_CFLAGS
6441 echo "cannot
find nm_test_func
in $nlist" >&5
6444 echo "cannot
find nm_test_var
in $nlist" >&5
6447 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6450 echo "$progname: failed program was
:" >&5
6451 cat conftest.$ac_ext >&5
6453 rm -rf conftest* conftst*
6455 # Do not use the global_symbol_pipe unless it works.
6456 if test "$pipe_works" = yes; then
6459 lt_cv_sys_global_symbol_pipe=
6465 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6466 lt_cv_sys_global_symbol_to_cdecl=
6468 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6470 $as_echo "failed
" >&6; }
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6473 $as_echo "ok
" >&6; }
6476 # Response file support.
6477 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6478 nm_file_list_spec='@'
6479 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6480 nm_file_list_spec='@'
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for sysroot
" >&5
6510 $as_echo_n "checking
for sysroot...
" >&6; }
6512 # Check whether --with-sysroot was given.
6513 if test "${with_sysroot+set}" = set; then :
6514 withval=$with_sysroot;
6521 case ${with_sysroot} in #(
6523 if test "$GCC" = yes; then
6524 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6528 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${with_sysroot}" >&5
6534 $as_echo "${with_sysroot}" >&6; }
6535 as_fn_error $? "The sysroot must be an absolute path.
" "$LINENO" 5
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${lt_sysroot:-no}" >&5
6540 $as_echo "${lt_sysroot:-no}" >&6; }
6546 # Check whether --enable-libtool-lock was given.
6547 if test "${enable_libtool_lock+set}" = set; then :
6548 enableval=$enable_libtool_lock;
6551 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6553 # Some flags need to be propagated to the compiler or linker for good
6557 # Find out which ABI we are using.
6558 echo 'int i;' > conftest.$ac_ext
6559 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6560 (eval $ac_compile) 2>&5
6562 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6563 test $ac_status = 0; }; then
6564 case `/usr/bin/file conftest.$ac_objext` in
6576 # Find out which ABI we are using.
6577 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6578 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6579 (eval $ac_compile) 2>&5
6581 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6582 test $ac_status = 0; }; then
6583 if test "$lt_cv_prog_gnu_ld" = yes; then
6584 case `/usr/bin/file conftest.$ac_objext` in
6586 LD="${LD-ld} -melf32bsmip"
6589 LD="${LD-ld} -melf32bmipn32"
6592 LD="${LD-ld} -melf64bmip"
6596 case `/usr/bin/file conftest.$ac_objext` in
6612 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6613 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6614 # Find out which ABI we are using.
6615 echo 'int i;' > conftest.$ac_ext
6616 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6617 (eval $ac_compile) 2>&5
6619 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6620 test $ac_status = 0; }; then
6621 case `/usr/bin/file conftest.o` in
6624 x86_64-*kfreebsd*-gnu)
6625 LD="${LD-ld} -m elf_i386_fbsd
"
6628 case `/usr/bin/file conftest.o` in
6630 LD="${LD-ld} -m elf32_x86_64
"
6633 LD="${LD-ld} -m elf_i386
"
6637 ppc64-*linux*|powerpc64-*linux*)
6638 LD="${LD-ld} -m elf32ppclinux
"
6641 LD="${LD-ld} -m elf_s390
"
6644 LD="${LD-ld} -m elf32_sparc
"
6650 x86_64-*kfreebsd*-gnu)
6651 LD="${LD-ld} -m elf_x86_64_fbsd
"
6654 LD="${LD-ld} -m elf_x86_64
"
6656 ppc*-*linux*|powerpc*-*linux*)
6657 LD="${LD-ld} -m elf64ppc
"
6659 s390*-*linux*|s390*-*tpf*)
6660 LD="${LD-ld} -m elf64_s390
"
6663 LD="${LD-ld} -m elf64_sparc
"
6673 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6674 SAVE_CFLAGS="$CFLAGS"
6675 CFLAGS="$CFLAGS -belf"
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6677 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6678 if ${lt_cv_cc_needs_belf+:} false; then :
6679 $as_echo_n "(cached
) " >&6
6682 ac_cpp='$CPP $CPPFLAGS'
6683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6698 if ac_fn_c_try_link "$LINENO"; then :
6699 lt_cv_cc_needs_belf=yes
6701 lt_cv_cc_needs_belf=no
6703 rm -f core conftest.err conftest.$ac_objext \
6704 conftest$ac_exeext conftest.$ac_ext
6706 ac_cpp='$CPP $CPPFLAGS'
6707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6713 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6714 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6715 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6716 CFLAGS="$SAVE_CFLAGS"
6720 # Find out which ABI we are using.
6721 echo 'int i;' > conftest.$ac_ext
6722 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6723 (eval $ac_compile) 2>&5
6725 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6726 test $ac_status = 0; }; then
6727 case `/usr/bin/file conftest.o` in
6729 case $lt_cv_prog_gnu_ld in
6733 LD="${LD-ld} -m elf_x86_64
"
6736 LD="${LD-ld} -m elf64_sparc
"
6739 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6740 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6745 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6757 need_locks="$enable_libtool_lock"
6759 if test -n "$ac_tool_prefix"; then
6760 # Extract the first word of "${ac_tool_prefix}mt
", so it can be a program name with args.
6761 set dummy ${ac_tool_prefix}mt; ac_word=$2
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6763 $as_echo_n "checking
for $ac_word...
" >&6; }
6764 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6765 $as_echo_n "(cached
) " >&6
6767 if test -n "$MANIFEST_TOOL"; then
6768 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6777 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt
"
6778 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6787 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6788 if test -n "$MANIFEST_TOOL"; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MANIFEST_TOOL" >&5
6790 $as_echo "$MANIFEST_TOOL" >&6; }
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6793 $as_echo "no
" >&6; }
6798 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6799 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6800 # Extract the first word of "mt
", so it can be a program name with args.
6801 set dummy mt; ac_word=$2
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6803 $as_echo_n "checking
for $ac_word...
" >&6; }
6804 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6805 $as_echo_n "(cached
) " >&6
6807 if test -n "$ac_ct_MANIFEST_TOOL"; then
6808 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6817 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt
"
6818 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6827 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6828 if test -n "$ac_ct_MANIFEST_TOOL"; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_MANIFEST_TOOL" >&5
6830 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6833 $as_echo "no
" >&6; }
6836 if test "x
$ac_ct_MANIFEST_TOOL" = x; then
6839 case $cross_compiling:$ac_tool_warned in
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6842 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6843 ac_tool_warned=yes ;;
6845 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6848 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6851 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $MANIFEST_TOOL is a manifest tool
" >&5
6853 $as_echo_n "checking
if $MANIFEST_TOOL is a manifest tool...
" >&6; }
6854 if ${lt_cv_path_mainfest_tool+:} false; then :
6855 $as_echo_n "(cached
) " >&6
6857 lt_cv_path_mainfest_tool=no
6858 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6859 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6860 cat conftest.err >&5
6861 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6862 lt_cv_path_mainfest_tool=yes
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_mainfest_tool" >&5
6867 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6868 if test "x
$lt_cv_path_mainfest_tool" != xyes; then
6878 rhapsody* | darwin*)
6879 if test -n "$ac_tool_prefix"; then
6880 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6881 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6883 $as_echo_n "checking
for $ac_word...
" >&6; }
6884 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6885 $as_echo_n "(cached
) " >&6
6887 if test -n "$DSYMUTIL"; then
6888 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6897 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6898 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6907 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6908 if test -n "$DSYMUTIL"; then
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
6910 $as_echo "$DSYMUTIL" >&6; }
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6913 $as_echo "no
" >&6; }
6918 if test -z "$ac_cv_prog_DSYMUTIL"; then
6919 ac_ct_DSYMUTIL=$DSYMUTIL
6920 # Extract the first word of "dsymutil
", so it can be a program name with args.
6921 set dummy dsymutil; ac_word=$2
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6923 $as_echo_n "checking
for $ac_word...
" >&6; }
6924 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6925 $as_echo_n "(cached
) " >&6
6927 if test -n "$ac_ct_DSYMUTIL"; then
6928 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 test -z "$as_dir" && as_dir=.
6935 for ac_exec_ext in '' $ac_executable_extensions; do
6936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6937 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6938 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6947 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6948 if test -n "$ac_ct_DSYMUTIL"; then
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
6950 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6953 $as_echo "no
" >&6; }
6956 if test "x
$ac_ct_DSYMUTIL" = x; then
6959 case $cross_compiling:$ac_tool_warned in
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6962 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6963 ac_tool_warned=yes ;;
6965 DSYMUTIL=$ac_ct_DSYMUTIL
6968 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6971 if test -n "$ac_tool_prefix"; then
6972 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6973 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6975 $as_echo_n "checking
for $ac_word...
" >&6; }
6976 if ${ac_cv_prog_NMEDIT+:} false; then :
6977 $as_echo_n "(cached
) " >&6
6979 if test -n "$NMEDIT"; then
6980 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6989 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6990 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6999 NMEDIT=$ac_cv_prog_NMEDIT
7000 if test -n "$NMEDIT"; then
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7002 $as_echo "$NMEDIT" >&6; }
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7005 $as_echo "no
" >&6; }
7010 if test -z "$ac_cv_prog_NMEDIT"; then
7011 ac_ct_NMEDIT=$NMEDIT
7012 # Extract the first word of "nmedit
", so it can be a program name with args.
7013 set dummy nmedit; ac_word=$2
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7015 $as_echo_n "checking
for $ac_word...
" >&6; }
7016 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7017 $as_echo_n "(cached
) " >&6
7019 if test -n "$ac_ct_NMEDIT"; then
7020 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7029 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7030 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7039 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7040 if test -n "$ac_ct_NMEDIT"; then
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7042 $as_echo "$ac_ct_NMEDIT" >&6; }
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7045 $as_echo "no
" >&6; }
7048 if test "x
$ac_ct_NMEDIT" = x; then
7051 case $cross_compiling:$ac_tool_warned in
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7054 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7055 ac_tool_warned=yes ;;
7057 NMEDIT=$ac_ct_NMEDIT
7060 NMEDIT="$ac_cv_prog_NMEDIT"
7063 if test -n "$ac_tool_prefix"; then
7064 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7065 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7067 $as_echo_n "checking
for $ac_word...
" >&6; }
7068 if ${ac_cv_prog_LIPO+:} false; then :
7069 $as_echo_n "(cached
) " >&6
7071 if test -n "$LIPO"; then
7072 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7091 LIPO=$ac_cv_prog_LIPO
7092 if test -n "$LIPO"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7094 $as_echo "$LIPO" >&6; }
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7097 $as_echo "no
" >&6; }
7102 if test -z "$ac_cv_prog_LIPO"; then
7104 # Extract the first word of "lipo
", so it can be a program name with args.
7105 set dummy lipo; ac_word=$2
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7107 $as_echo_n "checking
for $ac_word...
" >&6; }
7108 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7109 $as_echo_n "(cached
) " >&6
7111 if test -n "$ac_ct_LIPO"; then
7112 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7121 ac_cv_prog_ac_ct_LIPO="lipo
"
7122 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7131 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7132 if test -n "$ac_ct_LIPO"; then
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7134 $as_echo "$ac_ct_LIPO" >&6; }
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7137 $as_echo "no
" >&6; }
7140 if test "x
$ac_ct_LIPO" = x; then
7143 case $cross_compiling:$ac_tool_warned in
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7146 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7147 ac_tool_warned=yes ;;
7152 LIPO="$ac_cv_prog_LIPO"
7155 if test -n "$ac_tool_prefix"; then
7156 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7157 set dummy ${ac_tool_prefix}otool; ac_word=$2
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7159 $as_echo_n "checking
for $ac_word...
" >&6; }
7160 if ${ac_cv_prog_OTOOL+:} false; then :
7161 $as_echo_n "(cached
) " >&6
7163 if test -n "$OTOOL"; then
7164 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7174 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7183 OTOOL=$ac_cv_prog_OTOOL
7184 if test -n "$OTOOL"; then
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7186 $as_echo "$OTOOL" >&6; }
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7189 $as_echo "no
" >&6; }
7194 if test -z "$ac_cv_prog_OTOOL"; then
7196 # Extract the first word of "otool
", so it can be a program name with args.
7197 set dummy otool; ac_word=$2
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7199 $as_echo_n "checking
for $ac_word...
" >&6; }
7200 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7201 $as_echo_n "(cached
) " >&6
7203 if test -n "$ac_ct_OTOOL"; then
7204 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7213 ac_cv_prog_ac_ct_OTOOL="otool
"
7214 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7223 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7224 if test -n "$ac_ct_OTOOL"; then
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7226 $as_echo "$ac_ct_OTOOL" >&6; }
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7229 $as_echo "no
" >&6; }
7232 if test "x
$ac_ct_OTOOL" = x; then
7235 case $cross_compiling:$ac_tool_warned in
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7238 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7239 ac_tool_warned=yes ;;
7244 OTOOL="$ac_cv_prog_OTOOL"
7247 if test -n "$ac_tool_prefix"; then
7248 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7249 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7251 $as_echo_n "checking
for $ac_word...
" >&6; }
7252 if ${ac_cv_prog_OTOOL64+:} false; then :
7253 $as_echo_n "(cached
) " >&6
7255 if test -n "$OTOOL64"; then
7256 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7266 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7275 OTOOL64=$ac_cv_prog_OTOOL64
7276 if test -n "$OTOOL64"; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7278 $as_echo "$OTOOL64" >&6; }
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7281 $as_echo "no
" >&6; }
7286 if test -z "$ac_cv_prog_OTOOL64"; then
7287 ac_ct_OTOOL64=$OTOOL64
7288 # Extract the first word of "otool64
", so it can be a program name with args.
7289 set dummy otool64; ac_word=$2
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7291 $as_echo_n "checking
for $ac_word...
" >&6; }
7292 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7293 $as_echo_n "(cached
) " >&6
7295 if test -n "$ac_ct_OTOOL64"; then
7296 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 test -z "$as_dir" && as_dir=.
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7306 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7315 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7316 if test -n "$ac_ct_OTOOL64"; then
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7318 $as_echo "$ac_ct_OTOOL64" >&6; }
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7321 $as_echo "no
" >&6; }
7324 if test "x
$ac_ct_OTOOL64" = x; then
7327 case $cross_compiling:$ac_tool_warned in
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7330 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7331 ac_tool_warned=yes ;;
7333 OTOOL64=$ac_ct_OTOOL64
7336 OTOOL64="$ac_cv_prog_OTOOL64"
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7366 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7367 if ${lt_cv_apple_cc_single_mod+:} false; then :
7368 $as_echo_n "(cached
) " >&6
7370 lt_cv_apple_cc_single_mod=no
7371 if test -z "${LT_MULTI_MODULE}"; then
7372 # By default we will add the -single_module flag. You can override
7373 # by either setting the environment variable LT_MULTI_MODULE
7374 # non-empty at configure time, or by adding -multi_module to the
7376 rm -rf libconftest.dylib*
7377 echo "int foo
(void
){return 1;}" > conftest.c
7378 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7379 -dynamiclib -Wl,-single_module conftest.c
" >&5
7380 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7381 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7383 # If there is a non-empty error log, and "single_module
"
7384 # appears in it, assume the flag caused a linker warning
7385 if test -s conftest.err && $GREP single_module conftest.err; then
7386 cat conftest.err >&5
7387 # Otherwise, if the output was created with a 0 exit code from
7388 # the compiler, it worked.
7389 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7390 lt_cv_apple_cc_single_mod=yes
7392 cat conftest.err >&5
7394 rm -rf libconftest.dylib*
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7399 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7402 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7403 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7404 $as_echo_n "(cached
) " >&6
7406 lt_cv_ld_exported_symbols_list=no
7407 save_LDFLAGS=$LDFLAGS
7408 echo "_main
" > conftest.sym
7409 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h. */
7421 if ac_fn_c_try_link "$LINENO"; then :
7422 lt_cv_ld_exported_symbols_list=yes
7424 lt_cv_ld_exported_symbols_list=no
7426 rm -f core conftest.err conftest.$ac_objext \
7427 conftest$ac_exeext conftest.$ac_ext
7428 LDFLAGS="$save_LDFLAGS"
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7432 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7435 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7436 if ${lt_cv_ld_force_load+:} false; then :
7437 $as_echo_n "(cached
) " >&6
7439 lt_cv_ld_force_load=no
7440 cat > conftest.c << _LT_EOF
7441 int forced_loaded() { return 2;}
7443 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7444 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7445 echo "$AR cru libconftest.a conftest.o
" >&5
7446 $AR cru libconftest.a conftest.o 2>&5
7447 echo "$RANLIB libconftest.a
" >&5
7448 $RANLIB libconftest.a 2>&5
7449 cat > conftest.c << _LT_EOF
7450 int main() { return 0;}
7452 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7453 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7455 if test -s conftest.err && $GREP force_load conftest.err; then
7456 cat conftest.err >&5
7457 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7458 lt_cv_ld_force_load=yes
7460 cat conftest.err >&5
7462 rm -f conftest.err libconftest.a conftest conftest.c
7463 rm -rf conftest.dSYM
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7467 $as_echo "$lt_cv_ld_force_load" >&6; }
7469 rhapsody* | darwin1.[012])
7470 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7472 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7473 darwin*) # darwin 5.x on
7474 # if running on 10.5 or later, the deployment target defaults
7475 # to the OS version, if on x86, and 10.4, the deployment
7476 # target defaults to 10.4. Don't you love it?
7477 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7478 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7479 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7481 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7483 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7487 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7488 _lt_dar_single_mod='$single_module'
7490 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7491 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7493 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7495 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7496 _lt_dsymutil='~$DSYMUTIL $lib || :'
7504 ac_cpp='$CPP $CPPFLAGS'
7505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7509 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7510 # On Suns, sometimes $CPP names a directory.
7511 if test -n "$CPP" && test -d "$CPP"; then
7514 if test -z "$CPP"; then
7515 if ${ac_cv_prog_CPP+:} false; then :
7516 $as_echo_n "(cached
) " >&6
7518 # Double quotes because CPP needs to be expanded
7519 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7522 for ac_c_preproc_warn_flag in '' yes
7524 # Use a header file that comes with gcc, so configuring glibc
7525 # with a fresh cross-compiler works.
7526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7527 # <limits.h> exists even on freestanding compilers.
7528 # On the NeXT, cc -E runs the code through the compiler's parser,
7529 # not just through cpp. "Syntax error
" is here to catch this case.
7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7531 /* end confdefs.h. */
7533 # include <limits.h>
7535 # include <assert.h>
7539 if ac_fn_c_try_cpp "$LINENO"; then :
7542 # Broken: fails on valid input.
7545 rm -f conftest.err conftest.i conftest.$ac_ext
7547 # OK, works on sane cases. Now check whether nonexistent headers
7548 # can be detected and how.
7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h. */
7551 #include <ac_nonexistent.h>
7553 if ac_fn_c_try_cpp "$LINENO"; then :
7554 # Broken: success on invalid input.
7557 # Passes both tests.
7561 rm -f conftest.err conftest.i conftest.$ac_ext
7564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7565 rm -f conftest.i conftest.err conftest.$ac_ext
7566 if $ac_preproc_ok; then :
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7579 $as_echo "$CPP" >&6; }
7581 for ac_c_preproc_warn_flag in '' yes
7583 # Use a header file that comes with gcc, so configuring glibc
7584 # with a fresh cross-compiler works.
7585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7586 # <limits.h> exists even on freestanding compilers.
7587 # On the NeXT, cc -E runs the code through the compiler's parser,
7588 # not just through cpp. "Syntax error
" is here to catch this case.
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7592 # include <limits.h>
7594 # include <assert.h>
7598 if ac_fn_c_try_cpp "$LINENO"; then :
7601 # Broken: fails on valid input.
7604 rm -f conftest.err conftest.i conftest.$ac_ext
7606 # OK, works on sane cases. Now check whether nonexistent headers
7607 # can be detected and how.
7608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7609 /* end confdefs.h. */
7610 #include <ac_nonexistent.h>
7612 if ac_fn_c_try_cpp "$LINENO"; then :
7613 # Broken: success on invalid input.
7616 # Passes both tests.
7620 rm -f conftest.err conftest.i conftest.$ac_ext
7623 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7624 rm -f conftest.i conftest.err conftest.$ac_ext
7625 if $ac_preproc_ok; then :
7628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7630 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7631 See \`config.log' for more details
" "$LINENO" 5; }
7635 ac_cpp='$CPP $CPPFLAGS'
7636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7642 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7643 if ${ac_cv_header_stdc+:} false; then :
7644 $as_echo_n "(cached
) " >&6
7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h. */
7661 if ac_fn_c_try_compile "$LINENO"; then :
7662 ac_cv_header_stdc=yes
7664 ac_cv_header_stdc=no
7666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7668 if test $ac_cv_header_stdc = yes; then
7669 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h. */
7675 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7676 $EGREP "memchr
" >/dev/null 2>&1; then :
7679 ac_cv_header_stdc=no
7685 if test $ac_cv_header_stdc = yes; then
7686 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688 /* end confdefs.h. */
7692 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7693 $EGREP "free
" >/dev/null 2>&1; then :
7696 ac_cv_header_stdc=no
7702 if test $ac_cv_header_stdc = yes; then
7703 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7704 if test "$cross_compiling" = yes; then :
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7711 #if ((' ' & 0x0FF) == 0x020)
7712 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7713 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7715 # define ISLOWER(c) \
7716 (('a' <= (c) && (c) <= 'i') \
7717 || ('j' <= (c) && (c) <= 'r') \
7718 || ('s' <= (c) && (c) <= 'z'))
7719 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7722 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7727 for (i = 0; i < 256; i++)
7728 if (XOR (islower (i), ISLOWER (i))
7729 || toupper (i) != TOUPPER (i))
7734 if ac_fn_c_try_run "$LINENO"; then :
7737 ac_cv_header_stdc=no
7739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7740 conftest.$ac_objext conftest.beam conftest.$ac_ext
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7746 $as_echo "$ac_cv_header_stdc" >&6; }
7747 if test $ac_cv_header_stdc = yes; then
7749 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7753 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7754 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7755 inttypes.h stdint.h unistd.h
7757 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7758 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7760 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7761 cat >>confdefs.h
<<_ACEOF
7762 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7770 for ac_header
in dlfcn.h
7772 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7774 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7775 cat >>confdefs.h
<<_ACEOF
7776 #define HAVE_DLFCN_H 1
7797 # Check whether --enable-shared was given.
7798 if test "${enable_shared+set}" = set; then :
7799 enableval
=$enable_shared; p
=${PACKAGE-default}
7801 yes) enable_shared
=yes ;;
7802 no
) enable_shared
=no
;;
7805 # Look at the argument we got. We use all the common list separators.
7806 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7807 for pkg
in $enableval; do
7809 if test "X$pkg" = "X$p"; then
7828 # Check whether --enable-static was given.
7829 if test "${enable_static+set}" = set; then :
7830 enableval
=$enable_static; p
=${PACKAGE-default}
7832 yes) enable_static
=yes ;;
7833 no
) enable_static
=no
;;
7836 # Look at the argument we got. We use all the common list separators.
7837 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7838 for pkg
in $enableval; do
7840 if test "X$pkg" = "X$p"; then
7860 # Check whether --with-pic was given.
7861 if test "${with_pic+set}" = set; then :
7862 withval
=$with_pic; lt_p
=${PACKAGE-default}
7864 yes|no
) pic_mode
=$withval ;;
7867 # Look at the argument we got. We use all the common list separators.
7868 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7869 for lt_pkg
in $withval; do
7871 if test "X$lt_pkg" = "X$lt_p"; then
7883 test -z "$pic_mode" && pic_mode
=default
7891 # Check whether --enable-fast-install was given.
7892 if test "${enable_fast_install+set}" = set; then :
7893 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7895 yes) enable_fast_install
=yes ;;
7896 no
) enable_fast_install
=no
;;
7898 enable_fast_install
=no
7899 # Look at the argument we got. We use all the common list separators.
7900 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7901 for pkg
in $enableval; do
7903 if test "X$pkg" = "X$p"; then
7904 enable_fast_install
=yes
7911 enable_fast_install
=yes
7924 # This can be used to rebuild libtool when needed
7925 LIBTOOL_DEPS
="$ltmain"
7927 # Always use our own libtool.
7928 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7959 test -z "$LN_S" && LN_S
="ln -s"
7974 if test -n "${ZSH_VERSION+set}" ; then
7975 setopt NO_GLOB_SUBST
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7979 $as_echo_n "checking for objdir... " >&6; }
7980 if ${lt_cv_objdir+:} false
; then :
7981 $as_echo_n "(cached) " >&6
7983 rm -f .libs
2>/dev
/null
7984 mkdir .libs
2>/dev
/null
7985 if test -d .libs
; then
7988 # MS-DOS does not allow filenames that begin with a dot.
7991 rmdir .libs
2>/dev
/null
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7994 $as_echo "$lt_cv_objdir" >&6; }
7995 objdir
=$lt_cv_objdir
8001 cat >>confdefs.h
<<_ACEOF
8002 #define LT_OBJDIR "$lt_cv_objdir/"
8010 # AIX sometimes has problems with the GCC collect2 program. For some
8011 # reason, if we set the COLLECT_NAMES environment variable, the problems
8012 # vanish in a puff of smoke.
8013 if test "X${COLLECT_NAMES+set}" != Xset
; then
8015 export COLLECT_NAMES
8022 can_build_shared
=yes
8024 # All known linkers require a `.a' archive for static linking (except MSVC,
8025 # which needs '.lib').
8028 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8031 old_CFLAGS
="$CFLAGS"
8033 # Set sane defaults for various variables
8034 test -z "$CC" && CC
=cc
8035 test -z "$LTCC" && LTCC
=$CC
8036 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8037 test -z "$LD" && LD
=ld
8038 test -z "$ac_objext" && ac_objext
=o
8040 for cc_temp
in $compiler""; do
8042 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8043 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8048 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8051 # Only perform the check for file, if the check method requires it
8052 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8053 case $deplibs_check_method in
8055 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8057 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8058 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8059 $as_echo_n "(cached) " >&6
8063 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8066 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8067 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8068 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8069 for ac_dir
in $ac_dummy; do
8071 test -z "$ac_dir" && ac_dir
=.
8072 if test -f $ac_dir/${ac_tool_prefix}file; then
8073 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8074 if test -n "$file_magic_test_file"; then
8075 case $deplibs_check_method in
8077 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8078 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8079 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8080 $EGREP "$file_magic_regex" > /dev
/null
; then
8085 *** Warning: the command libtool uses to detect shared libraries,
8086 *** $file_magic_cmd, produces output that libtool cannot recognize.
8087 *** The result is that libtool may fail to recognize shared libraries
8088 *** as such. This will affect the creation of libtool libraries that
8089 *** depend on shared libraries, but programs linked with such libtool
8090 *** libraries will work regardless of this problem. Nevertheless, you
8091 *** may want to report the problem to your system manager and/or to
8092 *** bug-libtool@gnu.org
8102 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8107 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8108 if test -n "$MAGIC_CMD"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8110 $as_echo "$MAGIC_CMD" >&6; }
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8120 if test -z "$lt_cv_path_MAGIC_CMD"; then
8121 if test -n "$ac_tool_prefix"; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8123 $as_echo_n "checking for file... " >&6; }
8124 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8125 $as_echo_n "(cached) " >&6
8129 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8132 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8133 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8134 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8135 for ac_dir
in $ac_dummy; do
8137 test -z "$ac_dir" && ac_dir
=.
8138 if test -f $ac_dir/file; then
8139 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8140 if test -n "$file_magic_test_file"; then
8141 case $deplibs_check_method in
8143 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8144 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8145 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8146 $EGREP "$file_magic_regex" > /dev
/null
; then
8151 *** Warning: the command libtool uses to detect shared libraries,
8152 *** $file_magic_cmd, produces output that libtool cannot recognize.
8153 *** The result is that libtool may fail to recognize shared libraries
8154 *** as such. This will affect the creation of libtool libraries that
8155 *** depend on shared libraries, but programs linked with such libtool
8156 *** libraries will work regardless of this problem. Nevertheless, you
8157 *** may want to report the problem to your system manager and/or to
8158 *** bug-libtool@gnu.org
8168 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8173 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8174 if test -n "$MAGIC_CMD"; then
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8176 $as_echo "$MAGIC_CMD" >&6; }
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8179 $as_echo "no" >&6; }
8192 # Use C for the default configuration in the libtool script
8196 ac_cpp
='$CPP $CPPFLAGS'
8197 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8198 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8199 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8202 # Source file extension for C test sources.
8205 # Object file extension for compiled C test sources.
8209 # Code to be used in simple compile tests
8210 lt_simple_compile_test_code
="int some_variable = 0;"
8212 # Code to be used in simple link tests
8213 lt_simple_link_test_code
='int main(){return(0);}'
8221 # If no C compiler was specified, use CC.
8224 # If no C compiler flags were specified, use CFLAGS.
8225 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8227 # Allow CC to be a program name with arguments.
8230 # Save the default compiler, since it gets overwritten when the other
8231 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8232 compiler_DEFAULT
=$CC
8234 # save warnings/boilerplate of simple test code
8235 ac_outfile
=conftest.
$ac_objext
8236 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8237 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8238 _lt_compiler_boilerplate
=`cat conftest.err`
8241 ac_outfile
=conftest.
$ac_objext
8242 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8243 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8244 _lt_linker_boilerplate
=`cat conftest.err`
8249 ## There is no encapsulation within the following macros, do not change
8250 ## the running order or otherwise move them around unless you know exactly
8251 ## what you are doing...
8252 if test -n "$compiler"; then
8254 lt_prog_compiler_no_builtin_flag
=
8256 if test "$GCC" = yes; then
8257 case $cc_basename in
8259 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8261 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8265 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8266 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8267 $as_echo_n "(cached) " >&6
8269 lt_cv_prog_compiler_rtti_exceptions
=no
8270 ac_outfile
=conftest.
$ac_objext
8271 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8272 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8273 # Insert the option either (1) after the last *FLAGS variable, or
8274 # (2) before a word containing "conftest.", or (3) at the end.
8275 # Note that $ac_compile itself does not contain backslashes and begins
8276 # with a dollar sign (not a hyphen), so the echo should work correctly.
8277 # The option is referenced via a variable to avoid confusing sed.
8278 lt_compile
=`echo "$ac_compile" | $SED \
8279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8281 -e 's:$: $lt_compiler_flag:'`
8282 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8283 (eval "$lt_compile" 2>conftest.err
)
8285 cat conftest.err
>&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 if (exit $ac_status) && test -s "$ac_outfile"; then
8288 # The compiler can only warn and ignore the option if not recognized
8289 # So say no if there are warnings other than the usual output.
8290 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8291 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8292 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8293 lt_cv_prog_compiler_rtti_exceptions
=yes
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8300 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8302 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8303 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8315 lt_prog_compiler_wl
=
8316 lt_prog_compiler_pic
=
8317 lt_prog_compiler_static
=
8320 if test "$GCC" = yes; then
8321 lt_prog_compiler_wl
='-Wl,'
8322 lt_prog_compiler_static
='-static'
8326 # All AIX code is PIC.
8327 if test "$host_cpu" = ia64
; then
8328 # AIX 5 now supports IA64 processor
8329 lt_prog_compiler_static
='-Bstatic'
8336 # see comment about AmigaOS4 .so support
8337 lt_prog_compiler_pic
='-fPIC'
8340 # FIXME: we need at least 68020 code to build shared libraries, but
8341 # adding the `-m68020' flag to GCC prevents building anything better,
8343 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8348 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8349 # PIC is the default for these OSes.
8352 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8353 # This hack is so that the source file can tell whether it is being
8354 # built for inclusion in a dll (and should export symbols for example).
8355 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8356 # (--disable-auto-import) libraries
8357 lt_prog_compiler_pic
='-DDLL_EXPORT'
8360 darwin
* | rhapsody
*)
8361 # PIC is the default on this platform
8362 # Common symbols not allowed in MH_DYLIB files
8363 lt_prog_compiler_pic
='-fno-common'
8367 # PIC is the default for Haiku.
8368 # The "-static" flag exists, but is broken.
8369 lt_prog_compiler_static
=
8373 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8374 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8375 # sets the default TLS model and affects inlining.
8381 lt_prog_compiler_pic
='-fPIC'
8387 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8388 # Instead, we relocate shared libraries at runtime.
8392 # Just because we use GCC doesn't mean we suddenly get shared libraries
8393 # on systems that don't support them.
8394 lt_prog_compiler_can_build_shared
=no
8399 # QNX uses GNU C++, but need to define -shared option too, otherwise
8401 lt_prog_compiler_pic
='-fPIC -shared'
8405 if test -d /usr
/nec
; then
8406 lt_prog_compiler_pic
=-Kconform_pic
8411 lt_prog_compiler_pic
='-fPIC'
8415 case $cc_basename in
8416 nvcc
*) # Cuda Compiler Driver 2.2
8417 lt_prog_compiler_wl
='-Xlinker '
8418 if test -n "$lt_prog_compiler_pic"; then
8419 lt_prog_compiler_pic
="-Xcompiler $lt_prog_compiler_pic"
8424 # PORTME Check for flag to pass linker flags through the system compiler.
8427 lt_prog_compiler_wl
='-Wl,'
8428 if test "$host_cpu" = ia64
; then
8429 # AIX 5 now supports IA64 processor
8430 lt_prog_compiler_static
='-Bstatic'
8432 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8436 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8437 # This hack is so that the source file can tell whether it is being
8438 # built for inclusion in a dll (and should export symbols for example).
8439 lt_prog_compiler_pic
='-DDLL_EXPORT'
8442 hpux9
* | hpux10
* | hpux11
*)
8443 lt_prog_compiler_wl
='-Wl,'
8444 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8451 lt_prog_compiler_pic
='+Z'
8454 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8455 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8458 irix5
* | irix6
* | nonstopux
*)
8459 lt_prog_compiler_wl
='-Wl,'
8460 # PIC (with -KPIC) is the default.
8461 lt_prog_compiler_static
='-non_shared'
8464 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
8465 case $cc_basename in
8466 # old Intel for x86_64 which still supported -KPIC.
8468 lt_prog_compiler_wl
='-Wl,'
8469 lt_prog_compiler_pic
='-KPIC'
8470 lt_prog_compiler_static
='-static'
8472 # icc used to be incompatible with GCC.
8473 # ICC 10 doesn't accept -KPIC any more.
8475 lt_prog_compiler_wl
='-Wl,'
8476 lt_prog_compiler_pic
='-fPIC'
8477 lt_prog_compiler_static
='-static'
8479 # Lahey Fortran 8.1.
8481 lt_prog_compiler_wl
='-Wl,'
8482 lt_prog_compiler_pic
='--shared'
8483 lt_prog_compiler_static
='--static'
8486 # NAG Fortran compiler
8487 lt_prog_compiler_wl
='-Wl,-Wl,,'
8488 lt_prog_compiler_pic
='-PIC'
8489 lt_prog_compiler_static
='-Bstatic'
8491 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8492 # Portland Group compilers (*not* the Pentium gcc compiler,
8493 # which looks to be a dead project)
8494 lt_prog_compiler_wl
='-Wl,'
8495 lt_prog_compiler_pic
='-fpic'
8496 lt_prog_compiler_static
='-Bstatic'
8499 lt_prog_compiler_wl
='-Wl,'
8500 # All Alpha code is PIC.
8501 lt_prog_compiler_static
='-non_shared'
8503 xl
* | bgxl
* | bgf
* | mpixl
*)
8504 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8505 lt_prog_compiler_wl
='-Wl,'
8506 lt_prog_compiler_pic
='-qpic'
8507 lt_prog_compiler_static
='-qstaticlink'
8510 case `$CC -V 2>&1 | sed 5q` in
8511 *Sun\ Ceres\ Fortran
* |
*Sun
*Fortran
*\
[1-7].
* |
*Sun
*Fortran
*\
8.
[0-3]*)
8512 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8513 lt_prog_compiler_pic
='-KPIC'
8514 lt_prog_compiler_static
='-Bstatic'
8515 lt_prog_compiler_wl
=''
8517 *Sun\ F
* |
*Sun
*Fortran
*)
8518 lt_prog_compiler_pic
='-KPIC'
8519 lt_prog_compiler_static
='-Bstatic'
8520 lt_prog_compiler_wl
='-Qoption ld '
8524 lt_prog_compiler_pic
='-KPIC'
8525 lt_prog_compiler_static
='-Bstatic'
8526 lt_prog_compiler_wl
='-Wl,'
8528 *Intel
*\
[CF
]*Compiler
*)
8529 lt_prog_compiler_wl
='-Wl,'
8530 lt_prog_compiler_pic
='-fPIC'
8531 lt_prog_compiler_static
='-static'
8534 lt_prog_compiler_wl
='-Wl,'
8535 lt_prog_compiler_pic
='-fpic'
8536 lt_prog_compiler_static
='-Bstatic'
8544 lt_prog_compiler_pic
='-KPIC'
8545 lt_prog_compiler_static
='-Bstatic'
8549 # QNX uses GNU C++, but need to define -shared option too, otherwise
8551 lt_prog_compiler_pic
='-fPIC -shared'
8554 osf3
* | osf4
* | osf5
*)
8555 lt_prog_compiler_wl
='-Wl,'
8556 # All OSF/1 code is PIC.
8557 lt_prog_compiler_static
='-non_shared'
8561 lt_prog_compiler_static
='-non_shared'
8565 lt_prog_compiler_pic
='-KPIC'
8566 lt_prog_compiler_static
='-Bstatic'
8567 case $cc_basename in
8568 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
8569 lt_prog_compiler_wl
='-Qoption ld ';;
8571 lt_prog_compiler_wl
='-Wl,';;
8576 lt_prog_compiler_wl
='-Qoption ld '
8577 lt_prog_compiler_pic
='-PIC'
8578 lt_prog_compiler_static
='-Bstatic'
8581 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8582 lt_prog_compiler_wl
='-Wl,'
8583 lt_prog_compiler_pic
='-KPIC'
8584 lt_prog_compiler_static
='-Bstatic'
8588 if test -d /usr
/nec
;then
8589 lt_prog_compiler_pic
='-Kconform_pic'
8590 lt_prog_compiler_static
='-Bstatic'
8594 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8595 lt_prog_compiler_wl
='-Wl,'
8596 lt_prog_compiler_pic
='-KPIC'
8597 lt_prog_compiler_static
='-Bstatic'
8601 lt_prog_compiler_wl
='-Wl,'
8602 lt_prog_compiler_can_build_shared
=no
8606 lt_prog_compiler_pic
='-pic'
8607 lt_prog_compiler_static
='-Bstatic'
8611 lt_prog_compiler_can_build_shared
=no
8617 # For platforms which do not support PIC, -DPIC is meaningless:
8619 lt_prog_compiler_pic
=
8622 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8627 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8628 if ${lt_cv_prog_compiler_pic+:} false
; then :
8629 $as_echo_n "(cached) " >&6
8631 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8634 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8635 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
8638 # Check to make sure the PIC flag actually works.
8640 if test -n "$lt_prog_compiler_pic"; then
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8642 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8643 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8644 $as_echo_n "(cached) " >&6
8646 lt_cv_prog_compiler_pic_works
=no
8647 ac_outfile
=conftest.
$ac_objext
8648 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8649 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8650 # Insert the option either (1) after the last *FLAGS variable, or
8651 # (2) before a word containing "conftest.", or (3) at the end.
8652 # Note that $ac_compile itself does not contain backslashes and begins
8653 # with a dollar sign (not a hyphen), so the echo should work correctly.
8654 # The option is referenced via a variable to avoid confusing sed.
8655 lt_compile
=`echo "$ac_compile" | $SED \
8656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8658 -e 's:$: $lt_compiler_flag:'`
8659 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8660 (eval "$lt_compile" 2>conftest.err
)
8662 cat conftest.err
>&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 if (exit $ac_status) && test -s "$ac_outfile"; then
8665 # The compiler can only warn and ignore the option if not recognized
8666 # So say no if there are warnings other than the usual output.
8667 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8668 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8669 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8670 lt_cv_prog_compiler_pic_works
=yes
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8677 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8679 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8680 case $lt_prog_compiler_pic in
8682 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8685 lt_prog_compiler_pic
=
8686 lt_prog_compiler_can_build_shared
=no
8702 # Check to make sure the static flag actually works.
8704 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8706 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8707 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8708 $as_echo_n "(cached) " >&6
8710 lt_cv_prog_compiler_static_works
=no
8711 save_LDFLAGS
="$LDFLAGS"
8712 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8713 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8714 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8715 # The linker can only warn and ignore the option if not recognized
8716 # So say no if there are warnings
8717 if test -s conftest.err
; then
8718 # Append any errors to the config.log.
8719 cat conftest.err
1>&5
8720 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8721 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8722 if diff conftest.exp conftest.er2
>/dev
/null
; then
8723 lt_cv_prog_compiler_static_works
=yes
8726 lt_cv_prog_compiler_static_works
=yes
8730 LDFLAGS
="$save_LDFLAGS"
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8734 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8736 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8739 lt_prog_compiler_static
=
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8749 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8750 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8751 $as_echo_n "(cached) " >&6
8753 lt_cv_prog_compiler_c_o
=no
8754 $RM -r conftest
2>/dev
/null
8758 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8760 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8761 # Insert the option either (1) after the last *FLAGS variable, or
8762 # (2) before a word containing "conftest.", or (3) at the end.
8763 # Note that $ac_compile itself does not contain backslashes and begins
8764 # with a dollar sign (not a hyphen), so the echo should work correctly.
8765 lt_compile
=`echo "$ac_compile" | $SED \
8766 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8767 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8768 -e 's:$: $lt_compiler_flag:'`
8769 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8770 (eval "$lt_compile" 2>out
/conftest.err
)
8772 cat out
/conftest.err
>&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8776 # The compiler can only warn and ignore the option if not recognized
8777 # So say no if there are warnings
8778 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8779 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8780 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8781 lt_cv_prog_compiler_c_o
=yes
8786 # SGI C++ compiler will create directory out/ii_files/ for
8787 # template instantiation
8788 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8789 $RM out
/* && rmdir out
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8796 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8804 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8805 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8806 $as_echo_n "(cached) " >&6
8808 lt_cv_prog_compiler_c_o
=no
8809 $RM -r conftest
2>/dev
/null
8813 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8815 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8816 # Insert the option either (1) after the last *FLAGS variable, or
8817 # (2) before a word containing "conftest.", or (3) at the end.
8818 # Note that $ac_compile itself does not contain backslashes and begins
8819 # with a dollar sign (not a hyphen), so the echo should work correctly.
8820 lt_compile
=`echo "$ac_compile" | $SED \
8821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8823 -e 's:$: $lt_compiler_flag:'`
8824 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8825 (eval "$lt_compile" 2>out
/conftest.err
)
8827 cat out
/conftest.err
>&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8831 # The compiler can only warn and ignore the option if not recognized
8832 # So say no if there are warnings
8833 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8834 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8835 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8836 lt_cv_prog_compiler_c_o
=yes
8841 # SGI C++ compiler will create directory out/ii_files/ for
8842 # template instantiation
8843 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8844 $RM out
/* && rmdir out
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8851 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8856 hard_links
="nottested"
8857 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8858 # do not overwrite the value of need_locks provided by the user
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8860 $as_echo_n "checking if we can lock with hard links... " >&6; }
8863 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8865 ln conftest.a conftest.b
2>&5 || hard_links
=no
8866 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8868 $as_echo "$hard_links" >&6; }
8869 if test "$hard_links" = no
; then
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8871 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8884 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8887 allow_undefined_flag
=
8888 always_export_symbols
=no
8890 archive_expsym_cmds
=
8891 compiler_needs_object
=no
8892 enable_shared_with_static_runtimes
=no
8893 export_dynamic_flag_spec
=
8894 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8895 hardcode_automatic
=no
8897 hardcode_direct_absolute
=no
8898 hardcode_libdir_flag_spec
=
8899 hardcode_libdir_separator
=
8901 hardcode_shlibpath_var
=unsupported
8903 link_all_deplibs
=unknown
8906 old_archive_from_new_cmds
=
8907 old_archive_from_expsyms_cmds
=
8908 thread_safe_flag_spec
=
8909 whole_archive_flag_spec
=
8910 # include_expsyms should be a list of space-separated symbols to be *always*
8911 # included in the symbol list
8913 # exclude_expsyms can be an extended regexp of symbols to exclude
8914 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8915 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8916 # as well as any symbol that contains `d'.
8917 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8918 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8919 # platforms (ab)use it in PIC code, but their linkers get confused if
8920 # the symbol is explicitly referenced. Since portable code cannot
8921 # rely on this symbol name, it's probably fine to never include it in
8922 # preloaded symbol tables.
8923 # Exclude shared library initialization/finalization symbols.
8924 extract_expsyms_cmds
=
8927 cygwin
* | mingw
* | pw32
* | cegcc
*)
8928 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8929 # When not using gcc, we currently assume that we are using
8930 # Microsoft Visual C++.
8931 if test "$GCC" != yes; then
8936 # we just hope/assume this is gcc and not c89 (= MSVC++)
8942 linux
* | k
*bsd
*-gnu | gnu
*)
8949 # On some targets, GNU ld is compatible enough with the native linker
8950 # that we're better off using the native interface for both.
8951 lt_use_gnu_ld_interface
=no
8952 if test "$with_gnu_ld" = yes; then
8955 # The AIX port of GNU ld has always aspired to compatibility
8956 # with the native linker. However, as the warning in the GNU ld
8957 # block says, versions before 2.19.5* couldn't really create working
8958 # shared libraries, regardless of the interface used.
8959 case `$LD -v 2>&1` in
8960 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
8961 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
8962 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
8964 lt_use_gnu_ld_interface
=yes
8969 lt_use_gnu_ld_interface
=yes
8974 if test "$lt_use_gnu_ld_interface" = yes; then
8975 # If archive_cmds runs LD, not CC, wlarc should be empty
8978 # Set some defaults for GNU ld with shared library support. These
8979 # are reset later if shared libraries are not supported. Putting them
8980 # here allows them to be overridden if necessary.
8981 runpath_var
=LD_RUN_PATH
8982 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8983 export_dynamic_flag_spec
='${wl}--export-dynamic'
8984 # ancient GNU ld didn't support --whole-archive et. al.
8985 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8986 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8988 whole_archive_flag_spec
=
8990 supports_anon_versioning
=no
8991 case `$LD -v 2>&1` in
8992 *GNU\ gold
*) supports_anon_versioning
=yes ;;
8993 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8994 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8995 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8996 *\
2.11.
*) ;; # other 2.11 versions
8997 *) supports_anon_versioning
=yes ;;
9000 # See if GNU ld supports shared libraries.
9003 # On AIX/PPC, the GNU linker is very broken
9004 if test "$host_cpu" != ia64
; then
9008 *** Warning: the GNU linker, at least up to release 2.19, is reported
9009 *** to be unable to reliably create shared libraries on AIX.
9010 *** Therefore, libtool is disabling shared libraries support. If you
9011 *** really care for shared libraries, you may want to install binutils
9012 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9013 *** You will then need to restart the configuration process.
9022 # see comment about AmigaOS4 .so support
9023 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9024 archive_expsym_cmds
=''
9027 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)'
9028 hardcode_libdir_flag_spec
='-L$libdir'
9029 hardcode_minus_L
=yes
9035 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9036 allow_undefined_flag
=unsupported
9037 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9038 # support --undefined. This deserves some investigation. FIXME
9039 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9045 cygwin
* | mingw
* | pw32
* | cegcc
*)
9046 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9047 # as there is no search path for DLLs.
9048 hardcode_libdir_flag_spec
='-L$libdir'
9049 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9050 allow_undefined_flag
=unsupported
9051 always_export_symbols
=no
9052 enable_shared_with_static_runtimes
=yes
9053 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9054 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9056 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9057 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9058 # If the export-symbols file already is a .def file (1st line
9059 # is EXPORTS), use it as is; otherwise, prepend...
9060 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9061 cp $export_symbols $output_objdir/$soname.def;
9063 echo EXPORTS > $output_objdir/$soname.def;
9064 cat $export_symbols >> $output_objdir/$soname.def;
9066 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9073 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9074 link_all_deplibs
=yes
9079 hardcode_shlibpath_var
=no
9080 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9081 export_dynamic_flag_spec
='${wl}-E'
9082 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9083 # Instead, shared libraries are loaded at an image base (0x10000000 by
9084 # default) and relocated if they conflict, which is a slow very memory
9085 # consuming and fragmenting process. To avoid this, we pick a random,
9086 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9087 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9088 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9089 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'
9092 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9094 if test "$host_os" = linux-dietlibc
; then
9095 case $cc_basename in
9096 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9099 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9100 && test "$tmp_diet" = no
9102 tmp_addflag
=' $pic_flag'
9103 tmp_sharedflag
='-shared'
9104 case $cc_basename,$host_cpu in
9105 pgcc
*) # Portland Group C compiler
9106 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'
9107 tmp_addflag
=' $pic_flag'
9109 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9110 # Portland Group f77 and f90 compilers
9111 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'
9112 tmp_addflag
=' $pic_flag -Mnomain' ;;
9113 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9114 tmp_addflag
=' -i_dynamic' ;;
9115 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9116 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9117 ifc
* | ifort
*) # Intel Fortran compiler
9118 tmp_addflag
=' -nofor_main' ;;
9119 lf95
*) # Lahey Fortran 8.1
9120 whole_archive_flag_spec
=
9121 tmp_sharedflag
='--shared' ;;
9122 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9123 tmp_sharedflag
='-qmkshrobj'
9125 nvcc
*) # Cuda Compiler Driver 2.2
9126 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'
9127 compiler_needs_object
=yes
9130 case `$CC -V 2>&1 | sed 5q` in
9131 *Sun\ C
*) # Sun C 5.9
9132 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'
9133 compiler_needs_object
=yes
9134 tmp_sharedflag
='-G' ;;
9135 *Sun\ F
*) # Sun Fortran 8.3
9136 tmp_sharedflag
='-G' ;;
9138 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9140 if test "x$supports_anon_versioning" = xyes
; then
9141 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9142 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9143 echo "local: *; };" >> $output_objdir/$libname.ver~
9144 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9147 case $cc_basename in
9148 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9149 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9150 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9151 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9152 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9153 if test "x$supports_anon_versioning" = xyes
; then
9154 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9155 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9156 echo "local: *; };" >> $output_objdir/$libname.ver~
9157 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9166 netbsd
* | netbsdelf
*-gnu)
9167 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9168 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9171 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9172 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9177 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9181 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9182 *** create shared libraries on Solaris systems. Therefore, libtool
9183 *** is disabling shared libraries support. We urge you to upgrade GNU
9184 *** binutils to release 2.9.1 or newer. Another option is to modify
9185 *** your PATH or compiler configuration so that the native linker is
9186 *** used, and then restart.
9189 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9190 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9191 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9197 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9198 case `$LD -v 2>&1` in
9199 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9203 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9204 *** reliably create shared libraries on SCO systems. Therefore, libtool
9205 *** is disabling shared libraries support. We urge you to upgrade GNU
9206 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9207 *** your PATH or compiler configuration so that the native linker is
9208 *** used, and then restart.
9213 # For security reasons, it is highly recommended that you always
9214 # use absolute paths for naming shared libraries, and exclude the
9215 # DT_RUNPATH tag from executables and libraries. But doing so
9216 # requires that you compile everything twice, which is a pain.
9217 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9218 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9219 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9220 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9229 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9232 hardcode_shlibpath_var
=no
9236 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9237 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9238 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9245 if test "$ld_shlibs" = no
; then
9247 hardcode_libdir_flag_spec
=
9248 export_dynamic_flag_spec
=
9249 whole_archive_flag_spec
=
9252 # PORTME fill in a description of your system's linker (not GNU ld)
9255 allow_undefined_flag
=unsupported
9256 always_export_symbols
=yes
9257 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'
9258 # Note: this linker hardcodes the directories in LIBPATH if there
9259 # are no directories specified by -L.
9260 hardcode_minus_L
=yes
9261 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9262 # Neither direct hardcoding nor static linking is supported with a
9264 hardcode_direct
=unsupported
9269 if test "$host_cpu" = ia64
; then
9270 # On IA64, the linker does run time linking by default, so we don't
9271 # have to do anything special.
9272 aix_use_runtimelinking
=no
9273 exp_sym_flag
='-Bexport'
9276 # If we're using GNU nm, then we don't want the "-C" option.
9277 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9278 # Also, AIX nm treats weak defined symbols like other global
9279 # defined symbols, whereas GNU nm marks them as "W".
9280 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9281 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'
9283 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9285 aix_use_runtimelinking
=no
9287 # Test if we are trying to use run time linking or normal
9288 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9289 # need to do runtime linking.
9290 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9291 for ld_flag
in $LDFLAGS; do
9292 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9293 aix_use_runtimelinking
=yes
9300 exp_sym_flag
='-bexport'
9301 no_entry_flag
='-bnoentry'
9304 # When large executables or shared objects are built, AIX ld can
9305 # have problems creating the table of contents. If linking a library
9306 # or program results in "error TOC overflow" add -mminimal-toc to
9307 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9308 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9312 hardcode_direct_absolute
=yes
9313 hardcode_libdir_separator
=':'
9314 link_all_deplibs
=yes
9315 file_list_spec
='${wl}-f,'
9317 if test "$GCC" = yes; then
9318 case $host_os in aix4.
[012]|aix4.
[012].
*)
9319 # We only want to do this on AIX 4.2 and lower, the check
9320 # below for broken collect2 doesn't work under 4.3+
9321 collect2name
=`${CC} -print-prog-name=collect2`
9322 if test -f "$collect2name" &&
9323 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9325 # We have reworked collect2
9328 # We have old collect2
9329 hardcode_direct
=unsupported
9330 # It fails to find uninstalled libraries when the uninstalled
9331 # path is not listed in the libpath. Setting hardcode_minus_L
9332 # to unsupported forces relinking
9333 hardcode_minus_L
=yes
9334 hardcode_libdir_flag_spec
='-L$libdir'
9335 hardcode_libdir_separator
=
9339 shared_flag
='-shared'
9340 if test "$aix_use_runtimelinking" = yes; then
9341 shared_flag
="$shared_flag "'${wl}-G'
9346 if test "$host_cpu" = ia64
; then
9347 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9348 # chokes on -Wl,-G. The following line is correct:
9351 if test "$aix_use_runtimelinking" = yes; then
9352 shared_flag
='${wl}-G'
9354 shared_flag
='${wl}-bM:SRE'
9359 export_dynamic_flag_spec
='${wl}-bexpall'
9360 # It seems that -bexpall does not export symbols beginning with
9361 # underscore (_), so it is better to generate a list of symbols to export.
9362 always_export_symbols
=yes
9363 if test "$aix_use_runtimelinking" = yes; then
9364 # Warning - without using the other runtime loading flags (-brtl),
9365 # -berok will link without error, but may produce a broken library.
9366 allow_undefined_flag
='-berok'
9367 # Determine the default libpath from the value encoded in an
9369 if test "${lt_cv_aix_libpath+set}" = set; then
9370 aix_libpath
=$lt_cv_aix_libpath
9372 if ${lt_cv_aix_libpath_+:} false
; then :
9373 $as_echo_n "(cached) " >&6
9375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9376 /* end confdefs.h. */
9386 if ac_fn_c_try_link
"$LINENO"; then :
9388 lt_aix_libpath_sed
='
9389 /Import File Strings/,/^$/ {
9391 s/^0 *\([^ ]*\) *$/\1/
9395 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9396 # Check for a 64-bit object if we didn't find anything.
9397 if test -z "$lt_cv_aix_libpath_"; then
9398 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9401 rm -f core conftest.err conftest.
$ac_objext \
9402 conftest
$ac_exeext conftest.
$ac_ext
9403 if test -z "$lt_cv_aix_libpath_"; then
9404 lt_cv_aix_libpath_
="/usr/lib:/lib"
9409 aix_libpath
=$lt_cv_aix_libpath_
9412 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9413 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"
9415 if test "$host_cpu" = ia64
; then
9416 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9417 allow_undefined_flag
="-z nodefs"
9418 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"
9420 # Determine the default libpath from the value encoded in an
9422 if test "${lt_cv_aix_libpath+set}" = set; then
9423 aix_libpath
=$lt_cv_aix_libpath
9425 if ${lt_cv_aix_libpath_+:} false
; then :
9426 $as_echo_n "(cached) " >&6
9428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9429 /* end confdefs.h. */
9439 if ac_fn_c_try_link
"$LINENO"; then :
9441 lt_aix_libpath_sed
='
9442 /Import File Strings/,/^$/ {
9444 s/^0 *\([^ ]*\) *$/\1/
9448 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9449 # Check for a 64-bit object if we didn't find anything.
9450 if test -z "$lt_cv_aix_libpath_"; then
9451 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9454 rm -f core conftest.err conftest.
$ac_objext \
9455 conftest
$ac_exeext conftest.
$ac_ext
9456 if test -z "$lt_cv_aix_libpath_"; then
9457 lt_cv_aix_libpath_
="/usr/lib:/lib"
9462 aix_libpath
=$lt_cv_aix_libpath_
9465 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9466 # Warning - without using the other run time loading flags,
9467 # -berok will link without error, but may produce a broken library.
9468 no_undefined_flag
=' ${wl}-bernotok'
9469 allow_undefined_flag
=' ${wl}-berok'
9470 if test "$with_gnu_ld" = yes; then
9471 # We only use this code for GNU lds that support --whole-archive.
9472 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9474 # Exported symbols can be pulled into shared objects from archives
9475 whole_archive_flag_spec
='$convenience'
9477 archive_cmds_need_lc
=yes
9478 # This is similar to how AIX traditionally builds its shared libraries.
9479 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'
9487 # see comment about AmigaOS4 .so support
9488 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9489 archive_expsym_cmds
=''
9492 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)'
9493 hardcode_libdir_flag_spec
='-L$libdir'
9494 hardcode_minus_L
=yes
9500 export_dynamic_flag_spec
=-rdynamic
9503 cygwin
* | mingw
* | pw32
* | cegcc
*)
9504 # When not using gcc, we currently assume that we are using
9505 # Microsoft Visual C++.
9506 # hardcode_libdir_flag_spec is actually meaningless, as there is
9507 # no search path for DLLs.
9508 case $cc_basename in
9511 hardcode_libdir_flag_spec
=' '
9512 allow_undefined_flag
=unsupported
9513 always_export_symbols
=yes
9515 # Tell ltmain to make .lib files, not .a files.
9517 # Tell ltmain to make .dll files, not .so files.
9519 # FIXME: Setting linknames here is a bad hack.
9520 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9521 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9522 sed -n -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' -e '1\\\
!p
' < $export_symbols > $output_objdir/$soname.exp;
9524 sed -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' < $export_symbols > $output_objdir/$soname.exp;
9526 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9528 # The linker will not automatically build a static lib if we build a DLL.
9529 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9530 enable_shared_with_static_runtimes
=yes
9531 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9532 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9534 old_postinstall_cmds
='chmod 644 $oldlib'
9535 postlink_cmds
='lt_outputfile="@OUTPUT@"~
9536 lt_tool_outputfile="@TOOL_OUTPUT@"~
9537 case $lt_outputfile in
9540 lt_outputfile="$lt_outputfile.exe"
9541 lt_tool_outputfile="$lt_tool_outputfile.exe"
9544 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9545 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9546 $RM "$lt_outputfile.manifest";
9550 # Assume MSVC wrapper
9551 hardcode_libdir_flag_spec
=' '
9552 allow_undefined_flag
=unsupported
9553 # Tell ltmain to make .lib files, not .a files.
9555 # Tell ltmain to make .dll files, not .so files.
9557 # FIXME: Setting linknames here is a bad hack.
9558 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9559 # The linker will automatically build a .lib file if we build a DLL.
9560 old_archive_from_new_cmds
='true'
9561 # FIXME: Should let the user specify the lib program.
9562 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9563 enable_shared_with_static_runtimes
=yes
9568 darwin
* | rhapsody
*)
9571 archive_cmds_need_lc
=no
9573 hardcode_automatic
=yes
9574 hardcode_shlibpath_var
=unsupported
9575 if test "$lt_cv_ld_force_load" = "yes"; then
9576 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\"`'
9579 whole_archive_flag_spec
=''
9581 link_all_deplibs
=yes
9582 allow_undefined_flag
="$_lt_dar_allow_undefined"
9583 case $cc_basename in
9584 ifort
*) _lt_dar_can_shared
=yes ;;
9585 *) _lt_dar_can_shared
=$GCC ;;
9587 if test "$_lt_dar_can_shared" = "yes"; then
9588 output_verbose_link_cmd
=func_echo_all
9589 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9590 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9591 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}"
9592 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}"
9601 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9602 hardcode_libdir_flag_spec
='-L$libdir'
9603 hardcode_shlibpath_var
=no
9606 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9607 # support. Future versions do this automatically, but an explicit c++rt0.o
9608 # does not break anything, and helps significantly (at the cost of a little
9611 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9612 hardcode_libdir_flag_spec
='-R$libdir'
9614 hardcode_shlibpath_var
=no
9617 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9619 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9621 hardcode_minus_L
=yes
9622 hardcode_shlibpath_var
=no
9625 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9626 freebsd
* | dragonfly
*)
9627 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9628 hardcode_libdir_flag_spec
='-R$libdir'
9630 hardcode_shlibpath_var
=no
9634 if test "$GCC" = yes; then
9635 archive_cmds
='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9637 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'
9639 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9640 hardcode_libdir_separator
=:
9643 # hardcode_minus_L: Not really in the search PATH,
9644 # but as the default location of the library.
9645 hardcode_minus_L
=yes
9646 export_dynamic_flag_spec
='${wl}-E'
9650 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9651 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9653 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9655 if test "$with_gnu_ld" = no
; then
9656 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9657 hardcode_libdir_separator
=:
9659 hardcode_direct_absolute
=yes
9660 export_dynamic_flag_spec
='${wl}-E'
9661 # hardcode_minus_L: Not really in the search PATH,
9662 # but as the default location of the library.
9663 hardcode_minus_L
=yes
9668 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9671 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9674 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9677 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9683 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9686 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9690 # Older versions of the 11.00 compiler do not understand -b yet
9691 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9693 $as_echo_n "checking if $CC understands -b... " >&6; }
9694 if ${lt_cv_prog_compiler__b+:} false
; then :
9695 $as_echo_n "(cached) " >&6
9697 lt_cv_prog_compiler__b
=no
9698 save_LDFLAGS
="$LDFLAGS"
9699 LDFLAGS
="$LDFLAGS -b"
9700 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9701 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9702 # The linker can only warn and ignore the option if not recognized
9703 # So say no if there are warnings
9704 if test -s conftest.err
; then
9705 # Append any errors to the config.log.
9706 cat conftest.err
1>&5
9707 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9708 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9709 if diff conftest.exp conftest.er2
>/dev
/null
; then
9710 lt_cv_prog_compiler__b
=yes
9713 lt_cv_prog_compiler__b
=yes
9717 LDFLAGS
="$save_LDFLAGS"
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9721 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9723 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9724 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9726 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9732 if test "$with_gnu_ld" = no
; then
9733 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9734 hardcode_libdir_separator
=:
9739 hardcode_shlibpath_var
=no
9743 hardcode_direct_absolute
=yes
9744 export_dynamic_flag_spec
='${wl}-E'
9746 # hardcode_minus_L: Not really in the search PATH,
9747 # but as the default location of the library.
9748 hardcode_minus_L
=yes
9754 irix5
* | irix6
* | nonstopux
*)
9755 if test "$GCC" = yes; then
9756 archive_cmds
='$CC -shared $pic_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'
9757 # Try to use the -exported_symbol ld option, if it does not
9758 # work, assume that -exports_file does not work either and
9759 # implicitly export all symbols.
9760 # This should be the same for all languages, so no per-tag cache variable.
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9762 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9763 if ${lt_cv_irix_exported_symbol+:} false
; then :
9764 $as_echo_n "(cached) " >&6
9766 save_LDFLAGS
="$LDFLAGS"
9767 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9770 int foo (void) { return 0; }
9772 if ac_fn_c_try_link
"$LINENO"; then :
9773 lt_cv_irix_exported_symbol
=yes
9775 lt_cv_irix_exported_symbol
=no
9777 rm -f core conftest.err conftest.
$ac_objext \
9778 conftest
$ac_exeext conftest.
$ac_ext
9779 LDFLAGS
="$save_LDFLAGS"
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9782 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9783 if test "$lt_cv_irix_exported_symbol" = yes; then
9784 archive_expsym_cmds
='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
9787 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'
9788 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'
9790 archive_cmds_need_lc
='no'
9791 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9792 hardcode_libdir_separator
=:
9794 link_all_deplibs
=yes
9797 netbsd
* | netbsdelf
*-gnu)
9798 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9799 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9801 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9803 hardcode_libdir_flag_spec
='-R$libdir'
9805 hardcode_shlibpath_var
=no
9809 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9811 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9812 hardcode_libdir_separator
=:
9813 hardcode_shlibpath_var
=no
9820 if test -f /usr
/libexec
/ld.so
; then
9822 hardcode_shlibpath_var
=no
9823 hardcode_direct_absolute
=yes
9824 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9825 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9826 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9827 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9828 export_dynamic_flag_spec
='${wl}-E'
9831 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9832 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9833 hardcode_libdir_flag_spec
='-R$libdir'
9836 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9837 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9847 hardcode_libdir_flag_spec
='-L$libdir'
9848 hardcode_minus_L
=yes
9849 allow_undefined_flag
=unsupported
9850 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'
9851 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9855 if test "$GCC" = yes; then
9856 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9857 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'
9859 allow_undefined_flag
=' -expect_unresolved \*'
9860 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'
9862 archive_cmds_need_lc
='no'
9863 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9864 hardcode_libdir_separator
=:
9867 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9868 if test "$GCC" = yes; then
9869 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9870 archive_cmds
='$CC -shared${allow_undefined_flag} $pic_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'
9871 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9873 allow_undefined_flag
=' -expect_unresolved \*'
9874 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'
9875 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~
9876 $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'
9878 # Both c and cxx compiler support -rpath directly
9879 hardcode_libdir_flag_spec
='-rpath $libdir'
9881 archive_cmds_need_lc
='no'
9882 hardcode_libdir_separator
=:
9886 no_undefined_flag
=' -z defs'
9887 if test "$GCC" = yes; then
9889 archive_cmds
='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9890 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9891 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9893 case `$CC -V 2>&1` in
9896 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9897 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9898 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9902 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9903 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9904 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9908 hardcode_libdir_flag_spec
='-R$libdir'
9909 hardcode_shlibpath_var
=no
9911 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9913 # The compiler driver will combine and reorder linker options,
9914 # but understands `-z linker_flag'. GCC discards it without `$wl',
9915 # but is careful enough not to reorder.
9916 # Supported since Solaris 2.6 (maybe 2.5.1?)
9917 if test "$GCC" = yes; then
9918 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9920 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9924 link_all_deplibs
=yes
9928 if test "x$host_vendor" = xsequent
; then
9929 # Use $CC to link under sequent, because it throws in some extra .o
9930 # files that make .init and .fini sections work.
9931 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9933 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9935 hardcode_libdir_flag_spec
='-L$libdir'
9937 hardcode_minus_L
=yes
9938 hardcode_shlibpath_var
=no
9942 case $host_vendor in
9944 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9945 hardcode_direct
=yes # is this really true???
9948 ## LD is ld it makes a PLAMLIB
9949 ## CC just makes a GrossModule.
9950 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9951 reload_cmds
='$CC -r -o $output$reload_objs'
9955 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9956 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9959 runpath_var
='LD_RUN_PATH'
9960 hardcode_shlibpath_var
=no
9964 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9965 hardcode_shlibpath_var
=no
9966 export_dynamic_flag_spec
='-Bexport'
9970 if test -d /usr
/nec
; then
9971 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9972 hardcode_shlibpath_var
=no
9973 runpath_var
=LD_RUN_PATH
9974 hardcode_runpath_var
=yes
9979 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9980 no_undefined_flag
='${wl}-z,text'
9981 archive_cmds_need_lc
=no
9982 hardcode_shlibpath_var
=no
9983 runpath_var
='LD_RUN_PATH'
9985 if test "$GCC" = yes; then
9986 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9987 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9989 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9990 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9994 sysv5
* | sco3.2v5
* | sco5v6
*)
9995 # Note: We can NOT use -z defs as we might desire, because we do not
9996 # link with -lc, and that would cause any symbols used from libc to
9997 # always be unresolved, which means just about no library would
9998 # ever link correctly. If we're not using GNU ld we use -z text
9999 # though, which does catch some bad symbols but isn't as heavy-handed
10001 no_undefined_flag
='${wl}-z,text'
10002 allow_undefined_flag
='${wl}-z,nodefs'
10003 archive_cmds_need_lc
=no
10004 hardcode_shlibpath_var
=no
10005 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10006 hardcode_libdir_separator
=':'
10007 link_all_deplibs
=yes
10008 export_dynamic_flag_spec
='${wl}-Bexport'
10009 runpath_var
='LD_RUN_PATH'
10011 if test "$GCC" = yes; then
10012 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10013 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10015 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10016 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10021 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10022 hardcode_libdir_flag_spec
='-L$libdir'
10023 hardcode_shlibpath_var
=no
10031 if test x
$host_vendor = xsni
; then
10033 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10034 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10041 $as_echo "$ld_shlibs" >&6; }
10042 test "$ld_shlibs" = no
&& can_build_shared
=no
10044 with_gnu_ld
=$with_gnu_ld
10061 # Do we need to explicitly link libc?
10063 case "x$archive_cmds_need_lc" in
10065 # Assume -lc should be added
10066 archive_cmds_need_lc
=yes
10068 if test "$enable_shared" = yes && test "$GCC" = yes; then
10069 case $archive_cmds in
10071 # FIXME: we may have to deal with multi-command sequences.
10074 # Test whether the compiler implicitly links with -lc since on some
10075 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10076 # to ld, don't add -lc before -lgcc.
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10078 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10079 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10080 $as_echo_n "(cached) " >&6
10083 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10086 (eval $ac_compile) 2>&5
10088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10089 test $ac_status = 0; } 2>conftest.err
; then
10092 libobjs
=conftest.
$ac_objext
10094 wl
=$lt_prog_compiler_wl
10095 pic_flag
=$lt_prog_compiler_pic
10101 lt_save_allow_undefined_flag
=$allow_undefined_flag
10102 allow_undefined_flag
=
10103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10104 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10107 test $ac_status = 0; }
10109 lt_cv_archive_cmds_need_lc
=no
10111 lt_cv_archive_cmds_need_lc
=yes
10113 allow_undefined_flag
=$lt_save_allow_undefined_flag
10115 cat conftest.err
1>&5
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10121 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10122 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10281 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10283 if test "$GCC" = yes; then
10285 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10286 *) lt_awk_arg
="/^libraries:/" ;;
10289 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10290 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10292 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10293 case $lt_search_path_spec in
10295 # if the path contains ";" then we assume it to be the separator
10296 # otherwise default to the standard path separator (i.e. ":") - it is
10297 # assumed that no part of a normal pathname contains ";" but that should
10298 # okay in the real world where ";" in dirpaths is itself problematic.
10299 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10302 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10305 # Ok, now we have the path, separated by spaces, we can step through it
10306 # and add multilib dir if necessary.
10307 lt_tmp_lt_search_path_spec
=
10308 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10309 for lt_sys_path
in $lt_search_path_spec; do
10310 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10311 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10313 test -d "$lt_sys_path" && \
10314 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10317 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10318 BEGIN {RS=" "; FS="/|\n";} {
10321 for (lt_i = NF; lt_i > 0; lt_i--) {
10322 if ($lt_i != "" && $lt_i != ".") {
10323 if ($lt_i == "..") {
10326 if (lt_count == 0) {
10327 lt_foo="/" $lt_i lt_foo;
10334 if (lt_foo != "") { lt_freq[lt_foo]++; }
10335 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10337 # AWK program above erroneously prepends '/' to C:/dos/paths
10340 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10341 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10343 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10345 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10347 library_names_spec
=
10348 libname_spec
='lib$name'
10352 postuninstall_cmds
=
10356 shlibpath_overrides_runpath
=unknown
10358 dynamic_linker
="$host_os ld.so"
10359 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10360 need_lib_prefix
=unknown
10361 hardcode_into_libs
=no
10363 # when you set need_version to no, make sure it does not cause -set_version
10364 # flags to be left without arguments
10365 need_version
=unknown
10369 version_type
=linux
# correct to gnu/linux during the next big refactor
10370 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10371 shlibpath_var
=LIBPATH
10373 # AIX 3 has no versioning support, so we append a major version to the name.
10374 soname_spec
='${libname}${release}${shared_ext}$major'
10378 version_type
=linux
# correct to gnu/linux during the next big refactor
10381 hardcode_into_libs
=yes
10382 if test "$host_cpu" = ia64
; then
10383 # AIX 5 supports IA64
10384 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10385 shlibpath_var
=LD_LIBRARY_PATH
10387 # With GCC up to 2.95.x, collect2 would create an import file
10388 # for dependence libraries. The import file would start with
10389 # the line `#! .'. This would cause the generated library to
10390 # depend on `.', always an invalid library. This was fixed in
10391 # development snapshots of GCC prior to 3.0.
10393 aix4 | aix4.
[01] | aix4.
[01].
*)
10394 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10396 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10399 can_build_shared
=no
10403 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10404 # soname into executable. Probably we can add versioning support to
10405 # collect2, so additional links can be useful in future.
10406 if test "$aix_use_runtimelinking" = yes; then
10407 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10408 # instead of lib<name>.a to let people know that these are not
10409 # typical AIX shared libraries.
10410 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10412 # We preserve .a as extension for shared libraries through AIX4.2
10413 # and later when we are not doing run time linking.
10414 library_names_spec
='${libname}${release}.a $libname.a'
10415 soname_spec
='${libname}${release}${shared_ext}$major'
10417 shlibpath_var
=LIBPATH
10424 # Since July 2007 AmigaOS4 officially supports .so libraries.
10425 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10426 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10429 library_names_spec
='$libname.ixlibrary $libname.a'
10430 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10431 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'
10437 library_names_spec
='${libname}${shared_ext}'
10438 dynamic_linker
="$host_os ld.so"
10439 shlibpath_var
=LIBRARY_PATH
10443 version_type
=linux
# correct to gnu/linux during the next big refactor
10445 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446 soname_spec
='${libname}${release}${shared_ext}$major'
10447 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10448 shlibpath_var
=LD_LIBRARY_PATH
10449 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10450 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10451 # the default ld.so.conf also contains /usr/contrib/lib and
10452 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10453 # libtool to hard-code these into programs
10456 cygwin
* | mingw
* | pw32
* | cegcc
*)
10457 version_type
=windows
10462 case $GCC,$cc_basename in
10465 library_names_spec
='$libname.dll.a'
10466 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10467 postinstall_cmds
='base_file=`basename \${file}`~
10468 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10469 dldir=$destdir/`dirname \$dlpath`~
10470 test -d \$dldir || mkdir -p \$dldir~
10471 $install_prog $dir/$dlname \$dldir/$dlname~
10472 chmod a+x \$dldir/$dlname~
10473 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10474 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10476 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10477 dlpath=$dir/\$dldll~
10479 shlibpath_overrides_runpath
=yes
10483 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10484 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10486 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10489 # MinGW DLLs use traditional 'lib' prefix
10490 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10493 # pw32 DLLs use 'pw' prefix rather than 'lib'
10494 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10497 dynamic_linker
='Win32 ld.exe'
10502 libname_spec
='$name'
10503 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10504 library_names_spec
='${libname}.dll.lib'
10508 sys_lib_search_path_spec
=
10511 for lt_path
in $LIB
10514 # Let DOS variable expansion print the short 8.3 style file name.
10515 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10516 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
10519 # Convert to MSYS style.
10520 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10523 # Convert to unix form, then to dos form, then back to unix form
10524 # but this time dos style (no spaces!) so that the unix form looks
10525 # like /cygdrive/c/PROGRA~1:/cygdr...
10526 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
10527 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10528 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10531 sys_lib_search_path_spec
="$LIB"
10532 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
10533 # It is most probably a Windows format PATH.
10534 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10536 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10538 # FIXME: find the short name or the path components, as spaces are
10539 # common. (e.g. "Program Files" -> "PROGRA~1")
10543 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10544 postinstall_cmds
='base_file=`basename \${file}`~
10545 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10546 dldir=$destdir/`dirname \$dlpath`~
10547 test -d \$dldir || mkdir -p \$dldir~
10548 $install_prog $dir/$dlname \$dldir/$dlname'
10549 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10550 dlpath=$dir/\$dldll~
10552 shlibpath_overrides_runpath
=yes
10553 dynamic_linker
='Win32 link.exe'
10557 # Assume MSVC wrapper
10558 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10559 dynamic_linker
='Win32 ld.exe'
10562 # FIXME: first we should search . and the directory the executable is in
10566 darwin
* | rhapsody
*)
10567 dynamic_linker
="$host_os dyld"
10568 version_type
=darwin
10571 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10572 soname_spec
='${libname}${release}${major}$shared_ext'
10573 shlibpath_overrides_runpath
=yes
10574 shlibpath_var
=DYLD_LIBRARY_PATH
10575 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10577 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10578 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10582 version_type
=linux
# correct to gnu/linux during the next big refactor
10585 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10586 soname_spec
='${libname}${release}${shared_ext}$major'
10587 shlibpath_var
=LD_LIBRARY_PATH
10590 freebsd
* | dragonfly
*)
10591 # DragonFly does not have aout. When/if they implement a new
10592 # versioning mechanism, adjust this.
10593 if test -x /usr
/bin
/objformat
; then
10594 objformat
=`/usr/bin/objformat`
10597 freebsd
[23].
*) objformat
=aout
;;
10598 *) objformat
=elf
;;
10601 version_type
=freebsd-
$objformat
10602 case $version_type in
10604 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10609 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10613 shlibpath_var
=LD_LIBRARY_PATH
10616 shlibpath_overrides_runpath
=yes
10618 freebsd3.
[01]* | freebsdelf3.
[01]*)
10619 shlibpath_overrides_runpath
=yes
10620 hardcode_into_libs
=yes
10622 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10623 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10624 shlibpath_overrides_runpath
=no
10625 hardcode_into_libs
=yes
10627 *) # from 4.6 on, and DragonFly
10628 shlibpath_overrides_runpath
=yes
10629 hardcode_into_libs
=yes
10635 version_type
=linux
# correct to gnu/linux during the next big refactor
10638 dynamic_linker
="$host_os runtime_loader"
10639 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10640 soname_spec
='${libname}${release}${shared_ext}$major'
10641 shlibpath_var
=LIBRARY_PATH
10642 shlibpath_overrides_runpath
=yes
10643 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10644 hardcode_into_libs
=yes
10647 hpux9
* | hpux10
* | hpux11
*)
10648 # Give a soname corresponding to the major version so that dld.sl refuses to
10649 # link against other versions.
10656 hardcode_into_libs
=yes
10657 dynamic_linker
="$host_os dld.so"
10658 shlibpath_var
=LD_LIBRARY_PATH
10659 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10660 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661 soname_spec
='${libname}${release}${shared_ext}$major'
10662 if test "X$HPUX_IA64_MODE" = X32
; then
10663 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10665 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10667 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10671 hardcode_into_libs
=yes
10672 dynamic_linker
="$host_os dld.sl"
10673 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10674 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10675 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676 soname_spec
='${libname}${release}${shared_ext}$major'
10677 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10678 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10682 dynamic_linker
="$host_os dld.sl"
10683 shlibpath_var
=SHLIB_PATH
10684 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10685 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10686 soname_spec
='${libname}${release}${shared_ext}$major'
10689 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10690 postinstall_cmds
='chmod 555 $lib'
10691 # or fails outright, so override atomically:
10692 install_override_mode
=555
10696 version_type
=linux
# correct to gnu/linux during the next big refactor
10699 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10700 soname_spec
='${libname}${release}${shared_ext}$major'
10701 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10702 shlibpath_var
=LD_LIBRARY_PATH
10703 shlibpath_overrides_runpath
=no
10704 hardcode_into_libs
=yes
10707 irix5
* | irix6
* | nonstopux
*)
10709 nonstopux
*) version_type
=nonstopux
;;
10711 if test "$lt_cv_prog_gnu_ld" = yes; then
10712 version_type
=linux
# correct to gnu/linux during the next big refactor
10719 soname_spec
='${libname}${release}${shared_ext}$major'
10720 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10722 irix5
* | nonstopux
*)
10723 libsuff
= shlibsuff
=
10726 case $LD in # libtool.m4 will add one of these switches to LD
10727 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10728 libsuff
= shlibsuff
= libmagic
=32-bit;;
10729 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10730 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10731 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10732 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10733 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10737 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10738 shlibpath_overrides_runpath
=no
10739 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10740 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10741 hardcode_into_libs
=yes
10744 # No shared lib support for Linux oldld, aout, or coff.
10745 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10749 # This must be glibc/ELF.
10750 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
10751 version_type
=linux
# correct to gnu/linux during the next big refactor
10754 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10755 soname_spec
='${libname}${release}${shared_ext}$major'
10756 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10757 shlibpath_var
=LD_LIBRARY_PATH
10758 shlibpath_overrides_runpath
=no
10760 # Some binutils ld are patched to set DT_RUNPATH
10761 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10762 $as_echo_n "(cached) " >&6
10764 lt_cv_shlibpath_overrides_runpath
=no
10765 save_LDFLAGS
=$LDFLAGS
10766 save_libdir
=$libdir
10767 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10768 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10780 if ac_fn_c_try_link
"$LINENO"; then :
10781 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10782 lt_cv_shlibpath_overrides_runpath
=yes
10785 rm -f core conftest.err conftest.
$ac_objext \
10786 conftest
$ac_exeext conftest.
$ac_ext
10787 LDFLAGS
=$save_LDFLAGS
10788 libdir
=$save_libdir
10792 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10794 # This implies no fast_install, which is unacceptable.
10795 # Some rework will be needed to allow for fast_install
10796 # before this can be enabled.
10797 hardcode_into_libs
=yes
10799 # Append ld.so.conf contents to the search path
10800 if test -f /etc
/ld.so.conf
; then
10801 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' ' '`
10802 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10805 # We used to test for /lib/ld.so.1 and disable shared libraries on
10806 # powerpc, because MkLinux only supported shared libraries with the
10807 # GNU dynamic linker. Since this was broken with cross compilers,
10808 # most powerpc-linux boxes support dynamic linking these days and
10809 # people can always --disable-shared, the test was removed, and we
10810 # assume the GNU/Linux dynamic linker is in use.
10811 dynamic_linker
='GNU/Linux ld.so'
10818 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10819 soname_spec
='${libname}${release}${shared_ext}$major'
10820 shlibpath_var
=LD_LIBRARY_PATH
10821 shlibpath_overrides_runpath
=no
10822 hardcode_into_libs
=yes
10823 dynamic_linker
='NetBSD ld.elf_so'
10830 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10831 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10832 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10833 dynamic_linker
='NetBSD (a.out) ld.so'
10835 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10836 soname_spec
='${libname}${release}${shared_ext}$major'
10837 dynamic_linker
='NetBSD ld.elf_so'
10839 shlibpath_var
=LD_LIBRARY_PATH
10840 shlibpath_overrides_runpath
=yes
10841 hardcode_into_libs
=yes
10845 version_type
=linux
# correct to gnu/linux during the next big refactor
10846 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10847 shlibpath_var
=LD_LIBRARY_PATH
10848 shlibpath_overrides_runpath
=yes
10855 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10856 soname_spec
='${libname}${release}${shared_ext}$major'
10857 shlibpath_var
=LD_LIBRARY_PATH
10858 shlibpath_overrides_runpath
=no
10859 hardcode_into_libs
=yes
10860 dynamic_linker
='ldqnx.so'
10865 sys_lib_dlsearch_path_spec
="/usr/lib"
10867 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10869 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10870 *) need_version
=no
;;
10872 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10873 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10874 shlibpath_var
=LD_LIBRARY_PATH
10875 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10877 openbsd2.
[89] | openbsd2.
[89].
*)
10878 shlibpath_overrides_runpath
=no
10881 shlibpath_overrides_runpath
=yes
10885 shlibpath_overrides_runpath
=yes
10890 libname_spec
='$name'
10893 library_names_spec
='$libname${shared_ext} $libname.a'
10894 dynamic_linker
='OS/2 ld.exe'
10895 shlibpath_var
=LIBPATH
10898 osf3
* | osf4
* | osf5
*)
10902 soname_spec
='${libname}${release}${shared_ext}$major'
10903 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10904 shlibpath_var
=LD_LIBRARY_PATH
10905 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10906 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10914 version_type
=linux
# correct to gnu/linux during the next big refactor
10917 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10918 soname_spec
='${libname}${release}${shared_ext}$major'
10919 shlibpath_var
=LD_LIBRARY_PATH
10920 shlibpath_overrides_runpath
=yes
10921 hardcode_into_libs
=yes
10922 # ldd complains unless libraries are executable
10923 postinstall_cmds
='chmod +x $lib'
10928 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10929 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10930 shlibpath_var
=LD_LIBRARY_PATH
10931 shlibpath_overrides_runpath
=yes
10932 if test "$with_gnu_ld" = yes; then
10939 version_type
=linux
# correct to gnu/linux during the next big refactor
10940 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10941 soname_spec
='${libname}${release}${shared_ext}$major'
10942 shlibpath_var
=LD_LIBRARY_PATH
10943 case $host_vendor in
10945 shlibpath_overrides_runpath
=no
10947 runpath_var
=LD_RUN_PATH
10955 shlibpath_overrides_runpath
=no
10956 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10962 if test -d /usr
/nec
;then
10963 version_type
=linux
# correct to gnu/linux during the next big refactor
10964 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10965 soname_spec
='$libname${shared_ext}.$major'
10966 shlibpath_var
=LD_LIBRARY_PATH
10970 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10971 version_type
=freebsd-elf
10974 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10975 soname_spec
='${libname}${release}${shared_ext}$major'
10976 shlibpath_var
=LD_LIBRARY_PATH
10977 shlibpath_overrides_runpath
=yes
10978 hardcode_into_libs
=yes
10979 if test "$with_gnu_ld" = yes; then
10980 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10982 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10985 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10989 sys_lib_dlsearch_path_spec
='/usr/lib'
10993 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10994 version_type
=linux
# correct to gnu/linux during the next big refactor
10997 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10998 shlibpath_var
=LD_LIBRARY_PATH
10999 shlibpath_overrides_runpath
=no
11000 hardcode_into_libs
=yes
11004 version_type
=linux
# correct to gnu/linux during the next big refactor
11005 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006 soname_spec
='${libname}${release}${shared_ext}$major'
11007 shlibpath_var
=LD_LIBRARY_PATH
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11015 $as_echo "$dynamic_linker" >&6; }
11016 test "$dynamic_linker" = no
&& can_build_shared
=no
11018 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11019 if test "$GCC" = yes; then
11020 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11023 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11024 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11026 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11027 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11122 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11124 if test -n "$hardcode_libdir_flag_spec" ||
11125 test -n "$runpath_var" ||
11126 test "X$hardcode_automatic" = "Xyes" ; then
11128 # We can hardcode non-existent directories.
11129 if test "$hardcode_direct" != no
&&
11130 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11131 # have to relink, otherwise we might link with an installed library
11132 # when we should be linking with a yet-to-be-installed one
11133 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11134 test "$hardcode_minus_L" != no
; then
11135 # Linking always hardcodes the temporary library directory.
11136 hardcode_action
=relink
11138 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11139 hardcode_action
=immediate
11142 # We cannot hardcode anything, or else we can only hardcode existing
11144 hardcode_action
=unsupported
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11147 $as_echo "$hardcode_action" >&6; }
11149 if test "$hardcode_action" = relink ||
11150 test "$inherit_rpath" = yes; then
11151 # Fast installation is not supported
11152 enable_fast_install
=no
11153 elif test "$shlibpath_overrides_runpath" = yes ||
11154 test "$enable_shared" = no
; then
11155 # Fast installation is not necessary
11156 enable_fast_install
=needless
11164 if test "x$enable_dlopen" != xyes
; then
11165 enable_dlopen
=unknown
11166 enable_dlopen_self
=unknown
11167 enable_dlopen_self_static
=unknown
11174 lt_cv_dlopen
="load_add_on"
11176 lt_cv_dlopen_self
=yes
11179 mingw
* | pw32
* | cegcc
*)
11180 lt_cv_dlopen
="LoadLibrary"
11185 lt_cv_dlopen
="dlopen"
11190 # if libdl is installed we need to link against it
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11192 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11193 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11194 $as_echo_n "(cached) " >&6
11196 ac_check_lib_save_LIBS
=$LIBS
11198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11199 /* end confdefs.h. */
11201 /* Override any GCC internal prototype to avoid an error.
11202 Use char because int might match the return type of a GCC
11203 builtin and then its argument prototype would still apply. */
11216 if ac_fn_c_try_link
"$LINENO"; then :
11217 ac_cv_lib_dl_dlopen
=yes
11219 ac_cv_lib_dl_dlopen
=no
11221 rm -f core conftest.err conftest.
$ac_objext \
11222 conftest
$ac_exeext conftest.
$ac_ext
11223 LIBS
=$ac_check_lib_save_LIBS
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11226 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11227 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11228 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11231 lt_cv_dlopen
="dyld"
11233 lt_cv_dlopen_self
=yes
11240 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11241 if test "x$ac_cv_func_shl_load" = xyes
; then :
11242 lt_cv_dlopen
="shl_load"
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11245 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11246 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11247 $as_echo_n "(cached) " >&6
11249 ac_check_lib_save_LIBS
=$LIBS
11251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h. */
11254 /* Override any GCC internal prototype to avoid an error.
11255 Use char because int might match the return type of a GCC
11256 builtin and then its argument prototype would still apply. */
11264 return shl_load ();
11269 if ac_fn_c_try_link
"$LINENO"; then :
11270 ac_cv_lib_dld_shl_load
=yes
11272 ac_cv_lib_dld_shl_load
=no
11274 rm -f core conftest.err conftest.
$ac_objext \
11275 conftest
$ac_exeext conftest.
$ac_ext
11276 LIBS
=$ac_check_lib_save_LIBS
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11279 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11280 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11281 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11283 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11284 if test "x$ac_cv_func_dlopen" = xyes
; then :
11285 lt_cv_dlopen
="dlopen"
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11288 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11289 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11290 $as_echo_n "(cached) " >&6
11292 ac_check_lib_save_LIBS
=$LIBS
11294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11295 /* end confdefs.h. */
11297 /* Override any GCC internal prototype to avoid an error.
11298 Use char because int might match the return type of a GCC
11299 builtin and then its argument prototype would still apply. */
11312 if ac_fn_c_try_link
"$LINENO"; then :
11313 ac_cv_lib_dl_dlopen
=yes
11315 ac_cv_lib_dl_dlopen
=no
11317 rm -f core conftest.err conftest.
$ac_objext \
11318 conftest
$ac_exeext conftest.
$ac_ext
11319 LIBS
=$ac_check_lib_save_LIBS
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11322 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11323 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11324 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11327 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11328 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11329 $as_echo_n "(cached) " >&6
11331 ac_check_lib_save_LIBS
=$LIBS
11332 LIBS
="-lsvld $LIBS"
11333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11334 /* end confdefs.h. */
11336 /* Override any GCC internal prototype to avoid an error.
11337 Use char because int might match the return type of a GCC
11338 builtin and then its argument prototype would still apply. */
11351 if ac_fn_c_try_link
"$LINENO"; then :
11352 ac_cv_lib_svld_dlopen
=yes
11354 ac_cv_lib_svld_dlopen
=no
11356 rm -f core conftest.err conftest.
$ac_objext \
11357 conftest
$ac_exeext conftest.
$ac_ext
11358 LIBS
=$ac_check_lib_save_LIBS
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11361 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11362 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11363 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11366 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11367 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11368 $as_echo_n "(cached) " >&6
11370 ac_check_lib_save_LIBS
=$LIBS
11372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11373 /* end confdefs.h. */
11375 /* Override any GCC internal prototype to avoid an error.
11376 Use char because int might match the return type of a GCC
11377 builtin and then its argument prototype would still apply. */
11385 return dld_link ();
11390 if ac_fn_c_try_link
"$LINENO"; then :
11391 ac_cv_lib_dld_dld_link
=yes
11393 ac_cv_lib_dld_dld_link
=no
11395 rm -f core conftest.err conftest.
$ac_objext \
11396 conftest
$ac_exeext conftest.
$ac_ext
11397 LIBS
=$ac_check_lib_save_LIBS
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11400 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11401 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11402 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11423 if test "x$lt_cv_dlopen" != xno
; then
11429 case $lt_cv_dlopen in
11431 save_CPPFLAGS
="$CPPFLAGS"
11432 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11434 save_LDFLAGS
="$LDFLAGS"
11435 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11438 LIBS
="$lt_cv_dlopen_libs $LIBS"
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11441 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11442 if ${lt_cv_dlopen_self+:} false
; then :
11443 $as_echo_n "(cached) " >&6
11445 if test "$cross_compiling" = yes; then :
11446 lt_cv_dlopen_self
=cross
11448 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11449 lt_status
=$lt_dlunknown
11450 cat > conftest.
$ac_ext <<_LT_EOF
11451 #line $LINENO "configure"
11452 #include "confdefs.h"
11461 # define LT_DLGLOBAL RTLD_GLOBAL
11464 # define LT_DLGLOBAL DL_GLOBAL
11466 # define LT_DLGLOBAL 0
11470 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11471 find out it does not work in some platform. */
11472 #ifndef LT_DLLAZY_OR_NOW
11474 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11477 # define LT_DLLAZY_OR_NOW DL_LAZY
11480 # define LT_DLLAZY_OR_NOW RTLD_NOW
11483 # define LT_DLLAZY_OR_NOW DL_NOW
11485 # define LT_DLLAZY_OR_NOW 0
11492 /* When -fvisbility=hidden is used, assume the code has been annotated
11493 correspondingly for the symbols needed. */
11494 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11495 int fnord () __attribute__((visibility("default")));
11498 int fnord () { return 42; }
11501 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11502 int status = $lt_dlunknown;
11506 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11509 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11510 else puts (dlerror ());
11512 /* dlclose (self); */
11520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11521 (eval $ac_link) 2>&5
11523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11524 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11525 (.
/conftest
; exit; ) >&5 2>/dev
/null
11527 case x
$lt_status in
11528 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11529 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11530 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11533 # compilation failed
11534 lt_cv_dlopen_self
=no
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11542 $as_echo "$lt_cv_dlopen_self" >&6; }
11544 if test "x$lt_cv_dlopen_self" = xyes
; then
11545 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11547 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11548 if ${lt_cv_dlopen_self_static+:} false
; then :
11549 $as_echo_n "(cached) " >&6
11551 if test "$cross_compiling" = yes; then :
11552 lt_cv_dlopen_self_static
=cross
11554 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11555 lt_status
=$lt_dlunknown
11556 cat > conftest.
$ac_ext <<_LT_EOF
11557 #line $LINENO "configure"
11558 #include "confdefs.h"
11567 # define LT_DLGLOBAL RTLD_GLOBAL
11570 # define LT_DLGLOBAL DL_GLOBAL
11572 # define LT_DLGLOBAL 0
11576 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11577 find out it does not work in some platform. */
11578 #ifndef LT_DLLAZY_OR_NOW
11580 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11583 # define LT_DLLAZY_OR_NOW DL_LAZY
11586 # define LT_DLLAZY_OR_NOW RTLD_NOW
11589 # define LT_DLLAZY_OR_NOW DL_NOW
11591 # define LT_DLLAZY_OR_NOW 0
11598 /* When -fvisbility=hidden is used, assume the code has been annotated
11599 correspondingly for the symbols needed. */
11600 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11601 int fnord () __attribute__((visibility("default")));
11604 int fnord () { return 42; }
11607 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11608 int status = $lt_dlunknown;
11612 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11615 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11616 else puts (dlerror ());
11618 /* dlclose (self); */
11626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11627 (eval $ac_link) 2>&5
11629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11630 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11631 (.
/conftest
; exit; ) >&5 2>/dev
/null
11633 case x
$lt_status in
11634 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11635 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11636 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11639 # compilation failed
11640 lt_cv_dlopen_self_static
=no
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11648 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11651 CPPFLAGS
="$save_CPPFLAGS"
11652 LDFLAGS
="$save_LDFLAGS"
11657 case $lt_cv_dlopen_self in
11658 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11659 *) enable_dlopen_self
=unknown
;;
11662 case $lt_cv_dlopen_self_static in
11663 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11664 *) enable_dlopen_self_static
=unknown
;;
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11687 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11688 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11689 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11690 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11692 $as_echo "yes" >&6; }
11694 # FIXME - insert some real tests, host_os isn't really good enough
11697 if test -n "$STRIP" ; then
11698 striplib
="$STRIP -x"
11699 old_striplib
="$STRIP -S"
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11701 $as_echo "yes" >&6; }
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11704 $as_echo "no" >&6; }
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709 $as_echo "no" >&6; }
11725 # Report which library types will actually be built
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11727 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11729 $as_echo "$can_build_shared" >&6; }
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11732 $as_echo_n "checking whether to build shared libraries... " >&6; }
11733 test "$can_build_shared" = "no" && enable_shared
=no
11735 # On AIX, shared libraries and static libraries use the same namespace, and
11736 # are all built from PIC.
11739 test "$enable_shared" = yes && enable_static
=no
11740 if test -n "$RANLIB"; then
11741 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11742 postinstall_cmds
='$RANLIB $lib'
11747 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11748 test "$enable_shared" = yes && enable_static
=no
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11753 $as_echo "$enable_shared" >&6; }
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11756 $as_echo_n "checking whether to build static libraries... " >&6; }
11757 # Make sure either enable_shared or enable_static is yes.
11758 test "$enable_shared" = yes || enable_static
=yes
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11760 $as_echo "$enable_static" >&6; }
11767 ac_cpp
='$CPP $CPPFLAGS'
11768 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11769 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11770 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11788 ac_config_commands
="$ac_config_commands libtool"
11793 # Only expand once:
11797 if test 0 = "0"; then
11798 supported_build
=yes
11799 CPPFLAGS
="$CPPFLAGS -DNDEBUG"
11802 if test "x$GCC" = "xyes" ; then
11803 CFLAGS
="$CFLAGS -g -O0"
11804 CXXFLAGS
="$CXXFLAGS -g -O0"
11807 if test "x$supported_build" = "xno"; then
11809 TR_UNSTABLE_FALSE
='#'
11811 TR_UNSTABLE_TRUE
='#'
11818 ## MANDATORY for everything
11821 CURL_MINIMUM
=7.15.4
11823 LIBEVENT_MINIMUM
=2.0.10
11825 OPENSSL_MINIMUM
=0.9.4
11830 ## MANDATORY for the GTK+ client
11836 GLIB_MINIMUM
=2.32.0
11843 ## OPTIONAL for the GTK+ client
11847 # create the tray icon with AppIndicator
11848 LIBAPPINDICATOR_MINIMUM
=0.4.90
11853 ac_cpp
='$CPP $CPPFLAGS'
11854 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11855 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11856 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11857 if test -n "$ac_tool_prefix"; then
11858 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11859 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861 $as_echo_n "checking for $ac_word... " >&6; }
11862 if ${ac_cv_prog_CC+:} false
; then :
11863 $as_echo_n "(cached) " >&6
11865 if test -n "$CC"; then
11866 ac_cv_prog_CC
="$CC" # Let the user override the test.
11868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11869 for as_dir
in $PATH
11872 test -z "$as_dir" && as_dir
=.
11873 for ac_exec_ext
in '' $ac_executable_extensions; do
11874 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11875 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
11876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11886 if test -n "$CC"; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11888 $as_echo "$CC" >&6; }
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11896 if test -z "$ac_cv_prog_CC"; then
11898 # Extract the first word of "gcc", so it can be a program name with args.
11899 set dummy gcc
; ac_word
=$2
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11901 $as_echo_n "checking for $ac_word... " >&6; }
11902 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
11903 $as_echo_n "(cached) " >&6
11905 if test -n "$ac_ct_CC"; then
11906 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
11908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11909 for as_dir
in $PATH
11912 test -z "$as_dir" && as_dir
=.
11913 for ac_exec_ext
in '' $ac_executable_extensions; do
11914 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11915 ac_cv_prog_ac_ct_CC
="gcc"
11916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11925 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
11926 if test -n "$ac_ct_CC"; then
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11928 $as_echo "$ac_ct_CC" >&6; }
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11931 $as_echo "no" >&6; }
11934 if test "x$ac_ct_CC" = x
; then
11937 case $cross_compiling:$ac_tool_warned in
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11941 ac_tool_warned
=yes ;;
11946 CC
="$ac_cv_prog_CC"
11949 if test -z "$CC"; then
11950 if test -n "$ac_tool_prefix"; then
11951 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11952 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11954 $as_echo_n "checking for $ac_word... " >&6; }
11955 if ${ac_cv_prog_CC+:} false
; then :
11956 $as_echo_n "(cached) " >&6
11958 if test -n "$CC"; then
11959 ac_cv_prog_CC
="$CC" # Let the user override the test.
11961 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11962 for as_dir
in $PATH
11965 test -z "$as_dir" && as_dir
=.
11966 for ac_exec_ext
in '' $ac_executable_extensions; do
11967 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11968 ac_cv_prog_CC
="${ac_tool_prefix}cc"
11969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11979 if test -n "$CC"; then
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11981 $as_echo "$CC" >&6; }
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984 $as_echo "no" >&6; }
11990 if test -z "$CC"; then
11991 # Extract the first word of "cc", so it can be a program name with args.
11992 set dummy cc
; ac_word
=$2
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11994 $as_echo_n "checking for $ac_word... " >&6; }
11995 if ${ac_cv_prog_CC+:} false
; then :
11996 $as_echo_n "(cached) " >&6
11998 if test -n "$CC"; then
11999 ac_cv_prog_CC
="$CC" # Let the user override the test.
12001 ac_prog_rejected
=no
12002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12003 for as_dir
in $PATH
12006 test -z "$as_dir" && as_dir
=.
12007 for ac_exec_ext
in '' $ac_executable_extensions; do
12008 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12009 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12010 ac_prog_rejected
=yes
12014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12021 if test $ac_prog_rejected = yes; then
12022 # We found a bogon in the path, so make sure we never use it.
12023 set dummy
$ac_cv_prog_CC
12025 if test $# != 0; then
12026 # We chose a different compiler from the bogus one.
12027 # However, it has the same basename, so the bogon will be chosen
12028 # first if we set CC to just the basename; use the full file name.
12030 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
12036 if test -n "$CC"; then
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12038 $as_echo "$CC" >&6; }
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041 $as_echo "no" >&6; }
12046 if test -z "$CC"; then
12047 if test -n "$ac_tool_prefix"; then
12048 for ac_prog
in cl.exe
12050 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12051 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12053 $as_echo_n "checking for $ac_word... " >&6; }
12054 if ${ac_cv_prog_CC+:} false
; then :
12055 $as_echo_n "(cached) " >&6
12057 if test -n "$CC"; then
12058 ac_cv_prog_CC
="$CC" # Let the user override the test.
12060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12061 for as_dir
in $PATH
12064 test -z "$as_dir" && as_dir
=.
12065 for ac_exec_ext
in '' $ac_executable_extensions; do
12066 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12067 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
12068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12078 if test -n "$CC"; then
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12080 $as_echo "$CC" >&6; }
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083 $as_echo "no" >&6; }
12087 test -n "$CC" && break
12090 if test -z "$CC"; then
12092 for ac_prog
in cl.exe
12094 # Extract the first word of "$ac_prog", so it can be a program name with args.
12095 set dummy
$ac_prog; ac_word
=$2
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12097 $as_echo_n "checking for $ac_word... " >&6; }
12098 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
12099 $as_echo_n "(cached) " >&6
12101 if test -n "$ac_ct_CC"; then
12102 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
12104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12105 for as_dir
in $PATH
12108 test -z "$as_dir" && as_dir
=.
12109 for ac_exec_ext
in '' $ac_executable_extensions; do
12110 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12111 ac_cv_prog_ac_ct_CC
="$ac_prog"
12112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12121 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
12122 if test -n "$ac_ct_CC"; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12124 $as_echo "$ac_ct_CC" >&6; }
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127 $as_echo "no" >&6; }
12131 test -n "$ac_ct_CC" && break
12134 if test "x$ac_ct_CC" = x
; then
12137 case $cross_compiling:$ac_tool_warned in
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12141 ac_tool_warned
=yes ;;
12150 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12152 as_fn_error $?
"no acceptable C compiler found in \$PATH
12153 See \`config.log' for more details" "$LINENO" 5; }
12155 # Provide some information about the compiler.
12156 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12159 for ac_option
in --version -v -V -qversion; do
12160 { { ac_try
="$ac_compiler $ac_option >&5"
12161 case "(($ac_try" in
12162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12163 *) ac_try_echo=$ac_try;;
12165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12166 $as_echo "$ac_try_echo"; } >&5
12167 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12169 if test -s conftest.err; then
12171 ... rest of stderr output deleted ...
12172 10q' conftest.err >conftest.er1
12173 cat conftest.er1 >&5
12175 rm -f conftest.er1 conftest.err
12176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12177 test $ac_status = 0; }
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12181 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12182 if ${ac_cv_c_compiler_gnu+:} false; then :
12183 $as_echo_n "(cached) " >&6
12185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h. */
12199 if ac_fn_c_try_compile "$LINENO"; then :
12200 ac_compiler_gnu=yes
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12209 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12210 if test $ac_compiler_gnu = yes; then
12215 ac_test_CFLAGS=${CFLAGS+set}
12216 ac_save_CFLAGS=$CFLAGS
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12218 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12219 if ${ac_cv_prog_cc_g+:} false; then :
12220 $as_echo_n "(cached) " >&6
12222 ac_save_c_werror_flag=$ac_c_werror_flag
12223 ac_c_werror_flag=yes
12226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12227 /* end confdefs.h. */
12237 if ac_fn_c_try_compile "$LINENO"; then :
12238 ac_cv_prog_cc_g=yes
12241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242 /* end confdefs.h. */
12252 if ac_fn_c_try_compile "$LINENO"; then :
12255 ac_c_werror_flag=$ac_save_c_werror_flag
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12268 if ac_fn_c_try_compile "$LINENO"; then :
12269 ac_cv_prog_cc_g=yes
12271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12276 ac_c_werror_flag=$ac_save_c_werror_flag
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12279 $as_echo "$ac_cv_prog_cc_g" >&6; }
12280 if test "$ac_test_CFLAGS" = set; then
12281 CFLAGS=$ac_save_CFLAGS
12282 elif test $ac_cv_prog_cc_g = yes; then
12283 if test "$GCC" = yes; then
12289 if test "$GCC" = yes; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12296 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12297 if ${ac_cv_prog_cc_c89+:} false; then :
12298 $as_echo_n "(cached) " >&6
12300 ac_cv_prog_cc_c89=no
12302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303 /* end confdefs.h. */
12304 #include <stdarg.h>
12307 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12308 struct buf { int x; };
12309 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12310 static char *e (p, i)
12316 static char *f (char * (*g) (char **, int), char **p, ...)
12321 s = g (p, va_arg (v,int));
12326 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12327 function prototypes and stuff, but not '\xHH' hex character constants.
12328 These don't provoke an error unfortunately, instead are silently treated
12329 as 'x'. The following induces an error, until -std is added to get
12330 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12331 array size at least. It's necessary to write '\x00'==0 to get something
12332 that's true only with -std. */
12333 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12335 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12336 inside strings and character constants. */
12338 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12340 int test (int i, double x);
12341 struct s1 {int (*f) (int a);};
12342 struct s2 {int (*f) (double a);};
12343 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12349 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12354 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12355 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12357 CC="$ac_save_CC $ac_arg"
12358 if ac_fn_c_try_compile "$LINENO"; then :
12359 ac_cv_prog_cc_c89=$ac_arg
12361 rm -f core conftest.err conftest.$ac_objext
12362 test "x$ac_cv_prog_cc_c89" != "xno" && break
12364 rm -f conftest.$ac_ext
12369 case "x$ac_cv_prog_cc_c89" in
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12372 $as_echo "none needed" >&6; } ;;
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12375 $as_echo "unsupported" >&6; } ;;
12377 CC="$CC $ac_cv_prog_cc_c89"
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12379 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12381 if test "x$ac_cv_prog_cc_c89" != xno; then :
12386 ac_cpp='$CPP $CPPFLAGS'
12387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12391 depcc="$CC" am_compiler_list=
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12394 $as_echo_n "checking dependency style of $depcc... " >&6; }
12395 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12396 $as_echo_n "(cached) " >&6
12398 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12399 # We make a subdir and do the tests there. Otherwise we can end up
12400 # making bogus files that we don't know about and never remove. For
12401 # instance it was reported that on HP-UX the gcc test will end up
12402 # making a dummy file named 'D' -- because '-MD' means "put the output
12404 rm -rf conftest.dir
12406 # Copy depcomp to subdir because otherwise we won't find it if we're
12407 # using a relative directory.
12408 cp "$am_depcomp" conftest.dir
12410 # We will build objects and dependencies in a subdirectory because
12411 # it helps to detect inapplicable dependency modes. For instance
12412 # both Tru64's cc and ICC support -MD to output dependencies as a
12413 # side effect of compilation, but ICC will put the dependencies in
12414 # the current directory while Tru64 will put them in the object
12418 am_cv_CC_dependencies_compiler_type=none
12419 if test "$am_compiler_list" = ""; then
12420 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
12422 am__universal=false
12423 case " $depcc " in #(
12424 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12427 for depmode in $am_compiler_list; do
12428 # Setup a source with many dependencies, because some compilers
12429 # like to wrap large dependency lists on column 80 (with \), and
12430 # we should not choose a depcomp mode which is confused by this.
12432 # We need to recreate these files for each test, as the compiler may
12433 # overwrite some of them when testing with obscure command lines.
12434 # This happens at least with the AIX C compiler.
12436 for i in 1 2 3 4 5 6; do
12437 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12438 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12439 # Solaris 10 /bin/sh.
12440 echo '/* dummy */' > sub/conftst$i.h
12442 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12444 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12445 # mode. It turns out that the SunPro C++ compiler does not properly
12446 # handle '-M -o', and we need to detect this. Also, some Intel
12447 # versions had trouble with output in subdirs.
12448 am__obj=sub/conftest.${OBJEXT-o}
12449 am__minus_obj="-o $am__obj"
12452 # This depmode causes a compiler race in universal mode.
12453 test "$am__universal" = false || continue
12456 # After this tag, mechanisms are not by side-effect, so they'll
12457 # only be used when explicitly requested.
12458 if test "x$enable_dependency_tracking" = xyes; then
12464 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12465 # This compiler won't grok '-c -o', but also, the minuso test has
12466 # not run yet. These depmodes are late enough in the game, and
12467 # so weak that their functioning should not be impacted.
12468 am__obj=conftest.${OBJEXT-o}
12473 if depmode=$depmode \
12474 source=sub/conftest.c object=$am__obj \
12475 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12476 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12477 >/dev/null 2>conftest.err &&
12478 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12479 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12480 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12481 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12482 # icc doesn't choke on unknown options, it will just issue warnings
12483 # or remarks (even with -Werror). So we grep stderr for any message
12484 # that says an option was ignored or not supported.
12485 # When given -MP, icc 7.0 and 7.1 complain thusly:
12486 # icc: Command line warning: ignoring option '-M'; no argument required
12487 # The diagnosis changed in icc 8.0:
12488 # icc: Command line remark: option '-MP' not supported
12489 if (grep 'ignoring option' conftest.err ||
12490 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12491 am_cv_CC_dependencies_compiler_type=$depmode
12498 rm -rf conftest.dir
12500 am_cv_CC_dependencies_compiler_type=none
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12505 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12506 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12509 test "x$enable_dependency_tracking" != xno \
12510 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12511 am__fastdepCC_TRUE=
12512 am__fastdepCC_FALSE='#'
12514 am__fastdepCC_TRUE='#'
12515 am__fastdepCC_FALSE=
12520 ac_cpp='$CXXCPP $CPPFLAGS'
12521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12524 if test -z "$CXX"; then
12525 if test -n "$CCC"; then
12528 if test -n "$ac_tool_prefix"; then
12529 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12534 $as_echo_n "checking for $ac_word... " >&6; }
12535 if ${ac_cv_prog_CXX+:} false; then :
12536 $as_echo_n "(cached) " >&6
12538 if test -n "$CXX"; then
12539 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12542 for as_dir in $PATH
12545 test -z "$as_dir" && as_dir=.
12546 for ac_exec_ext in '' $ac_executable_extensions; do
12547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12548 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12558 CXX=$ac_cv_prog_CXX
12559 if test -n "$CXX"; then
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12561 $as_echo "$CXX" >&6; }
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564 $as_echo "no" >&6; }
12568 test -n "$CXX" && break
12571 if test -z "$CXX"; then
12573 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12575 # Extract the first word of "$ac_prog", so it can be a program name with args.
12576 set dummy $ac_prog; ac_word=$2
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12578 $as_echo_n "checking for $ac_word... " >&6; }
12579 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12580 $as_echo_n "(cached) " >&6
12582 if test -n "$ac_ct_CXX"; then
12583 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12586 for as_dir in $PATH
12589 test -z "$as_dir" && as_dir=.
12590 for ac_exec_ext in '' $ac_executable_extensions; do
12591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12592 ac_cv_prog_ac_ct_CXX="$ac_prog"
12593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12602 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12603 if test -n "$ac_ct_CXX"; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12605 $as_echo "$ac_ct_CXX" >&6; }
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 $as_echo "no" >&6; }
12612 test -n "$ac_ct_CXX" && break
12615 if test "x$ac_ct_CXX" = x; then
12618 case $cross_compiling:$ac_tool_warned in
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12622 ac_tool_warned=yes ;;
12630 # Provide some information about the compiler.
12631 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12634 for ac_option in --version -v -V -qversion; do
12635 { { ac_try="$ac_compiler $ac_option >&5"
12636 case "(($ac_try" in
12637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12638 *) ac_try_echo
=$ac_try;;
12640 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12641 $as_echo "$ac_try_echo"; } >&5
12642 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12644 if test -s conftest.err
; then
12646 ... rest of stderr output deleted ...
12647 10q' conftest.err
>conftest.er1
12648 cat conftest.er1
>&5
12650 rm -f conftest.er1 conftest.err
12651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12652 test $ac_status = 0; }
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12656 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12657 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
12658 $as_echo_n "(cached) " >&6
12660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12674 if ac_fn_cxx_try_compile
"$LINENO"; then :
12675 ac_compiler_gnu
=yes
12679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12680 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12684 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12685 if test $ac_compiler_gnu = yes; then
12690 ac_test_CXXFLAGS
=${CXXFLAGS+set}
12691 ac_save_CXXFLAGS
=$CXXFLAGS
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12693 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12694 if ${ac_cv_prog_cxx_g+:} false
; then :
12695 $as_echo_n "(cached) " >&6
12697 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
12698 ac_cxx_werror_flag
=yes
12699 ac_cv_prog_cxx_g
=no
12701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h. */
12712 if ac_fn_cxx_try_compile
"$LINENO"; then :
12713 ac_cv_prog_cxx_g
=yes
12716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12717 /* end confdefs.h. */
12727 if ac_fn_cxx_try_compile
"$LINENO"; then :
12730 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
12732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12733 /* end confdefs.h. */
12743 if ac_fn_cxx_try_compile
"$LINENO"; then :
12744 ac_cv_prog_cxx_g
=yes
12746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12751 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12754 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12755 if test "$ac_test_CXXFLAGS" = set; then
12756 CXXFLAGS
=$ac_save_CXXFLAGS
12757 elif test $ac_cv_prog_cxx_g = yes; then
12758 if test "$GXX" = yes; then
12764 if test "$GXX" = yes; then
12771 ac_cpp
='$CPP $CPPFLAGS'
12772 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12773 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12774 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12776 depcc
="$CXX" am_compiler_list
=
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12779 $as_echo_n "checking dependency style of $depcc... " >&6; }
12780 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
12781 $as_echo_n "(cached) " >&6
12783 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12784 # We make a subdir and do the tests there. Otherwise we can end up
12785 # making bogus files that we don't know about and never remove. For
12786 # instance it was reported that on HP-UX the gcc test will end up
12787 # making a dummy file named 'D' -- because '-MD' means "put the output
12789 rm -rf conftest.dir
12791 # Copy depcomp to subdir because otherwise we won't find it if we're
12792 # using a relative directory.
12793 cp "$am_depcomp" conftest.dir
12795 # We will build objects and dependencies in a subdirectory because
12796 # it helps to detect inapplicable dependency modes. For instance
12797 # both Tru64's cc and ICC support -MD to output dependencies as a
12798 # side effect of compilation, but ICC will put the dependencies in
12799 # the current directory while Tru64 will put them in the object
12803 am_cv_CXX_dependencies_compiler_type
=none
12804 if test "$am_compiler_list" = ""; then
12805 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12807 am__universal
=false
12808 case " $depcc " in #(
12809 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
12812 for depmode
in $am_compiler_list; do
12813 # Setup a source with many dependencies, because some compilers
12814 # like to wrap large dependency lists on column 80 (with \), and
12815 # we should not choose a depcomp mode which is confused by this.
12817 # We need to recreate these files for each test, as the compiler may
12818 # overwrite some of them when testing with obscure command lines.
12819 # This happens at least with the AIX C compiler.
12821 for i
in 1 2 3 4 5 6; do
12822 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
12823 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12824 # Solaris 10 /bin/sh.
12825 echo '/* dummy */' > sub
/conftst
$i.h
12827 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12829 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12830 # mode. It turns out that the SunPro C++ compiler does not properly
12831 # handle '-M -o', and we need to detect this. Also, some Intel
12832 # versions had trouble with output in subdirs.
12833 am__obj
=sub
/conftest.
${OBJEXT-o}
12834 am__minus_obj
="-o $am__obj"
12837 # This depmode causes a compiler race in universal mode.
12838 test "$am__universal" = false ||
continue
12841 # After this tag, mechanisms are not by side-effect, so they'll
12842 # only be used when explicitly requested.
12843 if test "x$enable_dependency_tracking" = xyes
; then
12849 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
12850 # This compiler won't grok '-c -o', but also, the minuso test has
12851 # not run yet. These depmodes are late enough in the game, and
12852 # so weak that their functioning should not be impacted.
12853 am__obj
=conftest.
${OBJEXT-o}
12858 if depmode
=$depmode \
12859 source=sub
/conftest.c object
=$am__obj \
12860 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
12861 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
12862 >/dev
/null
2>conftest.err
&&
12863 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12864 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12865 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
12866 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
12867 # icc doesn't choke on unknown options, it will just issue warnings
12868 # or remarks (even with -Werror). So we grep stderr for any message
12869 # that says an option was ignored or not supported.
12870 # When given -MP, icc 7.0 and 7.1 complain thusly:
12871 # icc: Command line warning: ignoring option '-M'; no argument required
12872 # The diagnosis changed in icc 8.0:
12873 # icc: Command line remark: option '-MP' not supported
12874 if (grep 'ignoring option' conftest.err ||
12875 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
12876 am_cv_CXX_dependencies_compiler_type
=$depmode
12883 rm -rf conftest.dir
12885 am_cv_CXX_dependencies_compiler_type
=none
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12890 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12891 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
12894 test "x$enable_dependency_tracking" != xno \
12895 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
12896 am__fastdepCXX_TRUE
=
12897 am__fastdepCXX_FALSE
='#'
12899 am__fastdepCXX_TRUE
='#'
12900 am__fastdepCXX_FALSE
=
12906 func_stripname_cnf
()
12909 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12910 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12912 } # func_stripname_cnf
12914 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12915 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12916 (test "X$CXX" != "Xg++"))) ; then
12918 ac_cpp
='$CXXCPP $CPPFLAGS'
12919 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12920 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12921 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12923 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12924 if test -z "$CXXCPP"; then
12925 if ${ac_cv_prog_CXXCPP+:} false
; then :
12926 $as_echo_n "(cached) " >&6
12928 # Double quotes because CXXCPP needs to be expanded
12929 for CXXCPP
in "$CXX -E" "/lib/cpp"
12931 ac_preproc_ok
=false
12932 for ac_cxx_preproc_warn_flag
in '' yes
12934 # Use a header file that comes with gcc, so configuring glibc
12935 # with a fresh cross-compiler works.
12936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12937 # <limits.h> exists even on freestanding compilers.
12938 # On the NeXT, cc -E runs the code through the compiler's parser,
12939 # not just through cpp. "Syntax error" is here to catch this case.
12940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12941 /* end confdefs.h. */
12943 # include <limits.h>
12945 # include <assert.h>
12949 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12952 # Broken: fails on valid input.
12955 rm -f conftest.err conftest.i conftest.
$ac_ext
12957 # OK, works on sane cases. Now check whether nonexistent headers
12958 # can be detected and how.
12959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12960 /* end confdefs.h. */
12961 #include <ac_nonexistent.h>
12963 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12964 # Broken: success on invalid input.
12967 # Passes both tests.
12971 rm -f conftest.err conftest.i conftest.
$ac_ext
12974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12975 rm -f conftest.i conftest.err conftest.
$ac_ext
12976 if $ac_preproc_ok; then :
12981 ac_cv_prog_CXXCPP
=$CXXCPP
12984 CXXCPP
=$ac_cv_prog_CXXCPP
12986 ac_cv_prog_CXXCPP
=$CXXCPP
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12989 $as_echo "$CXXCPP" >&6; }
12990 ac_preproc_ok
=false
12991 for ac_cxx_preproc_warn_flag
in '' yes
12993 # Use a header file that comes with gcc, so configuring glibc
12994 # with a fresh cross-compiler works.
12995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12996 # <limits.h> exists even on freestanding compilers.
12997 # On the NeXT, cc -E runs the code through the compiler's parser,
12998 # not just through cpp. "Syntax error" is here to catch this case.
12999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13000 /* end confdefs.h. */
13002 # include <limits.h>
13004 # include <assert.h>
13008 if ac_fn_cxx_try_cpp
"$LINENO"; then :
13011 # Broken: fails on valid input.
13014 rm -f conftest.err conftest.i conftest.
$ac_ext
13016 # OK, works on sane cases. Now check whether nonexistent headers
13017 # can be detected and how.
13018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13019 /* end confdefs.h. */
13020 #include <ac_nonexistent.h>
13022 if ac_fn_cxx_try_cpp
"$LINENO"; then :
13023 # Broken: success on invalid input.
13026 # Passes both tests.
13030 rm -f conftest.err conftest.i conftest.
$ac_ext
13033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13034 rm -f conftest.i conftest.err conftest.
$ac_ext
13035 if $ac_preproc_ok; then :
13038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13040 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
13041 See \`config.log' for more details" "$LINENO" 5; }
13045 ac_cpp
='$CPP $CPPFLAGS'
13046 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13047 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13048 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13051 _lt_caught_CXX_error
=yes
13055 ac_cpp
='$CXXCPP $CPPFLAGS'
13056 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13057 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13058 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
13060 archive_cmds_need_lc_CXX
=no
13061 allow_undefined_flag_CXX
=
13062 always_export_symbols_CXX
=no
13063 archive_expsym_cmds_CXX
=
13064 compiler_needs_object_CXX
=no
13065 export_dynamic_flag_spec_CXX
=
13066 hardcode_direct_CXX
=no
13067 hardcode_direct_absolute_CXX
=no
13068 hardcode_libdir_flag_spec_CXX
=
13069 hardcode_libdir_separator_CXX
=
13070 hardcode_minus_L_CXX
=no
13071 hardcode_shlibpath_var_CXX
=unsupported
13072 hardcode_automatic_CXX
=no
13073 inherit_rpath_CXX
=no
13075 module_expsym_cmds_CXX
=
13076 link_all_deplibs_CXX
=unknown
13077 old_archive_cmds_CXX
=$old_archive_cmds
13078 reload_flag_CXX
=$reload_flag
13079 reload_cmds_CXX
=$reload_cmds
13080 no_undefined_flag_CXX
=
13081 whole_archive_flag_spec_CXX
=
13082 enable_shared_with_static_runtimes_CXX
=no
13084 # Source file extension for C++ test sources.
13087 # Object file extension for compiled C++ test sources.
13091 # No sense in running all these tests if we already determined that
13092 # the CXX compiler isn't working. Some variables (like enable_shared)
13093 # are currently assumed to apply to all compilers on this platform,
13094 # and will be corrupted by setting them based on a non-working compiler.
13095 if test "$_lt_caught_CXX_error" != yes; then
13096 # Code to be used in simple compile tests
13097 lt_simple_compile_test_code
="int some_variable = 0;"
13099 # Code to be used in simple link tests
13100 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
13102 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13109 # If no C compiler was specified, use CC.
13112 # If no C compiler flags were specified, use CFLAGS.
13113 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
13115 # Allow CC to be a program name with arguments.
13119 # save warnings/boilerplate of simple test code
13120 ac_outfile
=conftest.
$ac_objext
13121 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
13122 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13123 _lt_compiler_boilerplate
=`cat conftest.err`
13126 ac_outfile
=conftest.
$ac_objext
13127 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
13128 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13129 _lt_linker_boilerplate
=`cat conftest.err`
13133 # Allow CC to be a program name with arguments.
13135 lt_save_CFLAGS
=$CFLAGS
13139 lt_save_with_gnu_ld
=$with_gnu_ld
13140 lt_save_path_LD
=$lt_cv_path_LD
13141 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13142 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
13144 $as_unset lt_cv_prog_gnu_ld
13146 if test -n "${lt_cv_path_LDCXX+set}"; then
13147 lt_cv_path_LD
=$lt_cv_path_LDCXX
13149 $as_unset lt_cv_path_LD
13151 test -z "${LDCXX+set}" || LD
=$LDCXX
13156 for cc_temp
in $compiler""; do
13158 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13159 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13164 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13167 if test -n "$compiler"; then
13168 # We don't want -fno-exception when compiling C++ code, so set the
13169 # no_builtin_flag separately
13170 if test "$GXX" = yes; then
13171 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
13173 lt_prog_compiler_no_builtin_flag_CXX
=
13176 if test "$GXX" = yes; then
13177 # Set up default GNU C++ configuration
13181 # Check whether --with-gnu-ld was given.
13182 if test "${with_gnu_ld+set}" = set; then :
13183 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
13189 if test "$GCC" = yes; then
13190 # Check if gcc -print-prog-name=ld gives a path.
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13192 $as_echo_n "checking for ld used by $CC... " >&6; }
13195 # gcc leaves a trailing carriage return which upsets mingw
13196 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13198 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13201 # Accept absolute paths.
13203 re_direlt
='/[^/][^/]*/\.\./'
13204 # Canonicalize the pathname of ld
13205 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13206 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
13207 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13209 test -z "$LD" && LD
="$ac_prog"
13212 # If it fails, then pretend we aren't using GCC.
13216 # If it is relative, then search for the first ld in PATH.
13217 with_gnu_ld
=unknown
13220 elif test "$with_gnu_ld" = yes; then
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13222 $as_echo_n "checking for GNU ld... " >&6; }
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13225 $as_echo_n "checking for non-GNU ld... " >&6; }
13227 if ${lt_cv_path_LD+:} false
; then :
13228 $as_echo_n "(cached) " >&6
13230 if test -z "$LD"; then
13231 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13232 for ac_dir
in $PATH; do
13234 test -z "$ac_dir" && ac_dir
=.
13235 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
13236 lt_cv_path_LD
="$ac_dir/$ac_prog"
13237 # Check to see if the program is GNU ld. I'd rather use --version,
13238 # but apparently some variants of GNU ld only accept -v.
13239 # Break only if it was the GNU/non-GNU ld that we prefer.
13240 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13241 *GNU
* |
*'with BFD'*)
13242 test "$with_gnu_ld" != no
&& break
13245 test "$with_gnu_ld" != yes && break
13252 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
13256 LD
="$lt_cv_path_LD"
13257 if test -n "$LD"; then
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13259 $as_echo "$LD" >&6; }
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262 $as_echo "no" >&6; }
13264 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13266 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13267 if ${lt_cv_prog_gnu_ld+:} false
; then :
13268 $as_echo_n "(cached) " >&6
13270 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13271 case `$LD -v 2>&1 </dev/null` in
13272 *GNU
* |
*'with BFD'*)
13273 lt_cv_prog_gnu_ld
=yes
13276 lt_cv_prog_gnu_ld
=no
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13281 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13282 with_gnu_ld
=$lt_cv_prog_gnu_ld
13290 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13291 # archiving commands below assume that GNU ld is being used.
13292 if test "$with_gnu_ld" = yes; then
13293 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13294 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'
13296 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13297 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13299 # If archive_cmds runs LD, not CC, wlarc should be empty
13300 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13301 # investigate it a little bit more. (MM)
13304 # ancient GNU ld didn't support --whole-archive et. al.
13305 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13306 $GREP 'no-whole-archive' > /dev
/null
; then
13307 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13309 whole_archive_flag_spec_CXX
=
13315 # A generic and very simple default shared library creation
13316 # command for GNU C++ for the case where it uses the native
13317 # linker, instead of GNU ld. If possible, this setting should
13318 # overridden to take advantage of the native linker features on
13319 # the platform it is being used on.
13320 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13323 # Commands to make compiler produce verbose output that lists
13324 # what "hidden" libraries, object files and flags are used when
13325 # linking a shared library.
13326 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13334 # PORTME: fill in a description of your system's C++ link characteristics
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13336 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13340 # FIXME: insert proper C++ library support
13344 if test "$host_cpu" = ia64
; then
13345 # On IA64, the linker does run time linking by default, so we don't
13346 # have to do anything special.
13347 aix_use_runtimelinking
=no
13348 exp_sym_flag
='-Bexport'
13351 aix_use_runtimelinking
=no
13353 # Test if we are trying to use run time linking or normal
13354 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13355 # need to do runtime linking.
13356 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
13357 for ld_flag
in $LDFLAGS; do
13360 aix_use_runtimelinking
=yes
13368 exp_sym_flag
='-bexport'
13369 no_entry_flag
='-bnoentry'
13372 # When large executables or shared objects are built, AIX ld can
13373 # have problems creating the table of contents. If linking a library
13374 # or program results in "error TOC overflow" add -mminimal-toc to
13375 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13376 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13378 archive_cmds_CXX
=''
13379 hardcode_direct_CXX
=yes
13380 hardcode_direct_absolute_CXX
=yes
13381 hardcode_libdir_separator_CXX
=':'
13382 link_all_deplibs_CXX
=yes
13383 file_list_spec_CXX
='${wl}-f,'
13385 if test "$GXX" = yes; then
13386 case $host_os in aix4.
[012]|aix4.
[012].
*)
13387 # We only want to do this on AIX 4.2 and lower, the check
13388 # below for broken collect2 doesn't work under 4.3+
13389 collect2name
=`${CC} -print-prog-name=collect2`
13390 if test -f "$collect2name" &&
13391 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
13393 # We have reworked collect2
13396 # We have old collect2
13397 hardcode_direct_CXX
=unsupported
13398 # It fails to find uninstalled libraries when the uninstalled
13399 # path is not listed in the libpath. Setting hardcode_minus_L
13400 # to unsupported forces relinking
13401 hardcode_minus_L_CXX
=yes
13402 hardcode_libdir_flag_spec_CXX
='-L$libdir'
13403 hardcode_libdir_separator_CXX
=
13406 shared_flag
='-shared'
13407 if test "$aix_use_runtimelinking" = yes; then
13408 shared_flag
="$shared_flag "'${wl}-G'
13412 if test "$host_cpu" = ia64
; then
13413 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13414 # chokes on -Wl,-G. The following line is correct:
13417 if test "$aix_use_runtimelinking" = yes; then
13418 shared_flag
='${wl}-G'
13420 shared_flag
='${wl}-bM:SRE'
13425 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
13426 # It seems that -bexpall does not export symbols beginning with
13427 # underscore (_), so it is better to generate a list of symbols to
13429 always_export_symbols_CXX
=yes
13430 if test "$aix_use_runtimelinking" = yes; then
13431 # Warning - without using the other runtime loading flags (-brtl),
13432 # -berok will link without error, but may produce a broken library.
13433 allow_undefined_flag_CXX
='-berok'
13434 # Determine the default libpath from the value encoded in an empty
13436 if test "${lt_cv_aix_libpath+set}" = set; then
13437 aix_libpath
=$lt_cv_aix_libpath
13439 if ${lt_cv_aix_libpath__CXX+:} false
; then :
13440 $as_echo_n "(cached) " >&6
13442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13443 /* end confdefs.h. */
13453 if ac_fn_cxx_try_link
"$LINENO"; then :
13455 lt_aix_libpath_sed
='
13456 /Import File Strings/,/^$/ {
13458 s/^0 *\([^ ]*\) *$/\1/
13462 lt_cv_aix_libpath__CXX
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13463 # Check for a 64-bit object if we didn't find anything.
13464 if test -z "$lt_cv_aix_libpath__CXX"; then
13465 lt_cv_aix_libpath__CXX
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13468 rm -f core conftest.err conftest.
$ac_objext \
13469 conftest
$ac_exeext conftest.
$ac_ext
13470 if test -z "$lt_cv_aix_libpath__CXX"; then
13471 lt_cv_aix_libpath__CXX
="/usr/lib:/lib"
13476 aix_libpath
=$lt_cv_aix_libpath__CXX
13479 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
13481 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"
13483 if test "$host_cpu" = ia64
; then
13484 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
13485 allow_undefined_flag_CXX
="-z nodefs"
13486 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"
13488 # Determine the default libpath from the value encoded in an
13489 # empty executable.
13490 if test "${lt_cv_aix_libpath+set}" = set; then
13491 aix_libpath
=$lt_cv_aix_libpath
13493 if ${lt_cv_aix_libpath__CXX+:} false
; then :
13494 $as_echo_n "(cached) " >&6
13496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13497 /* end confdefs.h. */
13507 if ac_fn_cxx_try_link
"$LINENO"; then :
13509 lt_aix_libpath_sed
='
13510 /Import File Strings/,/^$/ {
13512 s/^0 *\([^ ]*\) *$/\1/
13516 lt_cv_aix_libpath__CXX
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13517 # Check for a 64-bit object if we didn't find anything.
13518 if test -z "$lt_cv_aix_libpath__CXX"; then
13519 lt_cv_aix_libpath__CXX
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13522 rm -f core conftest.err conftest.
$ac_objext \
13523 conftest
$ac_exeext conftest.
$ac_ext
13524 if test -z "$lt_cv_aix_libpath__CXX"; then
13525 lt_cv_aix_libpath__CXX
="/usr/lib:/lib"
13530 aix_libpath
=$lt_cv_aix_libpath__CXX
13533 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
13534 # Warning - without using the other run time loading flags,
13535 # -berok will link without error, but may produce a broken library.
13536 no_undefined_flag_CXX
=' ${wl}-bernotok'
13537 allow_undefined_flag_CXX
=' ${wl}-berok'
13538 if test "$with_gnu_ld" = yes; then
13539 # We only use this code for GNU lds that support --whole-archive.
13540 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13542 # Exported symbols can be pulled into shared objects from archives
13543 whole_archive_flag_spec_CXX
='$convenience'
13545 archive_cmds_need_lc_CXX
=yes
13546 # This is similar to how AIX traditionally builds its shared
13548 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'
13554 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13555 allow_undefined_flag_CXX
=unsupported
13556 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13557 # support --undefined. This deserves some investigation. FIXME
13558 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13565 case $cc_basename in
13567 # FIXME: insert proper C++ library support
13573 cygwin
* | mingw
* | pw32
* | cegcc
*)
13574 case $GXX,$cc_basename in
13577 # hardcode_libdir_flag_spec is actually meaningless, as there is
13578 # no search path for DLLs.
13579 hardcode_libdir_flag_spec_CXX
=' '
13580 allow_undefined_flag_CXX
=unsupported
13581 always_export_symbols_CXX
=yes
13582 file_list_spec_CXX
='@'
13583 # Tell ltmain to make .lib files, not .a files.
13585 # Tell ltmain to make .dll files, not .so files.
13587 # FIXME: Setting linknames here is a bad hack.
13588 archive_cmds_CXX
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13589 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13590 $SED -n -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' -e '1\\\
!p
' < $export_symbols > $output_objdir/$soname.exp;
13592 $SED -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' < $export_symbols > $output_objdir/$soname.exp;
13594 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13596 # The linker will not automatically build a static lib if we build a DLL.
13597 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13598 enable_shared_with_static_runtimes_CXX
=yes
13600 old_postinstall_cmds_CXX
='chmod 644 $oldlib'
13601 postlink_cmds_CXX
='lt_outputfile="@OUTPUT@"~
13602 lt_tool_outputfile="@TOOL_OUTPUT@"~
13603 case $lt_outputfile in
13606 lt_outputfile="$lt_outputfile.exe"
13607 lt_tool_outputfile="$lt_tool_outputfile.exe"
13610 func_to_tool_file "$lt_outputfile"~
13611 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13612 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13613 $RM "$lt_outputfile.manifest";
13618 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13619 # as there is no search path for DLLs.
13620 hardcode_libdir_flag_spec_CXX
='-L$libdir'
13621 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
13622 allow_undefined_flag_CXX
=unsupported
13623 always_export_symbols_CXX
=no
13624 enable_shared_with_static_runtimes_CXX
=yes
13626 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
13627 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'
13628 # If the export-symbols file already is a .def file (1st line
13629 # is EXPORTS), use it as is; otherwise, prepend...
13630 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13631 cp $export_symbols $output_objdir/$soname.def;
13633 echo EXPORTS > $output_objdir/$soname.def;
13634 cat $export_symbols >> $output_objdir/$soname.def;
13636 $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'
13643 darwin
* | rhapsody
*)
13646 archive_cmds_need_lc_CXX
=no
13647 hardcode_direct_CXX
=no
13648 hardcode_automatic_CXX
=yes
13649 hardcode_shlibpath_var_CXX
=unsupported
13650 if test "$lt_cv_ld_force_load" = "yes"; then
13651 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\"`'
13654 whole_archive_flag_spec_CXX
=''
13656 link_all_deplibs_CXX
=yes
13657 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
13658 case $cc_basename in
13659 ifort
*) _lt_dar_can_shared
=yes ;;
13660 *) _lt_dar_can_shared
=$GCC ;;
13662 if test "$_lt_dar_can_shared" = "yes"; then
13663 output_verbose_link_cmd
=func_echo_all
13664 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}"
13665 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13666 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}"
13667 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}"
13668 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13669 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}"
13670 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}"
13680 case $cc_basename in
13682 # FIXME: insert proper C++ library support
13686 # Green Hills C++ Compiler
13687 # FIXME: insert proper C++ library support
13691 # FIXME: insert proper C++ library support
13698 # C++ shared libraries reported to be fairly broken before
13704 archive_cmds_need_lc_CXX
=no
13707 freebsd
* | dragonfly
*)
13708 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13714 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13715 link_all_deplibs_CXX
=yes
13719 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
13720 hardcode_libdir_separator_CXX
=:
13721 export_dynamic_flag_spec_CXX
='${wl}-E'
13722 hardcode_direct_CXX
=yes
13723 hardcode_minus_L_CXX
=yes # Not in the search PATH,
13724 # but as the default
13725 # location of the library.
13727 case $cc_basename in
13729 # FIXME: insert proper C++ library support
13733 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'
13734 # Commands to make compiler produce verbose output that lists
13735 # what "hidden" libraries, object files and flags are used when
13736 # linking a shared library.
13738 # There doesn't appear to be a way to prevent this compiler from
13739 # explicitly linking system object files so we need to strip them
13740 # from the output so that they don't get included in the library
13742 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"'
13745 if test "$GXX" = yes; then
13746 archive_cmds_CXX
='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
13748 # FIXME: insert proper C++ library support
13756 if test $with_gnu_ld = no
; then
13757 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
13758 hardcode_libdir_separator_CXX
=:
13764 export_dynamic_flag_spec_CXX
='${wl}-E'
13770 hardcode_direct_CXX
=no
13771 hardcode_shlibpath_var_CXX
=no
13774 hardcode_direct_CXX
=yes
13775 hardcode_direct_absolute_CXX
=yes
13776 hardcode_minus_L_CXX
=yes # Not in the search PATH,
13777 # but as the default
13778 # location of the library.
13782 case $cc_basename in
13784 # FIXME: insert proper C++ library support
13790 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13793 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13796 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13799 # Commands to make compiler produce verbose output that lists
13800 # what "hidden" libraries, object files and flags are used when
13801 # linking a shared library.
13803 # There doesn't appear to be a way to prevent this compiler from
13804 # explicitly linking system object files so we need to strip them
13805 # from the output so that they don't get included in the library
13807 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"'
13810 if test "$GXX" = yes; then
13811 if test $with_gnu_ld = no
; then
13814 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13817 archive_cmds_CXX
='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13820 archive_cmds_CXX
='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13825 # FIXME: insert proper C++ library support
13833 hardcode_direct_CXX
=no
13834 hardcode_shlibpath_var_CXX
=no
13835 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13836 export_dynamic_flag_spec_CXX
='${wl}-E'
13837 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13838 # Instead, shared libraries are loaded at an image base (0x10000000 by
13839 # default) and relocated if they conflict, which is a slow very memory
13840 # consuming and fragmenting process. To avoid this, we pick a random,
13841 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13842 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13843 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'
13844 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'
13847 case $cc_basename in
13850 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'
13852 # Archives containing C++ object files must be created using
13853 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13854 # necessary to make sure instantiated templates are included
13856 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
13859 if test "$GXX" = yes; then
13860 if test "$with_gnu_ld" = no
; then
13861 archive_cmds_CXX
='$CC -shared $pic_flag -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'
13863 archive_cmds_CXX
='$CC -shared $pic_flag -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'
13866 link_all_deplibs_CXX
=yes
13869 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13870 hardcode_libdir_separator_CXX
=:
13871 inherit_rpath_CXX
=yes
13874 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
13875 case $cc_basename in
13877 # Kuck and Associates, Inc. (KAI) C++ Compiler
13879 # KCC will only create a shared library if the output file
13880 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13881 # to its proper name (with version) after linking.
13882 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'
13883 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'
13884 # Commands to make compiler produce verbose output that lists
13885 # what "hidden" libraries, object files and flags are used when
13886 # linking a shared library.
13888 # There doesn't appear to be a way to prevent this compiler from
13889 # explicitly linking system object files so we need to strip them
13890 # from the output so that they don't get included in the library
13892 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"'
13894 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13895 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13897 # Archives containing C++ object files must be created using
13898 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13899 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
13904 # version 8.0 and above of icpc choke on multiply defined symbols
13905 # if we add $predep_objects and $postdep_objects, however 7.1 and
13906 # earlier do not add the objects themselves.
13907 case `$CC -V 2>&1` in
13909 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13910 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'
13912 *) # Version 8.0 or newer
13915 ia64
*) tmp_idyn
=' -i_dynamic';;
13917 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13918 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'
13921 archive_cmds_need_lc_CXX
=no
13922 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13923 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13924 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13927 # Portland Group C++ compiler
13929 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
13930 prelink_cmds_CXX
='tpldir=Template.dir~
13932 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13933 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13934 old_archive_cmds_CXX
='tpldir=Template.dir~
13936 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13937 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13939 archive_cmds_CXX
='tpldir=Template.dir~
13941 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13942 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13943 archive_expsym_cmds_CXX
='tpldir=Template.dir~
13945 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13946 $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'
13948 *) # Version 6 and above use weak symbols
13949 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13950 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'
13954 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
13955 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13956 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'
13960 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13961 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'
13963 runpath_var
=LD_RUN_PATH
13964 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
13965 hardcode_libdir_separator_CXX
=:
13967 # Commands to make compiler produce verbose output that lists
13968 # what "hidden" libraries, object files and flags are used when
13969 # linking a shared library.
13971 # There doesn't appear to be a way to prevent this compiler from
13972 # explicitly linking system object files so we need to strip them
13973 # from the output so that they don't get included in the library
13975 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'
13977 xl
* | mpixl
* | bgxl
*)
13978 # IBM XL 8.0 on PPC, with GNU ld
13979 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13980 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13981 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13982 if test "x$supports_anon_versioning" = xyes
; then
13983 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
13984 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13985 echo "local: *; };" >> $output_objdir/$libname.ver~
13986 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13990 case `$CC -V 2>&1 | sed 5q` in
13993 no_undefined_flag_CXX
=' -zdefs'
13994 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13995 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'
13996 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13997 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'
13998 compiler_needs_object_CXX
=yes
14000 # Not sure whether something based on
14001 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14003 output_verbose_link_cmd
='func_echo_all'
14005 # Archives containing C++ object files must be created using
14006 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14007 # necessary to make sure instantiated templates are included
14009 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
14017 # FIXME: insert proper C++ library support
14022 # FIXME: insert proper C++ library support
14027 case $cc_basename in
14029 # FIXME: insert proper C++ library support
14033 # FIXME: insert proper C++ library support
14040 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14041 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14043 hardcode_libdir_flag_spec_CXX
='-R$libdir'
14044 hardcode_direct_CXX
=yes
14045 hardcode_shlibpath_var_CXX
=no
14047 # Workaround some broken pre-1.5 toolchains
14048 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14056 # C++ shared libraries are fairly broken
14061 if test -f /usr
/libexec
/ld.so
; then
14062 hardcode_direct_CXX
=yes
14063 hardcode_shlibpath_var_CXX
=no
14064 hardcode_direct_absolute_CXX
=yes
14065 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14066 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
14067 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14068 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14069 export_dynamic_flag_spec_CXX
='${wl}-E'
14070 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14072 output_verbose_link_cmd
=func_echo_all
14078 osf3
* | osf4
* | osf5
*)
14079 case $cc_basename in
14081 # Kuck and Associates, Inc. (KAI) C++ Compiler
14083 # KCC will only create a shared library if the output file
14084 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14085 # to its proper name (with version) after linking.
14086 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'
14088 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
14089 hardcode_libdir_separator_CXX
=:
14091 # Archives containing C++ object files must be created using
14092 # the KAI C++ compiler.
14094 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
14095 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
14099 # Rational C++ 2.4.1
14100 # FIXME: insert proper C++ library support
14106 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
14107 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'
14108 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
14111 allow_undefined_flag_CXX
=' -expect_unresolved \*'
14112 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'
14113 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14114 echo "-hidden">> $lib.exp~
14115 $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~
14117 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
14121 hardcode_libdir_separator_CXX
=:
14123 # Commands to make compiler produce verbose output that lists
14124 # what "hidden" libraries, object files and flags are used when
14125 # linking a shared library.
14127 # There doesn't appear to be a way to prevent this compiler from
14128 # explicitly linking system object files so we need to strip them
14129 # from the output so that they don't get included in the library
14131 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"'
14134 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
14135 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
14138 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'
14141 archive_cmds_CXX
='$CC -shared $pic_flag -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'
14145 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
14146 hardcode_libdir_separator_CXX
=:
14148 # Commands to make compiler produce verbose output that lists
14149 # what "hidden" libraries, object files and flags are used when
14150 # linking a shared library.
14151 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14154 # FIXME: insert proper C++ library support
14162 # FIXME: insert proper C++ library support
14167 case $cc_basename in
14170 # FIXME: insert proper C++ library support
14175 # FIXME: insert proper C++ library support
14179 # FIXME: insert proper C++ library support
14186 case $cc_basename in
14188 # Sun C++ 4.2, 5.x and Centerline C++
14189 archive_cmds_need_lc_CXX
=yes
14190 no_undefined_flag_CXX
=' -zdefs'
14191 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14192 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14193 $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'
14195 hardcode_libdir_flag_spec_CXX
='-R$libdir'
14196 hardcode_shlibpath_var_CXX
=no
14198 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14200 # The compiler driver will combine and reorder linker options,
14201 # but understands `-z linker_flag'.
14202 # Supported since Solaris 2.6 (maybe 2.5.1?)
14203 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
14206 link_all_deplibs_CXX
=yes
14208 output_verbose_link_cmd
='func_echo_all'
14210 # Archives containing C++ object files must be created using
14211 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14212 # necessary to make sure instantiated templates are included
14214 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
14217 # Green Hills C++ Compiler
14218 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14220 # The C++ compiler must be used to create the archive.
14221 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14224 # GNU C++ compiler with Solaris linker
14225 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
14226 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
14227 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
14228 archive_cmds_CXX
='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14229 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14230 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14232 # Commands to make compiler produce verbose output that lists
14233 # what "hidden" libraries, object files and flags are used when
14234 # linking a shared library.
14235 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14237 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14239 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14240 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14241 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14243 # Commands to make compiler produce verbose output that lists
14244 # what "hidden" libraries, object files and flags are used when
14245 # linking a shared library.
14246 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14249 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
14251 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14253 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14261 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
14262 no_undefined_flag_CXX
='${wl}-z,text'
14263 archive_cmds_need_lc_CXX
=no
14264 hardcode_shlibpath_var_CXX
=no
14265 runpath_var
='LD_RUN_PATH'
14267 case $cc_basename in
14269 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14270 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14273 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14274 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14279 sysv5
* | sco3.2v5
* | sco5v6
*)
14280 # Note: We can NOT use -z defs as we might desire, because we do not
14281 # link with -lc, and that would cause any symbols used from libc to
14282 # always be unresolved, which means just about no library would
14283 # ever link correctly. If we're not using GNU ld we use -z text
14284 # though, which does catch some bad symbols but isn't as heavy-handed
14286 no_undefined_flag_CXX
='${wl}-z,text'
14287 allow_undefined_flag_CXX
='${wl}-z,nodefs'
14288 archive_cmds_need_lc_CXX
=no
14289 hardcode_shlibpath_var_CXX
=no
14290 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
14291 hardcode_libdir_separator_CXX
=':'
14292 link_all_deplibs_CXX
=yes
14293 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
14294 runpath_var
='LD_RUN_PATH'
14296 case $cc_basename in
14298 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14299 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14300 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
14301 '"$old_archive_cmds_CXX"
14302 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
14303 '"$reload_cmds_CXX"
14306 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14307 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14313 case $cc_basename in
14315 # NonStop-UX NCC 3.20
14316 # FIXME: insert proper C++ library support
14320 # FIXME: insert proper C++ library support
14327 # FIXME: insert proper C++ library support
14332 # FIXME: insert proper C++ library support
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14338 $as_echo "$ld_shlibs_CXX" >&6; }
14339 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
14345 ## There is no encapsulation within the following macros, do not change
14346 ## the running order or otherwise move them around unless you know exactly
14347 ## what you are doing...
14348 # Dependencies to place before and after the object being linked:
14349 predep_objects_CXX
=
14350 postdep_objects_CXX
=
14353 compiler_lib_search_path_CXX
=
14355 cat > conftest.
$ac_ext <<_LT_EOF
14359 Foo (void) { a = 0; }
14366 _lt_libdeps_save_CFLAGS
=$CFLAGS
14367 case "$CC $CFLAGS " in #(
14368 *\
-flto*\
*) CFLAGS
="$CFLAGS -fno-lto" ;;
14369 *\
-fwhopr*\
*) CFLAGS
="$CFLAGS -fno-whopr" ;;
14370 *\
-fuse-linker-plugin*\
*) CFLAGS
="$CFLAGS -fno-use-linker-plugin" ;;
14373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14374 (eval $ac_compile) 2>&5
14376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14377 test $ac_status = 0; }; then
14378 # Parse the compiler output and extract the necessary
14379 # objects, libraries and library flags.
14381 # Sentinel used to keep track of whether or not we are before
14382 # the conftest object file.
14383 pre_test_object_deps_done
=no
14385 for p
in `eval "$output_verbose_link_cmd"`; do
14386 case ${prev}${p} in
14389 # Some compilers place space between "-{L,R}" and the path.
14390 # Remove the space.
14391 if test $p = "-L" ||
14392 test $p = "-R"; then
14397 # Expand the sysroot to ease extracting the directories later.
14398 if test -z "$prev"; then
14400 -L*) func_stripname_cnf
'-L' '' "$p"; prev
=-L; p
=$func_stripname_result ;;
14401 -R*) func_stripname_cnf
'-R' '' "$p"; prev
=-R; p
=$func_stripname_result ;;
14402 -l*) func_stripname_cnf
'-l' '' "$p"; prev
=-l; p
=$func_stripname_result ;;
14406 =*) func_stripname_cnf
'=' '' "$p"; p
=$lt_sysroot$func_stripname_result ;;
14408 if test "$pre_test_object_deps_done" = no
; then
14411 # Internal compiler library paths should come after those
14412 # provided the user. The postdeps already come after the
14413 # user supplied libs so there is no need to process them.
14414 if test -z "$compiler_lib_search_path_CXX"; then
14415 compiler_lib_search_path_CXX
="${prev}${p}"
14417 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
14420 # The "-l" case would never come before the object being
14421 # linked, so don't bother handling this case.
14424 if test -z "$postdeps_CXX"; then
14425 postdeps_CXX
="${prev}${p}"
14427 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
14433 *.lto.
$objext) ;; # Ignore GCC LTO objects
14435 # This assumes that the test object file only shows up
14436 # once in the compiler output.
14437 if test "$p" = "conftest.$objext"; then
14438 pre_test_object_deps_done
=yes
14442 if test "$pre_test_object_deps_done" = no
; then
14443 if test -z "$predep_objects_CXX"; then
14444 predep_objects_CXX
="$p"
14446 predep_objects_CXX
="$predep_objects_CXX $p"
14449 if test -z "$postdep_objects_CXX"; then
14450 postdep_objects_CXX
="$p"
14452 postdep_objects_CXX
="$postdep_objects_CXX $p"
14457 *) ;; # Ignore the rest.
14465 echo "libtool.m4: error: problem compiling CXX test program"
14468 $RM -f confest.
$objext
14469 CFLAGS
=$_lt_libdeps_save_CFLAGS
14471 # PORTME: override above test on systems where it is broken
14474 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14475 # hack all around it, let's just trust "g++" to DTRT.
14476 predep_objects_CXX
=
14477 postdep_objects_CXX
=
14482 case `$CC -V 2>&1 | sed 5q` in
14486 # The more standards-conforming stlport4 library is
14487 # incompatible with the Cstd library. Avoid specifying
14488 # it if it's in CXXFLAGS. Ignore libCrun as
14489 # -library=stlport4 depends on it.
14490 case " $CXX $CXXFLAGS " in
14491 *" -library=stlport4 "*)
14492 solaris_use_stlport4
=yes
14496 if test "$solaris_use_stlport4" != yes; then
14497 postdeps_CXX
='-library=Cstd -library=Crun'
14504 case $cc_basename in
14506 # The more standards-conforming stlport4 library is
14507 # incompatible with the Cstd library. Avoid specifying
14508 # it if it's in CXXFLAGS. Ignore libCrun as
14509 # -library=stlport4 depends on it.
14510 case " $CXX $CXXFLAGS " in
14511 *" -library=stlport4 "*)
14512 solaris_use_stlport4
=yes
14516 # Adding this requires a known-good setup of shared libraries for
14517 # Sun compiler versions before 5.6, else PIC objects from an old
14518 # archive will be linked into the output, leading to subtle bugs.
14519 if test "$solaris_use_stlport4" != yes; then
14520 postdeps_CXX
='-library=Cstd -library=Crun'
14528 case " $postdeps_CXX " in
14529 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
14531 compiler_lib_search_dirs_CXX
=
14532 if test -n "${compiler_lib_search_path_CXX}"; then
14533 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14566 lt_prog_compiler_wl_CXX
=
14567 lt_prog_compiler_pic_CXX
=
14568 lt_prog_compiler_static_CXX
=
14571 # C++ specific cases for pic, static, wl, etc.
14572 if test "$GXX" = yes; then
14573 lt_prog_compiler_wl_CXX
='-Wl,'
14574 lt_prog_compiler_static_CXX
='-static'
14578 # All AIX code is PIC.
14579 if test "$host_cpu" = ia64
; then
14580 # AIX 5 now supports IA64 processor
14581 lt_prog_compiler_static_CXX
='-Bstatic'
14588 # see comment about AmigaOS4 .so support
14589 lt_prog_compiler_pic_CXX
='-fPIC'
14592 # FIXME: we need at least 68020 code to build shared libraries, but
14593 # adding the `-m68020' flag to GCC prevents building anything better,
14595 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
14600 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
14601 # PIC is the default for these OSes.
14603 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
14604 # This hack is so that the source file can tell whether it is being
14605 # built for inclusion in a dll (and should export symbols for example).
14606 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14607 # (--disable-auto-import) libraries
14608 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
14610 darwin
* | rhapsody
*)
14611 # PIC is the default on this platform
14612 # Common symbols not allowed in MH_DYLIB files
14613 lt_prog_compiler_pic_CXX
='-fno-common'
14616 # DJGPP does not support shared libraries at all
14617 lt_prog_compiler_pic_CXX
=
14620 # PIC is the default for Haiku.
14621 # The "-static" flag exists, but is broken.
14622 lt_prog_compiler_static_CXX
=
14625 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14626 # Instead, we relocate shared libraries at runtime.
14629 if test -d /usr
/nec
; then
14630 lt_prog_compiler_pic_CXX
=-Kconform_pic
14634 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14635 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14636 # sets the default TLS model and affects inlining.
14641 lt_prog_compiler_pic_CXX
='-fPIC'
14646 # QNX uses GNU C++, but need to define -shared option too, otherwise
14647 # it will coredump.
14648 lt_prog_compiler_pic_CXX
='-fPIC -shared'
14651 lt_prog_compiler_pic_CXX
='-fPIC'
14657 # All AIX code is PIC.
14658 if test "$host_cpu" = ia64
; then
14659 # AIX 5 now supports IA64 processor
14660 lt_prog_compiler_static_CXX
='-Bstatic'
14662 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
14666 case $cc_basename in
14668 # Green Hills C++ Compiler
14669 # _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"
14673 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
14674 # This hack is so that the source file can tell whether it is being
14675 # built for inclusion in a dll (and should export symbols for example).
14676 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
14679 case $cc_basename in
14681 lt_prog_compiler_pic_CXX
='-KPIC'
14684 # Green Hills C++ Compiler
14685 lt_prog_compiler_pic_CXX
='-pic'
14691 freebsd
* | dragonfly
*)
14692 # FreeBSD uses GNU C++
14694 hpux9
* | hpux10
* | hpux11
*)
14695 case $cc_basename in
14697 lt_prog_compiler_wl_CXX
='-Wl,'
14698 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
14699 if test "$host_cpu" != ia64
; then
14700 lt_prog_compiler_pic_CXX
='+Z'
14704 lt_prog_compiler_wl_CXX
='-Wl,'
14705 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
14711 lt_prog_compiler_pic_CXX
='+Z'
14720 # This is c89, which is MS Visual C++ (no shared libs)
14721 # Anyone wants to do a port?
14723 irix5
* | irix6
* | nonstopux
*)
14724 case $cc_basename in
14726 lt_prog_compiler_wl_CXX
='-Wl,'
14727 lt_prog_compiler_static_CXX
='-non_shared'
14728 # CC pic flag -KPIC is the default.
14734 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
14735 case $cc_basename in
14738 lt_prog_compiler_wl_CXX
='--backend -Wl,'
14739 lt_prog_compiler_pic_CXX
='-fPIC'
14742 # old Intel C++ for x86_64 which still supported -KPIC.
14743 lt_prog_compiler_wl_CXX
='-Wl,'
14744 lt_prog_compiler_pic_CXX
='-KPIC'
14745 lt_prog_compiler_static_CXX
='-static'
14748 # Intel C++, used to be incompatible with GCC.
14749 # ICC 10 doesn't accept -KPIC any more.
14750 lt_prog_compiler_wl_CXX
='-Wl,'
14751 lt_prog_compiler_pic_CXX
='-fPIC'
14752 lt_prog_compiler_static_CXX
='-static'
14755 # Portland Group C++ compiler
14756 lt_prog_compiler_wl_CXX
='-Wl,'
14757 lt_prog_compiler_pic_CXX
='-fpic'
14758 lt_prog_compiler_static_CXX
='-Bstatic'
14762 # Make sure the PIC flag is empty. It appears that all Alpha
14763 # Linux and Compaq Tru64 Unix objects are PIC.
14764 lt_prog_compiler_pic_CXX
=
14765 lt_prog_compiler_static_CXX
='-non_shared'
14767 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
14768 # IBM XL 8.0, 9.0 on PPC and BlueGene
14769 lt_prog_compiler_wl_CXX
='-Wl,'
14770 lt_prog_compiler_pic_CXX
='-qpic'
14771 lt_prog_compiler_static_CXX
='-qstaticlink'
14774 case `$CC -V 2>&1 | sed 5q` in
14777 lt_prog_compiler_pic_CXX
='-KPIC'
14778 lt_prog_compiler_static_CXX
='-Bstatic'
14779 lt_prog_compiler_wl_CXX
='-Qoption ld '
14790 case $cc_basename in
14792 lt_prog_compiler_pic_CXX
='-W c,exportall'
14798 netbsd
* | netbsdelf
*-gnu)
14801 # QNX uses GNU C++, but need to define -shared option too, otherwise
14802 # it will coredump.
14803 lt_prog_compiler_pic_CXX
='-fPIC -shared'
14805 osf3
* | osf4
* | osf5
*)
14806 case $cc_basename in
14808 lt_prog_compiler_wl_CXX
='--backend -Wl,'
14811 # Rational C++ 2.4.1
14812 lt_prog_compiler_pic_CXX
='-pic'
14815 # Digital/Compaq C++
14816 lt_prog_compiler_wl_CXX
='-Wl,'
14817 # Make sure the PIC flag is empty. It appears that all Alpha
14818 # Linux and Compaq Tru64 Unix objects are PIC.
14819 lt_prog_compiler_pic_CXX
=
14820 lt_prog_compiler_static_CXX
='-non_shared'
14829 case $cc_basename in
14831 # Sun C++ 4.2, 5.x and Centerline C++
14832 lt_prog_compiler_pic_CXX
='-KPIC'
14833 lt_prog_compiler_static_CXX
='-Bstatic'
14834 lt_prog_compiler_wl_CXX
='-Qoption ld '
14837 # Green Hills C++ Compiler
14838 lt_prog_compiler_pic_CXX
='-PIC'
14845 case $cc_basename in
14848 lt_prog_compiler_pic_CXX
='-pic'
14849 lt_prog_compiler_static_CXX
='-Bstatic'
14853 lt_prog_compiler_pic_CXX
='-pic'
14859 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
14860 case $cc_basename in
14862 lt_prog_compiler_wl_CXX
='-Wl,'
14863 lt_prog_compiler_pic_CXX
='-KPIC'
14864 lt_prog_compiler_static_CXX
='-Bstatic'
14869 case $cc_basename in
14871 # NonStop-UX NCC 3.20
14872 lt_prog_compiler_pic_CXX
='-KPIC'
14881 lt_prog_compiler_can_build_shared_CXX
=no
14887 # For platforms which do not support PIC, -DPIC is meaningless:
14889 lt_prog_compiler_pic_CXX
=
14892 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14897 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14898 if ${lt_cv_prog_compiler_pic_CXX+:} false
; then :
14899 $as_echo_n "(cached) " >&6
14901 lt_cv_prog_compiler_pic_CXX
=$lt_prog_compiler_pic_CXX
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14904 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14905 lt_prog_compiler_pic_CXX
=$lt_cv_prog_compiler_pic_CXX
14908 # Check to make sure the PIC flag actually works.
14910 if test -n "$lt_prog_compiler_pic_CXX"; then
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14912 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14913 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
14914 $as_echo_n "(cached) " >&6
14916 lt_cv_prog_compiler_pic_works_CXX
=no
14917 ac_outfile
=conftest.
$ac_objext
14918 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14919 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
14920 # Insert the option either (1) after the last *FLAGS variable, or
14921 # (2) before a word containing "conftest.", or (3) at the end.
14922 # Note that $ac_compile itself does not contain backslashes and begins
14923 # with a dollar sign (not a hyphen), so the echo should work correctly.
14924 # The option is referenced via a variable to avoid confusing sed.
14925 lt_compile
=`echo "$ac_compile" | $SED \
14926 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14928 -e 's:$: $lt_compiler_flag:'`
14929 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14930 (eval "$lt_compile" 2>conftest.err
)
14932 cat conftest.err
>&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 if (exit $ac_status) && test -s "$ac_outfile"; then
14935 # The compiler can only warn and ignore the option if not recognized
14936 # So say no if there are warnings other than the usual output.
14937 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
14938 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14939 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14940 lt_cv_prog_compiler_pic_works_CXX
=yes
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14947 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14949 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
14950 case $lt_prog_compiler_pic_CXX in
14952 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
14955 lt_prog_compiler_pic_CXX
=
14956 lt_prog_compiler_can_build_shared_CXX
=no
14966 # Check to make sure the static flag actually works.
14968 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14970 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14971 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
14972 $as_echo_n "(cached) " >&6
14974 lt_cv_prog_compiler_static_works_CXX
=no
14975 save_LDFLAGS
="$LDFLAGS"
14976 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
14977 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
14978 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
14979 # The linker can only warn and ignore the option if not recognized
14980 # So say no if there are warnings
14981 if test -s conftest.err
; then
14982 # Append any errors to the config.log.
14983 cat conftest.err
1>&5
14984 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
14985 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14986 if diff conftest.exp conftest.er2
>/dev
/null
; then
14987 lt_cv_prog_compiler_static_works_CXX
=yes
14990 lt_cv_prog_compiler_static_works_CXX
=yes
14994 LDFLAGS
="$save_LDFLAGS"
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14998 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15000 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
15003 lt_prog_compiler_static_CXX
=
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15010 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15011 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
15012 $as_echo_n "(cached) " >&6
15014 lt_cv_prog_compiler_c_o_CXX
=no
15015 $RM -r conftest
2>/dev
/null
15019 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15021 lt_compiler_flag
="-o out/conftest2.$ac_objext"
15022 # Insert the option either (1) after the last *FLAGS variable, or
15023 # (2) before a word containing "conftest.", or (3) at the end.
15024 # Note that $ac_compile itself does not contain backslashes and begins
15025 # with a dollar sign (not a hyphen), so the echo should work correctly.
15026 lt_compile
=`echo "$ac_compile" | $SED \
15027 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15029 -e 's:$: $lt_compiler_flag:'`
15030 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15031 (eval "$lt_compile" 2>out
/conftest.err
)
15033 cat out
/conftest.err
>&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
15037 # The compiler can only warn and ignore the option if not recognized
15038 # So say no if there are warnings
15039 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
15040 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
15041 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
15042 lt_cv_prog_compiler_c_o_CXX
=yes
15047 # SGI C++ compiler will create directory out/ii_files/ for
15048 # template instantiation
15049 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
15050 $RM out
/* && rmdir out
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15057 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15062 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15063 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
15064 $as_echo_n "(cached) " >&6
15066 lt_cv_prog_compiler_c_o_CXX
=no
15067 $RM -r conftest
2>/dev
/null
15071 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15073 lt_compiler_flag
="-o out/conftest2.$ac_objext"
15074 # Insert the option either (1) after the last *FLAGS variable, or
15075 # (2) before a word containing "conftest.", or (3) at the end.
15076 # Note that $ac_compile itself does not contain backslashes and begins
15077 # with a dollar sign (not a hyphen), so the echo should work correctly.
15078 lt_compile
=`echo "$ac_compile" | $SED \
15079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15081 -e 's:$: $lt_compiler_flag:'`
15082 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15083 (eval "$lt_compile" 2>out
/conftest.err
)
15085 cat out
/conftest.err
>&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
15089 # The compiler can only warn and ignore the option if not recognized
15090 # So say no if there are warnings
15091 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
15092 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
15093 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
15094 lt_cv_prog_compiler_c_o_CXX
=yes
15099 # SGI C++ compiler will create directory out/ii_files/ for
15100 # template instantiation
15101 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
15102 $RM out
/* && rmdir out
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15109 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15114 hard_links
="nottested"
15115 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
15116 # do not overwrite the value of need_locks provided by the user
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15118 $as_echo_n "checking if we can lock with hard links... " >&6; }
15121 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15123 ln conftest.a conftest.b
2>&5 || hard_links
=no
15124 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15126 $as_echo "$hard_links" >&6; }
15127 if test "$hard_links" = no
; then
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15129 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15139 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15141 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15142 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15145 # If we're using GNU nm, then we don't want the "-C" option.
15146 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15147 # Also, AIX nm treats weak defined symbols like other global defined
15148 # symbols, whereas GNU nm marks them as "W".
15149 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15150 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'
15152 export_symbols_cmds_CXX
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15156 export_symbols_cmds_CXX
="$ltdll_cmds"
15158 cygwin
* | mingw
* | cegcc
*)
15159 case $cc_basename in
15161 exclude_expsyms_CXX
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15164 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15165 exclude_expsyms_CXX
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15169 linux
* | k
*bsd
*-gnu | gnu
*)
15170 link_all_deplibs_CXX
=no
15173 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15178 $as_echo "$ld_shlibs_CXX" >&6; }
15179 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
15181 with_gnu_ld_CXX
=$with_gnu_ld
15189 # Do we need to explicitly link libc?
15191 case "x$archive_cmds_need_lc_CXX" in
15193 # Assume -lc should be added
15194 archive_cmds_need_lc_CXX
=yes
15196 if test "$enable_shared" = yes && test "$GCC" = yes; then
15197 case $archive_cmds_CXX in
15199 # FIXME: we may have to deal with multi-command sequences.
15202 # Test whether the compiler implicitly links with -lc since on some
15203 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15204 # to ld, don't add -lc before -lgcc.
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15206 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15207 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
15208 $as_echo_n "(cached) " >&6
15211 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15214 (eval $ac_compile) 2>&5
15216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15217 test $ac_status = 0; } 2>conftest.err
; then
15220 libobjs
=conftest.
$ac_objext
15222 wl
=$lt_prog_compiler_wl_CXX
15223 pic_flag
=$lt_prog_compiler_pic_CXX
15229 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
15230 allow_undefined_flag_CXX
=
15231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15232 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15235 test $ac_status = 0; }
15237 lt_cv_archive_cmds_need_lc_CXX
=no
15239 lt_cv_archive_cmds_need_lc_CXX
=yes
15241 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
15243 cat conftest.err
1>&5
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15249 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15250 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15319 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15321 library_names_spec
=
15322 libname_spec
='lib$name'
15326 postuninstall_cmds
=
15330 shlibpath_overrides_runpath
=unknown
15332 dynamic_linker
="$host_os ld.so"
15333 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15334 need_lib_prefix
=unknown
15335 hardcode_into_libs
=no
15337 # when you set need_version to no, make sure it does not cause -set_version
15338 # flags to be left without arguments
15339 need_version
=unknown
15343 version_type
=linux
# correct to gnu/linux during the next big refactor
15344 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
15345 shlibpath_var
=LIBPATH
15347 # AIX 3 has no versioning support, so we append a major version to the name.
15348 soname_spec
='${libname}${release}${shared_ext}$major'
15352 version_type
=linux
# correct to gnu/linux during the next big refactor
15355 hardcode_into_libs
=yes
15356 if test "$host_cpu" = ia64
; then
15357 # AIX 5 supports IA64
15358 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15359 shlibpath_var
=LD_LIBRARY_PATH
15361 # With GCC up to 2.95.x, collect2 would create an import file
15362 # for dependence libraries. The import file would start with
15363 # the line `#! .'. This would cause the generated library to
15364 # depend on `.', always an invalid library. This was fixed in
15365 # development snapshots of GCC prior to 3.0.
15367 aix4 | aix4.
[01] | aix4.
[01].
*)
15368 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15370 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
15373 can_build_shared
=no
15377 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15378 # soname into executable. Probably we can add versioning support to
15379 # collect2, so additional links can be useful in future.
15380 if test "$aix_use_runtimelinking" = yes; then
15381 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15382 # instead of lib<name>.a to let people know that these are not
15383 # typical AIX shared libraries.
15384 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15386 # We preserve .a as extension for shared libraries through AIX4.2
15387 # and later when we are not doing run time linking.
15388 library_names_spec
='${libname}${release}.a $libname.a'
15389 soname_spec
='${libname}${release}${shared_ext}$major'
15391 shlibpath_var
=LIBPATH
15398 # Since July 2007 AmigaOS4 officially supports .so libraries.
15399 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15400 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15403 library_names_spec
='$libname.ixlibrary $libname.a'
15404 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15405 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'
15411 library_names_spec
='${libname}${shared_ext}'
15412 dynamic_linker
="$host_os ld.so"
15413 shlibpath_var
=LIBRARY_PATH
15417 version_type
=linux
# correct to gnu/linux during the next big refactor
15419 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15420 soname_spec
='${libname}${release}${shared_ext}$major'
15421 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15422 shlibpath_var
=LD_LIBRARY_PATH
15423 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15424 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15425 # the default ld.so.conf also contains /usr/contrib/lib and
15426 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15427 # libtool to hard-code these into programs
15430 cygwin
* | mingw
* | pw32
* | cegcc
*)
15431 version_type
=windows
15436 case $GCC,$cc_basename in
15439 library_names_spec
='$libname.dll.a'
15440 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15441 postinstall_cmds
='base_file=`basename \${file}`~
15442 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15443 dldir=$destdir/`dirname \$dlpath`~
15444 test -d \$dldir || mkdir -p \$dldir~
15445 $install_prog $dir/$dlname \$dldir/$dlname~
15446 chmod a+x \$dldir/$dlname~
15447 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15448 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15450 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15451 dlpath=$dir/\$dldll~
15453 shlibpath_overrides_runpath
=yes
15457 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15458 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15462 # MinGW DLLs use traditional 'lib' prefix
15463 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15466 # pw32 DLLs use 'pw' prefix rather than 'lib'
15467 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15470 dynamic_linker
='Win32 ld.exe'
15475 libname_spec
='$name'
15476 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15477 library_names_spec
='${libname}.dll.lib'
15481 sys_lib_search_path_spec
=
15484 for lt_path
in $LIB
15487 # Let DOS variable expansion print the short 8.3 style file name.
15488 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15489 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
15492 # Convert to MSYS style.
15493 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15496 # Convert to unix form, then to dos form, then back to unix form
15497 # but this time dos style (no spaces!) so that the unix form looks
15498 # like /cygdrive/c/PROGRA~1:/cygdr...
15499 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
15500 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15501 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15504 sys_lib_search_path_spec
="$LIB"
15505 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
15506 # It is most probably a Windows format PATH.
15507 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15509 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15511 # FIXME: find the short name or the path components, as spaces are
15512 # common. (e.g. "Program Files" -> "PROGRA~1")
15516 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15517 postinstall_cmds
='base_file=`basename \${file}`~
15518 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15519 dldir=$destdir/`dirname \$dlpath`~
15520 test -d \$dldir || mkdir -p \$dldir~
15521 $install_prog $dir/$dlname \$dldir/$dlname'
15522 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15523 dlpath=$dir/\$dldll~
15525 shlibpath_overrides_runpath
=yes
15526 dynamic_linker
='Win32 link.exe'
15530 # Assume MSVC wrapper
15531 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15532 dynamic_linker
='Win32 ld.exe'
15535 # FIXME: first we should search . and the directory the executable is in
15539 darwin
* | rhapsody
*)
15540 dynamic_linker
="$host_os dyld"
15541 version_type
=darwin
15544 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15545 soname_spec
='${libname}${release}${major}$shared_ext'
15546 shlibpath_overrides_runpath
=yes
15547 shlibpath_var
=DYLD_LIBRARY_PATH
15548 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
15550 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15554 version_type
=linux
# correct to gnu/linux during the next big refactor
15557 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15558 soname_spec
='${libname}${release}${shared_ext}$major'
15559 shlibpath_var
=LD_LIBRARY_PATH
15562 freebsd
* | dragonfly
*)
15563 # DragonFly does not have aout. When/if they implement a new
15564 # versioning mechanism, adjust this.
15565 if test -x /usr
/bin
/objformat
; then
15566 objformat
=`/usr/bin/objformat`
15569 freebsd
[23].
*) objformat
=aout
;;
15570 *) objformat
=elf
;;
15573 version_type
=freebsd-
$objformat
15574 case $version_type in
15576 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15581 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15585 shlibpath_var
=LD_LIBRARY_PATH
15588 shlibpath_overrides_runpath
=yes
15590 freebsd3.
[01]* | freebsdelf3.
[01]*)
15591 shlibpath_overrides_runpath
=yes
15592 hardcode_into_libs
=yes
15594 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
15595 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
15596 shlibpath_overrides_runpath
=no
15597 hardcode_into_libs
=yes
15599 *) # from 4.6 on, and DragonFly
15600 shlibpath_overrides_runpath
=yes
15601 hardcode_into_libs
=yes
15607 version_type
=linux
# correct to gnu/linux during the next big refactor
15610 dynamic_linker
="$host_os runtime_loader"
15611 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15612 soname_spec
='${libname}${release}${shared_ext}$major'
15613 shlibpath_var
=LIBRARY_PATH
15614 shlibpath_overrides_runpath
=yes
15615 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15616 hardcode_into_libs
=yes
15619 hpux9
* | hpux10
* | hpux11
*)
15620 # Give a soname corresponding to the major version so that dld.sl refuses to
15621 # link against other versions.
15628 hardcode_into_libs
=yes
15629 dynamic_linker
="$host_os dld.so"
15630 shlibpath_var
=LD_LIBRARY_PATH
15631 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15632 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15633 soname_spec
='${libname}${release}${shared_ext}$major'
15634 if test "X$HPUX_IA64_MODE" = X32
; then
15635 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15637 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15639 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15643 hardcode_into_libs
=yes
15644 dynamic_linker
="$host_os dld.sl"
15645 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15646 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15647 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15648 soname_spec
='${libname}${release}${shared_ext}$major'
15649 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15650 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15654 dynamic_linker
="$host_os dld.sl"
15655 shlibpath_var
=SHLIB_PATH
15656 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15657 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658 soname_spec
='${libname}${release}${shared_ext}$major'
15661 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15662 postinstall_cmds
='chmod 555 $lib'
15663 # or fails outright, so override atomically:
15664 install_override_mode
=555
15668 version_type
=linux
# correct to gnu/linux during the next big refactor
15671 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15672 soname_spec
='${libname}${release}${shared_ext}$major'
15673 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15674 shlibpath_var
=LD_LIBRARY_PATH
15675 shlibpath_overrides_runpath
=no
15676 hardcode_into_libs
=yes
15679 irix5
* | irix6
* | nonstopux
*)
15681 nonstopux
*) version_type
=nonstopux
;;
15683 if test "$lt_cv_prog_gnu_ld" = yes; then
15684 version_type
=linux
# correct to gnu/linux during the next big refactor
15691 soname_spec
='${libname}${release}${shared_ext}$major'
15692 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15694 irix5
* | nonstopux
*)
15695 libsuff
= shlibsuff
=
15698 case $LD in # libtool.m4 will add one of these switches to LD
15699 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15700 libsuff
= shlibsuff
= libmagic
=32-bit;;
15701 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15702 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15703 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15704 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15705 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15709 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15710 shlibpath_overrides_runpath
=no
15711 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15712 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15713 hardcode_into_libs
=yes
15716 # No shared lib support for Linux oldld, aout, or coff.
15717 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15721 # This must be glibc/ELF.
15722 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
15723 version_type
=linux
# correct to gnu/linux during the next big refactor
15726 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15727 soname_spec
='${libname}${release}${shared_ext}$major'
15728 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15729 shlibpath_var
=LD_LIBRARY_PATH
15730 shlibpath_overrides_runpath
=no
15732 # Some binutils ld are patched to set DT_RUNPATH
15733 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
15734 $as_echo_n "(cached) " >&6
15736 lt_cv_shlibpath_overrides_runpath
=no
15737 save_LDFLAGS
=$LDFLAGS
15738 save_libdir
=$libdir
15739 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15740 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15742 /* end confdefs.h. */
15752 if ac_fn_cxx_try_link
"$LINENO"; then :
15753 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
15754 lt_cv_shlibpath_overrides_runpath
=yes
15757 rm -f core conftest.err conftest.
$ac_objext \
15758 conftest
$ac_exeext conftest.
$ac_ext
15759 LDFLAGS
=$save_LDFLAGS
15760 libdir
=$save_libdir
15764 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
15766 # This implies no fast_install, which is unacceptable.
15767 # Some rework will be needed to allow for fast_install
15768 # before this can be enabled.
15769 hardcode_into_libs
=yes
15771 # Append ld.so.conf contents to the search path
15772 if test -f /etc
/ld.so.conf
; then
15773 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' ' '`
15774 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
15777 # We used to test for /lib/ld.so.1 and disable shared libraries on
15778 # powerpc, because MkLinux only supported shared libraries with the
15779 # GNU dynamic linker. Since this was broken with cross compilers,
15780 # most powerpc-linux boxes support dynamic linking these days and
15781 # people can always --disable-shared, the test was removed, and we
15782 # assume the GNU/Linux dynamic linker is in use.
15783 dynamic_linker
='GNU/Linux ld.so'
15790 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15791 soname_spec
='${libname}${release}${shared_ext}$major'
15792 shlibpath_var
=LD_LIBRARY_PATH
15793 shlibpath_overrides_runpath
=no
15794 hardcode_into_libs
=yes
15795 dynamic_linker
='NetBSD ld.elf_so'
15802 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15803 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15804 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15805 dynamic_linker
='NetBSD (a.out) ld.so'
15807 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15808 soname_spec
='${libname}${release}${shared_ext}$major'
15809 dynamic_linker
='NetBSD ld.elf_so'
15811 shlibpath_var
=LD_LIBRARY_PATH
15812 shlibpath_overrides_runpath
=yes
15813 hardcode_into_libs
=yes
15817 version_type
=linux
# correct to gnu/linux during the next big refactor
15818 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15819 shlibpath_var
=LD_LIBRARY_PATH
15820 shlibpath_overrides_runpath
=yes
15827 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15828 soname_spec
='${libname}${release}${shared_ext}$major'
15829 shlibpath_var
=LD_LIBRARY_PATH
15830 shlibpath_overrides_runpath
=no
15831 hardcode_into_libs
=yes
15832 dynamic_linker
='ldqnx.so'
15837 sys_lib_dlsearch_path_spec
="/usr/lib"
15839 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15841 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15842 *) need_version
=no
;;
15844 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15845 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15846 shlibpath_var
=LD_LIBRARY_PATH
15847 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15849 openbsd2.
[89] | openbsd2.
[89].
*)
15850 shlibpath_overrides_runpath
=no
15853 shlibpath_overrides_runpath
=yes
15857 shlibpath_overrides_runpath
=yes
15862 libname_spec
='$name'
15865 library_names_spec
='$libname${shared_ext} $libname.a'
15866 dynamic_linker
='OS/2 ld.exe'
15867 shlibpath_var
=LIBPATH
15870 osf3
* | osf4
* | osf5
*)
15874 soname_spec
='${libname}${release}${shared_ext}$major'
15875 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15876 shlibpath_var
=LD_LIBRARY_PATH
15877 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15878 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15886 version_type
=linux
# correct to gnu/linux during the next big refactor
15889 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15890 soname_spec
='${libname}${release}${shared_ext}$major'
15891 shlibpath_var
=LD_LIBRARY_PATH
15892 shlibpath_overrides_runpath
=yes
15893 hardcode_into_libs
=yes
15894 # ldd complains unless libraries are executable
15895 postinstall_cmds
='chmod +x $lib'
15900 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15901 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15902 shlibpath_var
=LD_LIBRARY_PATH
15903 shlibpath_overrides_runpath
=yes
15904 if test "$with_gnu_ld" = yes; then
15911 version_type
=linux
# correct to gnu/linux during the next big refactor
15912 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15913 soname_spec
='${libname}${release}${shared_ext}$major'
15914 shlibpath_var
=LD_LIBRARY_PATH
15915 case $host_vendor in
15917 shlibpath_overrides_runpath
=no
15919 runpath_var
=LD_RUN_PATH
15927 shlibpath_overrides_runpath
=no
15928 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15934 if test -d /usr
/nec
;then
15935 version_type
=linux
# correct to gnu/linux during the next big refactor
15936 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15937 soname_spec
='$libname${shared_ext}.$major'
15938 shlibpath_var
=LD_LIBRARY_PATH
15942 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
15943 version_type
=freebsd-elf
15946 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15947 soname_spec
='${libname}${release}${shared_ext}$major'
15948 shlibpath_var
=LD_LIBRARY_PATH
15949 shlibpath_overrides_runpath
=yes
15950 hardcode_into_libs
=yes
15951 if test "$with_gnu_ld" = yes; then
15952 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15954 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15957 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15961 sys_lib_dlsearch_path_spec
='/usr/lib'
15965 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15966 version_type
=linux
# correct to gnu/linux during the next big refactor
15969 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15970 shlibpath_var
=LD_LIBRARY_PATH
15971 shlibpath_overrides_runpath
=no
15972 hardcode_into_libs
=yes
15976 version_type
=linux
# correct to gnu/linux during the next big refactor
15977 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15978 soname_spec
='${libname}${release}${shared_ext}$major'
15979 shlibpath_var
=LD_LIBRARY_PATH
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15987 $as_echo "$dynamic_linker" >&6; }
15988 test "$dynamic_linker" = no
&& can_build_shared
=no
15990 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15991 if test "$GCC" = yes; then
15992 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15995 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15996 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
15998 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15999 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16040 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16041 hardcode_action_CXX
=
16042 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16043 test -n "$runpath_var_CXX" ||
16044 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16046 # We can hardcode non-existent directories.
16047 if test "$hardcode_direct_CXX" != no
&&
16048 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16049 # have to relink, otherwise we might link with an installed library
16050 # when we should be linking with a yet-to-be-installed one
16051 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16052 test "$hardcode_minus_L_CXX" != no
; then
16053 # Linking always hardcodes the temporary library directory.
16054 hardcode_action_CXX
=relink
16056 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16057 hardcode_action_CXX
=immediate
16060 # We cannot hardcode anything, or else we can only hardcode existing
16062 hardcode_action_CXX
=unsupported
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16065 $as_echo "$hardcode_action_CXX" >&6; }
16067 if test "$hardcode_action_CXX" = relink ||
16068 test "$inherit_rpath_CXX" = yes; then
16069 # Fast installation is not supported
16070 enable_fast_install
=no
16071 elif test "$shlibpath_overrides_runpath" = yes ||
16072 test "$enable_shared" = no
; then
16073 # Fast installation is not necessary
16074 enable_fast_install
=needless
16083 fi # test -n "$compiler"
16086 CFLAGS
=$lt_save_CFLAGS
16090 with_gnu_ld
=$lt_save_with_gnu_ld
16091 lt_cv_path_LDCXX
=$lt_cv_path_LD
16092 lt_cv_path_LD
=$lt_save_path_LD
16093 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
16094 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
16095 fi # test "$_lt_caught_CXX_error" != yes
16098 ac_cpp
='$CPP $CPPFLAGS'
16099 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16100 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16101 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16104 if test "x$CXX" != "x"; then # CXX is set...
16105 if test -f "$CXX"; then # maybe it's an absolute path passed in env variables...
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX" >&5
16107 $as_echo_n "checking for $CXX... " >&6; }
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CXX" >&5
16110 $as_echo "$HAVE_CXX" >&6; }
16112 # Extract the first word of "$CXX", so it can be a program name with args.
16113 set dummy
$CXX; ac_word
=$2
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16115 $as_echo_n "checking for $ac_word... " >&6; }
16116 if ${ac_cv_prog_HAVE_CXX+:} false
; then :
16117 $as_echo_n "(cached) " >&6
16119 if test -n "$HAVE_CXX"; then
16120 ac_cv_prog_HAVE_CXX
="$HAVE_CXX" # Let the user override the test.
16122 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16123 for as_dir
in $PATH
16126 test -z "$as_dir" && as_dir
=.
16127 for ac_exec_ext
in '' $ac_executable_extensions; do
16128 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16129 ac_cv_prog_HAVE_CXX
="yes"
16130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16137 test -z "$ac_cv_prog_HAVE_CXX" && ac_cv_prog_HAVE_CXX
="no"
16140 HAVE_CXX
=$ac_cv_prog_HAVE_CXX
16141 if test -n "$HAVE_CXX"; then
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CXX" >&5
16143 $as_echo "$HAVE_CXX" >&6; }
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16146 $as_echo "no" >&6; }
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16153 $as_echo_n "checking for inline... " >&6; }
16154 if ${ac_cv_c_inline+:} false
; then :
16155 $as_echo_n "(cached) " >&6
16158 for ac_kw
in inline __inline__ __inline
; do
16159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16160 /* end confdefs.h. */
16161 #ifndef __cplusplus
16163 static $ac_kw foo_t static_foo () {return 0; }
16164 $ac_kw foo_t foo () {return 0; }
16168 if ac_fn_c_try_compile
"$LINENO"; then :
16169 ac_cv_c_inline
=$ac_kw
16171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16172 test "$ac_cv_c_inline" != no
&& break
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16177 $as_echo "$ac_cv_c_inline" >&6; }
16179 case $ac_cv_c_inline in
16182 case $ac_cv_c_inline in
16184 *) ac_val
=$ac_cv_c_inline;;
16186 cat >>confdefs.h
<<_ACEOF
16187 #ifndef __cplusplus
16188 #define inline $ac_val
16194 if test "x$GCC" = "xyes" ; then
16196 CFLAGS
="$CFLAGS -std=gnu99 -ggdb3 -Wall -W -Wpointer-arith -Wformat-security -Wcast-align -Wundef -Wcast-align -Wstrict-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wredundant-decls -Wnested-externs -Wunused-parameter -Wwrite-strings -Winline -Wfloat-equal"
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
16199 $as_echo_n "checking gcc version... " >&6; }
16200 GCC_VERSION
=`$CC -dumpversion`
16201 GCC_MAJOR
=`echo $GCC_VERSION | cut -d . -f1`
16202 GCC_MINOR
=`echo $GCC_VERSION | cut -d . -f2`
16203 GCC_VERSION_NUM
=`(expr $GCC_MAJOR "*" 100 + $GCC_MINOR) 2>/dev/null`
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
16206 $as_echo "$GCC_VERSION" >&6; }
16207 if test $GCC_VERSION_NUM -ge 304; then
16208 CFLAGS
="$CFLAGS -Wextra -Wdeclaration-after-statement -Winit-self"
16210 if test $GCC_VERSION_NUM -ge 403; then
16211 CFLAGS
="$CFLAGS -Wvariadic-macros"
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16216 $as_echo_n "checking for ANSI C header files... " >&6; }
16217 if ${ac_cv_header_stdc+:} false
; then :
16218 $as_echo_n "(cached) " >&6
16220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16221 /* end confdefs.h. */
16222 #include <stdlib.h>
16223 #include <stdarg.h>
16224 #include <string.h>
16235 if ac_fn_c_try_compile
"$LINENO"; then :
16236 ac_cv_header_stdc
=yes
16238 ac_cv_header_stdc
=no
16240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16242 if test $ac_cv_header_stdc = yes; then
16243 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16245 /* end confdefs.h. */
16246 #include <string.h>
16249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16250 $EGREP "memchr" >/dev
/null
2>&1; then :
16253 ac_cv_header_stdc
=no
16259 if test $ac_cv_header_stdc = yes; then
16260 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16262 /* end confdefs.h. */
16263 #include <stdlib.h>
16266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16267 $EGREP "free" >/dev
/null
2>&1; then :
16270 ac_cv_header_stdc
=no
16276 if test $ac_cv_header_stdc = yes; then
16277 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16278 if test "$cross_compiling" = yes; then :
16281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h. */
16284 #include <stdlib.h>
16285 #if ((' ' & 0x0FF) == 0x020)
16286 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16287 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16289 # define ISLOWER(c) \
16290 (('a' <= (c) && (c) <= 'i') \
16291 || ('j' <= (c) && (c) <= 'r') \
16292 || ('s' <= (c) && (c) <= 'z'))
16293 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16296 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16301 for (i = 0; i < 256; i++)
16302 if (XOR (islower (i), ISLOWER (i))
16303 || toupper (i) != TOUPPER (i))
16308 if ac_fn_c_try_run
"$LINENO"; then :
16311 ac_cv_header_stdc
=no
16313 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16314 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16320 $as_echo "$ac_cv_header_stdc" >&6; }
16321 if test $ac_cv_header_stdc = yes; then
16323 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16328 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16329 if ${ac_cv_header_time+:} false
; then :
16330 $as_echo_n "(cached) " >&6
16332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h. */
16334 #include <sys/types.h>
16335 #include <sys/time.h>
16341 if ((struct tm *) 0)
16347 if ac_fn_c_try_compile
"$LINENO"; then :
16348 ac_cv_header_time
=yes
16350 ac_cv_header_time
=no
16352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16355 $as_echo "$ac_cv_header_time" >&6; }
16356 if test $ac_cv_header_time = yes; then
16358 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16363 for ac_header
in stdbool.h
16365 ac_fn_c_check_header_mongrel
"$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
16366 if test "x$ac_cv_header_stdbool_h" = xyes
; then :
16367 cat >>confdefs.h
<<_ACEOF
16368 #define HAVE_STDBOOL_H 1
16375 for ac_func
in iconv_open pread pwrite lrintf strlcpy daemon
dirname basename strcasecmp localtime_r fallocate64 posix_fallocate memmem strsep strtold syslog valloc getpagesize posix_memalign statvfs htonll ntohll mkdtemp
16377 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16378 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16379 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16380 cat >>confdefs.h
<<_ACEOF
16381 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16389 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16391 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16392 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
16393 $as_echo_n "(cached) " >&6
16395 cat >conftest.
make <<\_ACEOF
16398 @
echo '@@@%%%=$(MAKE)=@@@%%%'
16400 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16401 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16402 *@@@
%%%=?
*=@@@
%%%*)
16403 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
16405 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
16407 rm -f conftest.
make
16409 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16411 $as_echo "yes" >&6; }
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16415 $as_echo "no" >&6; }
16416 SET_MAKE
="MAKE=${MAKE-make}"
16423 ac_cpp
='$CPP $CPPFLAGS'
16424 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16425 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16426 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16430 # We used to check for pthread.h first, but this fails if pthread.h
16431 # requires special compiler flags (e.g. on True64 or Sequent).
16432 # It gets checked for in the link test anyway.
16434 # First of all, check if the user has set any of the PTHREAD_LIBS,
16435 # etcetera environment variables, and if threads linking works using
16437 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
16438 save_CFLAGS
="$CFLAGS"
16439 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
16441 LIBS
="$PTHREAD_LIBS $LIBS"
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16443 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16445 /* end confdefs.h. */
16447 /* Override any GCC internal prototype to avoid an error.
16448 Use char because int might match the return type of a GCC
16449 builtin and then its argument prototype would still apply. */
16453 char pthread_join ();
16457 return pthread_join ();
16462 if ac_fn_c_try_link
"$LINENO"; then :
16465 rm -f core conftest.err conftest.
$ac_objext \
16466 conftest
$ac_exeext conftest.
$ac_ext
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16468 $as_echo "$acx_pthread_ok" >&6; }
16469 if test x
"$acx_pthread_ok" = xno
; then
16474 CFLAGS
="$save_CFLAGS"
16477 # We must check for the threads library under a number of different
16478 # names; the ordering is very important because some systems
16479 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16480 # libraries is broken (non-POSIX).
16482 # Create a list of thread flags to try. Items starting with a "-" are
16483 # C compiler flags, and other items are library names, except for "none"
16484 # which indicates that we try without any flags at all, and "pthread-config"
16485 # which is a program returning the flags for the Pth emulation library.
16487 acx_pthread_flags
="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16489 # The ordering *is* (sometimes) important. Some notes on the
16490 # individual items follow:
16492 # pthreads: AIX (must check this before -lpthread)
16493 # none: in case threads are in libc; should be tried before -Kthread and
16494 # other compiler flags to prevent continual compiler warnings
16495 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16496 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16497 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16498 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16499 # -pthreads: Solaris/gcc
16500 # -mthreads: Mingw32/gcc, Lynx/gcc
16501 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16502 # doesn't hurt to check since this sometimes defines pthreads too;
16503 # also defines -D_REENTRANT)
16504 # ... -mt is also the pthreads flag for HP/aCC
16505 # pthread: Linux, etcetera
16506 # --thread-safe: KAI C++
16507 # pthread-config: use pthread-config program (for GNU Pth library)
16509 case "${host_cpu}-${host_os}" in
16512 # On Solaris (at least, for some versions), libc contains stubbed
16513 # (non-functional) versions of the pthreads routines, so link-based
16514 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16515 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16516 # a function called by this macro, so we could check for that, but
16517 # who knows whether they'll stub that too in a future libc.) So,
16518 # we'll just look for -pthreads and -lpthread first:
16520 acx_pthread_flags
="-pthreads pthread -mt -pthread $acx_pthread_flags"
16524 if test x
"$acx_pthread_ok" = xno
; then
16525 for flag
in $acx_pthread_flags; do
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16530 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16535 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16536 PTHREAD_CFLAGS
="$flag"
16540 # Extract the first word of "pthread-config", so it can be a program name with args.
16541 set dummy pthread-config
; ac_word
=$2
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16543 $as_echo_n "checking for $ac_word... " >&6; }
16544 if ${ac_cv_prog_acx_pthread_config+:} false
; then :
16545 $as_echo_n "(cached) " >&6
16547 if test -n "$acx_pthread_config"; then
16548 ac_cv_prog_acx_pthread_config
="$acx_pthread_config" # Let the user override the test.
16550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16551 for as_dir
in $PATH
16554 test -z "$as_dir" && as_dir
=.
16555 for ac_exec_ext
in '' $ac_executable_extensions; do
16556 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16557 ac_cv_prog_acx_pthread_config
="yes"
16558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16565 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config
="no"
16568 acx_pthread_config
=$ac_cv_prog_acx_pthread_config
16569 if test -n "$acx_pthread_config"; then
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
16571 $as_echo "$acx_pthread_config" >&6; }
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16574 $as_echo "no" >&6; }
16578 if test x
"$acx_pthread_config" = xno
; then continue; fi
16579 PTHREAD_CFLAGS
="`pthread-config --cflags`"
16580 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16585 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16586 PTHREAD_LIBS
="-l$flag"
16591 save_CFLAGS
="$CFLAGS"
16592 LIBS
="$PTHREAD_LIBS $LIBS"
16593 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
16595 # Check for various functions. We must include pthread.h,
16596 # since some functions may be macros. (On the Sequent, we
16597 # need a special flag -Kthread to make this header compile.)
16598 # We check for pthread_join because it is in -lpthread on IRIX
16599 # while pthread_create is in libc. We check for pthread_attr_init
16600 # due to DEC craziness with -lpthreads. We check for
16601 # pthread_cleanup_push because it is one of the few pthread
16602 # functions on Solaris that doesn't have a non-functional libc stub.
16603 # We try pthread_create on general principles.
16604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16605 /* end confdefs.h. */
16606 #include <pthread.h>
16610 pthread_t th; pthread_join(th, 0);
16611 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16612 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16617 if ac_fn_c_try_link
"$LINENO"; then :
16620 rm -f core conftest.err conftest.
$ac_objext \
16621 conftest
$ac_exeext conftest.
$ac_ext
16624 CFLAGS
="$save_CFLAGS"
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16627 $as_echo "$acx_pthread_ok" >&6; }
16628 if test "x$acx_pthread_ok" = xyes
; then
16637 # Various other checks:
16638 if test "x$acx_pthread_ok" = xyes
; then
16640 LIBS
="$PTHREAD_LIBS $LIBS"
16641 save_CFLAGS
="$CFLAGS"
16642 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
16644 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16646 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16648 for attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
16649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16650 /* end confdefs.h. */
16651 #include <pthread.h>
16655 int attr=$attr; return attr;
16660 if ac_fn_c_try_link
"$LINENO"; then :
16661 attr_name
=$attr; break
16663 rm -f core conftest.err conftest.
$ac_objext \
16664 conftest
$ac_exeext conftest.
$ac_ext
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16667 $as_echo "$attr_name" >&6; }
16668 if test "$attr_name" != PTHREAD_CREATE_JOINABLE
; then
16670 cat >>confdefs.h
<<_ACEOF
16671 #define PTHREAD_CREATE_JOINABLE $attr_name
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16677 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16679 case "${host_cpu}-${host_os}" in
16680 *-aix* |
*-freebsd* |
*-darwin*) flag
="-D_THREAD_SAFE";;
16681 *solaris
* |
*-osf* |
*-hpux*) flag
="-D_REENTRANT";;
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
16684 $as_echo "${flag}" >&6; }
16685 if test "x$flag" != xno
; then
16686 PTHREAD_CFLAGS
="$flag $PTHREAD_CFLAGS"
16690 CFLAGS
="$save_CFLAGS"
16692 # More AIX lossage: must compile with xlc_r or cc_r
16693 if test x
"$GCC" != xyes
; then
16694 for ac_prog
in xlc_r cc_r
16696 # Extract the first word of "$ac_prog", so it can be a program name with args.
16697 set dummy
$ac_prog; ac_word
=$2
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16699 $as_echo_n "checking for $ac_word... " >&6; }
16700 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
16701 $as_echo_n "(cached) " >&6
16703 if test -n "$PTHREAD_CC"; then
16704 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
16706 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16707 for as_dir
in $PATH
16710 test -z "$as_dir" && as_dir
=.
16711 for ac_exec_ext
in '' $ac_executable_extensions; do
16712 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16713 ac_cv_prog_PTHREAD_CC
="$ac_prog"
16714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16723 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
16724 if test -n "$PTHREAD_CC"; then
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16726 $as_echo "$PTHREAD_CC" >&6; }
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16729 $as_echo "no" >&6; }
16733 test -n "$PTHREAD_CC" && break
16735 test -n "$PTHREAD_CC" || PTHREAD_CC
="${CC}"
16748 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16749 if test x
"$acx_pthread_ok" = xyes
; then
16751 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16759 ac_cpp
='$CPP $CPPFLAGS'
16760 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16761 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16762 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16766 if test "x$ac_cv_func_strtold" != "xyes" ; then
16767 CPPFLAGS
="$CPPFLAGS -Dstrtold=strtod"
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
16771 $as_echo_n "checking for library containing cos... " >&6; }
16772 if ${ac_cv_search_cos+:} false
; then :
16773 $as_echo_n "(cached) " >&6
16775 ac_func_search_save_LIBS
=$LIBS
16776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16777 /* end confdefs.h. */
16779 /* Override any GCC internal prototype to avoid an error.
16780 Use char because int might match the return type of a GCC
16781 builtin and then its argument prototype would still apply. */
16794 for ac_lib
in '' m
; do
16795 if test -z "$ac_lib"; then
16796 ac_res
="none required"
16799 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
16801 if ac_fn_c_try_link
"$LINENO"; then :
16802 ac_cv_search_cos
=$ac_res
16804 rm -f core conftest.err conftest.
$ac_objext \
16806 if ${ac_cv_search_cos+:} false
; then :
16810 if ${ac_cv_search_cos+:} false
; then :
16813 ac_cv_search_cos
=no
16815 rm conftest.
$ac_ext
16816 LIBS
=$ac_func_search_save_LIBS
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
16819 $as_echo "$ac_cv_search_cos" >&6; }
16820 ac_res
=$ac_cv_search_cos
16821 if test "$ac_res" != no
; then :
16822 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
16827 $as_echo_n "checking for library containing socket... " >&6; }
16828 if ${ac_cv_search_socket+:} false
; then :
16829 $as_echo_n "(cached) " >&6
16831 ac_func_search_save_LIBS
=$LIBS
16832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16833 /* end confdefs.h. */
16835 /* Override any GCC internal prototype to avoid an error.
16836 Use char because int might match the return type of a GCC
16837 builtin and then its argument prototype would still apply. */
16850 for ac_lib
in '' socket net
; do
16851 if test -z "$ac_lib"; then
16852 ac_res
="none required"
16855 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
16857 if ac_fn_c_try_link
"$LINENO"; then :
16858 ac_cv_search_socket
=$ac_res
16860 rm -f core conftest.err conftest.
$ac_objext \
16862 if ${ac_cv_search_socket+:} false
; then :
16866 if ${ac_cv_search_socket+:} false
; then :
16869 ac_cv_search_socket
=no
16871 rm conftest.
$ac_ext
16872 LIBS
=$ac_func_search_save_LIBS
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
16875 $as_echo "$ac_cv_search_socket" >&6; }
16876 ac_res
=$ac_cv_search_socket
16877 if test "$ac_res" != no
; then :
16878 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
16883 $as_echo_n "checking for library containing gethostbyname... " >&6; }
16884 if ${ac_cv_search_gethostbyname+:} false
; then :
16885 $as_echo_n "(cached) " >&6
16887 ac_func_search_save_LIBS
=$LIBS
16888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16889 /* end confdefs.h. */
16891 /* Override any GCC internal prototype to avoid an error.
16892 Use char because int might match the return type of a GCC
16893 builtin and then its argument prototype would still apply. */
16897 char gethostbyname ();
16901 return gethostbyname ();
16906 for ac_lib
in '' nsl
bind; do
16907 if test -z "$ac_lib"; then
16908 ac_res
="none required"
16911 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
16913 if ac_fn_c_try_link
"$LINENO"; then :
16914 ac_cv_search_gethostbyname
=$ac_res
16916 rm -f core conftest.err conftest.
$ac_objext \
16918 if ${ac_cv_search_gethostbyname+:} false
; then :
16922 if ${ac_cv_search_gethostbyname+:} false
; then :
16925 ac_cv_search_gethostbyname
=no
16927 rm conftest.
$ac_ext
16928 LIBS
=$ac_func_search_save_LIBS
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
16931 $as_echo "$ac_cv_search_gethostbyname" >&6; }
16932 ac_res
=$ac_cv_search_gethostbyname
16933 if test "$ac_res" != no
; then :
16934 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
16940 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16941 if test -n "$ac_tool_prefix"; then
16942 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16943 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16945 $as_echo_n "checking for $ac_word... " >&6; }
16946 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
16947 $as_echo_n "(cached) " >&6
16949 case $PKG_CONFIG in
16951 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
16954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16955 for as_dir
in $PATH
16958 test -z "$as_dir" && as_dir
=.
16959 for ac_exec_ext
in '' $ac_executable_extensions; do
16960 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16961 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
16962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16972 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
16973 if test -n "$PKG_CONFIG"; then
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16975 $as_echo "$PKG_CONFIG" >&6; }
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16978 $as_echo "no" >&6; }
16983 if test -z "$ac_cv_path_PKG_CONFIG"; then
16984 ac_pt_PKG_CONFIG
=$PKG_CONFIG
16985 # Extract the first word of "pkg-config", so it can be a program name with args.
16986 set dummy pkg-config
; ac_word
=$2
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16988 $as_echo_n "checking for $ac_word... " >&6; }
16989 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
16990 $as_echo_n "(cached) " >&6
16992 case $ac_pt_PKG_CONFIG in
16994 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16998 for as_dir
in $PATH
17001 test -z "$as_dir" && as_dir
=.
17002 for ac_exec_ext
in '' $ac_executable_extensions; do
17003 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17004 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
17005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17015 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
17016 if test -n "$ac_pt_PKG_CONFIG"; then
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17018 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17021 $as_echo "no" >&6; }
17024 if test "x$ac_pt_PKG_CONFIG" = x
; then
17027 case $cross_compiling:$ac_tool_warned in
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17031 ac_tool_warned
=yes ;;
17033 PKG_CONFIG
=$ac_pt_PKG_CONFIG
17036 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
17040 if test -n "$PKG_CONFIG"; then
17041 _pkg_min_version
=0.9.0
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17043 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17044 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17046 $as_echo "yes" >&6; }
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17049 $as_echo "no" >&6; }
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
17057 $as_echo_n "checking for OPENSSL... " >&6; }
17059 if test -n "$PKG_CONFIG"; then
17060 if test -n "$OPENSSL_CFLAGS"; then
17061 pkg_cv_OPENSSL_CFLAGS
="$OPENSSL_CFLAGS"
17063 if test -n "$PKG_CONFIG" && \
17064 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_MINIMUM\""; } >&5
17065 ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_MINIMUM") 2>&5
17067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17068 test $ac_status = 0; }; then
17069 pkg_cv_OPENSSL_CFLAGS
=`$PKG_CONFIG --cflags "openssl >= $OPENSSL_MINIMUM" 2>/dev/null`
17077 if test -n "$PKG_CONFIG"; then
17078 if test -n "$OPENSSL_LIBS"; then
17079 pkg_cv_OPENSSL_LIBS
="$OPENSSL_LIBS"
17081 if test -n "$PKG_CONFIG" && \
17082 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_MINIMUM\""; } >&5
17083 ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_MINIMUM") 2>&5
17085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17086 test $ac_status = 0; }; then
17087 pkg_cv_OPENSSL_LIBS
=`$PKG_CONFIG --libs "openssl >= $OPENSSL_MINIMUM" 2>/dev/null`
17098 if test $pkg_failed = yes; then
17100 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17101 _pkg_short_errors_supported
=yes
17103 _pkg_short_errors_supported
=no
17105 if test $_pkg_short_errors_supported = yes; then
17106 OPENSSL_PKG_ERRORS
=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openssl >= $OPENSSL_MINIMUM"`
17108 OPENSSL_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl >= $OPENSSL_MINIMUM"`
17110 # Put the nasty error message in config.log where it belongs
17111 echo "$OPENSSL_PKG_ERRORS" >&5
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17114 $as_echo "no" >&6; }
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
17117 $as_echo_n "checking for OpenSSL... " >&6; }
17119 for dir
in $with_ssl /usr
/local
/ssl
/usr
/lib
/ssl
/usr
/ssl
/usr
/pkg
/usr
/local /usr
; do
17121 if test -f "$dir/include/openssl/ssl.h"; then
17123 OPENSSL_CFLAGS
="-I$ssldir/include";
17126 if test -f "$dir/include/ssl.h"; then
17128 OPENSSL_CFLAGS
="-I$ssldir/include";
17132 if test x_
$found_ssl != x_yes
; then
17133 as_fn_error $?
"Cannot locate ssl" "$LINENO" 5
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssldir" >&5
17136 $as_echo "$ssldir" >&6; }
17137 OPENSSL_LIBS
="-L$ssldir/lib -lssl -lcrypto";
17140 elif test $pkg_failed = untried
; then
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
17143 $as_echo_n "checking for OpenSSL... " >&6; }
17145 for dir
in $with_ssl /usr
/local
/ssl
/usr
/lib
/ssl
/usr
/ssl
/usr
/pkg
/usr
/local /usr
; do
17147 if test -f "$dir/include/openssl/ssl.h"; then
17149 OPENSSL_CFLAGS
="-I$ssldir/include";
17152 if test -f "$dir/include/ssl.h"; then
17154 OPENSSL_CFLAGS
="-I$ssldir/include";
17158 if test x_
$found_ssl != x_yes
; then
17159 as_fn_error $?
"Cannot locate ssl" "$LINENO" 5
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssldir" >&5
17162 $as_echo "$ssldir" >&6; }
17163 OPENSSL_LIBS
="-L$ssldir/lib -lssl -lcrypto";
17167 OPENSSL_CFLAGS
=$pkg_cv_OPENSSL_CFLAGS
17168 OPENSSL_LIBS
=$pkg_cv_OPENSSL_LIBS
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17170 $as_echo "yes" >&6; }
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCURL" >&5
17176 $as_echo_n "checking for LIBCURL... " >&6; }
17178 if test -n "$PKG_CONFIG"; then
17179 if test -n "$LIBCURL_CFLAGS"; then
17180 pkg_cv_LIBCURL_CFLAGS
="$LIBCURL_CFLAGS"
17182 if test -n "$PKG_CONFIG" && \
17183 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= \$CURL_MINIMUM\""; } >&5
17184 ($PKG_CONFIG --exists --print-errors "libcurl >= $CURL_MINIMUM") 2>&5
17186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17187 test $ac_status = 0; }; then
17188 pkg_cv_LIBCURL_CFLAGS
=`$PKG_CONFIG --cflags "libcurl >= $CURL_MINIMUM" 2>/dev/null`
17196 if test -n "$PKG_CONFIG"; then
17197 if test -n "$LIBCURL_LIBS"; then
17198 pkg_cv_LIBCURL_LIBS
="$LIBCURL_LIBS"
17200 if test -n "$PKG_CONFIG" && \
17201 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= \$CURL_MINIMUM\""; } >&5
17202 ($PKG_CONFIG --exists --print-errors "libcurl >= $CURL_MINIMUM") 2>&5
17204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17205 test $ac_status = 0; }; then
17206 pkg_cv_LIBCURL_LIBS
=`$PKG_CONFIG --libs "libcurl >= $CURL_MINIMUM" 2>/dev/null`
17217 if test $pkg_failed = yes; then
17219 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17220 _pkg_short_errors_supported
=yes
17222 _pkg_short_errors_supported
=no
17224 if test $_pkg_short_errors_supported = yes; then
17225 LIBCURL_PKG_ERRORS
=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcurl >= $CURL_MINIMUM"`
17227 LIBCURL_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libcurl >= $CURL_MINIMUM"`
17229 # Put the nasty error message in config.log where it belongs
17230 echo "$LIBCURL_PKG_ERRORS" >&5
17232 as_fn_error $?
"Package requirements (libcurl >= $CURL_MINIMUM) were not met:
17234 $LIBCURL_PKG_ERRORS
17236 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17237 installed software in a non-standard prefix.
17239 Alternatively, you may set the environment variables LIBCURL_CFLAGS
17240 and LIBCURL_LIBS to avoid the need to call pkg-config.
17241 See the pkg-config man page for more details.
17243 elif test $pkg_failed = untried
; then
17244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17246 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
17247 is in your PATH or set the PKG_CONFIG environment variable to the full
17248 path to pkg-config.
17250 Alternatively, you may set the environment variables LIBCURL_CFLAGS
17251 and LIBCURL_LIBS to avoid the need to call pkg-config.
17252 See the pkg-config man page for more details.
17254 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
17255 See \`config.log' for more details" "$LINENO" 5; }
17257 LIBCURL_CFLAGS
=$pkg_cv_LIBCURL_CFLAGS
17258 LIBCURL_LIBS
=$pkg_cv_LIBCURL_LIBS
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17260 $as_echo "yes" >&6; }
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEVENT" >&5
17266 $as_echo_n "checking for LIBEVENT... " >&6; }
17268 if test -n "$PKG_CONFIG"; then
17269 if test -n "$LIBEVENT_CFLAGS"; then
17270 pkg_cv_LIBEVENT_CFLAGS
="$LIBEVENT_CFLAGS"
17272 if test -n "$PKG_CONFIG" && \
17273 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent >= \$LIBEVENT_MINIMUM\""; } >&5
17274 ($PKG_CONFIG --exists --print-errors "libevent >= $LIBEVENT_MINIMUM") 2>&5
17276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17277 test $ac_status = 0; }; then
17278 pkg_cv_LIBEVENT_CFLAGS
=`$PKG_CONFIG --cflags "libevent >= $LIBEVENT_MINIMUM" 2>/dev/null`
17286 if test -n "$PKG_CONFIG"; then
17287 if test -n "$LIBEVENT_LIBS"; then
17288 pkg_cv_LIBEVENT_LIBS
="$LIBEVENT_LIBS"
17290 if test -n "$PKG_CONFIG" && \
17291 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent >= \$LIBEVENT_MINIMUM\""; } >&5
17292 ($PKG_CONFIG --exists --print-errors "libevent >= $LIBEVENT_MINIMUM") 2>&5
17294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17295 test $ac_status = 0; }; then
17296 pkg_cv_LIBEVENT_LIBS
=`$PKG_CONFIG --libs "libevent >= $LIBEVENT_MINIMUM" 2>/dev/null`
17307 if test $pkg_failed = yes; then
17309 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17310 _pkg_short_errors_supported
=yes
17312 _pkg_short_errors_supported
=no
17314 if test $_pkg_short_errors_supported = yes; then
17315 LIBEVENT_PKG_ERRORS
=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libevent >= $LIBEVENT_MINIMUM"`
17317 LIBEVENT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libevent >= $LIBEVENT_MINIMUM"`
17319 # Put the nasty error message in config.log where it belongs
17320 echo "$LIBEVENT_PKG_ERRORS" >&5
17322 as_fn_error $?
"Package requirements (libevent >= $LIBEVENT_MINIMUM) were not met:
17324 $LIBEVENT_PKG_ERRORS
17326 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17327 installed software in a non-standard prefix.
17329 Alternatively, you may set the environment variables LIBEVENT_CFLAGS
17330 and LIBEVENT_LIBS to avoid the need to call pkg-config.
17331 See the pkg-config man page for more details.
17333 elif test $pkg_failed = untried
; then
17334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17336 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
17337 is in your PATH or set the PKG_CONFIG environment variable to the full
17338 path to pkg-config.
17340 Alternatively, you may set the environment variables LIBEVENT_CFLAGS
17341 and LIBEVENT_LIBS to avoid the need to call pkg-config.
17342 See the pkg-config man page for more details.
17344 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
17345 See \`config.log' for more details" "$LINENO" 5; }
17347 LIBEVENT_CFLAGS
=$pkg_cv_LIBEVENT_CFLAGS
17348 LIBEVENT_LIBS
=$pkg_cv_LIBEVENT_LIBS
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17350 $as_echo "yes" >&6; }
17355 # Check whether --with-zlib was given.
17356 if test "${with_zlib+set}" = set; then :
17357 withval
=$with_zlib; for dir
in `echo "$withval" | tr : ' '`; do
17358 if test -d $dir/include
; then
17359 ZLIB_CFLAGS
="$ZLIB_CFLAGS -I$dir/include"
17361 if test -d $dir/lib
; then
17362 ZLIB_LDFLAGS
="$ZLIB_LDFLAGS -L$dir/lib"
17369 # Check whether --with-zlib-includes was given.
17370 if test "${with_zlib_includes+set}" = set; then :
17371 withval
=$with_zlib_includes; for dir
in `echo "$withval" | tr : ' '`; do
17372 if test -d $dir; then
17373 ZLIB_CFLAGS
="$ZLIB_CFLAGS -I$dir"
17379 ac_zlib_saved_CFLAGS
="$CFLAGS"
17380 ac_zlib_saved_LDFLAGS
="$LDFLAGS"
17381 ac_zlib_saved_LIBS
="$LIBS"
17382 CFLAGS
="$CFLAGS $ZLIB_CFLAGS"
17383 LDFLAGS
="$LDFLAGS $ZLIB_LDFLAGS"
17386 touch /tmp
/dummy1_zlib.h
17387 for ac_header
in /tmp
/dummy1_zlib.h
17389 ac_fn_c_check_header_compile
"$LINENO" "/tmp/dummy1_zlib.h" "ac_cv_header__tmp_dummy1_zlib_h" "#include \"zlib.h\"
17391 if test "x$ac_cv_header__tmp_dummy1_zlib_h" = xyes
; then :
17392 cat >>confdefs.h
<<_ACEOF
17393 #define HAVE__TMP_DUMMY1_ZLIB_H 1
17402 rm /tmp
/dummy1_zlib.h
17403 if test $ac_have_zlibh = yes; then
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gzopen" >&5
17405 $as_echo_n "checking for library containing gzopen... " >&6; }
17406 if ${ac_cv_search_gzopen+:} false
; then :
17407 $as_echo_n "(cached) " >&6
17409 ac_func_search_save_LIBS
=$LIBS
17410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17411 /* end confdefs.h. */
17413 /* Override any GCC internal prototype to avoid an error.
17414 Use char because int might match the return type of a GCC
17415 builtin and then its argument prototype would still apply. */
17428 for ac_lib
in '' z
; do
17429 if test -z "$ac_lib"; then
17430 ac_res
="none required"
17433 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17435 if ac_fn_c_try_link
"$LINENO"; then :
17436 ac_cv_search_gzopen
=$ac_res
17438 rm -f core conftest.err conftest.
$ac_objext \
17440 if ${ac_cv_search_gzopen+:} false
; then :
17444 if ${ac_cv_search_gzopen+:} false
; then :
17447 ac_cv_search_gzopen
=no
17449 rm conftest.
$ac_ext
17450 LIBS
=$ac_func_search_save_LIBS
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gzopen" >&5
17453 $as_echo "$ac_cv_search_gzopen" >&6; }
17454 ac_res
=$ac_cv_search_gzopen
17455 if test "$ac_res" != no
; then :
17456 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17463 # List of places to try
17464 testdirs
="$HOME/opt/zlib $OBITINSTALL/other"
17465 for dir
in $testdirs; do
17466 if test $ac_have_zlib = no
; then
17467 if test -f $dir/include
/zlib.h
; then
17468 ZLIB_CFLAGS
="-I$dir/include"
17469 CPPFLAGS
="$ac_zlib_saved_CPPFLAGS $ZLIB_CFLAGS"
17470 ZLIB_LDFLAGS
="-L$dir/lib"
17471 LDFLAGS
="$ac_zlib_saved_LDFLAGS $ZLIB_LDFLAGS"
17472 touch /tmp
/dummy3_zlib.h
17473 for ac_header
in /tmp
/dummy3_zlib.h
17475 ac_fn_c_check_header_compile
"$LINENO" "/tmp/dummy3_zlib.h" "ac_cv_header__tmp_dummy3_zlib_h" "#include \"zlib.h\"
17477 if test "x$ac_cv_header__tmp_dummy3_zlib_h" = xyes
; then :
17478 cat >>confdefs.h
<<_ACEOF
17479 #define HAVE__TMP_DUMMY3_ZLIB_H 1
17488 rm /tmp
/dummy3_zlib.h
17489 if test $ac_have_zlibh = yes; then
17491 ac_cv_search_gzopen
=" "
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gzopen" >&5
17493 $as_echo_n "checking for library containing gzopen... " >&6; }
17494 if ${ac_cv_search_gzopen+:} false
; then :
17495 $as_echo_n "(cached) " >&6
17497 ac_func_search_save_LIBS
=$LIBS
17498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17499 /* end confdefs.h. */
17501 /* Override any GCC internal prototype to avoid an error.
17502 Use char because int might match the return type of a GCC
17503 builtin and then its argument prototype would still apply. */
17516 for ac_lib
in '' z
; do
17517 if test -z "$ac_lib"; then
17518 ac_res
="none required"
17521 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17523 if ac_fn_c_try_link
"$LINENO"; then :
17524 ac_cv_search_gzopen
=$ac_res
17526 rm -f core conftest.err conftest.
$ac_objext \
17528 if ${ac_cv_search_gzopen+:} false
; then :
17532 if ${ac_cv_search_gzopen+:} false
; then :
17535 ac_cv_search_gzopen
=no
17537 rm conftest.
$ac_ext
17538 LIBS
=$ac_func_search_save_LIBS
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gzopen" >&5
17541 $as_echo "$ac_cv_search_gzopen" >&6; }
17542 ac_res
=$ac_cv_search_gzopen
17543 if test "$ac_res" != no
; then :
17544 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17551 if test $ac_have_zlib = yes ; then
17552 if test $ac_have_zlibh = yes ; then
17559 if test $ac_have_zlib = no
; then
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find ZLIB library" >&5
17561 $as_echo "$as_me: WARNING: cannot find ZLIB library" >&2;}
17563 if test $ac_have_zlibh = no
; then
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find ZLIB headers" >&5
17565 $as_echo "$as_me: WARNING: cannot find ZLIB headers" >&2;}
17568 if test $ac_have_zlib = yes; then
17570 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
17574 CFLAGS
="$ac_zlib_saved_CFLAGS"
17575 LDFLAGS
="$ac_zlib_saved_LDFLAGS"
17576 LIBS
="$ac_zlib_saved_LIBS"
17582 # Check whether --enable-largefile was given.
17583 if test "${enable_largefile+set}" = set; then :
17584 enableval
=$enable_largefile;
17587 if test "$enable_largefile" != no
; then
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17590 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17591 if ${ac_cv_sys_largefile_CC+:} false
; then :
17592 $as_echo_n "(cached) " >&6
17594 ac_cv_sys_largefile_CC
=no
17595 if test "$GCC" != yes; then
17598 # IRIX 6.2 and later do not support large files by default,
17599 # so use the C compiler's -n32 option if that helps.
17600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17601 /* end confdefs.h. */
17602 #include <sys/types.h>
17603 /* Check that off_t can represent 2**63 - 1 correctly.
17604 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17605 since some C++ compilers masquerading as C compilers
17606 incorrectly reject 9223372036854775807. */
17607 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17608 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17609 && LARGE_OFF_T % 2147483647 == 1)
17619 if ac_fn_c_try_compile
"$LINENO"; then :
17622 rm -f core conftest.err conftest.
$ac_objext
17624 if ac_fn_c_try_compile
"$LINENO"; then :
17625 ac_cv_sys_largefile_CC
=' -n32'; break
17627 rm -f core conftest.err conftest.
$ac_objext
17631 rm -f conftest.
$ac_ext
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17635 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17636 if test "$ac_cv_sys_largefile_CC" != no
; then
17637 CC
=$CC$ac_cv_sys_largefile_CC
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17641 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17642 if ${ac_cv_sys_file_offset_bits+:} false
; then :
17643 $as_echo_n "(cached) " >&6
17646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17647 /* end confdefs.h. */
17648 #include <sys/types.h>
17649 /* Check that off_t can represent 2**63 - 1 correctly.
17650 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17651 since some C++ compilers masquerading as C compilers
17652 incorrectly reject 9223372036854775807. */
17653 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17654 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17655 && LARGE_OFF_T % 2147483647 == 1)
17665 if ac_fn_c_try_compile
"$LINENO"; then :
17666 ac_cv_sys_file_offset_bits
=no
; break
17668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17670 /* end confdefs.h. */
17671 #define _FILE_OFFSET_BITS 64
17672 #include <sys/types.h>
17673 /* Check that off_t can represent 2**63 - 1 correctly.
17674 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17675 since some C++ compilers masquerading as C compilers
17676 incorrectly reject 9223372036854775807. */
17677 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17678 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17679 && LARGE_OFF_T % 2147483647 == 1)
17689 if ac_fn_c_try_compile
"$LINENO"; then :
17690 ac_cv_sys_file_offset_bits
=64; break
17692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17693 ac_cv_sys_file_offset_bits
=unknown
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17698 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17699 case $ac_cv_sys_file_offset_bits in #(
17702 cat >>confdefs.h
<<_ACEOF
17703 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17708 if test $ac_cv_sys_file_offset_bits = unknown
; then
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17710 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17711 if ${ac_cv_sys_large_files+:} false
; then :
17712 $as_echo_n "(cached) " >&6
17715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17716 /* end confdefs.h. */
17717 #include <sys/types.h>
17718 /* Check that off_t can represent 2**63 - 1 correctly.
17719 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17720 since some C++ compilers masquerading as C compilers
17721 incorrectly reject 9223372036854775807. */
17722 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17723 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17724 && LARGE_OFF_T % 2147483647 == 1)
17734 if ac_fn_c_try_compile
"$LINENO"; then :
17735 ac_cv_sys_large_files
=no
; break
17737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17739 /* end confdefs.h. */
17740 #define _LARGE_FILES 1
17741 #include <sys/types.h>
17742 /* Check that off_t can represent 2**63 - 1 correctly.
17743 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17744 since some C++ compilers masquerading as C compilers
17745 incorrectly reject 9223372036854775807. */
17746 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17747 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17748 && LARGE_OFF_T % 2147483647 == 1)
17758 if ac_fn_c_try_compile
"$LINENO"; then :
17759 ac_cv_sys_large_files
=1; break
17761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17762 ac_cv_sys_large_files
=unknown
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17767 $as_echo "$ac_cv_sys_large_files" >&6; }
17768 case $ac_cv_sys_large_files in #(
17771 cat >>confdefs.h
<<_ACEOF
17772 #define _LARGE_FILES $ac_cv_sys_large_files
17782 for ac_func
in lseek64
17784 ac_fn_c_check_func
"$LINENO" "lseek64" "ac_cv_func_lseek64"
17785 if test "x$ac_cv_func_lseek64" = xyes
; then :
17786 cat >>confdefs.h
<<_ACEOF
17787 #define HAVE_LSEEK64 1
17794 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
17795 # -lseq on Dynix/PTX, -lgen on Unixware.
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
17797 $as_echo_n "checking for library containing getmntent... " >&6; }
17798 if ${ac_cv_search_getmntent+:} false
; then :
17799 $as_echo_n "(cached) " >&6
17801 ac_func_search_save_LIBS
=$LIBS
17802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17803 /* end confdefs.h. */
17805 /* Override any GCC internal prototype to avoid an error.
17806 Use char because int might match the return type of a GCC
17807 builtin and then its argument prototype would still apply. */
17815 return getmntent ();
17820 for ac_lib
in '' sun
seq gen
; do
17821 if test -z "$ac_lib"; then
17822 ac_res
="none required"
17825 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17827 if ac_fn_c_try_link
"$LINENO"; then :
17828 ac_cv_search_getmntent
=$ac_res
17830 rm -f core conftest.err conftest.
$ac_objext \
17832 if ${ac_cv_search_getmntent+:} false
; then :
17836 if ${ac_cv_search_getmntent+:} false
; then :
17839 ac_cv_search_getmntent
=no
17841 rm conftest.
$ac_ext
17842 LIBS
=$ac_func_search_save_LIBS
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
17845 $as_echo "$ac_cv_search_getmntent" >&6; }
17846 ac_res
=$ac_cv_search_getmntent
17847 if test "$ac_res" != no
; then :
17848 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17849 ac_cv_func_getmntent
=yes
17851 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
17854 ac_cv_func_getmntent
=no
17860 ac_fn_c_check_decl
"$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "
17861 #define _XOPEN_SOURCE 600
17864 if test "x$ac_cv_have_decl_posix_fadvise" = xyes
; then :
17870 cat >>confdefs.h
<<_ACEOF
17871 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
17874 for ac_func
in posix_fadvise
17876 ac_fn_c_check_func
"$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
17877 if test "x$ac_cv_func_posix_fadvise" = xyes
; then :
17878 cat >>confdefs.h
<<_ACEOF
17879 #define HAVE_POSIX_FADVISE 1
17888 ac_fn_c_check_header_mongrel
"$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
17889 if test "x$ac_cv_header_sys_inotify_h" = xyes
; then :
17890 ac_fn_c_check_func
"$LINENO" "inotify_init" "ac_cv_func_inotify_init"
17891 if test "x$ac_cv_func_inotify_init" = xyes
; then :
17903 # Check whether --with-inotify was given.
17904 if test "${with_inotify+set}" = set; then :
17905 withval
=$with_inotify; want_inotify
=${withval}
17907 want_inotify
=${have_inotify}
17910 if test "x$want_inotify" = "xyes" ; then
17911 if test "x$have_inotify" = "xyes"; then
17912 $as_echo "#define WITH_INOTIFY 1" >>confdefs.h
17915 as_fn_error $?
"\"inotify not found!\"" "$LINENO" 5
17919 ac_fn_c_check_header_mongrel
"$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
17920 if test "x$ac_cv_header_sys_event_h" = xyes
; then :
17921 ac_fn_c_check_func
"$LINENO" "kqueue" "ac_cv_func_kqueue"
17922 if test "x$ac_cv_func_kqueue" = xyes
; then :
17934 # Check whether --with-kqueue was given.
17935 if test "${with_kqueue+set}" = set; then :
17936 withval
=$with_kqueue; want_kqueue
=${withval}
17938 want_kqueue
=${have_kqueue}
17941 if test "x$want_kqueue" = "xyes" ; then
17942 if test "x$have_kqueue" = "xyes"; then
17943 $as_echo "#define WITH_KQUEUE 1" >>confdefs.h
17946 as_fn_error $?
"\"kqueue not found!\"" "$LINENO" 5
17950 for ac_header
in sys
/statvfs.h \
17953 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17954 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17955 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
17956 cat >>confdefs.h
<<_ACEOF
17957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17967 # Check whether to enable systemd startup notification.
17968 # This requires libsystemd-daemon.
17970 # Check whether --with-systemd-daemon was given.
17971 if test "${with_systemd_daemon+set}" = set; then :
17972 withval
=$with_systemd_daemon; USE_SYSTEMD_DAEMON
=auto
17975 if test "x$USE_SYSTEMD_DAEMON" != "xno"; then :
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
17980 $as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
17982 if test -n "$PKG_CONFIG"; then
17983 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
17984 pkg_cv_SYSTEMD_DAEMON_CFLAGS
="$SYSTEMD_DAEMON_CFLAGS"
17986 if test -n "$PKG_CONFIG" && \
17987 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
17988 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
17990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17991 test $ac_status = 0; }; then
17992 pkg_cv_SYSTEMD_DAEMON_CFLAGS
=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
18000 if test -n "$PKG_CONFIG"; then
18001 if test -n "$SYSTEMD_DAEMON_LIBS"; then
18002 pkg_cv_SYSTEMD_DAEMON_LIBS
="$SYSTEMD_DAEMON_LIBS"
18004 if test -n "$PKG_CONFIG" && \
18005 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
18006 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
18008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18009 test $ac_status = 0; }; then
18010 pkg_cv_SYSTEMD_DAEMON_LIBS
=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
18021 if test $pkg_failed = yes; then
18023 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18024 _pkg_short_errors_supported
=yes
18026 _pkg_short_errors_supported
=no
18028 if test $_pkg_short_errors_supported = yes; then
18029 SYSTEMD_DAEMON_PKG_ERRORS
=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsystemd-daemon"`
18031 SYSTEMD_DAEMON_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libsystemd-daemon"`
18033 # Put the nasty error message in config.log where it belongs
18034 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18037 $as_echo "no" >&6; }
18038 if test "x$USE_SYSTEMD_DAEMON" = "xyes"; then :
18039 as_fn_error $?
"systemd startup notification support requested, but libsystemd-daemon not found." "$LINENO" 5
18043 elif test $pkg_failed = untried
; then
18044 if test "x$USE_SYSTEMD_DAEMON" = "xyes"; then :
18045 as_fn_error $?
"systemd startup notification support requested, but libsystemd-daemon not found." "$LINENO" 5
18050 SYSTEMD_DAEMON_CFLAGS
=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
18051 SYSTEMD_DAEMON_LIBS
=$pkg_cv_SYSTEMD_DAEMON_LIBS
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18053 $as_echo "yes" >&6; }
18055 $as_echo "#define USE_SYSTEMD_DAEMON 1" >>confdefs.h
18063 DHT_CFLAGS
="-I\$(top_srcdir)/third-party/dht"
18064 DHT_LIBS
="\$(top_builddir)/third-party/dht/libdht.a"
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
18071 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
18072 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
18073 $as_echo_n "(cached) " >&6
18075 ac_check_lib_save_LIBS
=$LIBS
18077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18078 /* end confdefs.h. */
18080 /* Override any GCC internal prototype to avoid an error.
18081 Use char because int might match the return type of a GCC
18082 builtin and then its argument prototype would still apply. */
18086 char clock_gettime ();
18090 return clock_gettime ();
18095 if ac_fn_c_try_link
"$LINENO"; then :
18096 ac_cv_lib_rt_clock_gettime
=yes
18098 ac_cv_lib_rt_clock_gettime
=no
18100 rm -f core conftest.err conftest.
$ac_objext \
18101 conftest
$ac_exeext conftest.
$ac_ext
18102 LIBS
=$ac_check_lib_save_LIBS
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
18105 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
18106 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
18107 libutp_extra_libs
="-lrt"
18109 libutp_extra_libs
=""
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking µTP" >&5
18114 $as_echo_n "checking µTP... " >&6; }
18116 if test "x$HAVE_CXX" = "xyes" ; then
18121 # Check whether --enable-utp was given.
18122 if test "${enable_utp+set}" = set; then :
18123 enableval
=$enable_utp; want_utp
=${enableval}
18125 want_utp
=${have_utp}
18128 if test "x$want_utp" = "xyes" ; then
18129 if test "x$have_utp" = "xyes"; then
18130 LIBUTP_CFLAGS
="-I\$(top_srcdir)/third-party/"
18131 LIBUTP_LIBS
="\$(top_builddir)/third-party/libutp/libutp.a"
18132 LIBUTP_LIBS_QT
="\$\${TRANSMISSION_TOP}/third-party/libutp/libutp.a"
18133 if test "x$libutp_extra_libs" != "x" ; then
18134 LIBUTP_LIBS
="$LIBUTP_LIBS $libutp_extra_libs"
18135 LIBUTP_LIBS_QT
="$LIBUTP_LIBS_QT $libutp_extra_libs"
18137 $as_echo "#define WITH_UTP 1" >>confdefs.h
18141 as_fn_error $?
"\"Unable to build uTP support -- C++ compiler not found\"" "$LINENO" 5
18147 if test "x$build_utp" = "xyes"; then
18149 BUILD_UTP_FALSE
='#'
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_utp" >&5
18156 $as_echo "$build_utp" >&6; }
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking supported miniupnp library" >&5
18161 $as_echo_n "checking supported miniupnp library... " >&6; }
18162 upnp_version
="none"
18163 ac_save_LIBS
="$LIBS"
18165 # See if the OS has its miniupnp 1.5 installed
18166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18167 /* end confdefs.h. */
18169 #include <stdlib.h>
18170 #include <miniupnpc/miniupnpc.h>
18171 #include <miniupnpc/upnpcommands.h>
18177 struct UPNPDev * devlist;
18178 struct UPNPUrls urls;
18179 struct IGDdatas data;
18183 char intClient[16];
18184 upnpDiscover( 2000, NULL, NULL, 0 );
18185 UPNP_GetValidIGD( devlist, &urls, &data, lanaddr, sizeof( lanaddr ) );
18186 UPNP_GetSpecificPortMappingEntry( urls.controlURL, data.first.servicetype,
18187 portStr, "TCP", intClient, intPort );
18193 if ac_fn_c_try_link
"$LINENO"; then :
18196 $as_echo "#define HAVE_MINIUPNP_15 1" >>confdefs.h
18200 rm -f core conftest.err conftest.
$ac_objext \
18201 conftest
$ac_exeext conftest.
$ac_ext
18203 # See if the OS has its miniupnp 1.6 installed
18204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18205 /* end confdefs.h. */
18207 #include <stdlib.h>
18209 #include <miniupnpc/miniupnpc.h>
18210 #include <miniupnpc/upnpcommands.h>
18216 struct UPNPDev * devlist;
18217 struct UPNPUrls urls;
18218 struct IGDdatas data;
18222 char intClient[16];
18223 upnpDiscover( 2000, NULL, NULL, 0, 0, &errno );
18224 UPNP_GetValidIGD( devlist, &urls, &data, lanaddr, sizeof( lanaddr ) );
18225 UPNP_GetSpecificPortMappingEntry( urls.controlURL, data.first.servicetype,
18226 portStr, "TCP", intClient, intPort, NULL, NULL, NULL );
18232 if ac_fn_c_try_link
"$LINENO"; then :
18235 $as_echo "#define HAVE_MINIUPNP_16 1" >>confdefs.h
18239 rm -f core conftest.err conftest.
$ac_objext \
18240 conftest
$ac_exeext conftest.
$ac_ext
18242 # ... and the results of our tests
18243 LIBS
="$ac_save_LIBS"
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upnp_version" >&5
18245 $as_echo "$upnp_version" >&6; }
18246 if test "x$upnp_version" = "xnone"; then
18247 BUILD_MINIUPNP_TRUE
=
18248 BUILD_MINIUPNP_FALSE
='#'
18250 BUILD_MINIUPNP_TRUE
='#'
18251 BUILD_MINIUPNP_FALSE
=
18254 if test "x$upnp_version" = "xnone" ; then
18255 LIBUPNP_CFLAGS
="-I\$(top_srcdir)/third-party/"
18256 LIBUPNP_LIBS
="\$(top_builddir)/third-party/miniupnp/libminiupnp.a"
18257 LIBUPNP_LIBS_QT
="\$\${TRANSMISSION_TOP}/third-party/miniupnp/libminiupnp.a"
18259 $as_echo "#define HAVE_MINIUPNP_16 1" >>confdefs.h
18262 $as_echo "#define SYSTEM_MINIUPNP 1" >>confdefs.h
18265 LIBUPNP_LIBS
="-lminiupnpc"
18266 LIBUPNP_LIBS_QT
="-lminiupnpc"
18276 LIBNATPMP_CFLAGS
="-I\$(top_srcdir)/third-party/libnatpmp/"
18277 LIBNATPMP_LIBS
="\$(top_builddir)/third-party/libnatpmp/libnatpmp.a"
18278 LIBNATPMP_LIBS_QT
="\$\${TRANSMISSION_TOP}/third-party/libnatpmp/libnatpmp.a"
18279 build_bundled_natpmp
="yes"
18280 # Check whether --enable-external-natpmp was given.
18281 if test "${enable_external_natpmp+set}" = set; then :
18282 enableval
=$enable_external_natpmp; want_external_natpmp
=${enableval}
18284 want_external_natpmp
=no
18287 if test "x$want_external_natpmp" != "xno" ; then
18288 LIBNATPMP_CFLAGS
=""
18289 LIBNATPMP_LIBS
="-lnatpmp"
18290 LIBNATPMP_LIBS_QT
="-lnatpmp"
18291 build_bundled_natpmp
="no"
18293 if test "x$build_bundled_natpmp" = "xyes"; then
18295 BUILD_NATPMP_FALSE
='#'
18297 BUILD_NATPMP_TRUE
='#'
18298 BUILD_NATPMP_FALSE
=
18307 # Check whether --enable-nls was given.
18308 if test "${enable_nls+set}" = set; then :
18309 enableval
=$enable_nls;
18314 if test -n "$PKG_CONFIG" && \
18315 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK_MINIMUM
18316 glib-2.0 >= \$GLIB_MINIMUM
18317 gio-2.0 >= \$GIO_MINIMUM,
18318 gmodule-2.0 >= \$GLIB_MINIMUM
18319 gthread-2.0 >= \$GLIB_MINIMUM\""; } >&5
18320 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK_MINIMUM
18321 glib-2.0 >= $GLIB_MINIMUM
18322 gio-2.0 >= $GIO_MINIMUM,
18323 gmodule-2.0 >= $GLIB_MINIMUM
18324 gthread-2.0 >= $GLIB_MINIMUM") 2>&5
18326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18327 test $ac_status = 0; }; then
18333 # Check whether --with-gtk was given.
18334 if test "${with_gtk+set}" = set; then :
18335 withval
=$with_gtk; with_gtk
=$withval
18340 if test "x$with_gtk" = "xyes"; then
18342 BUILD_GTK_FALSE
='#'
18348 use_libappindicator
=no
18349 if test "x$with_gtk" = "xyes" ; then
18351 if test "x$enable_nls" = "xno" ; then
18352 as_fn_error $?
"\"The gtk client cannot be built without nls support. Try adding either --enable-nls or --without-gtk\" " "$LINENO" 5
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
18358 $as_echo_n "checking for GTK... " >&6; }
18360 if test -n "$PKG_CONFIG"; then
18361 if test -n "$GTK_CFLAGS"; then
18362 pkg_cv_GTK_CFLAGS
="$GTK_CFLAGS"
18364 if test -n "$PKG_CONFIG" && \
18365 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK_MINIMUM
18366 glib-2.0 >= \$GLIB_MINIMUM
18367 gio-2.0 >= \$GIO_MINIMUM,
18368 gmodule-2.0 >= \$GLIB_MINIMUM
18369 gthread-2.0 >= \$GLIB_MINIMUM\""; } >&5
18370 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK_MINIMUM
18371 glib-2.0 >= $GLIB_MINIMUM
18372 gio-2.0 >= $GIO_MINIMUM,
18373 gmodule-2.0 >= $GLIB_MINIMUM
18374 gthread-2.0 >= $GLIB_MINIMUM") 2>&5
18376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18377 test $ac_status = 0; }; then
18378 pkg_cv_GTK_CFLAGS
=`$PKG_CONFIG --cflags "gtk+-3.0 >= $GTK_MINIMUM
18379 glib-2.0 >= $GLIB_MINIMUM
18380 gio-2.0 >= $GIO_MINIMUM,
18381 gmodule-2.0 >= $GLIB_MINIMUM
18382 gthread-2.0 >= $GLIB_MINIMUM" 2>/dev/null`
18390 if test -n "$PKG_CONFIG"; then
18391 if test -n "$GTK_LIBS"; then
18392 pkg_cv_GTK_LIBS
="$GTK_LIBS"
18394 if test -n "$PKG_CONFIG" && \
18395 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK_MINIMUM
18396 glib-2.0 >= \$GLIB_MINIMUM
18397 gio-2.0 >= \$GIO_MINIMUM,
18398 gmodule-2.0 >= \$GLIB_MINIMUM
18399 gthread-2.0 >= \$GLIB_MINIMUM\""; } >&5
18400 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK_MINIMUM
18401 glib-2.0 >= $GLIB_MINIMUM
18402 gio-2.0 >= $GIO_MINIMUM,
18403 gmodule-2.0 >= $GLIB_MINIMUM
18404 gthread-2.0 >= $GLIB_MINIMUM") 2>&5
18406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18407 test $ac_status = 0; }; then
18408 pkg_cv_GTK_LIBS
=`$PKG_CONFIG --libs "gtk+-3.0 >= $GTK_MINIMUM
18409 glib-2.0 >= $GLIB_MINIMUM
18410 gio-2.0 >= $GIO_MINIMUM,
18411 gmodule-2.0 >= $GLIB_MINIMUM
18412 gthread-2.0 >= $GLIB_MINIMUM" 2>/dev/null`
18423 if test $pkg_failed = yes; then
18425 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18426 _pkg_short_errors_supported
=yes
18428 _pkg_short_errors_supported
=no
18430 if test $_pkg_short_errors_supported = yes; then
18431 GTK_PKG_ERRORS
=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-3.0 >= $GTK_MINIMUM
18432 glib-2.0 >= $GLIB_MINIMUM
18433 gio-2.0 >= $GIO_MINIMUM,
18434 gmodule-2.0 >= $GLIB_MINIMUM
18435 gthread-2.0 >= $GLIB_MINIMUM"`
18437 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-3.0 >= $GTK_MINIMUM
18438 glib-2.0 >= $GLIB_MINIMUM
18439 gio-2.0 >= $GIO_MINIMUM,
18440 gmodule-2.0 >= $GLIB_MINIMUM
18441 gthread-2.0 >= $GLIB_MINIMUM"`
18443 # Put the nasty error message in config.log where it belongs
18444 echo "$GTK_PKG_ERRORS" >&5
18446 as_fn_error $?
"Package requirements (gtk+-3.0 >= $GTK_MINIMUM
18447 glib-2.0 >= $GLIB_MINIMUM
18448 gio-2.0 >= $GIO_MINIMUM,
18449 gmodule-2.0 >= $GLIB_MINIMUM
18450 gthread-2.0 >= $GLIB_MINIMUM) were not met:
18454 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18455 installed software in a non-standard prefix.
18457 Alternatively, you may set the environment variables GTK_CFLAGS
18458 and GTK_LIBS to avoid the need to call pkg-config.
18459 See the pkg-config man page for more details.
18461 elif test $pkg_failed = untried
; then
18462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18464 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
18465 is in your PATH or set the PKG_CONFIG environment variable to the full
18466 path to pkg-config.
18468 Alternatively, you may set the environment variables GTK_CFLAGS
18469 and GTK_LIBS to avoid the need to call pkg-config.
18470 See the pkg-config man page for more details.
18472 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
18473 See \`config.log' for more details" "$LINENO" 5; }
18475 GTK_CFLAGS
=$pkg_cv_GTK_CFLAGS
18476 GTK_LIBS
=$pkg_cv_GTK_LIBS
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18478 $as_echo "yes" >&6; }
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBAPPINDICATOR" >&5
18484 $as_echo_n "checking for LIBAPPINDICATOR... " >&6; }
18486 if test -n "$PKG_CONFIG"; then
18487 if test -n "$LIBAPPINDICATOR_CFLAGS"; then
18488 pkg_cv_LIBAPPINDICATOR_CFLAGS
="$LIBAPPINDICATOR_CFLAGS"
18490 if test -n "$PKG_CONFIG" && \
18491 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1 >= \$LIBAPPINDICATOR_MINIMUM\""; } >&5
18492 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM") 2>&5
18494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18495 test $ac_status = 0; }; then
18496 pkg_cv_LIBAPPINDICATOR_CFLAGS
=`$PKG_CONFIG --cflags "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM" 2>/dev/null`
18504 if test -n "$PKG_CONFIG"; then
18505 if test -n "$LIBAPPINDICATOR_LIBS"; then
18506 pkg_cv_LIBAPPINDICATOR_LIBS
="$LIBAPPINDICATOR_LIBS"
18508 if test -n "$PKG_CONFIG" && \
18509 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1 >= \$LIBAPPINDICATOR_MINIMUM\""; } >&5
18510 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM") 2>&5
18512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18513 test $ac_status = 0; }; then
18514 pkg_cv_LIBAPPINDICATOR_LIBS
=`$PKG_CONFIG --libs "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM" 2>/dev/null`
18525 if test $pkg_failed = yes; then
18527 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18528 _pkg_short_errors_supported
=yes
18530 _pkg_short_errors_supported
=no
18532 if test $_pkg_short_errors_supported = yes; then
18533 LIBAPPINDICATOR_PKG_ERRORS
=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM"`
18535 LIBAPPINDICATOR_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM"`
18537 # Put the nasty error message in config.log where it belongs
18538 echo "$LIBAPPINDICATOR_PKG_ERRORS" >&5
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18541 $as_echo "no" >&6; }
18542 have_libappindicator
=no
18543 elif test $pkg_failed = untried
; then
18544 have_libappindicator
=no
18546 LIBAPPINDICATOR_CFLAGS
=$pkg_cv_LIBAPPINDICATOR_CFLAGS
18547 LIBAPPINDICATOR_LIBS
=$pkg_cv_LIBAPPINDICATOR_LIBS
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18549 $as_echo "yes" >&6; }
18550 have_libappindicator
=yes
18552 if test "x$have_libappindicator" = "xyes"; then
18553 use_libappindicator
=yes
18554 $as_echo "#define HAVE_LIBAPPINDICATOR 1" >>confdefs.h
18557 LIBAPPINDICATOR_CFLAGS
=
18558 LIBAPPINDICATOR_LIBS
=
18564 if test "x$enable_nls" = "xyes" ; then
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18568 $as_echo_n "checking whether NLS is requested... " >&6; }
18569 # Check whether --enable-nls was given.
18570 if test "${enable_nls+set}" = set; then :
18571 enableval
=$enable_nls; USE_NLS
=$enableval
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18577 $as_echo "$USE_NLS" >&6; }
18582 case "$am__api_version" in
18584 as_fn_error $?
"Automake 1.5 or newer is required to use intltool" "$LINENO" 5
18590 INTLTOOL_REQUIRED_VERSION_AS_INT
=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
18591 INTLTOOL_APPLIED_VERSION
=`intltool-update --version | head -1 | cut -d" " -f3`
18592 INTLTOOL_APPLIED_VERSION_AS_INT
=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
18593 if test -n "0.35.0"; then
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5
18595 $as_echo_n "checking for intltool >= 0.35.0... " >&6; }
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
18597 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
18598 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
18599 as_fn_error $?
"Your intltool is too old. You need intltool 0.35.0 or later." "$LINENO" 5
18602 # Extract the first word of "intltool-update", so it can be a program name with args.
18603 set dummy intltool-update
; ac_word
=$2
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18605 $as_echo_n "checking for $ac_word... " >&6; }
18606 if ${ac_cv_path_INTLTOOL_UPDATE+:} false
; then :
18607 $as_echo_n "(cached) " >&6
18609 case $INTLTOOL_UPDATE in
18611 ac_cv_path_INTLTOOL_UPDATE
="$INTLTOOL_UPDATE" # Let the user override the test with a path.
18614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18615 for as_dir
in $PATH
18618 test -z "$as_dir" && as_dir
=.
18619 for ac_exec_ext
in '' $ac_executable_extensions; do
18620 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18621 ac_cv_path_INTLTOOL_UPDATE
="$as_dir/$ac_word$ac_exec_ext"
18622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18632 INTLTOOL_UPDATE
=$ac_cv_path_INTLTOOL_UPDATE
18633 if test -n "$INTLTOOL_UPDATE"; then
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
18635 $as_echo "$INTLTOOL_UPDATE" >&6; }
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18638 $as_echo "no" >&6; }
18642 # Extract the first word of "intltool-merge", so it can be a program name with args.
18643 set dummy intltool-merge
; ac_word
=$2
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18645 $as_echo_n "checking for $ac_word... " >&6; }
18646 if ${ac_cv_path_INTLTOOL_MERGE+:} false
; then :
18647 $as_echo_n "(cached) " >&6
18649 case $INTLTOOL_MERGE in
18651 ac_cv_path_INTLTOOL_MERGE
="$INTLTOOL_MERGE" # Let the user override the test with a path.
18654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18655 for as_dir
in $PATH
18658 test -z "$as_dir" && as_dir
=.
18659 for ac_exec_ext
in '' $ac_executable_extensions; do
18660 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18661 ac_cv_path_INTLTOOL_MERGE
="$as_dir/$ac_word$ac_exec_ext"
18662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18672 INTLTOOL_MERGE
=$ac_cv_path_INTLTOOL_MERGE
18673 if test -n "$INTLTOOL_MERGE"; then
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
18675 $as_echo "$INTLTOOL_MERGE" >&6; }
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18678 $as_echo "no" >&6; }
18682 # Extract the first word of "intltool-extract", so it can be a program name with args.
18683 set dummy intltool-extract
; ac_word
=$2
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18685 $as_echo_n "checking for $ac_word... " >&6; }
18686 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false
; then :
18687 $as_echo_n "(cached) " >&6
18689 case $INTLTOOL_EXTRACT in
18691 ac_cv_path_INTLTOOL_EXTRACT
="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
18694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18695 for as_dir
in $PATH
18698 test -z "$as_dir" && as_dir
=.
18699 for ac_exec_ext
in '' $ac_executable_extensions; do
18700 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18701 ac_cv_path_INTLTOOL_EXTRACT
="$as_dir/$ac_word$ac_exec_ext"
18702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18712 INTLTOOL_EXTRACT
=$ac_cv_path_INTLTOOL_EXTRACT
18713 if test -n "$INTLTOOL_EXTRACT"; then
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
18715 $as_echo "$INTLTOOL_EXTRACT" >&6; }
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18718 $as_echo "no" >&6; }
18722 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
18723 as_fn_error $?
"The intltool scripts were not found. Please install intltool." "$LINENO" 5
18726 if test -z "$AM_DEFAULT_VERBOSITY"; then
18727 AM_DEFAULT_VERBOSITY
=1
18731 INTLTOOL_V_MERGE
='$(INTLTOOL__v_MERGE_$(V))'
18732 INTLTOOL__v_MERGE_
='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
18733 INTLTOOL__v_MERGE_0
='@echo " ITMRG " $@;'
18738 INTLTOOL_V_MERGE_OPTIONS
='$(intltool__v_merge_options_$(V))'
18739 intltool__v_merge_options_
='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
18740 intltool__v_merge_options_0
='-q'
18745 INTLTOOL_DESKTOP_RULE
='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18746 INTLTOOL_DIRECTORY_RULE
='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18747 INTLTOOL_KEYS_RULE
='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18748 INTLTOOL_PROP_RULE
='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18749 INTLTOOL_OAF_RULE
='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
18750 INTLTOOL_PONG_RULE
='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18751 INTLTOOL_SERVER_RULE
='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18752 INTLTOOL_SHEET_RULE
='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18753 INTLTOOL_SOUNDLIST_RULE
='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18754 INTLTOOL_UI_RULE
='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18755 INTLTOOL_XML_RULE
='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18756 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
18757 INTLTOOL_XML_NOMERGE_RULE
='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
18759 INTLTOOL_XML_NOMERGE_RULE
='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
18761 INTLTOOL_XAM_RULE
='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18762 INTLTOOL_KBD_RULE
='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18763 INTLTOOL_CAVES_RULE
='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18764 INTLTOOL_SCHEMAS_RULE
='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18765 INTLTOOL_THEME_RULE
='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18766 INTLTOOL_SERVICE_RULE
='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18767 INTLTOOL_POLICY_RULE
='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
18865 # Check the gettext tools to make sure they are GNU
18866 # Extract the first word of "xgettext", so it can be a program name with args.
18867 set dummy xgettext
; ac_word
=$2
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18869 $as_echo_n "checking for $ac_word... " >&6; }
18870 if ${ac_cv_path_XGETTEXT+:} false
; then :
18871 $as_echo_n "(cached) " >&6
18875 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
18878 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18879 for as_dir
in $PATH
18882 test -z "$as_dir" && as_dir
=.
18883 for ac_exec_ext
in '' $ac_executable_extensions; do
18884 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18885 ac_cv_path_XGETTEXT
="$as_dir/$ac_word$ac_exec_ext"
18886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18896 XGETTEXT
=$ac_cv_path_XGETTEXT
18897 if test -n "$XGETTEXT"; then
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18899 $as_echo "$XGETTEXT" >&6; }
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18902 $as_echo "no" >&6; }
18906 # Extract the first word of "msgmerge", so it can be a program name with args.
18907 set dummy msgmerge
; ac_word
=$2
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18909 $as_echo_n "checking for $ac_word... " >&6; }
18910 if ${ac_cv_path_MSGMERGE+:} false
; then :
18911 $as_echo_n "(cached) " >&6
18915 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
18918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18919 for as_dir
in $PATH
18922 test -z "$as_dir" && as_dir
=.
18923 for ac_exec_ext
in '' $ac_executable_extensions; do
18924 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18925 ac_cv_path_MSGMERGE
="$as_dir/$ac_word$ac_exec_ext"
18926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18936 MSGMERGE
=$ac_cv_path_MSGMERGE
18937 if test -n "$MSGMERGE"; then
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18939 $as_echo "$MSGMERGE" >&6; }
18941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18942 $as_echo "no" >&6; }
18946 # Extract the first word of "msgfmt", so it can be a program name with args.
18947 set dummy msgfmt
; ac_word
=$2
18948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18949 $as_echo_n "checking for $ac_word... " >&6; }
18950 if ${ac_cv_path_MSGFMT+:} false
; then :
18951 $as_echo_n "(cached) " >&6
18955 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
18958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18959 for as_dir
in $PATH
18962 test -z "$as_dir" && as_dir
=.
18963 for ac_exec_ext
in '' $ac_executable_extensions; do
18964 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18965 ac_cv_path_MSGFMT
="$as_dir/$ac_word$ac_exec_ext"
18966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18976 MSGFMT
=$ac_cv_path_MSGFMT
18977 if test -n "$MSGFMT"; then
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18979 $as_echo "$MSGFMT" >&6; }
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18982 $as_echo "no" >&6; }
18986 # Extract the first word of "gmsgfmt", so it can be a program name with args.
18987 set dummy gmsgfmt
; ac_word
=$2
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18989 $as_echo_n "checking for $ac_word... " >&6; }
18990 if ${ac_cv_path_GMSGFMT+:} false
; then :
18991 $as_echo_n "(cached) " >&6
18995 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
18998 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18999 for as_dir
in $PATH
19002 test -z "$as_dir" && as_dir
=.
19003 for ac_exec_ext
in '' $ac_executable_extensions; do
19004 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19005 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
19006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19013 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
19017 GMSGFMT
=$ac_cv_path_GMSGFMT
19018 if test -n "$GMSGFMT"; then
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
19020 $as_echo "$GMSGFMT" >&6; }
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19023 $as_echo "no" >&6; }
19027 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
19028 as_fn_error $?
"GNU gettext tools not found; required for intltool" "$LINENO" 5
19030 xgversion
="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
19031 mmversion
="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
19032 mfversion
="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
19033 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
19034 as_fn_error $?
"GNU gettext tools not found; required for intltool" "$LINENO" 5
19037 # Extract the first word of "perl", so it can be a program name with args.
19038 set dummy perl
; ac_word
=$2
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19040 $as_echo_n "checking for $ac_word... " >&6; }
19041 if ${ac_cv_path_INTLTOOL_PERL+:} false
; then :
19042 $as_echo_n "(cached) " >&6
19044 case $INTLTOOL_PERL in
19046 ac_cv_path_INTLTOOL_PERL
="$INTLTOOL_PERL" # Let the user override the test with a path.
19049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19050 for as_dir
in $PATH
19053 test -z "$as_dir" && as_dir
=.
19054 for ac_exec_ext
in '' $ac_executable_extensions; do
19055 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19056 ac_cv_path_INTLTOOL_PERL
="$as_dir/$ac_word$ac_exec_ext"
19057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19067 INTLTOOL_PERL
=$ac_cv_path_INTLTOOL_PERL
19068 if test -n "$INTLTOOL_PERL"; then
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
19070 $as_echo "$INTLTOOL_PERL" >&6; }
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19073 $as_echo "no" >&6; }
19077 if test -z "$INTLTOOL_PERL"; then
19078 as_fn_error $?
"perl not found" "$LINENO" 5
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
19081 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
19082 $INTLTOOL_PERL -e "use 5.8.1;" > /dev
/null
2>&1
19083 if test $?
-ne 0; then
19084 as_fn_error $?
"perl 5.8.1 is required for intltool" "$LINENO" 5
19086 IT_PERL_VERSION
=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
19088 $as_echo "$IT_PERL_VERSION" >&6; }
19090 if test "xno-xml" != "xno-xml"; then
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
19092 $as_echo_n "checking for XML::Parser... " >&6; }
19093 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
19095 $as_echo "ok" >&6; }
19097 as_fn_error $?
"XML::Parser perl module is required for intltool" "$LINENO" 5
19101 # Substitute ALL_LINGUAS so we can use it in po/Makefile
19104 # Set DATADIRNAME correctly if it is not set yet
19105 # (copied from glib-gettext.m4)
19106 if test -z "$DATADIRNAME"; then
19107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19108 /* end confdefs.h. */
19113 extern int _nl_msg_cat_cntr;
19114 return _nl_msg_cat_cntr
19119 if ac_fn_c_try_link
"$LINENO"; then :
19124 ac_fn_c_check_func
"$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19125 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes
; then :
19137 rm -f core conftest.err conftest.
$ac_objext \
19138 conftest
$ac_exeext conftest.
$ac_ext
19145 for ac_header
in libintl.h
19147 ac_fn_c_check_header_mongrel
"$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
19148 if test "x$ac_cv_header_libintl_h" = xyes
; then :
19149 cat >>confdefs.h
<<_ACEOF
19150 #define HAVE_LIBINTL_H 1
19157 GETTEXT_PACKAGE
=transmission-gtk
19160 cat >>confdefs.h
<<_ACEOF
19161 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
19165 for ac_header
in locale.h
19167 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
19168 if test "x$ac_cv_header_locale_h" = xyes
; then :
19169 cat >>confdefs.h
<<_ACEOF
19170 #define HAVE_LOCALE_H 1
19177 if test $ac_cv_header_locale_h = yes; then
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19179 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19180 if ${am_cv_val_LC_MESSAGES+:} false
; then :
19181 $as_echo_n "(cached) " >&6
19183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19184 /* end confdefs.h. */
19185 #include <locale.h>
19194 if ac_fn_c_try_link
"$LINENO"; then :
19195 am_cv_val_LC_MESSAGES
=yes
19197 am_cv_val_LC_MESSAGES
=no
19199 rm -f core conftest.err conftest.
$ac_objext \
19200 conftest
$ac_exeext conftest.
$ac_ext
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
19203 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
19204 if test $am_cv_val_LC_MESSAGES = yes; then
19206 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19213 gt_cv_have_gettext
=no
19219 ac_fn_c_check_header_mongrel
"$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
19220 if test "x$ac_cv_header_libintl_h" = xyes
; then :
19221 gt_cv_func_dgettext_libintl
="no"
19222 libintl_extra_libs
=""
19225 # First check in libc
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
19228 $as_echo_n "checking for ngettext in libc... " >&6; }
19229 if ${gt_cv_func_ngettext_libc+:} false
; then :
19230 $as_echo_n "(cached) " >&6
19232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19233 /* end confdefs.h. */
19235 #include <libintl.h>
19240 return !ngettext ("","", 1)
19245 if ac_fn_c_try_link
"$LINENO"; then :
19246 gt_cv_func_ngettext_libc
=yes
19248 gt_cv_func_ngettext_libc
=no
19250 rm -f core conftest.err conftest.
$ac_objext \
19251 conftest
$ac_exeext conftest.
$ac_ext
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
19255 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
19257 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
19259 $as_echo_n "checking for dgettext in libc... " >&6; }
19260 if ${gt_cv_func_dgettext_libc+:} false
; then :
19261 $as_echo_n "(cached) " >&6
19263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19264 /* end confdefs.h. */
19266 #include <libintl.h>
19271 return !dgettext ("","")
19276 if ac_fn_c_try_link
"$LINENO"; then :
19277 gt_cv_func_dgettext_libc
=yes
19279 gt_cv_func_dgettext_libc
=no
19281 rm -f core conftest.err conftest.
$ac_objext \
19282 conftest
$ac_exeext conftest.
$ac_ext
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
19286 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
19289 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
19290 for ac_func
in bind_textdomain_codeset
19292 ac_fn_c_check_func
"$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19293 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes
; then :
19294 cat >>confdefs.h
<<_ACEOF
19295 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19304 # If we don't have everything we want, check in libintl
19306 if test "$gt_cv_func_dgettext_libc" != "yes" \
19307 ||
test "$gt_cv_func_ngettext_libc" != "yes" \
19308 ||
test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
19311 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
19312 if ${ac_cv_lib_intl_bindtextdomain+:} false
; then :
19313 $as_echo_n "(cached) " >&6
19315 ac_check_lib_save_LIBS
=$LIBS
19316 LIBS
="-lintl $LIBS"
19317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19318 /* end confdefs.h. */
19320 /* Override any GCC internal prototype to avoid an error.
19321 Use char because int might match the return type of a GCC
19322 builtin and then its argument prototype would still apply. */
19326 char bindtextdomain ();
19330 return bindtextdomain ();
19335 if ac_fn_c_try_link
"$LINENO"; then :
19336 ac_cv_lib_intl_bindtextdomain
=yes
19338 ac_cv_lib_intl_bindtextdomain
=no
19340 rm -f core conftest.err conftest.
$ac_objext \
19341 conftest
$ac_exeext conftest.
$ac_ext
19342 LIBS
=$ac_check_lib_save_LIBS
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
19345 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
19346 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes
; then :
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
19348 $as_echo_n "checking for ngettext in -lintl... " >&6; }
19349 if ${ac_cv_lib_intl_ngettext+:} false
; then :
19350 $as_echo_n "(cached) " >&6
19352 ac_check_lib_save_LIBS
=$LIBS
19353 LIBS
="-lintl $LIBS"
19354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19355 /* end confdefs.h. */
19357 /* Override any GCC internal prototype to avoid an error.
19358 Use char because int might match the return type of a GCC
19359 builtin and then its argument prototype would still apply. */
19367 return ngettext ();
19372 if ac_fn_c_try_link
"$LINENO"; then :
19373 ac_cv_lib_intl_ngettext
=yes
19375 ac_cv_lib_intl_ngettext
=no
19377 rm -f core conftest.err conftest.
$ac_objext \
19378 conftest
$ac_exeext conftest.
$ac_ext
19379 LIBS
=$ac_check_lib_save_LIBS
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
19382 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
19383 if test "x$ac_cv_lib_intl_ngettext" = xyes
; then :
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
19385 $as_echo_n "checking for dgettext in -lintl... " >&6; }
19386 if ${ac_cv_lib_intl_dgettext+:} false
; then :
19387 $as_echo_n "(cached) " >&6
19389 ac_check_lib_save_LIBS
=$LIBS
19390 LIBS
="-lintl $LIBS"
19391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19392 /* end confdefs.h. */
19394 /* Override any GCC internal prototype to avoid an error.
19395 Use char because int might match the return type of a GCC
19396 builtin and then its argument prototype would still apply. */
19404 return dgettext ();
19409 if ac_fn_c_try_link
"$LINENO"; then :
19410 ac_cv_lib_intl_dgettext
=yes
19412 ac_cv_lib_intl_dgettext
=no
19414 rm -f core conftest.err conftest.
$ac_objext \
19415 conftest
$ac_exeext conftest.
$ac_ext
19416 LIBS
=$ac_check_lib_save_LIBS
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
19419 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
19420 if test "x$ac_cv_lib_intl_dgettext" = xyes
; then :
19421 gt_cv_func_dgettext_libintl
=yes
19429 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
19431 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
19435 $as_echo_n "checking for ngettext in -lintl... " >&6; }
19436 if ${ac_cv_lib_intl_ngettext+:} false
; then :
19437 $as_echo_n "(cached) " >&6
19439 ac_check_lib_save_LIBS
=$LIBS
19440 LIBS
="-lintl -liconv $LIBS"
19441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19442 /* end confdefs.h. */
19444 /* Override any GCC internal prototype to avoid an error.
19445 Use char because int might match the return type of a GCC
19446 builtin and then its argument prototype would still apply. */
19454 return ngettext ();
19459 if ac_fn_c_try_link
"$LINENO"; then :
19460 ac_cv_lib_intl_ngettext
=yes
19462 ac_cv_lib_intl_ngettext
=no
19464 rm -f core conftest.err conftest.
$ac_objext \
19465 conftest
$ac_exeext conftest.
$ac_ext
19466 LIBS
=$ac_check_lib_save_LIBS
19468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
19469 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
19470 if test "x$ac_cv_lib_intl_ngettext" = xyes
; then :
19471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
19472 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
19473 if ${ac_cv_lib_intl_dcgettext+:} false
; then :
19474 $as_echo_n "(cached) " >&6
19476 ac_check_lib_save_LIBS
=$LIBS
19477 LIBS
="-lintl -liconv $LIBS"
19478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19479 /* end confdefs.h. */
19481 /* Override any GCC internal prototype to avoid an error.
19482 Use char because int might match the return type of a GCC
19483 builtin and then its argument prototype would still apply. */
19491 return dcgettext ();
19496 if ac_fn_c_try_link
"$LINENO"; then :
19497 ac_cv_lib_intl_dcgettext
=yes
19499 ac_cv_lib_intl_dcgettext
=no
19501 rm -f core conftest.err conftest.
$ac_objext \
19502 conftest
$ac_exeext conftest.
$ac_ext
19503 LIBS
=$ac_check_lib_save_LIBS
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
19506 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
19507 if test "x$ac_cv_lib_intl_dcgettext" = xyes
; then :
19508 gt_cv_func_dgettext_libintl
=yes
19509 libintl_extra_libs
=-liconv
19521 # If we found libintl, then check in it for bind_textdomain_codeset();
19522 # we'll prefer libc if neither have bind_textdomain_codeset(),
19523 # and both have dgettext and ngettext
19525 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
19526 glib_save_LIBS
="$LIBS"
19527 LIBS
="$LIBS -lintl $libintl_extra_libs"
19528 unset ac_cv_func_bind_textdomain_codeset
19529 for ac_func
in bind_textdomain_codeset
19531 ac_fn_c_check_func
"$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19532 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes
; then :
19533 cat >>confdefs.h
<<_ACEOF
19534 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19540 LIBS
="$glib_save_LIBS"
19542 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
19543 gt_cv_func_dgettext_libc
=no
19545 if test "$gt_cv_func_dgettext_libc" = "yes" \
19546 && test "$gt_cv_func_ngettext_libc" = "yes"; then
19547 gt_cv_func_dgettext_libintl
=no
19553 if test "$gt_cv_func_dgettext_libc" = "yes" \
19554 ||
test "$gt_cv_func_dgettext_libintl" = "yes"; then
19555 gt_cv_have_gettext
=yes
19558 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
19559 INTLLIBS
="-lintl $libintl_extra_libs"
19562 if test "$gt_cv_have_gettext" = "yes"; then
19564 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
19566 # Extract the first word of "msgfmt", so it can be a program name with args.
19567 set dummy msgfmt
; ac_word
=$2
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19569 $as_echo_n "checking for $ac_word... " >&6; }
19570 if ${ac_cv_path_MSGFMT+:} false
; then :
19571 $as_echo_n "(cached) " >&6
19575 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
19578 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
19579 for ac_dir
in $PATH; do
19580 test -z "$ac_dir" && ac_dir
=.
19581 if test -f $ac_dir/$ac_word; then
19582 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
19583 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
19589 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
19593 MSGFMT
="$ac_cv_path_MSGFMT"
19594 if test "$MSGFMT" != "no"; then
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19596 $as_echo "$MSGFMT" >&6; }
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19599 $as_echo "no" >&6; }
19601 if test "$MSGFMT" != "no"; then
19602 glib_save_LIBS
="$LIBS"
19603 LIBS
="$LIBS $INTLLIBS"
19604 for ac_func
in dcgettext
19606 ac_fn_c_check_func
"$LINENO" "dcgettext" "ac_cv_func_dcgettext"
19607 if test "x$ac_cv_func_dcgettext" = xyes
; then :
19608 cat >>confdefs.h
<<_ACEOF
19609 #define HAVE_DCGETTEXT 1
19615 # Extract the first word of "gmsgfmt", so it can be a program name with args.
19616 set dummy gmsgfmt
; ac_word
=$2
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19618 $as_echo_n "checking for $ac_word... " >&6; }
19619 if ${ac_cv_path_GMSGFMT+:} false
; then :
19620 $as_echo_n "(cached) " >&6
19624 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
19627 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19628 for as_dir
in $PATH
19631 test -z "$as_dir" && as_dir
=.
19632 for ac_exec_ext
in '' $ac_executable_extensions; do
19633 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19634 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
19635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19642 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
19646 GMSGFMT
=$ac_cv_path_GMSGFMT
19647 if test -n "$GMSGFMT"; then
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
19649 $as_echo "$GMSGFMT" >&6; }
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19652 $as_echo "no" >&6; }
19656 # Extract the first word of "xgettext", so it can be a program name with args.
19657 set dummy xgettext
; ac_word
=$2
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19659 $as_echo_n "checking for $ac_word... " >&6; }
19660 if ${ac_cv_path_XGETTEXT+:} false
; then :
19661 $as_echo_n "(cached) " >&6
19663 case "$XGETTEXT" in
19665 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
19668 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
19669 for ac_dir
in $PATH; do
19670 test -z "$ac_dir" && ac_dir
=.
19671 if test -f $ac_dir/$ac_word; then
19672 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
19673 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
19679 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
19683 XGETTEXT
="$ac_cv_path_XGETTEXT"
19684 if test "$XGETTEXT" != ":"; then
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
19686 $as_echo "$XGETTEXT" >&6; }
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19689 $as_echo "no" >&6; }
19692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19693 /* end confdefs.h. */
19698 extern int _nl_msg_cat_cntr;
19699 return _nl_msg_cat_cntr
19704 if ac_fn_c_try_link
"$LINENO"; then :
19710 ac_fn_c_check_func
"$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19711 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes
; then :
19726 rm -f core conftest.err conftest.
$ac_objext \
19727 conftest
$ac_exeext conftest.
$ac_ext
19728 LIBS
="$glib_save_LIBS"
19731 gt_cv_have_gettext
=no
19739 if test "$gt_cv_have_gettext" = "yes" ; then
19741 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
19745 if test "$XGETTEXT" != ":"; then
19746 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
19750 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
19755 # We need to process the po/ directory.
19758 ac_config_commands
="$ac_config_commands default-1"
19761 for lang
in $ALL_LINGUAS; do
19762 GMOFILES
="$GMOFILES $lang.gmo"
19763 POFILES
="$POFILES $lang.po"
19778 if test "$gt_cv_have_gettext" = "yes"; then
19779 if test "x$ALL_LINGUAS" = "x"; then
19782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
19783 $as_echo_n "checking for catalogs to be installed... " >&6; }
19785 for presentlang
in $ALL_LINGUAS; do
19787 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
19788 desiredlanguages
="$LINGUAS"
19790 desiredlanguages
="$ALL_LINGUAS"
19792 for desiredlang
in $desiredlanguages; do
19793 # Use the presentlang catalog if desiredlang is
19794 # a. equal to presentlang, or
19795 # b. a variant of presentlang (because in this case,
19796 # presentlang can be used as a fallback for messages
19797 # which are not translated in the desiredlang catalog).
19798 case "$desiredlang" in
19799 "$presentlang"*) useit
=yes;;
19802 if test $useit = yes; then
19803 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
19806 LINGUAS
=$NEW_LINGUAS
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
19808 $as_echo "$LINGUAS" >&6; }
19811 if test -n "$LINGUAS"; then
19812 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
19817 if test -n "$ac_aux_dir"; then
19818 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
19820 if test -z "$MKINSTALLDIRS"; then
19821 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
19825 test -d po || mkdir po
19826 if test "x$srcdir" != "x."; then
19827 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
19828 posrcprefix
="$srcdir/"
19830 posrcprefix
="../$srcdir/"
19836 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
19837 < $srcdir/po
/POTFILES.
in > po
/POTFILES
19839 transmissionlocaledir
='${prefix}/${DATADIRNAME}/locale'
19853 CXXFLAGS
="$CXXFLAGS -mms-bitfields -mwin32 -mwindows"
19854 CPPFLAGS
="$CPPFLAGS -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN"
19855 LIBS
="$LIBS -liphlpapi -lshell32 -lws2_32"
19856 transmissionlocaledir
="locale"
19857 if test -z "$host_alias"; then
19860 hostaliaswindres
="$host_alias-windres";
19862 if test -n "$ac_tool_prefix"; then
19863 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19864 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
19865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19866 $as_echo_n "checking for $ac_word... " >&6; }
19867 if ${ac_cv_prog_WINDRES+:} false
; then :
19868 $as_echo_n "(cached) " >&6
19870 if test -n "$WINDRES"; then
19871 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
19873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19874 for as_dir
in $PATH
19877 test -z "$as_dir" && as_dir
=.
19878 for ac_exec_ext
in '' $ac_executable_extensions; do
19879 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19880 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
19881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19890 WINDRES
=$ac_cv_prog_WINDRES
19891 if test -n "$WINDRES"; then
19892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19893 $as_echo "$WINDRES" >&6; }
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19896 $as_echo "no" >&6; }
19901 if test -z "$ac_cv_prog_WINDRES"; then
19902 ac_ct_WINDRES
=$WINDRES
19903 # Extract the first word of "windres", so it can be a program name with args.
19904 set dummy windres
; ac_word
=$2
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19906 $as_echo_n "checking for $ac_word... " >&6; }
19907 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
19908 $as_echo_n "(cached) " >&6
19910 if test -n "$ac_ct_WINDRES"; then
19911 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
19913 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19914 for as_dir
in $PATH
19917 test -z "$as_dir" && as_dir
=.
19918 for ac_exec_ext
in '' $ac_executable_extensions; do
19919 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19920 ac_cv_prog_ac_ct_WINDRES
="windres"
19921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19930 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
19931 if test -n "$ac_ct_WINDRES"; then
19932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19933 $as_echo "$ac_ct_WINDRES" >&6; }
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19936 $as_echo "no" >&6; }
19939 if test "x$ac_ct_WINDRES" = x
; then
19942 case $cross_compiling:$ac_tool_warned in
19944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19946 ac_tool_warned
=yes ;;
19948 WINDRES
=$ac_ct_WINDRES
19951 WINDRES
="$ac_cv_prog_WINDRES"
19958 CFLAGS
="-DMACOSX $CFLAGS"
19963 # Check whether --enable-lightweight was given.
19964 if test "${enable_lightweight+set}" = set; then :
19965 enableval
=$enable_lightweight; enable_lightweight
=${enableval}
19967 enable_lightweight
="no"
19970 if test "x$enable_lightweight" = "xyes" ; then
19972 $as_echo "#define TR_LIGHTWEIGHT 1" >>confdefs.h
19976 # Check whether --enable-cli was given.
19977 if test "${enable_cli+set}" = set; then :
19978 enableval
=$enable_cli; build_cli
=${enableval}
19983 if test "x$build_cli" = "xyes"; then
19985 BUILD_CLI_FALSE
='#'
19992 # Check whether --enable-mac was given.
19993 if test "${enable_mac+set}" = set; then :
19994 enableval
=$enable_mac; build_mac
=${enableval}
19996 build_mac
=${have_darwin}
19999 if test "x$build_mac" = "xyes"; then
20001 BUILD_MAC_FALSE
='#'
20008 # Check whether --enable-daemon was given.
20009 if test "${enable_daemon+set}" = set; then :
20010 enableval
=$enable_daemon; build_daemon
=${enableval}
20015 if test "x$build_daemon" = "xyes"; then
20017 BUILD_DAEMON_FALSE
='#'
20019 BUILD_DAEMON_TRUE
='#'
20020 BUILD_DAEMON_FALSE
=
20025 if test "x$build_mac" = "xyes" ; then
20026 # Make sure the proper Mac SDK is installed
20027 if test ! -d /Developer
/SDKs
/MacOSX10.5.sdk
; then
20029 You need to install the Mac OS X 10.5 SDK in order to build Transmission
20031 Get your Xcode CD or package
20032 Restart the install
20033 When it gets to "Installation Type", select "Customize"
20034 Select "Mac OS X 10.5 SDK" under "Cross Development"
20035 Finish the install.
20040 if test "x$have_darwin" = "xyes"; then
20041 $as_echo "#define HAVE_DARWIN 1" >>confdefs.h
20043 $as_echo "#define SYS_DARWIN 1" >>confdefs.h
20046 if test "x$have_msw" = "xyes"; then
20047 $as_echo "#define HAVE_MSW 1" >>confdefs.h
20050 if test "x$have_msw" = "xyes"; then
20060 ac_config_files
="$ac_config_files Makefile transmission-gtk.spec cli/Makefile daemon/Makefile extras/Makefile libtransmission/Makefile utils/Makefile third-party/Makefile third-party/dht/Makefile third-party/libutp/Makefile third-party/libnatpmp/Makefile third-party/miniupnp/Makefile macosx/Makefile gtk/Makefile gtk/icons/Makefile qt/config.pri web/Makefile web/images/Makefile web/style/Makefile web/style/jqueryui/Makefile web/style/jqueryui/images/Makefile web/style/transmission/Makefile web/style/transmission/images/Makefile web/style/transmission/images/buttons/Makefile web/javascript/Makefile web/javascript/jquery/Makefile po/Makefile.in"
20063 cat >confcache
<<\_ACEOF
20064 # This file is a shell script that caches the results of configure
20065 # tests run on this system so they can be shared between configure
20066 # scripts and configure runs, see configure's option --config-cache.
20067 # It is not useful on other systems. If it contains results you don't
20068 # want to keep, you may remove or edit it.
20070 # config.status only pays attention to the cache file if you give it
20071 # the --recheck option to rerun configure.
20073 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20074 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20075 # following values.
20079 # The following way of writing the cache mishandles newlines in values,
20080 # but we know of no workaround that is simple, portable, and efficient.
20081 # So, we kill variables containing newlines.
20082 # Ultrix sh set writes to stderr and can't be redirected directly,
20083 # and sets the high bit in the cache file unless we assign to the vars.
20085 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20086 eval ac_val
=\$
$ac_var
20090 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20091 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20094 _ | IFS | as_nl
) ;; #(
20095 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
20096 *) { eval $ac_var=; unset $ac_var;} ;;
20102 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20103 *${as_nl}ac_space
=\
*)
20104 # `set' does not quote correctly, so add quotes: double-quote
20105 # substitution turns \\\\ into \\, and sed turns \\ into \.
20108 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20111 # `set' quotes correctly as required by POSIX, so do not add quotes.
20112 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20121 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20123 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20125 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
20126 if test -w "$cache_file"; then
20127 if test "x$cache_file" != "x/dev/null"; then
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20129 $as_echo "$as_me: updating cache $cache_file" >&6;}
20130 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
20131 cat confcache
>"$cache_file"
20133 case $cache_file in #(
20135 mv -f confcache
"$cache_file"$$
&&
20136 mv -f "$cache_file"$$
"$cache_file" ;; #(
20138 mv -f confcache
"$cache_file" ;;
20143 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20144 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20149 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20150 # Let make expand exec_prefix.
20151 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20153 # Transform confdefs.h into DEFS.
20154 # Protect against shell expansion while executing Makefile rules.
20155 # Protect against Makefile macro expansion.
20157 # If the first sed substitution is executed (which looks for macros that
20158 # take arguments), then branch to the quote section. Otherwise,
20159 # look for a macro that doesn't take arguments.
20169 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20171 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20175 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20188 DEFS
=`sed -n "$ac_script" confdefs.h`
20194 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20195 # 1. Remove the extension, and $U if already installed.
20196 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20197 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
20198 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20199 # will be set to the directory where LIBOBJS objects are built.
20200 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20201 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
20203 LIBOBJS
=$ac_libobjs
20205 LTLIBOBJS
=$ac_ltlibobjs
20208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20209 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20210 if test -n "$am_sleep_pid"; then
20211 # Hide warnings about reused PIDs.
20212 wait $am_sleep_pid 2>/dev
/null
20214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20215 $as_echo "done" >&6; }
20216 if test -n "$EXEEXT"; then
20218 am__EXEEXT_FALSE
='#'
20220 am__EXEEXT_TRUE
='#'
20224 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20225 as_fn_error $?
"conditional \"AMDEP\" was never defined.
20226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20228 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20229 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
20230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20232 if test -z "${TR_UNSTABLE_TRUE}" && test -z "${TR_UNSTABLE_FALSE}"; then
20233 as_fn_error $?
"conditional \"TR_UNSTABLE\" was never defined.
20234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20236 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20237 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
20238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20240 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20241 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
20242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20244 if test -z "${BUILD_UTP_TRUE}" && test -z "${BUILD_UTP_FALSE}"; then
20245 as_fn_error $?
"conditional \"BUILD_UTP\" was never defined.
20246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20248 if test -z "${BUILD_MINIUPNP_TRUE}" && test -z "${BUILD_MINIUPNP_FALSE}"; then
20249 as_fn_error $?
"conditional \"BUILD_MINIUPNP\" was never defined.
20250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20252 if test -z "${BUILD_NATPMP_TRUE}" && test -z "${BUILD_NATPMP_FALSE}"; then
20253 as_fn_error $?
"conditional \"BUILD_NATPMP\" was never defined.
20254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20256 if test -z "${BUILD_GTK_TRUE}" && test -z "${BUILD_GTK_FALSE}"; then
20257 as_fn_error $?
"conditional \"BUILD_GTK\" was never defined.
20258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20261 ac_config_commands
="$ac_config_commands po/stamp-it"
20264 if test -z "${BUILD_CLI_TRUE}" && test -z "${BUILD_CLI_FALSE}"; then
20265 as_fn_error $?
"conditional \"BUILD_CLI\" was never defined.
20266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20268 if test -z "${BUILD_MAC_TRUE}" && test -z "${BUILD_MAC_FALSE}"; then
20269 as_fn_error $?
"conditional \"BUILD_MAC\" was never defined.
20270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20272 if test -z "${BUILD_DAEMON_TRUE}" && test -z "${BUILD_DAEMON_FALSE}"; then
20273 as_fn_error $?
"conditional \"BUILD_DAEMON\" was never defined.
20274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20276 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
20277 as_fn_error $?
"conditional \"WIN32\" was never defined.
20278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20281 : "${CONFIG_STATUS=./config.status}"
20283 ac_clean_files_save
=$ac_clean_files
20284 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20286 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20288 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20290 # Generated by $as_me.
20291 # Run this file to recreate the current configuration.
20292 # Compiler output produced by configure, useful for debugging
20293 # configure, is in config.log if it exists.
20296 ac_cs_recheck=false
20299 SHELL=\${CONFIG_SHELL-$SHELL}
20302 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
20303 ## -------------------- ##
20304 ## M4sh Initialization. ##
20305 ## -------------------- ##
20307 # Be more Bourne compatible
20308 DUALCASE
=1; export DUALCASE
# for MKS sh
20309 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20312 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20313 # is contrary to our usage. Disable this feature.
20314 alias -g '${1+"$@"}'='"$@"'
20315 setopt NO_GLOB_SUBST
20317 case `(set -o) 2>/dev/null` in #(
20329 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20330 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20331 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20332 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20333 # Prefer a ksh shell builtin over an external printf program on Solaris,
20334 # but without wasting forks for bash or zsh.
20335 if test -z "$BASH_VERSION$ZSH_VERSION" \
20336 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20337 as_echo='print
-r --'
20338 as_echo_n='print
-rn --'
20339 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20340 as_echo='printf %s
\n'
20341 as_echo_n='printf %s
'
20343 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20344 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
20345 as_echo_n='/usr
/ucb
/echo -n'
20347 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20348 as_echo_n_body='eval
20352 expr "X$arg" : "X\\(.*\\)$as_nl";
20353 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20355 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
20357 export as_echo_n_body
20358 as_echo_n='sh
-c $as_echo_n_body as_echo
'
20360 export as_echo_body
20361 as_echo='sh
-c $as_echo_body as_echo
'
20364 # The user is always right.
20365 if test "${PATH_SEPARATOR+set}" != set; then
20367 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20368 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20375 # We need space, tab and new line, in precisely that order. Quoting is
20376 # there to prevent editors from complaining about space-tab.
20377 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20378 # splitting by setting IFS to empty value.)
20381 # Find who we are. Look in the path if we contain no directory separator.
20384 *[\\/]* ) as_myself=$0 ;;
20385 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20386 for as_dir in $PATH
20389 test -z "$as_dir" && as_dir=.
20390 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20396 # We did not find ourselves, most probably we were run as `sh COMMAND'
20397 # in which case we are not to be found in the path.
20398 if test "x$as_myself" = x
; then
20401 if test ! -f "$as_myself"; then
20402 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20406 # Unset variables that we do not need and which cause bugs (e.g. in
20407 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20408 # suppresses any "Segmentation fault" message there. '((' could
20409 # trigger a bug in pdksh 5.2.14.
20410 for as_var
in BASH_ENV ENV MAIL MAILPATH
20411 do eval test x\
${$as_var+set} = xset \
20412 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20425 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20428 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20429 # ----------------------------------------
20430 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20431 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20432 # script with STATUS, using 1 if that was 0.
20435 as_status
=$1; test $as_status -eq 0 && as_status
=1
20437 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20438 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20440 $as_echo "$as_me: error: $2" >&2
20441 as_fn_exit
$as_status
20445 # as_fn_set_status STATUS
20446 # -----------------------
20447 # Set $? to STATUS, without forking.
20448 as_fn_set_status
()
20451 } # as_fn_set_status
20453 # as_fn_exit STATUS
20454 # -----------------
20455 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20459 as_fn_set_status
$1
20465 # Portably unset VAR.
20468 { eval $1=; unset $1;}
20470 as_unset
=as_fn_unset
20471 # as_fn_append VAR VALUE
20472 # ----------------------
20473 # Append the text in VALUE to the end of the definition contained in VAR. Take
20474 # advantage of any shell optimizations that allow amortized linear growth over
20475 # repeated appends, instead of the typical quadratic growth present in naive
20477 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20478 eval 'as_fn_append ()
20489 # as_fn_arith ARG...
20490 # ------------------
20491 # Perform arithmetic evaluation on the ARGs, and store the result in the
20492 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20493 # must be portable across $(()) and expr.
20494 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20495 eval 'as_fn_arith ()
20502 as_val
=`expr "$@" || test $? -eq 1`
20507 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20508 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20514 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20515 as_basename
=basename
20520 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20526 as_me
=`$as_basename -- "$0" ||
20527 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20528 X"$0" : 'X\(//\)$' \| \
20529 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20531 sed '/^.*\/\([^/][^/]*\)\/*$/{
20545 # Avoid depending upon Character Ranges.
20546 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20547 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20548 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20549 as_cr_digits
='0123456789'
20550 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20552 ECHO_C
= ECHO_N
= ECHO_T
=
20553 case `echo -n x` in #(((((
20555 case `echo 'xy\c'` in
20556 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20558 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20565 rm -f conf$$ conf$$.exe conf$$.
file
20566 if test -d conf$$.dir
; then
20567 rm -f conf$$.dir
/conf$$.
file
20570 mkdir conf$$.dir
2>/dev
/null
20572 if (echo >conf$$.
file) 2>/dev
/null
; then
20573 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20575 # ... but there are two gotchas:
20576 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20577 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20578 # In both cases, we have to default to `cp -pR'.
20579 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20581 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20589 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20590 rmdir conf$$.dir
2>/dev
/null
20595 # Create "$as_dir" as a directory, including parents if necessary.
20600 -*) as_dir
=.
/$as_dir;;
20602 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20606 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20607 *) as_qdir
=$as_dir;;
20609 as_dirs
="'$as_qdir' $as_dirs"
20610 as_dir
=`$as_dirname -- "$as_dir" ||
20611 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20612 X"$as_dir" : 'X\(//\)[^/]' \| \
20613 X"$as_dir" : 'X\(//\)$' \| \
20614 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20615 $as_echo X"$as_dir" |
20616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20620 /^X\(\/\/\)[^/].*/{
20633 test -d "$as_dir" && break
20635 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20636 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
20640 if mkdir
-p .
2>/dev
/null
; then
20641 as_mkdir_p
='mkdir -p "$as_dir"'
20643 test -d .
/-p && rmdir .
/-p
20648 # as_fn_executable_p FILE
20649 # -----------------------
20650 # Test if FILE is an executable regular file.
20651 as_fn_executable_p
()
20653 test -f "$1" && test -x "$1"
20654 } # as_fn_executable_p
20655 as_test_x
='test -x'
20656 as_executable_p
=as_fn_executable_p
20658 # Sed expression to map a string onto a valid CPP name.
20659 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20661 # Sed expression to map a string onto a valid variable name.
20662 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20666 ## ----------------------------------- ##
20667 ## Main body of $CONFIG_STATUS script. ##
20668 ## ----------------------------------- ##
20670 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20673 # Save the log message, to keep $0 and so on meaningful, and to
20674 # report actual input values of CONFIG_FILES etc. instead of their
20675 # values after options handling.
20677 This file was extended by transmission $as_me 2.82, which was
20678 generated by GNU Autoconf 2.69. Invocation command line was
20680 CONFIG_FILES = $CONFIG_FILES
20681 CONFIG_HEADERS = $CONFIG_HEADERS
20682 CONFIG_LINKS = $CONFIG_LINKS
20683 CONFIG_COMMANDS = $CONFIG_COMMANDS
20686 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20691 case $ac_config_files in *"
20692 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20698 # Files that config.status was made for.
20699 config_files="$ac_config_files"
20700 config_commands="$ac_config_commands"
20704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20706 \`$as_me' instantiates files and other configuration actions
20707 from templates according to the current configuration. Unless the files
20708 and actions are specified as TAGs, all are instantiated by default.
20710 Usage: $0 [OPTION]... [TAG]...
20712 -h, --help print this help, then exit
20713 -V, --version print version number and configuration settings, then exit
20714 --config print configuration, then exit
20715 -q, --quiet, --silent
20716 do not print progress messages
20717 -d, --debug don't remove temporary files
20718 --recheck update $as_me by reconfiguring in the same conditions
20719 --file=FILE[:TEMPLATE]
20720 instantiate the configuration file FILE
20722 Configuration files:
20725 Configuration commands:
20728 Report bugs to <http://trac.transmissionbt.com/newticket>."
20731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20732 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20734 transmission config.status 2.82
20735 configured by $0, generated by GNU Autoconf 2.69,
20736 with options \\"\$ac_cs_config\\"
20738 Copyright (C) 2012 Free Software Foundation, Inc.
20739 This config.status script is free software; the Free Software Foundation
20740 gives unlimited permission to copy, distribute and modify it."
20747 test -n "\$AWK" || AWK=awk
20750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20751 # The default lists apply if the user does not specify any file.
20757 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20758 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20762 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20774 # Handling of the options.
20775 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20777 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20778 $as_echo "$ac_cs_version"; exit ;;
20779 --config |
--confi |
--conf |
--con |
--co |
--c )
20780 $as_echo "$ac_cs_config"; exit ;;
20781 --debug |
--debu |
--deb |
--de |
--d |
-d )
20783 --file |
--fil |
--fi |
--f )
20786 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20787 '') as_fn_error $?
"missing file argument" ;;
20789 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20790 ac_need_defaults
=false
;;
20791 --he |
--h |
--help |
--hel |
-h )
20792 $as_echo "$ac_cs_usage"; exit ;;
20793 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20794 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20797 # This is an error.
20798 -*) as_fn_error $?
"unrecognized option: \`$1'
20799 Try \`$0 --help' for more information." ;;
20801 *) as_fn_append ac_config_targets
" $1"
20802 ac_need_defaults
=false
;;
20808 ac_configure_extra_args
=
20810 if $ac_cs_silent; then
20812 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20817 if \$ac_cs_recheck; then
20818 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20820 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20821 CONFIG_SHELL='$SHELL'
20822 export CONFIG_SHELL
20827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20831 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20832 ## Running $as_me. ##
20838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20842 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20845 # The HP-UX ksh and POSIX shell print the target directory to stdout
20846 # if CDPATH is set.
20847 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20849 sed_quote_subst='$sed_quote_subst'
20850 double_quote_subst='$double_quote_subst'
20851 delay_variable_subst='$delay_variable_subst'
20852 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20853 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20854 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20855 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20856 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20857 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20858 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20859 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20860 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20861 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20862 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20863 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20864 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20865 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20866 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20867 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20868 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20869 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20870 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20871 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20872 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20873 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20874 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20875 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20876 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20877 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20878 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20879 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20880 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20881 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20882 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20883 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20884 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20885 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20886 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20887 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20888 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20889 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20890 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20891 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20892 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20893 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20894 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20895 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20896 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20897 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20898 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20899 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20900 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20901 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20902 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20903 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20904 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20905 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20906 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20907 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20908 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"`'
20909 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20910 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20911 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20912 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20913 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20914 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20915 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20916 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20917 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20918 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20919 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20920 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20921 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20922 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20923 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20924 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20925 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20926 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20927 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20928 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20929 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20930 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20931 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20932 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20933 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20934 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20935 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20936 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20937 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20938 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20939 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20940 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20941 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20942 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20943 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20944 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20945 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20946 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20947 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20948 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20949 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20950 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20951 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20952 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20953 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20954 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20955 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20956 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20957 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20958 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20959 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20960 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20961 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20962 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20963 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20964 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20965 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20966 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20967 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20968 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20969 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20970 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20971 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20972 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20973 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20974 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20975 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20976 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20977 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20978 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20979 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20980 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20981 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20982 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20983 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20984 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20985 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20986 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20987 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20988 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20989 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20990 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20991 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20992 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20993 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20994 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20995 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20996 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20997 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20998 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20999 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21000 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21001 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21002 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21003 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21004 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21005 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21006 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21007 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21008 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21009 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21010 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21011 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21012 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21013 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21014 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21015 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21016 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21017 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21018 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21019 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21020 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21021 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21022 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21023 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21024 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21025 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21026 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21027 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21028 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21029 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21030 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21031 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21032 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21033 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21034 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21035 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21038 LTCFLAGS='$LTCFLAGS'
21039 compiler='$compiler_DEFAULT'
21041 # A function that is used when there is no print builtin or printf.
21042 func_fallback_echo ()
21044 eval 'cat <<_LTECHO_EOF
21049 # Quote evaled strings.
21064 deplibs_check_method \
21069 sharedlib_from_linklib_cmd \
21072 archiver_list_spec \
21078 lt_cv_sys_global_symbol_pipe \
21079 lt_cv_sys_global_symbol_to_cdecl \
21080 lt_cv_sys_global_symbol_to_c_name_address \
21081 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21082 nm_file_list_spec \
21083 lt_prog_compiler_no_builtin_flag \
21084 lt_prog_compiler_pic \
21085 lt_prog_compiler_wl \
21086 lt_prog_compiler_static \
21087 lt_cv_prog_compiler_c_o \
21096 export_dynamic_flag_spec \
21097 whole_archive_flag_spec \
21098 compiler_needs_object \
21100 allow_undefined_flag \
21101 no_undefined_flag \
21102 hardcode_libdir_flag_spec \
21103 hardcode_libdir_separator \
21107 variables_saved_for_relink \
21109 library_names_spec \
21111 install_override_mode \
21115 compiler_lib_search_dirs \
21120 compiler_lib_search_path \
21124 lt_prog_compiler_no_builtin_flag_CXX \
21125 lt_prog_compiler_pic_CXX \
21126 lt_prog_compiler_wl_CXX \
21127 lt_prog_compiler_static_CXX \
21128 lt_cv_prog_compiler_c_o_CXX \
21129 export_dynamic_flag_spec_CXX \
21130 whole_archive_flag_spec_CXX \
21131 compiler_needs_object_CXX \
21133 allow_undefined_flag_CXX \
21134 no_undefined_flag_CXX \
21135 hardcode_libdir_flag_spec_CXX \
21136 hardcode_libdir_separator_CXX \
21137 exclude_expsyms_CXX \
21138 include_expsyms_CXX \
21139 file_list_spec_CXX \
21140 compiler_lib_search_dirs_CXX \
21141 predep_objects_CXX \
21142 postdep_objects_CXX \
21145 compiler_lib_search_path_CXX; do
21146 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21147 *[\\\\\\\`\\"\\\$]*)
21148 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21151 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21156 # Double-quote double-evaled strings.
21157 for var in reload_cmds \
21158 old_postinstall_cmds \
21159 old_postuninstall_cmds \
21161 extract_expsyms_cmds \
21162 old_archive_from_new_cmds \
21163 old_archive_from_expsyms_cmds \
21165 archive_expsym_cmds \
21167 module_expsym_cmds \
21168 export_symbols_cmds \
21172 postuninstall_cmds \
21174 sys_lib_search_path_spec \
21175 sys_lib_dlsearch_path_spec \
21177 old_archive_cmds_CXX \
21178 old_archive_from_new_cmds_CXX \
21179 old_archive_from_expsyms_cmds_CXX \
21181 archive_expsym_cmds_CXX \
21183 module_expsym_cmds_CXX \
21184 export_symbols_cmds_CXX \
21186 postlink_cmds_CXX; do
21187 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21188 *[\\\\\\\`\\"\\\$]*)
21189 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21192 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21197 ac_aux_dir='$ac_aux_dir'
21198 xsi_shell='$xsi_shell'
21199 lt_shell_append='$lt_shell_append'
21201 # See if we are running on zsh, and set the options which allow our
21202 # commands through without removal of \ escapes INIT.
21203 if test -n "\${ZSH_VERSION+set}" ; then
21204 setopt NO_GLOB_SUBST
21210 TIMESTAMP='$TIMESTAMP'
21222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21224 # Handling of arguments.
21225 for ac_config_target
in $ac_config_targets
21227 case $ac_config_target in
21228 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
21229 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
21230 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
21231 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
21232 "transmission-gtk.spec") CONFIG_FILES
="$CONFIG_FILES transmission-gtk.spec" ;;
21233 "cli/Makefile") CONFIG_FILES
="$CONFIG_FILES cli/Makefile" ;;
21234 "daemon/Makefile") CONFIG_FILES
="$CONFIG_FILES daemon/Makefile" ;;
21235 "extras/Makefile") CONFIG_FILES
="$CONFIG_FILES extras/Makefile" ;;
21236 "libtransmission/Makefile") CONFIG_FILES
="$CONFIG_FILES libtransmission/Makefile" ;;
21237 "utils/Makefile") CONFIG_FILES
="$CONFIG_FILES utils/Makefile" ;;
21238 "third-party/Makefile") CONFIG_FILES
="$CONFIG_FILES third-party/Makefile" ;;
21239 "third-party/dht/Makefile") CONFIG_FILES
="$CONFIG_FILES third-party/dht/Makefile" ;;
21240 "third-party/libutp/Makefile") CONFIG_FILES
="$CONFIG_FILES third-party/libutp/Makefile" ;;
21241 "third-party/libnatpmp/Makefile") CONFIG_FILES
="$CONFIG_FILES third-party/libnatpmp/Makefile" ;;
21242 "third-party/miniupnp/Makefile") CONFIG_FILES
="$CONFIG_FILES third-party/miniupnp/Makefile" ;;
21243 "macosx/Makefile") CONFIG_FILES
="$CONFIG_FILES macosx/Makefile" ;;
21244 "gtk/Makefile") CONFIG_FILES
="$CONFIG_FILES gtk/Makefile" ;;
21245 "gtk/icons/Makefile") CONFIG_FILES
="$CONFIG_FILES gtk/icons/Makefile" ;;
21246 "qt/config.pri") CONFIG_FILES
="$CONFIG_FILES qt/config.pri" ;;
21247 "web/Makefile") CONFIG_FILES
="$CONFIG_FILES web/Makefile" ;;
21248 "web/images/Makefile") CONFIG_FILES
="$CONFIG_FILES web/images/Makefile" ;;
21249 "web/style/Makefile") CONFIG_FILES
="$CONFIG_FILES web/style/Makefile" ;;
21250 "web/style/jqueryui/Makefile") CONFIG_FILES
="$CONFIG_FILES web/style/jqueryui/Makefile" ;;
21251 "web/style/jqueryui/images/Makefile") CONFIG_FILES
="$CONFIG_FILES web/style/jqueryui/images/Makefile" ;;
21252 "web/style/transmission/Makefile") CONFIG_FILES
="$CONFIG_FILES web/style/transmission/Makefile" ;;
21253 "web/style/transmission/images/Makefile") CONFIG_FILES
="$CONFIG_FILES web/style/transmission/images/Makefile" ;;
21254 "web/style/transmission/images/buttons/Makefile") CONFIG_FILES
="$CONFIG_FILES web/style/transmission/images/buttons/Makefile" ;;
21255 "web/javascript/Makefile") CONFIG_FILES
="$CONFIG_FILES web/javascript/Makefile" ;;
21256 "web/javascript/jquery/Makefile") CONFIG_FILES
="$CONFIG_FILES web/javascript/jquery/Makefile" ;;
21257 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
21258 "po/stamp-it") CONFIG_COMMANDS
="$CONFIG_COMMANDS po/stamp-it" ;;
21260 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21265 # If the user did not use the arguments to specify the items to instantiate,
21266 # then the envvar interface is used. Set only those that are not.
21267 # We use the long form for the default assignment because of an extremely
21268 # bizarre bug on SunOS 4.1.3.
21269 if $ac_need_defaults; then
21270 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21271 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21274 # Have a temporary directory for convenience. Make it in the build tree
21275 # simply because there is no reason against having it here, and in addition,
21276 # creating and moving files from /tmp can sometimes cause problems.
21277 # Hook for its removal unless debugging.
21278 # Note that there is a small window in which the directory will not be cleaned:
21279 # after its creation but before its name has been assigned to `$tmp'.
21283 trap 'exit_status=$?
21284 : "${ac_tmp:=$tmp}"
21285 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21287 trap 'as_fn_exit 1' 1 2 13 15
21289 # Create a (secure) tmp directory for tmp files.
21292 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21296 tmp
=.
/conf$$
-$RANDOM
21297 (umask 077 && mkdir
"$tmp")
21298 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
21301 # Set up the scripts for CONFIG_FILES section.
21302 # No need to generate them if there are no CONFIG_FILES.
21303 # This happens for instance with `./config.status config.h'.
21304 if test -n "$CONFIG_FILES"; then
21307 ac_cr
=`echo X | tr X '\015'`
21308 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21309 # But we know of no other shell where ac_cr would be empty at this
21310 # point, so we can use a bashism as a fallback.
21311 if test "x$ac_cr" = x
; then
21312 eval ac_cr
=\$
\'\\r
\'
21314 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21315 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21318 ac_cs_awk_cr
=$ac_cr
21321 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21326 echo "cat >conf$$subs.awk <<_ACEOF" &&
21327 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21329 } >conf$$subs.sh ||
21330 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
21331 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21333 for ac_last_try in false false false false false :; do
21334 . ./conf$$subs.sh ||
21335 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
21337 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
21338 if test $ac_delim_n = $ac_delim_num; then
21340 elif $ac_last_try; then
21341 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
21343 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
21346 rm -f conf$$subs.sh
21348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21349 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
21353 s/^/S["/; s
/!.
*/"]=/
21363 s/\(.\{148\}\)..*/\1/
21365 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
21370 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
21377 s/\(.\{148\}\)..*/\1/
21379 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
21383 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
21388 ' <conf$$subs.awk | sed '
21393 ' >>$CONFIG_STATUS || ac_write_fail=1
21394 rm -f conf$$subs.awk
21395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21397 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
21398 for (key in S) S_is_set[key] = 1
21404 nfields = split(line, field, "@
")
21406 len = length(field[1])
21407 for (i = 2; i < nfields; i++) {
21409 keylen = length(key)
21410 if (S_is_set[key]) {
21412 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21413 len += length(value) + length(field[++i])
21424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21425 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21426 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
21429 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
21430 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
21433 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21434 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
21435 # trailing colons and then remove the whole line if VPATH becomes empty
21436 # (actually we leave an empty line to preserve line numbers).
21437 if test "x
$srcdir" = x.; then
21438 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21457 fi # test -n "$CONFIG_FILES"
21460 eval set X " :F
$CONFIG_FILES :C
$CONFIG_COMMANDS"
21465 :[FHLC]) ac_mode=$ac_tag; continue;;
21467 case $ac_mode$ac_tag in
21469 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
21470 :[FH]-) ac_tag=-:-;;
21471 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21488 -) ac_f="$ac_tmp/stdin";;
21489 *) # Look for the file first in the build tree, then in the source tree
21490 # (if the path is not absolute). The absolute path cannot be DOS-style,
21491 # because $ac_f cannot contain `:'.
21495 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21497 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21499 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
21500 as_fn_append ac_file_inputs " '$ac_f'"
21503 # Let's still pretend it is `configure' which instantiates (i.e., don't
21504 # use $as_me), people would be surprised to read:
21505 # /* config.h. Generated by config.status. */
21506 configure_input='Generated from '`
21507 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21509 if test x"$ac_file" != x-; then
21510 configure_input="$ac_file.
$configure_input"
21511 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
21512 $as_echo "$as_me: creating
$ac_file" >&6;}
21514 # Neutralize special characters interpreted by sed in replacement strings.
21515 case $configure_input in #(
21516 *\&* | *\|* | *\\* )
21517 ac_sed_conf_input=`$as_echo "$configure_input" |
21518 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21519 *) ac_sed_conf_input=$configure_input;;
21523 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
21524 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
21529 ac_dir=`$as_dirname -- "$ac_file" ||
21530 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21531 X"$ac_file" : 'X\(//\)[^/]' \| \
21532 X"$ac_file" : 'X\(//\)$' \| \
21533 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21534 $as_echo X"$ac_file" |
21535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21539 /^X\(\/\/\)[^/].*/{
21552 as_dir="$ac_dir"; as_fn_mkdir_p
21556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21558 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21559 # A "..
" for each directory in $ac_dir_suffix.
21560 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21561 case $ac_top_builddir_sub in
21562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21566 ac_abs_top_builddir=$ac_pwd
21567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21568 # for backward compatibility:
21569 ac_top_builddir=$ac_top_build_prefix
21572 .) # We are building in place.
21574 ac_top_srcdir=$ac_top_builddir_sub
21575 ac_abs_top_srcdir=$ac_pwd ;;
21576 [\\/]* | ?:[\\/]* ) # Absolute name.
21577 ac_srcdir=$srcdir$ac_dir_suffix;
21578 ac_top_srcdir=$srcdir
21579 ac_abs_top_srcdir=$srcdir ;;
21580 *) # Relative name.
21581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21582 ac_top_srcdir=$ac_top_build_prefix$srcdir
21583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21595 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21596 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21598 ac_MKDIR_P=$MKDIR_P
21600 [\\/$]* | ?:[\\/]* ) ;;
21601 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21606 # If the template does not know about datarootdir, expand it.
21607 # FIXME: This hack should be removed a few years after 2.60.
21608 ac_datarootdir_hack=; ac_datarootdir_seen=
21619 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
21620 *datarootdir*) ac_datarootdir_seen=yes;;
21621 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
21623 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
21625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21626 ac_datarootdir_hack='
21627 s&@datadir@&$datadir&g
21628 s&@docdir@&$docdir&g
21629 s&@infodir@&$infodir&g
21630 s&@localedir@&$localedir&g
21631 s&@mandir@&$mandir&g
21632 s&\\\${datarootdir}&$datarootdir&g' ;;
21636 # Neutralize VPATH when `$srcdir' = `.'.
21637 # Shell code in configure.ac might set extrasub.
21638 # FIXME: do we really want to maintain this feature?
21639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21640 ac_sed_extra="$ac_vpsub
21643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21645 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21646 s|@configure_input@|
$ac_sed_conf_input|
;t t
21647 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21648 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21649 s
&@srcdir@
&$ac_srcdir&;t t
21650 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21651 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21652 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21653 s
&@builddir@
&$ac_builddir&;t t
21654 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21655 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21656 s
&@INSTALL@
&$ac_INSTALL&;t t
21657 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
21658 $ac_datarootdir_hack
21660 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
21661 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
21663 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21664 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
21665 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21666 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21668 which seems to be undefined. Please make sure it is defined" >&5
21669 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21670 which seems to be undefined. Please make sure it is defined" >&2;}
21672 rm -f "$ac_tmp/stdin"
21674 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21675 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21677 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21681 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21682 $as_echo "$as_me: executing $ac_file commands" >&6;}
21687 case $ac_file$ac_mode in
21688 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21689 # Older Autoconf quotes --file arguments for eval, but not when files
21690 # are listed without --file. Let's play safe and only
enable the
eval
21691 # if we detect the quoting.
21692 case $CONFIG_FILES in
21693 *\'*) eval set x
"$CONFIG_FILES" ;;
21694 *) set x
$CONFIG_FILES ;;
21699 # Strip MF so we end up with the name of the file.
21700 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21701 # Check whether this is an Automake generated Makefile or not.
21702 # We used to match only the files named 'Makefile.in', but
21703 # some people rename them; so instead we look at the file content.
21704 # Grep'ing the first line is not enough: some people post-process
21705 # each Makefile.in and add a new line on top of each file to say so.
21706 # Grep'ing the whole file is not good either: AIX grep has a line
21707 # limit of 2048, but all sed's we know have understand at least 4000.
21708 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
21709 dirpart
=`$as_dirname -- "$mf" ||
21710 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21711 X"$mf" : 'X\(//\)[^/]' \| \
21712 X"$mf" : 'X\(//\)$' \| \
21713 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21719 /^X\(\/\/\)[^/].*/{
21735 # Extract the definition of DEPDIR, am__include, and am__quote
21736 # from the Makefile without running 'make'.
21737 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21738 test -z "$DEPDIR" && continue
21739 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21740 test -z "$am__include" && continue
21741 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21742 # Find all dependency output files, they are included files with
21743 # $(DEPDIR) in their names. We invoke sed twice because it is the
21744 # simplest approach to changing $(DEPDIR) to its actual value in the
21746 for file in `sed -n "
21747 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21748 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21749 # Make sure the directory exists.
21750 test -f "$dirpart/$file" && continue
21751 fdir
=`$as_dirname -- "$file" ||
21752 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21753 X"$file" : 'X\(//\)[^/]' \| \
21754 X"$file" : 'X\(//\)$' \| \
21755 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21756 $as_echo X"$file" |
21757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21761 /^X\(\/\/\)[^/].*/{
21774 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
21775 # echo "creating $dirpart/$file"
21776 echo '# dummy' > "$dirpart/$file"
21783 # See if we are running on zsh, and set the options which allow our
21784 # commands through without removal of \ escapes.
21785 if test -n "${ZSH_VERSION+set}" ; then
21786 setopt NO_GLOB_SUBST
21789 cfgfile
="${ofile}T"
21790 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21793 cat <<_LT_EOF >> "$cfgfile"
21796 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21797 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21798 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21799 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21801 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21802 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21804 # Written by Gordon Matzigkeit, 1996
21806 # This file is part of GNU Libtool.
21808 # GNU Libtool is free software; you can redistribute it and/or
21809 # modify it under the terms of the GNU General Public License as
21810 # published by the Free Software Foundation; either version 2 of
21811 # the License, or (at your option) any later version.
21813 # As a special exception to the GNU General Public License,
21814 # if you distribute this file as part of a program or library that
21815 # is built using GNU Libtool, you may include this file under the
21816 # same distribution terms that you use for the rest of that program.
21818 # GNU Libtool is distributed in the hope that it will be useful,
21819 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21820 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21821 # GNU General Public License for more details.
21823 # You should have received a copy of the GNU General Public License
21824 # along with GNU Libtool; see the file COPYING. If not, a copy
21825 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21826 # obtained by writing to the Free Software Foundation, Inc.,
21827 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21830 # The names of the tagged configurations supported by this script.
21831 available_tags="CXX "
21833 # ### BEGIN LIBTOOL CONFIG
21835 # Which release of libtool.m4 was used?
21836 macro_version=$macro_version
21837 macro_revision=$macro_revision
21839 # Whether or not to build shared libraries.
21840 build_libtool_libs=$enable_shared
21842 # Whether or not to build static libraries.
21843 build_old_libs=$enable_static
21845 # What type of objects to build.
21848 # Whether or not to optimize for fast installation.
21849 fast_install=$enable_fast_install
21851 # Shell to use when invoking shell scripts.
21854 # An echo program that protects backslashes.
21857 # The PATH separator for the build system.
21858 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21861 host_alias=$host_alias
21865 # The build system.
21866 build_alias=$build_alias
21870 # A sed program that does not truncate output.
21873 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21874 Xsed="\$SED -e 1s/^X//"
21876 # A grep program that handles long lines.
21882 # A literal string matcher.
21885 # A BSD- or MS-compatible name lister.
21888 # Whether we need soft or hard links.
21891 # What is the maximum length of a command?
21892 max_cmd_len=$max_cmd_len
21894 # Object file suffix (normally "o").
21897 # Executable file suffix (normally "").
21900 # whether the shell understands "unset".
21903 # turn spaces into newlines.
21906 # turn newlines into spaces.
21909 # convert \$build file names to \$host format.
21910 to_host_file_cmd=$lt_cv_to_host_file_cmd
21912 # convert \$build files to toolchain format.
21913 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21915 # An object symbol dumper.
21916 OBJDUMP=$lt_OBJDUMP
21918 # Method to check whether dependent libraries are shared objects.
21919 deplibs_check_method=$lt_deplibs_check_method
21921 # Command to use when deplibs_check_method = "file_magic".
21922 file_magic_cmd=$lt_file_magic_cmd
21924 # How to find potential files when deplibs_check_method = "file_magic".
21925 file_magic_glob=$lt_file_magic_glob
21927 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21928 want_nocaseglob=$lt_want_nocaseglob
21930 # DLL creation program.
21931 DLLTOOL=$lt_DLLTOOL
21933 # Command to associate shared and link libraries.
21934 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21939 # Flags to create an archive.
21940 AR_FLAGS=$lt_AR_FLAGS
21942 # How to feed a file listing to the archiver.
21943 archiver_list_spec=$lt_archiver_list_spec
21945 # A symbol stripping program.
21948 # Commands used to install an old-style archive.
21950 old_postinstall_cmds=$lt_old_postinstall_cmds
21951 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21953 # Whether to use a lock for old archive extraction.
21954 lock_old_archive_extraction=$lock_old_archive_extraction
21959 # LTCC compiler flags.
21960 LTCFLAGS=$lt_CFLAGS
21962 # Take the output of nm and produce a listing of raw symbols and C names.
21963 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21965 # Transform the output of nm in a proper C declaration.
21966 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21968 # Transform the output of nm in a C name address pair.
21969 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21971 # Transform the output of nm in a C name address pair when lib prefix is needed.
21972 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21974 # Specify filename containing input files for \$NM.
21975 nm_file_list_spec=$lt_nm_file_list_spec
21977 # The root where to search for dependent libraries,and in which our libraries should be installed.
21978 lt_sysroot=$lt_sysroot
21980 # The name of the directory that contains temporary libtool files.
21983 # Used to examine libraries when file_magic_cmd begins with "file".
21984 MAGIC_CMD=$MAGIC_CMD
21986 # Must we lock files when doing compilation?
21987 need_locks=$lt_need_locks
21990 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21992 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21993 DSYMUTIL=$lt_DSYMUTIL
21995 # Tool to change global to local symbols on Mac OS X.
21998 # Tool to manipulate fat objects and archives on Mac OS X.
22001 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22004 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22005 OTOOL64=$lt_OTOOL64
22007 # Old archive suffix (normally "a").
22010 # Shared library suffix (normally ".so").
22011 shrext_cmds=$lt_shrext_cmds
22013 # The commands to extract the exported symbol list from a shared archive.
22014 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22016 # Variables whose values should be saved in libtool wrapper scripts and
22017 # restored at link time.
22018 variables_saved_for_relink=$lt_variables_saved_for_relink
22020 # Do we need the "lib" prefix for modules?
22021 need_lib_prefix=$need_lib_prefix
22023 # Do we need a version for libraries?
22024 need_version=$need_version
22026 # Library versioning type.
22027 version_type=$version_type
22029 # Shared library runtime path variable.
22030 runpath_var=$runpath_var
22032 # Shared library path variable.
22033 shlibpath_var=$shlibpath_var
22035 # Is shlibpath searched before the hard-coded library search path?
22036 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22038 # Format of library name prefix.
22039 libname_spec=$lt_libname_spec
22041 # List of archive names. First name is the real one, the rest are links.
22042 # The last name is the one that the linker finds with -lNAME
22043 library_names_spec=$lt_library_names_spec
22045 # The coded name of the library, if different from the real name.
22046 soname_spec=$lt_soname_spec
22048 # Permission mode override for installation of shared libraries.
22049 install_override_mode=$lt_install_override_mode
22051 # Command to use after installation of a shared archive.
22052 postinstall_cmds=$lt_postinstall_cmds
22054 # Command to use after uninstallation of a shared archive.
22055 postuninstall_cmds=$lt_postuninstall_cmds
22057 # Commands used to finish a libtool library installation in a directory.
22058 finish_cmds=$lt_finish_cmds
22060 # As "finish_cmds", except a single script fragment to be evaled but
22062 finish_eval=$lt_finish_eval
22064 # Whether we should hardcode library paths into libraries.
22065 hardcode_into_libs=$hardcode_into_libs
22067 # Compile-time system search path for libraries.
22068 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22070 # Run-time system search path for libraries.
22071 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22073 # Whether dlopen is supported.
22074 dlopen_support=$enable_dlopen
22076 # Whether dlopen of programs is supported.
22077 dlopen_self=$enable_dlopen_self
22079 # Whether dlopen of statically linked programs is supported.
22080 dlopen_self_static=$enable_dlopen_self_static
22082 # Commands to strip libraries.
22083 old_striplib=$lt_old_striplib
22084 striplib=$lt_striplib
22087 # The linker used to build libraries.
22090 # How to create reloadable object files.
22091 reload_flag=$lt_reload_flag
22092 reload_cmds=$lt_reload_cmds
22094 # Commands used to build an old-style archive.
22095 old_archive_cmds=$lt_old_archive_cmds
22097 # A language specific compiler.
22100 # Is the compiler the GNU compiler?
22103 # Compiler flag to turn off builtin functions.
22104 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22106 # Additional compiler flags for building library objects.
22107 pic_flag=$lt_lt_prog_compiler_pic
22109 # How to pass a linker flag through the compiler.
22110 wl=$lt_lt_prog_compiler_wl
22112 # Compiler flag to prevent dynamic linking.
22113 link_static_flag=$lt_lt_prog_compiler_static
22115 # Does compiler simultaneously support -c and -o options?
22116 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22118 # Whether or not to add -lc for building shared libraries.
22119 build_libtool_need_lc=$archive_cmds_need_lc
22121 # Whether or not to disallow shared libs when runtime libs are static.
22122 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22124 # Compiler flag to allow reflexive dlopens.
22125 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22127 # Compiler flag to generate shared objects directly from archives.
22128 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22130 # Whether the compiler copes with passing no objects directly.
22131 compiler_needs_object=$lt_compiler_needs_object
22133 # Create an old-style archive from a shared archive.
22134 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22136 # Create a temporary old-style archive to link instead of a shared archive.
22137 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22139 # Commands used to build a shared archive.
22140 archive_cmds=$lt_archive_cmds
22141 archive_expsym_cmds=$lt_archive_expsym_cmds
22143 # Commands used to build a loadable module if different from building
22144 # a shared archive.
22145 module_cmds=$lt_module_cmds
22146 module_expsym_cmds=$lt_module_expsym_cmds
22148 # Whether we are building with GNU ld or not.
22149 with_gnu_ld=$lt_with_gnu_ld
22151 # Flag that allows shared libraries with undefined symbols to be built.
22152 allow_undefined_flag=$lt_allow_undefined_flag
22154 # Flag that enforces no undefined symbols.
22155 no_undefined_flag=$lt_no_undefined_flag
22157 # Flag to hardcode \$libdir into a binary during linking.
22158 # This must work even if \$libdir does not exist
22159 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22161 # Whether we need a single "-rpath" flag with a separated argument.
22162 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22164 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22165 # DIR into the resulting binary.
22166 hardcode_direct=$hardcode_direct
22168 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22169 # DIR into the resulting binary and the resulting library dependency is
22170 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22171 # library is relocated.
22172 hardcode_direct_absolute=$hardcode_direct_absolute
22174 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22175 # into the resulting binary.
22176 hardcode_minus_L=$hardcode_minus_L
22178 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22179 # into the resulting binary.
22180 hardcode_shlibpath_var=$hardcode_shlibpath_var
22182 # Set to "yes" if building a shared library automatically hardcodes DIR
22183 # into the library and all subsequent libraries and executables linked
22185 hardcode_automatic=$hardcode_automatic
22187 # Set to yes if linker adds runtime paths of dependent libraries
22188 # to runtime path list.
22189 inherit_rpath=$inherit_rpath
22191 # Whether libtool must link a program against all its dependency libraries.
22192 link_all_deplibs=$link_all_deplibs
22194 # Set to "yes" if exported symbols are required.
22195 always_export_symbols=$always_export_symbols
22197 # The commands to list exported symbols.
22198 export_symbols_cmds=$lt_export_symbols_cmds
22200 # Symbols that should not be listed in the preloaded symbols.
22201 exclude_expsyms=$lt_exclude_expsyms
22203 # Symbols that must always be exported.
22204 include_expsyms=$lt_include_expsyms
22206 # Commands necessary for linking programs (against libraries) with templates.
22207 prelink_cmds=$lt_prelink_cmds
22209 # Commands necessary for finishing linking programs.
22210 postlink_cmds=$lt_postlink_cmds
22212 # Specify filename containing input files.
22213 file_list_spec=$lt_file_list_spec
22215 # How to hardcode a shared library path into an executable.
22216 hardcode_action=$hardcode_action
22218 # The directories searched by this compiler when creating a shared library.
22219 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22221 # Dependencies to place before and after the objects being linked to
22222 # create a shared library.
22223 predep_objects=$lt_predep_objects
22224 postdep_objects=$lt_postdep_objects
22225 predeps=$lt_predeps
22226 postdeps=$lt_postdeps
22228 # The library search path used internally by the compiler when linking
22229 # a shared library.
22230 compiler_lib_search_path=$lt_compiler_lib_search_path
22232 # ### END LIBTOOL CONFIG
22238 cat <<\_LT_EOF
>> "$cfgfile"
22239 # AIX sometimes has problems with the GCC collect2 program. For some
22240 # reason, if we set the COLLECT_NAMES environment variable, the problems
22241 # vanish in a puff of smoke.
22242 if test "X${COLLECT_NAMES+set}" != Xset
; then
22244 export COLLECT_NAMES
22251 ltmain
="$ac_aux_dir/ltmain.sh"
22254 # We use sed instead of cat because bash on DJGPP gets confused if
22255 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22256 # text mode, it properly converts lines to CR/LF. This bash problem
22257 # is reportedly fixed, but why not run on old versions too?
22258 sed '$q' "$ltmain" >> "$cfgfile" \
22259 ||
(rm -f "$cfgfile"; exit 1)
22261 if test x
"$xsi_shell" = xyes
; then
22262 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22266 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22267 \ * ) func_dirname_result="${3}" ;;\
22269 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22270 && mv -f "$cfgfile.tmp" "$cfgfile" \
22271 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22272 test 0 -eq $? || _lt_function_replace_fail
=:
22275 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22278 \ func_basename_result="${1##*/}"\
22279 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22280 && mv -f "$cfgfile.tmp" "$cfgfile" \
22281 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22282 test 0 -eq $? || _lt_function_replace_fail
=:
22285 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22286 func_dirname_and_basename ()\
22289 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22290 \ * ) func_dirname_result="${3}" ;;\
22292 \ func_basename_result="${1##*/}"\
22293 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22294 && mv -f "$cfgfile.tmp" "$cfgfile" \
22295 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22296 test 0 -eq $? || _lt_function_replace_fail
=:
22299 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22302 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22303 \ # positional parameters, so assign one to ordinary parameter first.\
22304 \ func_stripname_result=${3}\
22305 \ func_stripname_result=${func_stripname_result#"${1}"}\
22306 \ func_stripname_result=${func_stripname_result%"${2}"}\
22307 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22308 && mv -f "$cfgfile.tmp" "$cfgfile" \
22309 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22310 test 0 -eq $? || _lt_function_replace_fail
=:
22313 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22314 func_split_long_opt ()\
22316 \ func_split_long_opt_name=${1%%=*}\
22317 \ func_split_long_opt_arg=${1#*=}\
22318 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22319 && mv -f "$cfgfile.tmp" "$cfgfile" \
22320 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22321 test 0 -eq $? || _lt_function_replace_fail
=:
22324 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22325 func_split_short_opt ()\
22327 \ func_split_short_opt_arg=${1#??}\
22328 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22329 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22330 && mv -f "$cfgfile.tmp" "$cfgfile" \
22331 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22332 test 0 -eq $? || _lt_function_replace_fail
=:
22335 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22339 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22340 \ *) func_lo2o_result=${1} ;;\
22342 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22343 && mv -f "$cfgfile.tmp" "$cfgfile" \
22344 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22345 test 0 -eq $? || _lt_function_replace_fail
=:
22348 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22351 func_xform_result=${1%.*}.lo\
22352 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22353 && mv -f "$cfgfile.tmp" "$cfgfile" \
22354 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22355 test 0 -eq $? || _lt_function_replace_fail
=:
22358 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22361 func_arith_result=$(( $* ))\
22362 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22363 && mv -f "$cfgfile.tmp" "$cfgfile" \
22364 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22365 test 0 -eq $? || _lt_function_replace_fail
=:
22368 sed -e '/^func_len ()$/,/^} # func_len /c\
22371 func_len_result=${#1}\
22372 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22373 && mv -f "$cfgfile.tmp" "$cfgfile" \
22374 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22375 test 0 -eq $? || _lt_function_replace_fail
=:
22379 if test x
"$lt_shell_append" = xyes
; then
22380 sed -e '/^func_append ()$/,/^} # func_append /c\
22383 eval "${1}+=\\${2}"\
22384 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22385 && mv -f "$cfgfile.tmp" "$cfgfile" \
22386 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22387 test 0 -eq $? || _lt_function_replace_fail
=:
22390 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22391 func_append_quoted ()\
22393 \ func_quote_for_eval "${2}"\
22394 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22395 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22396 && mv -f "$cfgfile.tmp" "$cfgfile" \
22397 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22398 test 0 -eq $? || _lt_function_replace_fail
=:
22401 # Save a `func_append' function call where possible by direct use of '+='
22402 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22403 && mv -f "$cfgfile.tmp" "$cfgfile" \
22404 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22405 test 0 -eq $? || _lt_function_replace_fail
=:
22407 # Save a `func_append' function call even when '+=' is not available
22408 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22409 && mv -f "$cfgfile.tmp" "$cfgfile" \
22410 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22411 test 0 -eq $? || _lt_function_replace_fail
=:
22414 if test x
"$_lt_function_replace_fail" = x
":"; then
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22416 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22420 mv -f "$cfgfile" "$ofile" ||
22421 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22425 cat <<_LT_EOF >> "$ofile"
22427 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22429 # The linker used to build libraries.
22432 # How to create reloadable object files.
22433 reload_flag=$lt_reload_flag_CXX
22434 reload_cmds=$lt_reload_cmds_CXX
22436 # Commands used to build an old-style archive.
22437 old_archive_cmds=$lt_old_archive_cmds_CXX
22439 # A language specific compiler.
22440 CC=$lt_compiler_CXX
22442 # Is the compiler the GNU compiler?
22445 # Compiler flag to turn off builtin functions.
22446 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22448 # Additional compiler flags for building library objects.
22449 pic_flag=$lt_lt_prog_compiler_pic_CXX
22451 # How to pass a linker flag through the compiler.
22452 wl=$lt_lt_prog_compiler_wl_CXX
22454 # Compiler flag to prevent dynamic linking.
22455 link_static_flag=$lt_lt_prog_compiler_static_CXX
22457 # Does compiler simultaneously support -c and -o options?
22458 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22460 # Whether or not to add -lc for building shared libraries.
22461 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22463 # Whether or not to disallow shared libs when runtime libs are static.
22464 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22466 # Compiler flag to allow reflexive dlopens.
22467 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22469 # Compiler flag to generate shared objects directly from archives.
22470 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22472 # Whether the compiler copes with passing no objects directly.
22473 compiler_needs_object=$lt_compiler_needs_object_CXX
22475 # Create an old-style archive from a shared archive.
22476 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22478 # Create a temporary old-style archive to link instead of a shared archive.
22479 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22481 # Commands used to build a shared archive.
22482 archive_cmds=$lt_archive_cmds_CXX
22483 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22485 # Commands used to build a loadable module if different from building
22486 # a shared archive.
22487 module_cmds=$lt_module_cmds_CXX
22488 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22490 # Whether we are building with GNU ld or not.
22491 with_gnu_ld=$lt_with_gnu_ld_CXX
22493 # Flag that allows shared libraries with undefined symbols to be built.
22494 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22496 # Flag that enforces no undefined symbols.
22497 no_undefined_flag=$lt_no_undefined_flag_CXX
22499 # Flag to hardcode \$libdir into a binary during linking.
22500 # This must work even if \$libdir does not exist
22501 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22503 # Whether we need a single "-rpath" flag with a separated argument.
22504 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22506 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22507 # DIR into the resulting binary.
22508 hardcode_direct=$hardcode_direct_CXX
22510 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22511 # DIR into the resulting binary and the resulting library dependency is
22512 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22513 # library is relocated.
22514 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22516 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22517 # into the resulting binary.
22518 hardcode_minus_L=$hardcode_minus_L_CXX
22520 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22521 # into the resulting binary.
22522 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22524 # Set to "yes" if building a shared library automatically hardcodes DIR
22525 # into the library and all subsequent libraries and executables linked
22527 hardcode_automatic=$hardcode_automatic_CXX
22529 # Set to yes if linker adds runtime paths of dependent libraries
22530 # to runtime path list.
22531 inherit_rpath=$inherit_rpath_CXX
22533 # Whether libtool must link a program against all its dependency libraries.
22534 link_all_deplibs=$link_all_deplibs_CXX
22536 # Set to "yes" if exported symbols are required.
22537 always_export_symbols=$always_export_symbols_CXX
22539 # The commands to list exported symbols.
22540 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22542 # Symbols that should not be listed in the preloaded symbols.
22543 exclude_expsyms=$lt_exclude_expsyms_CXX
22545 # Symbols that must always be exported.
22546 include_expsyms=$lt_include_expsyms_CXX
22548 # Commands necessary for linking programs (against libraries) with templates.
22549 prelink_cmds=$lt_prelink_cmds_CXX
22551 # Commands necessary for finishing linking programs.
22552 postlink_cmds=$lt_postlink_cmds_CXX
22554 # Specify filename containing input files.
22555 file_list_spec=$lt_file_list_spec_CXX
22557 # How to hardcode a shared library path into an executable.
22558 hardcode_action=$hardcode_action_CXX
22560 # The directories searched by this compiler when creating a shared library.
22561 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22563 # Dependencies to place before and after the objects being linked to
22564 # create a shared library.
22565 predep_objects=$lt_predep_objects_CXX
22566 postdep_objects=$lt_postdep_objects_CXX
22567 predeps=$lt_predeps_CXX
22568 postdeps=$lt_postdeps_CXX
22570 # The library search path used internally by the compiler when linking
22571 # a shared library.
22572 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22574 # ### END LIBTOOL TAG CONFIG: CXX
22578 "default-1":C
) case "$CONFIG_FILES" in *po
/Makefile.
in*)
22579 sed -e "/POTFILES =/r po/POTFILES" po
/Makefile.
in > po
/Makefile
22582 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev
/null
; then
22583 as_fn_error $?
"po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
22585 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
22590 '"s|^| $ac_top_srcdir/|" \
22591 "$srcdir/po/POTFILES.in" |
sed '$!s/$/ \\/' >"po/POTFILES"
22593 sed '/^POTFILES =/,/[^\\]$/ {
22597 ' "po/Makefile.in" >"po/Makefile"
22598 rm -f "po/Makefile.tmp"
22599 mv "po/stamp-it.tmp" "po/stamp-it"
22608 ac_clean_files
=$ac_clean_files_save
22610 test $ac_write_fail = 0 ||
22611 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
22614 # configure is writing to config.log, and then calls config.status.
22615 # config.status does its own redirection, appending to config.log.
22616 # Unfortunately, on DOS this fails, as config.log is still kept open
22617 # by configure, so config.status won't be able to write to it; its
22618 # output is simply discarded. So we exec the FD to /dev/null,
22619 # effectively closing config.log, so it can be properly (re)opened and
22620 # appended to by config.status. When coming back to configure, we
22621 # need to make the FD available again.
22622 if test "$no_create" != yes; then
22624 ac_config_status_args
=
22625 test "$silent" = yes &&
22626 ac_config_status_args
="$ac_config_status_args --quiet"
22628 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
22630 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22631 # would make configure fail if this is the last instruction.
22632 $ac_cs_success || as_fn_exit
1
22634 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
22635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22636 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22644 Source code location: ${srcdir}
22647 Build libtransmission: yes
22648 * optimized for low-resource systems: ${enable_lightweight}
22649 * µTP enabled: ${build_utp}
22651 Build Command-Line client: ${build_cli}
22653 Build GTK+ client: ${with_gtk}
22654 * libappindicator for an Ubuntu-style tray: ${use_libappindicator}
22656 Build Daemon: ${build_daemon}
22658 Build Mac client: ${build_mac}