transmission 2.51 update
[tomato.git] / release / src / router / transmission / configure
blob14269d86fb23d9a1104dfd2359f51881bbe4064c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for transmission 2.51.
5 # Report bugs to <http://trac.transmissionbt.com/newticket>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
153 esac
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 else
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://trac.transmissionbt.com/newticket about your
251 $0: system, including any error possibly output before this
252 $0: message. Then install a modern shell, or manually run
253 $0: the script under such a shell if you do have one."
255 exit 1
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
273 { eval $1=; unset $1;}
275 as_unset=as_fn_unset
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
282 return $1
283 } # as_fn_set_status
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
290 set +e
291 as_fn_set_status $1
292 exit $1
293 } # as_fn_exit
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
326 /^X\(\/\/\)$/{
327 s//\1/
330 /^X\(\/\).*/{
331 s//\1/
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
351 eval $1+=\$2
353 else
354 as_fn_append ()
356 eval $1=\$$1\$2
358 fi # as_fn_append
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
368 as_val=$(( $* ))
370 else
371 as_fn_arith ()
373 as_val=`expr "$@" || test $? -eq 1`
375 fi # as_fn_arith
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
392 } # as_fn_error
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397 else
398 as_expr=false
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403 else
404 as_basename=false
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409 else
410 as_dirname=false
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
422 /^X\/\(\/\/\)$/{
423 s//\1/
426 /^X\/\(\/\).*/{
427 s//\1/
430 s/.*/./; q'`
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 sed -n '
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
453 :lineno
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
479 esac;;
481 ECHO_N='-n';;
482 esac
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
505 else
506 as_ln_s='cp -p'
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
518 if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520 else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
531 case $1 in #(
532 -*)set "./$1";;
533 esac;
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559 # Initializations.
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
570 # Identity of this package.
571 PACKAGE_NAME='transmission'
572 PACKAGE_TARNAME='transmission'
573 PACKAGE_VERSION='2.51'
574 PACKAGE_STRING='transmission 2.51'
575 PACKAGE_BUGREPORT='http://trac.transmissionbt.com/newticket'
576 PACKAGE_URL=''
578 ac_unique_file="libtransmission/transmission.h"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 # include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 # include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 WIN32_FALSE
620 WIN32_TRUE
621 BUILD_DAEMON_FALSE
622 BUILD_DAEMON_TRUE
623 BUILD_MAC_FALSE
624 BUILD_MAC_TRUE
625 BUILD_CLI_FALSE
626 BUILD_CLI_TRUE
627 WINDRES
628 transmissionlocaledir
629 MKINSTALLDIRS
630 POSUB
631 POFILES
632 PO_IN_DATADIR_FALSE
633 PO_IN_DATADIR_TRUE
634 INTLLIBS
635 INSTOBJEXT
636 GMOFILES
637 CATOBJEXT
638 CATALOGS
639 GETTEXT_PACKAGE
640 DATADIRNAME
641 ALL_LINGUAS
642 INTLTOOL_PERL
643 GMSGFMT
644 MSGFMT
645 MSGMERGE
646 XGETTEXT
647 INTLTOOL_POLICY_RULE
648 INTLTOOL_SERVICE_RULE
649 INTLTOOL_THEME_RULE
650 INTLTOOL_SCHEMAS_RULE
651 INTLTOOL_CAVES_RULE
652 INTLTOOL_XML_NOMERGE_RULE
653 INTLTOOL_XML_RULE
654 INTLTOOL_KBD_RULE
655 INTLTOOL_XAM_RULE
656 INTLTOOL_UI_RULE
657 INTLTOOL_SOUNDLIST_RULE
658 INTLTOOL_SHEET_RULE
659 INTLTOOL_SERVER_RULE
660 INTLTOOL_PONG_RULE
661 INTLTOOL_OAF_RULE
662 INTLTOOL_PROP_RULE
663 INTLTOOL_KEYS_RULE
664 INTLTOOL_DIRECTORY_RULE
665 INTLTOOL_DESKTOP_RULE
666 intltool__v_merge_options_0
667 intltool__v_merge_options_
668 INTLTOOL_V_MERGE_OPTIONS
669 INTLTOOL__v_MERGE_0
670 INTLTOOL__v_MERGE_
671 INTLTOOL_V_MERGE
672 INTLTOOL_EXTRACT
673 INTLTOOL_MERGE
674 INTLTOOL_UPDATE
675 USE_NLS
676 LIBAPPINDICATOR_LIBS
677 LIBAPPINDICATOR_CFLAGS
678 GTK_LIBS
679 GTK_CFLAGS
680 BUILD_GTK_FALSE
681 BUILD_GTK_TRUE
682 LIBNATPMP_LIBS_QT
683 LIBNATPMP_LIBS
684 LIBNATPMP_CFLAGS
685 BUILD_NATPMP_FALSE
686 BUILD_NATPMP_TRUE
687 LIBUPNP_LIBS_QT
688 LIBUPNP_LIBS
689 LIBUPNP_CFLAGS
690 BUILD_MINIUPNP_FALSE
691 BUILD_MINIUPNP_TRUE
692 BUILD_UTP_FALSE
693 BUILD_UTP_TRUE
694 LIBUTP_LIBS_QT
695 LIBUTP_LIBS
696 LIBUTP_CFLAGS
697 DHT_LIBS
698 DHT_CFLAGS
699 ZLIB_LIBS
700 ZLIB_LDFLAGS
701 ZLIB_CFLAGS
702 LIBEVENT_LIBS
703 LIBEVENT_CFLAGS
704 LIBCURL_LIBS
705 LIBCURL_CFLAGS
706 PKG_CONFIG
707 PTHREAD_CFLAGS
708 PTHREAD_LIBS
709 PTHREAD_CC
710 acx_pthread_config
711 HAVE_CXX
712 CXXCPP
713 am__fastdepCXX_FALSE
714 am__fastdepCXX_TRUE
715 CXXDEPMODE
716 ac_ct_CXX
717 CXXFLAGS
719 LIBAPPINDICATOR_MINIMUM
720 GIO_MINIMUM
721 GLIB_MINIMUM
722 GTK3_MINIMUM
723 GTK2_MINIMUM
724 OPENSSL_MINIMUM
725 LIBEVENT_MINIUM
726 CURL_MINIMUM
727 TR_UNSTABLE_FALSE
728 TR_UNSTABLE_TRUE
730 OTOOL64
731 OTOOL
732 LIPO
733 NMEDIT
734 DSYMUTIL
735 MANIFEST_TOOL
736 RANLIB
737 ac_ct_AR
739 DLLTOOL
740 OBJDUMP
741 LN_S
743 ac_ct_DUMPBIN
744 DUMPBIN
746 FGREP
747 EGREP
748 GREP
750 am__fastdepCC_FALSE
751 am__fastdepCC_TRUE
752 CCDEPMODE
753 am__nodep
754 AMDEPBACKSLASH
755 AMDEP_FALSE
756 AMDEP_TRUE
757 am__quote
758 am__include
759 DEPDIR
760 OBJEXT
761 EXEEXT
762 ac_ct_CC
763 CPPFLAGS
764 LDFLAGS
765 CFLAGS
767 host_os
768 host_vendor
769 host_cpu
770 host
771 build_os
772 build_vendor
773 build_cpu
774 build
775 LIBTOOL
776 am__untar
777 am__tar
778 AMTAR
779 am__leading_dot
780 SET_MAKE
782 mkdir_p
783 MKDIR_P
784 INSTALL_STRIP_PROGRAM
785 STRIP
786 install_sh
787 MAKEINFO
788 AUTOHEADER
789 AUTOMAKE
790 AUTOCONF
791 ACLOCAL
792 VERSION
793 PACKAGE
794 CYGPATH_W
795 am__isrc
796 INSTALL_DATA
797 INSTALL_SCRIPT
798 INSTALL_PROGRAM
799 AM_BACKSLASH
800 AM_DEFAULT_VERBOSITY
801 AM_DEFAULT_V
802 AM_V
803 PEERID_PREFIX
804 USERAGENT_PREFIX
805 target_alias
806 host_alias
807 build_alias
808 LIBS
809 ECHO_T
810 ECHO_N
811 ECHO_C
812 DEFS
813 mandir
814 localedir
815 libdir
816 psdir
817 pdfdir
818 dvidir
819 htmldir
820 infodir
821 docdir
822 oldincludedir
823 includedir
824 localstatedir
825 sharedstatedir
826 sysconfdir
827 datadir
828 datarootdir
829 libexecdir
830 sbindir
831 bindir
832 program_transform_name
833 prefix
834 exec_prefix
835 PACKAGE_URL
836 PACKAGE_BUGREPORT
837 PACKAGE_STRING
838 PACKAGE_VERSION
839 PACKAGE_TARNAME
840 PACKAGE_NAME
841 PATH_SEPARATOR
842 SHELL
843 OPENSSL_LIBS
844 OPENSSL_CFLAGS'
845 ac_subst_files=''
846 ac_user_opts='
847 enable_option_checking
848 enable_silent_rules
849 enable_shared
850 enable_static
851 with_pic
852 enable_fast_install
853 enable_dependency_tracking
854 with_gnu_ld
855 with_sysroot
856 enable_libtool_lock
857 with_zlib
858 with_zlib_includes
859 enable_largefile
860 with_inotify
861 with_kqueue
862 enable_utp
863 enable_external_natpmp
864 with_gtk
865 enable_nls
866 enable_lightweight
867 enable_cli
868 enable_mac
869 enable_daemon
871 ac_precious_vars='build_alias
872 host_alias
873 target_alias
875 CFLAGS
876 LDFLAGS
877 LIBS
878 CPPFLAGS
881 CXXFLAGS
883 CXXCPP
884 PKG_CONFIG
885 OPENSSL_CFLAGS
886 OPENSSL_LIBS
887 LIBCURL_CFLAGS
888 LIBCURL_LIBS
889 LIBEVENT_CFLAGS
890 LIBEVENT_LIBS
891 GTK_CFLAGS
892 GTK_LIBS
893 LIBAPPINDICATOR_CFLAGS
894 LIBAPPINDICATOR_LIBS'
897 # Initialize some variables set by options.
898 ac_init_help=
899 ac_init_version=false
900 ac_unrecognized_opts=
901 ac_unrecognized_sep=
902 # The variables have the same names as the options, with
903 # dashes changed to underlines.
904 cache_file=/dev/null
905 exec_prefix=NONE
906 no_create=
907 no_recursion=
908 prefix=NONE
909 program_prefix=NONE
910 program_suffix=NONE
911 program_transform_name=s,x,x,
912 silent=
913 site=
914 srcdir=
915 verbose=
916 x_includes=NONE
917 x_libraries=NONE
919 # Installation directory options.
920 # These are left unexpanded so users can "make install exec_prefix=/foo"
921 # and all the variables that are supposed to be based on exec_prefix
922 # by default will actually change.
923 # Use braces instead of parens because sh, perl, etc. also accept them.
924 # (The list follows the same order as the GNU Coding Standards.)
925 bindir='${exec_prefix}/bin'
926 sbindir='${exec_prefix}/sbin'
927 libexecdir='${exec_prefix}/libexec'
928 datarootdir='${prefix}/share'
929 datadir='${datarootdir}'
930 sysconfdir='${prefix}/etc'
931 sharedstatedir='${prefix}/com'
932 localstatedir='${prefix}/var'
933 includedir='${prefix}/include'
934 oldincludedir='/usr/include'
935 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
936 infodir='${datarootdir}/info'
937 htmldir='${docdir}'
938 dvidir='${docdir}'
939 pdfdir='${docdir}'
940 psdir='${docdir}'
941 libdir='${exec_prefix}/lib'
942 localedir='${datarootdir}/locale'
943 mandir='${datarootdir}/man'
945 ac_prev=
946 ac_dashdash=
947 for ac_option
949 # If the previous option needs an argument, assign it.
950 if test -n "$ac_prev"; then
951 eval $ac_prev=\$ac_option
952 ac_prev=
953 continue
956 case $ac_option in
957 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958 *=) ac_optarg= ;;
959 *) ac_optarg=yes ;;
960 esac
962 # Accept the important Cygnus configure options, so we can diagnose typos.
964 case $ac_dashdash$ac_option in
966 ac_dashdash=yes ;;
968 -bindir | --bindir | --bindi | --bind | --bin | --bi)
969 ac_prev=bindir ;;
970 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971 bindir=$ac_optarg ;;
973 -build | --build | --buil | --bui | --bu)
974 ac_prev=build_alias ;;
975 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
976 build_alias=$ac_optarg ;;
978 -cache-file | --cache-file | --cache-fil | --cache-fi \
979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
980 ac_prev=cache_file ;;
981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
983 cache_file=$ac_optarg ;;
985 --config-cache | -C)
986 cache_file=config.cache ;;
988 -datadir | --datadir | --datadi | --datad)
989 ac_prev=datadir ;;
990 -datadir=* | --datadir=* | --datadi=* | --datad=*)
991 datadir=$ac_optarg ;;
993 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
994 | --dataroo | --dataro | --datar)
995 ac_prev=datarootdir ;;
996 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
997 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
998 datarootdir=$ac_optarg ;;
1000 -disable-* | --disable-*)
1001 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004 as_fn_error $? "invalid feature name: $ac_useropt"
1005 ac_useropt_orig=$ac_useropt
1006 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1007 case $ac_user_opts in
1009 "enable_$ac_useropt"
1010 "*) ;;
1011 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1012 ac_unrecognized_sep=', ';;
1013 esac
1014 eval enable_$ac_useropt=no ;;
1016 -docdir | --docdir | --docdi | --doc | --do)
1017 ac_prev=docdir ;;
1018 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019 docdir=$ac_optarg ;;
1021 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1022 ac_prev=dvidir ;;
1023 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024 dvidir=$ac_optarg ;;
1026 -enable-* | --enable-*)
1027 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030 as_fn_error $? "invalid feature name: $ac_useropt"
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1035 "enable_$ac_useropt"
1036 "*) ;;
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1039 esac
1040 eval enable_$ac_useropt=\$ac_optarg ;;
1042 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044 | --exec | --exe | --ex)
1045 ac_prev=exec_prefix ;;
1046 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048 | --exec=* | --exe=* | --ex=*)
1049 exec_prefix=$ac_optarg ;;
1051 -gas | --gas | --ga | --g)
1052 # Obsolete; use --with-gas.
1053 with_gas=yes ;;
1055 -help | --help | --hel | --he | -h)
1056 ac_init_help=long ;;
1057 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058 ac_init_help=recursive ;;
1059 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060 ac_init_help=short ;;
1062 -host | --host | --hos | --ho)
1063 ac_prev=host_alias ;;
1064 -host=* | --host=* | --hos=* | --ho=*)
1065 host_alias=$ac_optarg ;;
1067 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068 ac_prev=htmldir ;;
1069 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070 | --ht=*)
1071 htmldir=$ac_optarg ;;
1073 -includedir | --includedir | --includedi | --included | --include \
1074 | --includ | --inclu | --incl | --inc)
1075 ac_prev=includedir ;;
1076 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077 | --includ=* | --inclu=* | --incl=* | --inc=*)
1078 includedir=$ac_optarg ;;
1080 -infodir | --infodir | --infodi | --infod | --info | --inf)
1081 ac_prev=infodir ;;
1082 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1083 infodir=$ac_optarg ;;
1085 -libdir | --libdir | --libdi | --libd)
1086 ac_prev=libdir ;;
1087 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1088 libdir=$ac_optarg ;;
1090 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091 | --libexe | --libex | --libe)
1092 ac_prev=libexecdir ;;
1093 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094 | --libexe=* | --libex=* | --libe=*)
1095 libexecdir=$ac_optarg ;;
1097 -localedir | --localedir | --localedi | --localed | --locale)
1098 ac_prev=localedir ;;
1099 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100 localedir=$ac_optarg ;;
1102 -localstatedir | --localstatedir | --localstatedi | --localstated \
1103 | --localstate | --localstat | --localsta | --localst | --locals)
1104 ac_prev=localstatedir ;;
1105 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1106 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1107 localstatedir=$ac_optarg ;;
1109 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110 ac_prev=mandir ;;
1111 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1112 mandir=$ac_optarg ;;
1114 -nfp | --nfp | --nf)
1115 # Obsolete; use --without-fp.
1116 with_fp=no ;;
1118 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1119 | --no-cr | --no-c | -n)
1120 no_create=yes ;;
1122 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124 no_recursion=yes ;;
1126 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128 | --oldin | --oldi | --old | --ol | --o)
1129 ac_prev=oldincludedir ;;
1130 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1133 oldincludedir=$ac_optarg ;;
1135 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136 ac_prev=prefix ;;
1137 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1138 prefix=$ac_optarg ;;
1140 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141 | --program-pre | --program-pr | --program-p)
1142 ac_prev=program_prefix ;;
1143 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1145 program_prefix=$ac_optarg ;;
1147 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148 | --program-suf | --program-su | --program-s)
1149 ac_prev=program_suffix ;;
1150 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1152 program_suffix=$ac_optarg ;;
1154 -program-transform-name | --program-transform-name \
1155 | --program-transform-nam | --program-transform-na \
1156 | --program-transform-n | --program-transform- \
1157 | --program-transform | --program-transfor \
1158 | --program-transfo | --program-transf \
1159 | --program-trans | --program-tran \
1160 | --progr-tra | --program-tr | --program-t)
1161 ac_prev=program_transform_name ;;
1162 -program-transform-name=* | --program-transform-name=* \
1163 | --program-transform-nam=* | --program-transform-na=* \
1164 | --program-transform-n=* | --program-transform-=* \
1165 | --program-transform=* | --program-transfor=* \
1166 | --program-transfo=* | --program-transf=* \
1167 | --program-trans=* | --program-tran=* \
1168 | --progr-tra=* | --program-tr=* | --program-t=*)
1169 program_transform_name=$ac_optarg ;;
1171 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172 ac_prev=pdfdir ;;
1173 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174 pdfdir=$ac_optarg ;;
1176 -psdir | --psdir | --psdi | --psd | --ps)
1177 ac_prev=psdir ;;
1178 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179 psdir=$ac_optarg ;;
1181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182 | -silent | --silent | --silen | --sile | --sil)
1183 silent=yes ;;
1185 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1186 ac_prev=sbindir ;;
1187 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1188 | --sbi=* | --sb=*)
1189 sbindir=$ac_optarg ;;
1191 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1192 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1193 | --sharedst | --shareds | --shared | --share | --shar \
1194 | --sha | --sh)
1195 ac_prev=sharedstatedir ;;
1196 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1197 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1198 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1199 | --sha=* | --sh=*)
1200 sharedstatedir=$ac_optarg ;;
1202 -site | --site | --sit)
1203 ac_prev=site ;;
1204 -site=* | --site=* | --sit=*)
1205 site=$ac_optarg ;;
1207 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1208 ac_prev=srcdir ;;
1209 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1210 srcdir=$ac_optarg ;;
1212 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1213 | --syscon | --sysco | --sysc | --sys | --sy)
1214 ac_prev=sysconfdir ;;
1215 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1216 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1217 sysconfdir=$ac_optarg ;;
1219 -target | --target | --targe | --targ | --tar | --ta | --t)
1220 ac_prev=target_alias ;;
1221 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1222 target_alias=$ac_optarg ;;
1224 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225 verbose=yes ;;
1227 -version | --version | --versio | --versi | --vers | -V)
1228 ac_init_version=: ;;
1230 -with-* | --with-*)
1231 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234 as_fn_error $? "invalid package name: $ac_useropt"
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1239 "with_$ac_useropt"
1240 "*) ;;
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1243 esac
1244 eval with_$ac_useropt=\$ac_optarg ;;
1246 -without-* | --without-*)
1247 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248 # Reject names that are not valid shell variable names.
1249 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1250 as_fn_error $? "invalid package name: $ac_useropt"
1251 ac_useropt_orig=$ac_useropt
1252 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1253 case $ac_user_opts in
1255 "with_$ac_useropt"
1256 "*) ;;
1257 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1258 ac_unrecognized_sep=', ';;
1259 esac
1260 eval with_$ac_useropt=no ;;
1262 --x)
1263 # Obsolete; use --with-x.
1264 with_x=yes ;;
1266 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1267 | --x-incl | --x-inc | --x-in | --x-i)
1268 ac_prev=x_includes ;;
1269 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1270 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1271 x_includes=$ac_optarg ;;
1273 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1274 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1275 ac_prev=x_libraries ;;
1276 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1277 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1278 x_libraries=$ac_optarg ;;
1280 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1281 Try \`$0 --help' for more information"
1284 *=*)
1285 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1286 # Reject names that are not valid shell variable names.
1287 case $ac_envvar in #(
1288 '' | [0-9]* | *[!_$as_cr_alnum]* )
1289 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1290 esac
1291 eval $ac_envvar=\$ac_optarg
1292 export $ac_envvar ;;
1295 # FIXME: should be removed in autoconf 3.0.
1296 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1297 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1299 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1302 esac
1303 done
1305 if test -n "$ac_prev"; then
1306 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1307 as_fn_error $? "missing argument to $ac_option"
1310 if test -n "$ac_unrecognized_opts"; then
1311 case $enable_option_checking in
1312 no) ;;
1313 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1314 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1315 esac
1318 # Check all directory arguments for consistency.
1319 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1320 datadir sysconfdir sharedstatedir localstatedir includedir \
1321 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1322 libdir localedir mandir
1324 eval ac_val=\$$ac_var
1325 # Remove trailing slashes.
1326 case $ac_val in
1327 */ )
1328 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1329 eval $ac_var=\$ac_val;;
1330 esac
1331 # Be sure to have absolute directory names.
1332 case $ac_val in
1333 [\\/$]* | ?:[\\/]* ) continue;;
1334 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1335 esac
1336 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1337 done
1339 # There might be people who depend on the old broken behavior: `$host'
1340 # used to hold the argument of --host etc.
1341 # FIXME: To remove some day.
1342 build=$build_alias
1343 host=$host_alias
1344 target=$target_alias
1346 # FIXME: To remove some day.
1347 if test "x$host_alias" != x; then
1348 if test "x$build_alias" = x; then
1349 cross_compiling=maybe
1350 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1351 If a cross compiler is detected then cross compile mode will be used" >&2
1352 elif test "x$build_alias" != "x$host_alias"; then
1353 cross_compiling=yes
1357 ac_tool_prefix=
1358 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1360 test "$silent" = yes && exec 6>/dev/null
1363 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1364 ac_ls_di=`ls -di .` &&
1365 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1366 as_fn_error $? "working directory cannot be determined"
1367 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1368 as_fn_error $? "pwd does not report name of working directory"
1371 # Find the source files, if location was not specified.
1372 if test -z "$srcdir"; then
1373 ac_srcdir_defaulted=yes
1374 # Try the directory containing this script, then the parent directory.
1375 ac_confdir=`$as_dirname -- "$as_myself" ||
1376 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1377 X"$as_myself" : 'X\(//\)[^/]' \| \
1378 X"$as_myself" : 'X\(//\)$' \| \
1379 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1380 $as_echo X"$as_myself" |
1381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382 s//\1/
1385 /^X\(\/\/\)[^/].*/{
1386 s//\1/
1389 /^X\(\/\/\)$/{
1390 s//\1/
1393 /^X\(\/\).*/{
1394 s//\1/
1397 s/.*/./; q'`
1398 srcdir=$ac_confdir
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 srcdir=..
1402 else
1403 ac_srcdir_defaulted=no
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1407 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1409 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1410 ac_abs_confdir=`(
1411 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1412 pwd)`
1413 # When building in place, set srcdir=.
1414 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415 srcdir=.
1417 # Remove unnecessary trailing slashes from srcdir.
1418 # Double slashes in file names in object file debugging info
1419 # mess up M-x gdb in Emacs.
1420 case $srcdir in
1421 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422 esac
1423 for ac_var in $ac_precious_vars; do
1424 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_env_${ac_var}_value=\$${ac_var}
1426 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1428 done
1431 # Report the --help message.
1433 if test "$ac_init_help" = "long"; then
1434 # Omit some internal or obsolete options to make the list less imposing.
1435 # This message is too long to be a string in the A/UX 3.1 sh.
1436 cat <<_ACEOF
1437 \`configure' configures transmission 2.51 to adapt to many kinds of systems.
1439 Usage: $0 [OPTION]... [VAR=VALUE]...
1441 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1442 VAR=VALUE. See below for descriptions of some of the useful variables.
1444 Defaults for the options are specified in brackets.
1446 Configuration:
1447 -h, --help display this help and exit
1448 --help=short display options specific to this package
1449 --help=recursive display the short help of all the included packages
1450 -V, --version display version information and exit
1451 -q, --quiet, --silent do not print \`checking ...' messages
1452 --cache-file=FILE cache test results in FILE [disabled]
1453 -C, --config-cache alias for \`--cache-file=config.cache'
1454 -n, --no-create do not create output files
1455 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1457 Installation directories:
1458 --prefix=PREFIX install architecture-independent files in PREFIX
1459 [$ac_default_prefix]
1460 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1461 [PREFIX]
1463 By default, \`make install' will install all the files in
1464 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1465 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1466 for instance \`--prefix=\$HOME'.
1468 For better control, use the options below.
1470 Fine tuning of the installation directories:
1471 --bindir=DIR user executables [EPREFIX/bin]
1472 --sbindir=DIR system admin executables [EPREFIX/sbin]
1473 --libexecdir=DIR program executables [EPREFIX/libexec]
1474 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1475 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1476 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1477 --libdir=DIR object code libraries [EPREFIX/lib]
1478 --includedir=DIR C header files [PREFIX/include]
1479 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1480 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1481 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1482 --infodir=DIR info documentation [DATAROOTDIR/info]
1483 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1484 --mandir=DIR man documentation [DATAROOTDIR/man]
1485 --docdir=DIR documentation root [DATAROOTDIR/doc/transmission]
1486 --htmldir=DIR html documentation [DOCDIR]
1487 --dvidir=DIR dvi documentation [DOCDIR]
1488 --pdfdir=DIR pdf documentation [DOCDIR]
1489 --psdir=DIR ps documentation [DOCDIR]
1490 _ACEOF
1492 cat <<\_ACEOF
1494 Program names:
1495 --program-prefix=PREFIX prepend PREFIX to installed program names
1496 --program-suffix=SUFFIX append SUFFIX to installed program names
1497 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1499 System types:
1500 --build=BUILD configure for building on BUILD [guessed]
1501 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1502 _ACEOF
1505 if test -n "$ac_init_help"; then
1506 case $ac_init_help in
1507 short | recursive ) echo "Configuration of transmission 2.51:";;
1508 esac
1509 cat <<\_ACEOF
1511 Optional Features:
1512 --disable-option-checking ignore unrecognized --enable/--with options
1513 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1514 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1515 --enable-silent-rules less verbose build output (undo: `make V=1')
1516 --disable-silent-rules verbose build output (undo: `make V=0')
1517 --enable-shared[=PKGS] build shared libraries [default=yes]
1518 --enable-static[=PKGS] build static libraries [default=yes]
1519 --enable-fast-install[=PKGS]
1520 optimize for fast installation [default=yes]
1521 --disable-dependency-tracking speeds up one-time build
1522 --enable-dependency-tracking do not reject slow dependency extractors
1523 --disable-libtool-lock avoid locking (might break parallel builds)
1524 --disable-largefile omit support for large files
1525 --enable-utp build µTP support
1526 --enable-external-natpmp
1527 Use system external-natpmp
1528 --enable-nls enable native language support
1529 --disable-nls do not use Native Language Support
1530 --enable-lightweight optimize libtransmission for low-resource systems:
1531 smaller cache size, prefer unencrypted peer
1532 connections, etc.
1533 --enable-cli build command-line client
1534 --enable-mac build Mac client
1535 --enable-daemon build daemon
1537 Optional Packages:
1538 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1539 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1540 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1541 both]
1542 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1543 --with-sysroot=DIR Search for dependent libraries within DIR
1544 (or the compiler's sysroot if not specified).
1545 --with-zlib=DIR search for ZLIB in DIR/include and DIR/lib
1546 --with-zlib-includes=DIR
1547 search for ZLIB includes in DIR
1548 --with-inotify Enable inotify support (default=auto)
1549 --with-kqueue Enable kqueue support (default=auto)
1550 --with-gtk with Gtk
1552 Some influential environment variables:
1553 CC C compiler command
1554 CFLAGS C compiler flags
1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1556 nonstandard directory <lib dir>
1557 LIBS libraries to pass to the linker, e.g. -l<library>
1558 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1559 you have headers in a nonstandard directory <include dir>
1560 CPP C preprocessor
1561 CXX C++ compiler command
1562 CXXFLAGS C++ compiler flags
1563 CXXCPP C++ preprocessor
1564 PKG_CONFIG path to pkg-config utility
1565 OPENSSL_CFLAGS
1566 C compiler flags for OPENSSL, overriding pkg-config
1567 OPENSSL_LIBS
1568 linker flags for OPENSSL, overriding pkg-config
1569 LIBCURL_CFLAGS
1570 C compiler flags for LIBCURL, overriding pkg-config
1571 LIBCURL_LIBS
1572 linker flags for LIBCURL, overriding pkg-config
1573 LIBEVENT_CFLAGS
1574 C compiler flags for LIBEVENT, overriding pkg-config
1575 LIBEVENT_LIBS
1576 linker flags for LIBEVENT, overriding pkg-config
1577 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1578 GTK_LIBS linker flags for GTK, overriding pkg-config
1579 LIBAPPINDICATOR_CFLAGS
1580 C compiler flags for LIBAPPINDICATOR, overriding pkg-config
1581 LIBAPPINDICATOR_LIBS
1582 linker flags for LIBAPPINDICATOR, overriding pkg-config
1584 Use these variables to override the choices made by `configure' or to help
1585 it to find libraries and programs with nonstandard names/locations.
1587 Report bugs to <http://trac.transmissionbt.com/newticket>.
1588 _ACEOF
1589 ac_status=$?
1592 if test "$ac_init_help" = "recursive"; then
1593 # If there are subdirs, report their specific --help.
1594 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1595 test -d "$ac_dir" ||
1596 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1597 continue
1598 ac_builddir=.
1600 case "$ac_dir" in
1601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1604 # A ".." for each directory in $ac_dir_suffix.
1605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1606 case $ac_top_builddir_sub in
1607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1609 esac ;;
1610 esac
1611 ac_abs_top_builddir=$ac_pwd
1612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1613 # for backward compatibility:
1614 ac_top_builddir=$ac_top_build_prefix
1616 case $srcdir in
1617 .) # We are building in place.
1618 ac_srcdir=.
1619 ac_top_srcdir=$ac_top_builddir_sub
1620 ac_abs_top_srcdir=$ac_pwd ;;
1621 [\\/]* | ?:[\\/]* ) # Absolute name.
1622 ac_srcdir=$srcdir$ac_dir_suffix;
1623 ac_top_srcdir=$srcdir
1624 ac_abs_top_srcdir=$srcdir ;;
1625 *) # Relative name.
1626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1627 ac_top_srcdir=$ac_top_build_prefix$srcdir
1628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1629 esac
1630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1632 cd "$ac_dir" || { ac_status=$?; continue; }
1633 # Check for guested configure.
1634 if test -f "$ac_srcdir/configure.gnu"; then
1635 echo &&
1636 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1637 elif test -f "$ac_srcdir/configure"; then
1638 echo &&
1639 $SHELL "$ac_srcdir/configure" --help=recursive
1640 else
1641 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1642 fi || ac_status=$?
1643 cd "$ac_pwd" || { ac_status=$?; break; }
1644 done
1647 test -n "$ac_init_help" && exit $ac_status
1648 if $ac_init_version; then
1649 cat <<\_ACEOF
1650 transmission configure 2.51
1651 generated by GNU Autoconf 2.68
1653 Copyright (C) 2010 Free Software Foundation, Inc.
1654 This configure script is free software; the Free Software Foundation
1655 gives unlimited permission to copy, distribute and modify it.
1656 _ACEOF
1657 exit
1660 ## ------------------------ ##
1661 ## Autoconf initialization. ##
1662 ## ------------------------ ##
1664 # ac_fn_c_try_compile LINENO
1665 # --------------------------
1666 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_compile ()
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext
1671 if { { ac_try="$ac_compile"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_compile") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest.$ac_objext; then :
1690 ac_retval=0
1691 else
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1695 ac_retval=1
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1700 } # ac_fn_c_try_compile
1702 # ac_fn_c_try_link LINENO
1703 # -----------------------
1704 # Try to link conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_c_try_link ()
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext conftest$ac_exeext
1709 if { { ac_try="$ac_link"
1710 case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_link") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest$ac_exeext && {
1728 test "$cross_compiling" = yes ||
1729 $as_test_x conftest$ac_exeext
1730 }; then :
1731 ac_retval=0
1732 else
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1736 ac_retval=1
1738 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1739 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1740 # interfere with the next link command; also delete a directory that is
1741 # left behind by Apple's compiler. We do this before executing the actions.
1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1746 } # ac_fn_c_try_link
1748 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1749 # -------------------------------------------------------
1750 # Tests whether HEADER exists and can be compiled using the include files in
1751 # INCLUDES, setting the cache variable VAR accordingly.
1752 ac_fn_c_check_header_compile ()
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \${$3+:} false; then :
1758 $as_echo_n "(cached) " >&6
1759 else
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1763 #include <$2>
1764 _ACEOF
1765 if ac_fn_c_try_compile "$LINENO"; then :
1766 eval "$3=yes"
1767 else
1768 eval "$3=no"
1770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 } # ac_fn_c_check_header_compile
1779 # ac_fn_c_try_cpp LINENO
1780 # ----------------------
1781 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_cpp ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if { { ac_try="$ac_cpp conftest.$ac_ext"
1786 case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1793 ac_status=$?
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } > conftest.i && {
1801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1803 }; then :
1804 ac_retval=0
1805 else
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1809 ac_retval=1
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1814 } # ac_fn_c_try_cpp
1816 # ac_fn_c_try_run LINENO
1817 # ----------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1819 # that executables *can* be run.
1820 ac_fn_c_try_run ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if { { ac_try="$ac_link"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>&5
1831 ac_status=$?
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1834 { { case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_try") 2>&5
1841 ac_status=$?
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; }; }; then :
1844 ac_retval=0
1845 else
1846 $as_echo "$as_me: program exited with status $ac_status" >&5
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1850 ac_retval=$ac_status
1852 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 as_fn_set_status $ac_retval
1856 } # ac_fn_c_try_run
1858 # ac_fn_c_check_func LINENO FUNC VAR
1859 # ----------------------------------
1860 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1861 ac_fn_c_check_func ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if eval \${$3+:} false; then :
1867 $as_echo_n "(cached) " >&6
1868 else
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h. */
1871 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1873 #define $2 innocuous_$2
1875 /* System header to define __stub macros and hopefully few prototypes,
1876 which can conflict with char $2 (); below.
1877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1878 <limits.h> exists even on freestanding compilers. */
1880 #ifdef __STDC__
1881 # include <limits.h>
1882 #else
1883 # include <assert.h>
1884 #endif
1886 #undef $2
1888 /* Override any GCC internal prototype to avoid an error.
1889 Use char because int might match the return type of a GCC
1890 builtin and then its argument prototype would still apply. */
1891 #ifdef __cplusplus
1892 extern "C"
1893 #endif
1894 char $2 ();
1895 /* The GNU C library defines this for functions which it implements
1896 to always fail with ENOSYS. Some functions are actually named
1897 something starting with __ and the normal name is an alias. */
1898 #if defined __stub_$2 || defined __stub___$2
1899 choke me
1900 #endif
1903 main ()
1905 return $2 ();
1907 return 0;
1909 _ACEOF
1910 if ac_fn_c_try_link "$LINENO"; then :
1911 eval "$3=yes"
1912 else
1913 eval "$3=no"
1915 rm -f core conftest.err conftest.$ac_objext \
1916 conftest$ac_exeext conftest.$ac_ext
1918 eval ac_res=\$$3
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 } # ac_fn_c_check_func
1925 # ac_fn_cxx_try_compile LINENO
1926 # ----------------------------
1927 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1928 ac_fn_cxx_try_compile ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 rm -f conftest.$ac_objext
1932 if { { ac_try="$ac_compile"
1933 case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_compile") 2>conftest.err
1940 ac_status=$?
1941 if test -s conftest.err; then
1942 grep -v '^ *+' conftest.err >conftest.er1
1943 cat conftest.er1 >&5
1944 mv -f conftest.er1 conftest.err
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && {
1948 test -z "$ac_cxx_werror_flag" ||
1949 test ! -s conftest.err
1950 } && test -s conftest.$ac_objext; then :
1951 ac_retval=0
1952 else
1953 $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1956 ac_retval=1
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
1961 } # ac_fn_cxx_try_compile
1963 # ac_fn_cxx_try_cpp LINENO
1964 # ------------------------
1965 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1966 ac_fn_cxx_try_cpp ()
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 if { { ac_try="$ac_cpp conftest.$ac_ext"
1970 case "(($ac_try" in
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1973 esac
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1977 ac_status=$?
1978 if test -s conftest.err; then
1979 grep -v '^ *+' conftest.err >conftest.er1
1980 cat conftest.er1 >&5
1981 mv -f conftest.er1 conftest.err
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; } > conftest.i && {
1985 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1986 test ! -s conftest.err
1987 }; then :
1988 ac_retval=0
1989 else
1990 $as_echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1993 ac_retval=1
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 as_fn_set_status $ac_retval
1998 } # ac_fn_cxx_try_cpp
2000 # ac_fn_cxx_try_link LINENO
2001 # -------------------------
2002 # Try to link conftest.$ac_ext, and return whether this succeeded.
2003 ac_fn_cxx_try_link ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 rm -f conftest.$ac_objext conftest$ac_exeext
2007 if { { ac_try="$ac_link"
2008 case "(($ac_try" in
2009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010 *) ac_try_echo=$ac_try;;
2011 esac
2012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013 $as_echo "$ac_try_echo"; } >&5
2014 (eval "$ac_link") 2>conftest.err
2015 ac_status=$?
2016 if test -s conftest.err; then
2017 grep -v '^ *+' conftest.err >conftest.er1
2018 cat conftest.er1 >&5
2019 mv -f conftest.er1 conftest.err
2021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2022 test $ac_status = 0; } && {
2023 test -z "$ac_cxx_werror_flag" ||
2024 test ! -s conftest.err
2025 } && test -s conftest$ac_exeext && {
2026 test "$cross_compiling" = yes ||
2027 $as_test_x conftest$ac_exeext
2028 }; then :
2029 ac_retval=0
2030 else
2031 $as_echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.$ac_ext >&5
2034 ac_retval=1
2036 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2037 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2038 # interfere with the next link command; also delete a directory that is
2039 # left behind by Apple's compiler. We do this before executing the actions.
2040 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042 as_fn_set_status $ac_retval
2044 } # ac_fn_cxx_try_link
2046 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2047 # -------------------------------------------------------
2048 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2049 # the include files in INCLUDES and setting the cache variable VAR
2050 # accordingly.
2051 ac_fn_c_check_header_mongrel ()
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 if eval \${$3+:} false; then :
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if eval \${$3+:} false; then :
2058 $as_echo_n "(cached) " >&6
2060 eval ac_res=\$$3
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062 $as_echo "$ac_res" >&6; }
2063 else
2064 # Is the header compilable?
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2066 $as_echo_n "checking $2 usability... " >&6; }
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2070 #include <$2>
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073 ac_header_compiler=yes
2074 else
2075 ac_header_compiler=no
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2079 $as_echo "$ac_header_compiler" >&6; }
2081 # Is the header present?
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2083 $as_echo_n "checking $2 presence... " >&6; }
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2086 #include <$2>
2087 _ACEOF
2088 if ac_fn_c_try_cpp "$LINENO"; then :
2089 ac_header_preproc=yes
2090 else
2091 ac_header_preproc=no
2093 rm -f conftest.err conftest.i conftest.$ac_ext
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2095 $as_echo "$ac_header_preproc" >&6; }
2097 # So? What about this header?
2098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2099 yes:no: )
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2101 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2103 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2105 no:yes:* )
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2107 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2109 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2111 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2113 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2115 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2116 ( $as_echo "## ------------------------------------------------------- ##
2117 ## Report this to http://trac.transmissionbt.com/newticket ##
2118 ## ------------------------------------------------------- ##"
2119 ) | sed "s/^/$as_me: WARNING: /" >&2
2121 esac
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2123 $as_echo_n "checking for $2... " >&6; }
2124 if eval \${$3+:} false; then :
2125 $as_echo_n "(cached) " >&6
2126 else
2127 eval "$3=\$ac_header_compiler"
2129 eval ac_res=\$$3
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 $as_echo "$ac_res" >&6; }
2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2135 } # ac_fn_c_check_header_mongrel
2137 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2138 # ---------------------------------------------
2139 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2140 # accordingly.
2141 ac_fn_c_check_decl ()
2143 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2144 as_decl_name=`echo $2|sed 's/ *(.*//'`
2145 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2147 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2148 if eval \${$3+:} false; then :
2149 $as_echo_n "(cached) " >&6
2150 else
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2155 main ()
2157 #ifndef $as_decl_name
2158 #ifdef __cplusplus
2159 (void) $as_decl_use;
2160 #else
2161 (void) $as_decl_name;
2162 #endif
2163 #endif
2166 return 0;
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170 eval "$3=yes"
2171 else
2172 eval "$3=no"
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 eval ac_res=\$$3
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178 $as_echo "$ac_res" >&6; }
2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181 } # ac_fn_c_check_decl
2182 cat >config.log <<_ACEOF
2183 This file contains any messages produced by compilers while
2184 running configure, to aid debugging if configure makes a mistake.
2186 It was created by transmission $as_me 2.51, which was
2187 generated by GNU Autoconf 2.68. Invocation command line was
2189 $ $0 $@
2191 _ACEOF
2192 exec 5>>config.log
2194 cat <<_ASUNAME
2195 ## --------- ##
2196 ## Platform. ##
2197 ## --------- ##
2199 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2200 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2201 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2202 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2203 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2205 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2206 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2208 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2209 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2210 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2211 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2212 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2213 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2214 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2216 _ASUNAME
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2221 IFS=$as_save_IFS
2222 test -z "$as_dir" && as_dir=.
2223 $as_echo "PATH: $as_dir"
2224 done
2225 IFS=$as_save_IFS
2227 } >&5
2229 cat >&5 <<_ACEOF
2232 ## ----------- ##
2233 ## Core tests. ##
2234 ## ----------- ##
2236 _ACEOF
2239 # Keep a trace of the command line.
2240 # Strip out --no-create and --no-recursion so they do not pile up.
2241 # Strip out --silent because we don't want to record it for future runs.
2242 # Also quote any args containing shell meta-characters.
2243 # Make two passes to allow for proper duplicate-argument suppression.
2244 ac_configure_args=
2245 ac_configure_args0=
2246 ac_configure_args1=
2247 ac_must_keep_next=false
2248 for ac_pass in 1 2
2250 for ac_arg
2252 case $ac_arg in
2253 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2255 | -silent | --silent | --silen | --sile | --sil)
2256 continue ;;
2257 *\'*)
2258 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2259 esac
2260 case $ac_pass in
2261 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2263 as_fn_append ac_configure_args1 " '$ac_arg'"
2264 if test $ac_must_keep_next = true; then
2265 ac_must_keep_next=false # Got value, back to normal.
2266 else
2267 case $ac_arg in
2268 *=* | --config-cache | -C | -disable-* | --disable-* \
2269 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2270 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2271 | -with-* | --with-* | -without-* | --without-* | --x)
2272 case "$ac_configure_args0 " in
2273 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2274 esac
2276 -* ) ac_must_keep_next=true ;;
2277 esac
2279 as_fn_append ac_configure_args " '$ac_arg'"
2281 esac
2282 done
2283 done
2284 { ac_configure_args0=; unset ac_configure_args0;}
2285 { ac_configure_args1=; unset ac_configure_args1;}
2287 # When interrupted or exit'd, cleanup temporary files, and complete
2288 # config.log. We remove comments because anyway the quotes in there
2289 # would cause problems or look ugly.
2290 # WARNING: Use '\'' to represent an apostrophe within the trap.
2291 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2292 trap 'exit_status=$?
2293 # Save into config.log some information that might help in debugging.
2295 echo
2297 $as_echo "## ---------------- ##
2298 ## Cache variables. ##
2299 ## ---------------- ##"
2300 echo
2301 # The following way of writing the cache mishandles newlines in values,
2303 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2304 eval ac_val=\$$ac_var
2305 case $ac_val in #(
2306 *${as_nl}*)
2307 case $ac_var in #(
2308 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2309 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2310 esac
2311 case $ac_var in #(
2312 _ | IFS | as_nl) ;; #(
2313 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2314 *) { eval $ac_var=; unset $ac_var;} ;;
2315 esac ;;
2316 esac
2317 done
2318 (set) 2>&1 |
2319 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2320 *${as_nl}ac_space=\ *)
2321 sed -n \
2322 "s/'\''/'\''\\\\'\'''\''/g;
2323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2324 ;; #(
2326 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2328 esac |
2329 sort
2331 echo
2333 $as_echo "## ----------------- ##
2334 ## Output variables. ##
2335 ## ----------------- ##"
2336 echo
2337 for ac_var in $ac_subst_vars
2339 eval ac_val=\$$ac_var
2340 case $ac_val in
2341 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2342 esac
2343 $as_echo "$ac_var='\''$ac_val'\''"
2344 done | sort
2345 echo
2347 if test -n "$ac_subst_files"; then
2348 $as_echo "## ------------------- ##
2349 ## File substitutions. ##
2350 ## ------------------- ##"
2351 echo
2352 for ac_var in $ac_subst_files
2354 eval ac_val=\$$ac_var
2355 case $ac_val in
2356 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2357 esac
2358 $as_echo "$ac_var='\''$ac_val'\''"
2359 done | sort
2360 echo
2363 if test -s confdefs.h; then
2364 $as_echo "## ----------- ##
2365 ## confdefs.h. ##
2366 ## ----------- ##"
2367 echo
2368 cat confdefs.h
2369 echo
2371 test "$ac_signal" != 0 &&
2372 $as_echo "$as_me: caught signal $ac_signal"
2373 $as_echo "$as_me: exit $exit_status"
2374 } >&5
2375 rm -f core *.core core.conftest.* &&
2376 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2377 exit $exit_status
2379 for ac_signal in 1 2 13 15; do
2380 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2381 done
2382 ac_signal=0
2384 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2385 rm -f -r conftest* confdefs.h
2387 $as_echo "/* confdefs.h */" > confdefs.h
2389 # Predefined preprocessor variables.
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_NAME "$PACKAGE_NAME"
2393 _ACEOF
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2397 _ACEOF
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2401 _ACEOF
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_STRING "$PACKAGE_STRING"
2405 _ACEOF
2407 cat >>confdefs.h <<_ACEOF
2408 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2409 _ACEOF
2411 cat >>confdefs.h <<_ACEOF
2412 #define PACKAGE_URL "$PACKAGE_URL"
2413 _ACEOF
2416 # Let the site file select an alternate cache file if it wants to.
2417 # Prefer an explicitly selected file to automatically selected ones.
2418 ac_site_file1=NONE
2419 ac_site_file2=NONE
2420 if test -n "$CONFIG_SITE"; then
2421 # We do not want a PATH search for config.site.
2422 case $CONFIG_SITE in #((
2423 -*) ac_site_file1=./$CONFIG_SITE;;
2424 */*) ac_site_file1=$CONFIG_SITE;;
2425 *) ac_site_file1=./$CONFIG_SITE;;
2426 esac
2427 elif test "x$prefix" != xNONE; then
2428 ac_site_file1=$prefix/share/config.site
2429 ac_site_file2=$prefix/etc/config.site
2430 else
2431 ac_site_file1=$ac_default_prefix/share/config.site
2432 ac_site_file2=$ac_default_prefix/etc/config.site
2434 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2436 test "x$ac_site_file" = xNONE && continue
2437 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2439 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2440 sed 's/^/| /' "$ac_site_file" >&5
2441 . "$ac_site_file" \
2442 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2444 as_fn_error $? "failed to load site script $ac_site_file
2445 See \`config.log' for more details" "$LINENO" 5; }
2447 done
2449 if test -r "$cache_file"; then
2450 # Some versions of bash will fail to source /dev/null (special files
2451 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2452 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2454 $as_echo "$as_me: loading cache $cache_file" >&6;}
2455 case $cache_file in
2456 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2457 *) . "./$cache_file";;
2458 esac
2460 else
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2462 $as_echo "$as_me: creating cache $cache_file" >&6;}
2463 >$cache_file
2466 # Check that the precious variables saved in the cache have kept the same
2467 # value.
2468 ac_cache_corrupted=false
2469 for ac_var in $ac_precious_vars; do
2470 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2471 eval ac_new_set=\$ac_env_${ac_var}_set
2472 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2473 eval ac_new_val=\$ac_env_${ac_var}_value
2474 case $ac_old_set,$ac_new_set in
2475 set,)
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2477 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2478 ac_cache_corrupted=: ;;
2479 ,set)
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2481 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2482 ac_cache_corrupted=: ;;
2483 ,);;
2485 if test "x$ac_old_val" != "x$ac_new_val"; then
2486 # differences in whitespace do not lead to failure.
2487 ac_old_val_w=`echo x $ac_old_val`
2488 ac_new_val_w=`echo x $ac_new_val`
2489 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2491 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2492 ac_cache_corrupted=:
2493 else
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2495 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2496 eval $ac_var=\$ac_old_val
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2499 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2501 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2502 fi;;
2503 esac
2504 # Pass precious variables to config.status.
2505 if test "$ac_new_set" = set; then
2506 case $ac_new_val in
2507 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2508 *) ac_arg=$ac_var=$ac_new_val ;;
2509 esac
2510 case " $ac_configure_args " in
2511 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2512 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2513 esac
2515 done
2516 if $ac_cache_corrupted; then
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2520 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2521 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2523 ## -------------------- ##
2524 ## Main body of script. ##
2525 ## -------------------- ##
2527 ac_ext=c
2528 ac_cpp='$CPP $CPPFLAGS'
2529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2534 USERAGENT_PREFIX=2.51
2536 PEERID_PREFIX=-TR2510-
2539 # Check whether --enable-silent-rules was given.
2540 if test "${enable_silent_rules+set}" = set; then :
2541 enableval=$enable_silent_rules;
2544 case $enable_silent_rules in
2545 yes) AM_DEFAULT_VERBOSITY=0;;
2546 no) AM_DEFAULT_VERBOSITY=1;;
2547 *) AM_DEFAULT_VERBOSITY=0;;
2548 esac
2549 am_make=${MAKE-make}
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2551 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2552 if ${am_cv_make_support_nested_variables+:} false; then :
2553 $as_echo_n "(cached) " >&6
2554 else
2555 if $as_echo 'TRUE=$(BAR$(V))
2556 BAR0=false
2557 BAR1=true
2559 am__doit:
2560 @$(TRUE)
2561 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2562 am_cv_make_support_nested_variables=yes
2563 else
2564 am_cv_make_support_nested_variables=no
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2568 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2569 if test $am_cv_make_support_nested_variables = yes; then
2570 AM_V='$(V)'
2571 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2572 else
2573 AM_V=$AM_DEFAULT_VERBOSITY
2574 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2576 AM_BACKSLASH='\'
2582 am__api_version='1.11'
2584 ac_aux_dir=
2585 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2586 if test -f "$ac_dir/install-sh"; then
2587 ac_aux_dir=$ac_dir
2588 ac_install_sh="$ac_aux_dir/install-sh -c"
2589 break
2590 elif test -f "$ac_dir/install.sh"; then
2591 ac_aux_dir=$ac_dir
2592 ac_install_sh="$ac_aux_dir/install.sh -c"
2593 break
2594 elif test -f "$ac_dir/shtool"; then
2595 ac_aux_dir=$ac_dir
2596 ac_install_sh="$ac_aux_dir/shtool install -c"
2597 break
2599 done
2600 if test -z "$ac_aux_dir"; then
2601 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2604 # These three variables are undocumented and unsupported,
2605 # and are intended to be withdrawn in a future Autoconf release.
2606 # They can cause serious problems if a builder's source tree is in a directory
2607 # whose full name contains unusual characters.
2608 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2609 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2610 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2613 # Find a good install program. We prefer a C program (faster),
2614 # so one script is as good as another. But avoid the broken or
2615 # incompatible versions:
2616 # SysV /etc/install, /usr/sbin/install
2617 # SunOS /usr/etc/install
2618 # IRIX /sbin/install
2619 # AIX /bin/install
2620 # AmigaOS /C/install, which installs bootblocks on floppy discs
2621 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2622 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2623 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2624 # OS/2's system install, which has a completely different semantic
2625 # ./install, which can be erroneously created by make from ./install.sh.
2626 # Reject install programs that cannot install multiple files.
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2628 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2629 if test -z "$INSTALL"; then
2630 if ${ac_cv_path_install+:} false; then :
2631 $as_echo_n "(cached) " >&6
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 # Account for people who put trailing slashes in PATH elements.
2639 case $as_dir/ in #((
2640 ./ | .// | /[cC]/* | \
2641 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2642 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2643 /usr/ucb/* ) ;;
2645 # OSF1 and SCO ODT 3.0 have their own names for install.
2646 # Don't use installbsd from OSF since it installs stuff as root
2647 # by default.
2648 for ac_prog in ginstall scoinst install; do
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2651 if test $ac_prog = install &&
2652 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2653 # AIX install. It has an incompatible calling convention.
2655 elif test $ac_prog = install &&
2656 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2657 # program-specific install script used by HP pwplus--don't use.
2659 else
2660 rm -rf conftest.one conftest.two conftest.dir
2661 echo one > conftest.one
2662 echo two > conftest.two
2663 mkdir conftest.dir
2664 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2665 test -s conftest.one && test -s conftest.two &&
2666 test -s conftest.dir/conftest.one &&
2667 test -s conftest.dir/conftest.two
2668 then
2669 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2670 break 3
2674 done
2675 done
2677 esac
2679 done
2680 IFS=$as_save_IFS
2682 rm -rf conftest.one conftest.two conftest.dir
2685 if test "${ac_cv_path_install+set}" = set; then
2686 INSTALL=$ac_cv_path_install
2687 else
2688 # As a last resort, use the slow shell script. Don't cache a
2689 # value for INSTALL within a source directory, because that will
2690 # break other packages using the cache if that directory is
2691 # removed, or if the value is a relative name.
2692 INSTALL=$ac_install_sh
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2696 $as_echo "$INSTALL" >&6; }
2698 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2699 # It thinks the first close brace ends the variable substitution.
2700 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2702 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2704 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2707 $as_echo_n "checking whether build environment is sane... " >&6; }
2708 # Just in case
2709 sleep 1
2710 echo timestamp > conftest.file
2711 # Reject unsafe characters in $srcdir or the absolute working directory
2712 # name. Accept space and tab only in the latter.
2713 am_lf='
2715 case `pwd` in
2716 *[\\\"\#\$\&\'\`$am_lf]*)
2717 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2718 esac
2719 case $srcdir in
2720 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2721 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2722 esac
2724 # Do `set' in a subshell so we don't clobber the current shell's
2725 # arguments. Must try -L first in case configure is actually a
2726 # symlink; some systems play weird games with the mod time of symlinks
2727 # (eg FreeBSD returns the mod time of the symlink's containing
2728 # directory).
2729 if (
2730 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2731 if test "$*" = "X"; then
2732 # -L didn't work.
2733 set X `ls -t "$srcdir/configure" conftest.file`
2735 rm -f conftest.file
2736 if test "$*" != "X $srcdir/configure conftest.file" \
2737 && test "$*" != "X conftest.file $srcdir/configure"; then
2739 # If neither matched, then we have a broken ls. This can happen
2740 # if, for instance, CONFIG_SHELL is bash and it inherits a
2741 # broken ls alias from the environment. This has actually
2742 # happened. Such a system could not be considered "sane".
2743 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2744 alias in your environment" "$LINENO" 5
2747 test "$2" = conftest.file
2749 then
2750 # Ok.
2752 else
2753 as_fn_error $? "newly created file is older than distributed files!
2754 Check your system clock" "$LINENO" 5
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2757 $as_echo "yes" >&6; }
2758 test "$program_prefix" != NONE &&
2759 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2760 # Use a double $ so make ignores it.
2761 test "$program_suffix" != NONE &&
2762 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2763 # Double any \ or $.
2764 # By default was `s,x,x', remove it if useless.
2765 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2766 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2768 # expand $ac_aux_dir to an absolute path
2769 am_aux_dir=`cd $ac_aux_dir && pwd`
2771 if test x"${MISSING+set}" != xset; then
2772 case $am_aux_dir in
2773 *\ * | *\ *)
2774 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2776 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2777 esac
2779 # Use eval to expand $SHELL
2780 if eval "$MISSING --run true"; then
2781 am_missing_run="$MISSING --run "
2782 else
2783 am_missing_run=
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2785 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2788 if test x"${install_sh}" != xset; then
2789 case $am_aux_dir in
2790 *\ * | *\ *)
2791 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2793 install_sh="\${SHELL} $am_aux_dir/install-sh"
2794 esac
2797 # Installed binaries are usually stripped using `strip' when the user
2798 # run `make install-strip'. However `strip' might not be the right
2799 # tool to use in cross-compilation environments, therefore Automake
2800 # will honor the `STRIP' environment variable to overrule this program.
2801 if test "$cross_compiling" != no; then
2802 if test -n "$ac_tool_prefix"; then
2803 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2804 set dummy ${ac_tool_prefix}strip; ac_word=$2
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2806 $as_echo_n "checking for $ac_word... " >&6; }
2807 if ${ac_cv_prog_STRIP+:} false; then :
2808 $as_echo_n "(cached) " >&6
2809 else
2810 if test -n "$STRIP"; then
2811 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2812 else
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2820 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 break 2
2824 done
2825 done
2826 IFS=$as_save_IFS
2830 STRIP=$ac_cv_prog_STRIP
2831 if test -n "$STRIP"; then
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2833 $as_echo "$STRIP" >&6; }
2834 else
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2836 $as_echo "no" >&6; }
2841 if test -z "$ac_cv_prog_STRIP"; then
2842 ac_ct_STRIP=$STRIP
2843 # Extract the first word of "strip", so it can be a program name with args.
2844 set dummy strip; ac_word=$2
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 if test -n "$ac_ct_STRIP"; then
2851 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2860 ac_cv_prog_ac_ct_STRIP="strip"
2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2864 done
2865 done
2866 IFS=$as_save_IFS
2870 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2871 if test -n "$ac_ct_STRIP"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2873 $as_echo "$ac_ct_STRIP" >&6; }
2874 else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2879 if test "x$ac_ct_STRIP" = x; then
2880 STRIP=":"
2881 else
2882 case $cross_compiling:$ac_tool_warned in
2883 yes:)
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2886 ac_tool_warned=yes ;;
2887 esac
2888 STRIP=$ac_ct_STRIP
2890 else
2891 STRIP="$ac_cv_prog_STRIP"
2895 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2898 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2899 if test -z "$MKDIR_P"; then
2900 if ${ac_cv_path_mkdir+:} false; then :
2901 $as_echo_n "(cached) " >&6
2902 else
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2906 IFS=$as_save_IFS
2907 test -z "$as_dir" && as_dir=.
2908 for ac_prog in mkdir gmkdir; do
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2911 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2912 'mkdir (GNU coreutils) '* | \
2913 'mkdir (coreutils) '* | \
2914 'mkdir (fileutils) '4.1*)
2915 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2916 break 3;;
2917 esac
2918 done
2919 done
2920 done
2921 IFS=$as_save_IFS
2925 test -d ./--version && rmdir ./--version
2926 if test "${ac_cv_path_mkdir+set}" = set; then
2927 MKDIR_P="$ac_cv_path_mkdir -p"
2928 else
2929 # As a last resort, use the slow shell script. Don't cache a
2930 # value for MKDIR_P within a source directory, because that will
2931 # break other packages using the cache if that directory is
2932 # removed, or if the value is a relative name.
2933 MKDIR_P="$ac_install_sh -d"
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2937 $as_echo "$MKDIR_P" >&6; }
2939 mkdir_p="$MKDIR_P"
2940 case $mkdir_p in
2941 [\\/$]* | ?:[\\/]*) ;;
2942 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2943 esac
2945 for ac_prog in gawk mawk nawk awk
2947 # Extract the first word of "$ac_prog", so it can be a program name with args.
2948 set dummy $ac_prog; ac_word=$2
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950 $as_echo_n "checking for $ac_word... " >&6; }
2951 if ${ac_cv_prog_AWK+:} false; then :
2952 $as_echo_n "(cached) " >&6
2953 else
2954 if test -n "$AWK"; then
2955 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2956 else
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH
2960 IFS=$as_save_IFS
2961 test -z "$as_dir" && as_dir=.
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2964 ac_cv_prog_AWK="$ac_prog"
2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 break 2
2968 done
2969 done
2970 IFS=$as_save_IFS
2974 AWK=$ac_cv_prog_AWK
2975 if test -n "$AWK"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2977 $as_echo "$AWK" >&6; }
2978 else
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2984 test -n "$AWK" && break
2985 done
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2988 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2989 set x ${MAKE-make}
2990 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2991 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 cat >conftest.make <<\_ACEOF
2995 SHELL = /bin/sh
2996 all:
2997 @echo '@@@%%%=$(MAKE)=@@@%%%'
2998 _ACEOF
2999 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3000 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3001 *@@@%%%=?*=@@@%%%*)
3002 eval ac_cv_prog_make_${ac_make}_set=yes;;
3004 eval ac_cv_prog_make_${ac_make}_set=no;;
3005 esac
3006 rm -f conftest.make
3008 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3010 $as_echo "yes" >&6; }
3011 SET_MAKE=
3012 else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3015 SET_MAKE="MAKE=${MAKE-make}"
3018 rm -rf .tst 2>/dev/null
3019 mkdir .tst 2>/dev/null
3020 if test -d .tst; then
3021 am__leading_dot=.
3022 else
3023 am__leading_dot=_
3025 rmdir .tst 2>/dev/null
3027 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3028 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3029 # is not polluted with repeated "-I."
3030 am__isrc=' -I$(srcdir)'
3031 # test to see if srcdir already configured
3032 if test -f $srcdir/config.status; then
3033 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3037 # test whether we have cygpath
3038 if test -z "$CYGPATH_W"; then
3039 if (cygpath --version) >/dev/null 2>/dev/null; then
3040 CYGPATH_W='cygpath -w'
3041 else
3042 CYGPATH_W=echo
3047 # Define the identity of the package.
3048 PACKAGE='transmission'
3049 VERSION='2.51'
3052 cat >>confdefs.h <<_ACEOF
3053 #define PACKAGE "$PACKAGE"
3054 _ACEOF
3057 cat >>confdefs.h <<_ACEOF
3058 #define VERSION "$VERSION"
3059 _ACEOF
3061 # Some tools Automake needs.
3063 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3066 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3069 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3072 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3075 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3077 # We need awk for the "check" target. The system "awk" is bad on
3078 # some platforms.
3079 # Always define AMTAR for backward compatibility. Yes, it's still used
3080 # in the wild :-( We should find a proper way to deprecate it ...
3081 AMTAR='$${TAR-tar}'
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3085 $as_echo_n "checking how to create a pax tar archive... " >&6; }
3086 # Loop over all known methods to create a tar archive until one works.
3087 _am_tools='gnutar pax cpio none'
3088 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
3089 # Do not fold the above two line into one, because Tru64 sh and
3090 # Solaris sh will not grok spaces in the rhs of `-'.
3091 for _am_tool in $_am_tools
3093 case $_am_tool in
3094 gnutar)
3095 for _am_tar in tar gnutar gtar;
3097 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3098 ($_am_tar --version) >&5 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } && break
3102 done
3103 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3104 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3105 am__untar="$_am_tar -xf -"
3107 plaintar)
3108 # Must skip GNU tar: if it does not support --format= it doesn't create
3109 # ustar tarball either.
3110 (tar --version) >/dev/null 2>&1 && continue
3111 am__tar='tar chf - "$$tardir"'
3112 am__tar_='tar chf - "$tardir"'
3113 am__untar='tar xf -'
3115 pax)
3116 am__tar='pax -L -x pax -w "$$tardir"'
3117 am__tar_='pax -L -x pax -w "$tardir"'
3118 am__untar='pax -r'
3120 cpio)
3121 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3122 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3123 am__untar='cpio -i -H pax -d'
3125 none)
3126 am__tar=false
3127 am__tar_=false
3128 am__untar=false
3130 esac
3132 # If the value was cached, stop now. We just wanted to have am__tar
3133 # and am__untar set.
3134 test -n "${am_cv_prog_tar_pax}" && break
3136 # tar/untar a dummy directory, and stop if the command works
3137 rm -rf conftest.dir
3138 mkdir conftest.dir
3139 echo GrepMe > conftest.dir/file
3140 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3141 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }
3145 rm -rf conftest.dir
3146 if test -s conftest.tar; then
3147 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3148 ($am__untar <conftest.tar) >&5 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }
3152 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3154 done
3155 rm -rf conftest.dir
3157 if ${am_cv_prog_tar_pax+:} false; then :
3158 $as_echo_n "(cached) " >&6
3159 else
3160 am_cv_prog_tar_pax=$_am_tool
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3164 $as_echo "$am_cv_prog_tar_pax" >&6; }
3170 case `pwd` in
3171 *\ * | *\ *)
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3173 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3174 esac
3178 macro_version='2.4.2'
3179 macro_revision='1.3337'
3193 ltmain="$ac_aux_dir/ltmain.sh"
3195 # Make sure we can run config.sub.
3196 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3197 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3200 $as_echo_n "checking build system type... " >&6; }
3201 if ${ac_cv_build+:} false; then :
3202 $as_echo_n "(cached) " >&6
3203 else
3204 ac_build_alias=$build_alias
3205 test "x$ac_build_alias" = x &&
3206 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3207 test "x$ac_build_alias" = x &&
3208 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3209 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3210 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3214 $as_echo "$ac_cv_build" >&6; }
3215 case $ac_cv_build in
3216 *-*-*) ;;
3217 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3218 esac
3219 build=$ac_cv_build
3220 ac_save_IFS=$IFS; IFS='-'
3221 set x $ac_cv_build
3222 shift
3223 build_cpu=$1
3224 build_vendor=$2
3225 shift; shift
3226 # Remember, the first character of IFS is used to create $*,
3227 # except with old shells:
3228 build_os=$*
3229 IFS=$ac_save_IFS
3230 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3234 $as_echo_n "checking host system type... " >&6; }
3235 if ${ac_cv_host+:} false; then :
3236 $as_echo_n "(cached) " >&6
3237 else
3238 if test "x$host_alias" = x; then
3239 ac_cv_host=$ac_cv_build
3240 else
3241 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3242 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3247 $as_echo "$ac_cv_host" >&6; }
3248 case $ac_cv_host in
3249 *-*-*) ;;
3250 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3251 esac
3252 host=$ac_cv_host
3253 ac_save_IFS=$IFS; IFS='-'
3254 set x $ac_cv_host
3255 shift
3256 host_cpu=$1
3257 host_vendor=$2
3258 shift; shift
3259 # Remember, the first character of IFS is used to create $*,
3260 # except with old shells:
3261 host_os=$*
3262 IFS=$ac_save_IFS
3263 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3266 # Backslashify metacharacters that are still active within
3267 # double-quoted strings.
3268 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3270 # Same as above, but do not quote variable references.
3271 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3273 # Sed substitution to delay expansion of an escaped shell variable in a
3274 # double_quote_subst'ed string.
3275 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3277 # Sed substitution to delay expansion of an escaped single quote.
3278 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3280 # Sed substitution to avoid accidental globbing in evaled expressions
3281 no_glob_subst='s/\*/\\\*/g'
3283 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3284 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3285 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3288 $as_echo_n "checking how to print strings... " >&6; }
3289 # Test print first, because it will be a builtin if present.
3290 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3291 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3292 ECHO='print -r --'
3293 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3294 ECHO='printf %s\n'
3295 else
3296 # Use this function as a fallback that always works.
3297 func_fallback_echo ()
3299 eval 'cat <<_LTECHO_EOF
3301 _LTECHO_EOF'
3303 ECHO='func_fallback_echo'
3306 # func_echo_all arg...
3307 # Invoke $ECHO with all args, space-separated.
3308 func_echo_all ()
3310 $ECHO ""
3313 case "$ECHO" in
3314 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3315 $as_echo "printf" >&6; } ;;
3316 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3317 $as_echo "print -r" >&6; } ;;
3318 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3319 $as_echo "cat" >&6; } ;;
3320 esac
3335 DEPDIR="${am__leading_dot}deps"
3337 ac_config_commands="$ac_config_commands depfiles"
3340 am_make=${MAKE-make}
3341 cat > confinc << 'END'
3342 am__doit:
3343 @echo this is the am__doit target
3344 .PHONY: am__doit
3346 # If we don't find an include directive, just comment out the code.
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3348 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3349 am__include="#"
3350 am__quote=
3351 _am_result=none
3352 # First try GNU make style include.
3353 echo "include confinc" > confmf
3354 # Ignore all kinds of additional output from `make'.
3355 case `$am_make -s -f confmf 2> /dev/null` in #(
3356 *the\ am__doit\ target*)
3357 am__include=include
3358 am__quote=
3359 _am_result=GNU
3361 esac
3362 # Now try BSD make style include.
3363 if test "$am__include" = "#"; then
3364 echo '.include "confinc"' > confmf
3365 case `$am_make -s -f confmf 2> /dev/null` in #(
3366 *the\ am__doit\ target*)
3367 am__include=.include
3368 am__quote="\""
3369 _am_result=BSD
3371 esac
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3376 $as_echo "$_am_result" >&6; }
3377 rm -f confinc confmf
3379 # Check whether --enable-dependency-tracking was given.
3380 if test "${enable_dependency_tracking+set}" = set; then :
3381 enableval=$enable_dependency_tracking;
3384 if test "x$enable_dependency_tracking" != xno; then
3385 am_depcomp="$ac_aux_dir/depcomp"
3386 AMDEPBACKSLASH='\'
3387 am__nodep='_no'
3389 if test "x$enable_dependency_tracking" != xno; then
3390 AMDEP_TRUE=
3391 AMDEP_FALSE='#'
3392 else
3393 AMDEP_TRUE='#'
3394 AMDEP_FALSE=
3398 ac_ext=c
3399 ac_cpp='$CPP $CPPFLAGS'
3400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3403 if test -n "$ac_tool_prefix"; then
3404 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3405 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if ${ac_cv_prog_CC+:} false; then :
3409 $as_echo_n "(cached) " >&6
3410 else
3411 if test -n "$CC"; then
3412 ac_cv_prog_CC="$CC" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3421 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 break 2
3425 done
3426 done
3427 IFS=$as_save_IFS
3431 CC=$ac_cv_prog_CC
3432 if test -n "$CC"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3434 $as_echo "$CC" >&6; }
3435 else
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3442 if test -z "$ac_cv_prog_CC"; then
3443 ac_ct_CC=$CC
3444 # Extract the first word of "gcc", so it can be a program name with args.
3445 set dummy gcc; ac_word=$2
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447 $as_echo_n "checking for $ac_word... " >&6; }
3448 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3449 $as_echo_n "(cached) " >&6
3450 else
3451 if test -n "$ac_ct_CC"; then
3452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3453 else
3454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455 for as_dir in $PATH
3457 IFS=$as_save_IFS
3458 test -z "$as_dir" && as_dir=.
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3461 ac_cv_prog_ac_ct_CC="gcc"
3462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 break 2
3465 done
3466 done
3467 IFS=$as_save_IFS
3471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3472 if test -n "$ac_ct_CC"; then
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3474 $as_echo "$ac_ct_CC" >&6; }
3475 else
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477 $as_echo "no" >&6; }
3480 if test "x$ac_ct_CC" = x; then
3481 CC=""
3482 else
3483 case $cross_compiling:$ac_tool_warned in
3484 yes:)
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3487 ac_tool_warned=yes ;;
3488 esac
3489 CC=$ac_ct_CC
3491 else
3492 CC="$ac_cv_prog_CC"
3495 if test -z "$CC"; then
3496 if test -n "$ac_tool_prefix"; then
3497 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3498 set dummy ${ac_tool_prefix}cc; ac_word=$2
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500 $as_echo_n "checking for $ac_word... " >&6; }
3501 if ${ac_cv_prog_CC+:} false; then :
3502 $as_echo_n "(cached) " >&6
3503 else
3504 if test -n "$CC"; then
3505 ac_cv_prog_CC="$CC" # Let the user override the test.
3506 else
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 for as_dir in $PATH
3510 IFS=$as_save_IFS
3511 test -z "$as_dir" && as_dir=.
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3514 ac_cv_prog_CC="${ac_tool_prefix}cc"
3515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3516 break 2
3518 done
3519 done
3520 IFS=$as_save_IFS
3524 CC=$ac_cv_prog_CC
3525 if test -n "$CC"; then
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3527 $as_echo "$CC" >&6; }
3528 else
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530 $as_echo "no" >&6; }
3536 if test -z "$CC"; then
3537 # Extract the first word of "cc", so it can be a program name with args.
3538 set dummy cc; ac_word=$2
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 $as_echo_n "checking for $ac_word... " >&6; }
3541 if ${ac_cv_prog_CC+:} false; then :
3542 $as_echo_n "(cached) " >&6
3543 else
3544 if test -n "$CC"; then
3545 ac_cv_prog_CC="$CC" # Let the user override the test.
3546 else
3547 ac_prog_rejected=no
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3551 IFS=$as_save_IFS
3552 test -z "$as_dir" && as_dir=.
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3555 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3556 ac_prog_rejected=yes
3557 continue
3559 ac_cv_prog_CC="cc"
3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 break 2
3563 done
3564 done
3565 IFS=$as_save_IFS
3567 if test $ac_prog_rejected = yes; then
3568 # We found a bogon in the path, so make sure we never use it.
3569 set dummy $ac_cv_prog_CC
3570 shift
3571 if test $# != 0; then
3572 # We chose a different compiler from the bogus one.
3573 # However, it has the same basename, so the bogon will be chosen
3574 # first if we set CC to just the basename; use the full file name.
3575 shift
3576 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3581 CC=$ac_cv_prog_CC
3582 if test -n "$CC"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3584 $as_echo "$CC" >&6; }
3585 else
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3592 if test -z "$CC"; then
3593 if test -n "$ac_tool_prefix"; then
3594 for ac_prog in cl.exe
3596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599 $as_echo_n "checking for $ac_word... " >&6; }
3600 if ${ac_cv_prog_CC+:} false; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 if test -n "$CC"; then
3604 ac_cv_prog_CC="$CC" # Let the user override the test.
3605 else
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH
3609 IFS=$as_save_IFS
3610 test -z "$as_dir" && as_dir=.
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3613 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 break 2
3617 done
3618 done
3619 IFS=$as_save_IFS
3623 CC=$ac_cv_prog_CC
3624 if test -n "$CC"; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3626 $as_echo "$CC" >&6; }
3627 else
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3633 test -n "$CC" && break
3634 done
3636 if test -z "$CC"; then
3637 ac_ct_CC=$CC
3638 for ac_prog in cl.exe
3640 # Extract the first word of "$ac_prog", so it can be a program name with args.
3641 set dummy $ac_prog; ac_word=$2
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3643 $as_echo_n "checking for $ac_word... " >&6; }
3644 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3645 $as_echo_n "(cached) " >&6
3646 else
3647 if test -n "$ac_ct_CC"; then
3648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3649 else
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 for as_dir in $PATH
3653 IFS=$as_save_IFS
3654 test -z "$as_dir" && as_dir=.
3655 for ac_exec_ext in '' $ac_executable_extensions; do
3656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3657 ac_cv_prog_ac_ct_CC="$ac_prog"
3658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 break 2
3661 done
3662 done
3663 IFS=$as_save_IFS
3667 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3668 if test -n "$ac_ct_CC"; then
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3670 $as_echo "$ac_ct_CC" >&6; }
3671 else
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 $as_echo "no" >&6; }
3677 test -n "$ac_ct_CC" && break
3678 done
3680 if test "x$ac_ct_CC" = x; then
3681 CC=""
3682 else
3683 case $cross_compiling:$ac_tool_warned in
3684 yes:)
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3687 ac_tool_warned=yes ;;
3688 esac
3689 CC=$ac_ct_CC
3696 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3698 as_fn_error $? "no acceptable C compiler found in \$PATH
3699 See \`config.log' for more details" "$LINENO" 5; }
3701 # Provide some information about the compiler.
3702 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3703 set X $ac_compile
3704 ac_compiler=$2
3705 for ac_option in --version -v -V -qversion; do
3706 { { ac_try="$ac_compiler $ac_option >&5"
3707 case "(($ac_try" in
3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3710 esac
3711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3712 $as_echo "$ac_try_echo"; } >&5
3713 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3714 ac_status=$?
3715 if test -s conftest.err; then
3716 sed '10a\
3717 ... rest of stderr output deleted ...
3718 10q' conftest.err >conftest.er1
3719 cat conftest.er1 >&5
3721 rm -f conftest.er1 conftest.err
3722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3723 test $ac_status = 0; }
3724 done
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3730 main ()
3734 return 0;
3736 _ACEOF
3737 ac_clean_files_save=$ac_clean_files
3738 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3739 # Try to create an executable without -o first, disregard a.out.
3740 # It will help us diagnose broken compilers, and finding out an intuition
3741 # of exeext.
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3743 $as_echo_n "checking whether the C compiler works... " >&6; }
3744 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3746 # The possible output files:
3747 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3749 ac_rmfiles=
3750 for ac_file in $ac_files
3752 case $ac_file in
3753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3754 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3755 esac
3756 done
3757 rm -f $ac_rmfiles
3759 if { { ac_try="$ac_link_default"
3760 case "(($ac_try" in
3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3763 esac
3764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3765 $as_echo "$ac_try_echo"; } >&5
3766 (eval "$ac_link_default") 2>&5
3767 ac_status=$?
3768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3769 test $ac_status = 0; }; then :
3770 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3771 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3772 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3773 # so that the user can short-circuit this test for compilers unknown to
3774 # Autoconf.
3775 for ac_file in $ac_files ''
3777 test -f "$ac_file" || continue
3778 case $ac_file in
3779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3781 [ab].out )
3782 # We found the default executable, but exeext='' is most
3783 # certainly right.
3784 break;;
3785 *.* )
3786 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3787 then :; else
3788 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3790 # We set ac_cv_exeext here because the later test for it is not
3791 # safe: cross compilers may not add the suffix if given an `-o'
3792 # argument, so we may need to know it at that point already.
3793 # Even if this section looks crufty: it has the advantage of
3794 # actually working.
3795 break;;
3797 break;;
3798 esac
3799 done
3800 test "$ac_cv_exeext" = no && ac_cv_exeext=
3802 else
3803 ac_file=''
3805 if test -z "$ac_file"; then :
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807 $as_echo "no" >&6; }
3808 $as_echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3813 as_fn_error 77 "C compiler cannot create executables
3814 See \`config.log' for more details" "$LINENO" 5; }
3815 else
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3817 $as_echo "yes" >&6; }
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3820 $as_echo_n "checking for C compiler default output file name... " >&6; }
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3822 $as_echo "$ac_file" >&6; }
3823 ac_exeext=$ac_cv_exeext
3825 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3826 ac_clean_files=$ac_clean_files_save
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3828 $as_echo_n "checking for suffix of executables... " >&6; }
3829 if { { ac_try="$ac_link"
3830 case "(($ac_try" in
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3833 esac
3834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3835 $as_echo "$ac_try_echo"; } >&5
3836 (eval "$ac_link") 2>&5
3837 ac_status=$?
3838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3839 test $ac_status = 0; }; then :
3840 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3841 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3842 # work properly (i.e., refer to `conftest.exe'), while it won't with
3843 # `rm'.
3844 for ac_file in conftest.exe conftest conftest.*; do
3845 test -f "$ac_file" || continue
3846 case $ac_file in
3847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3848 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3849 break;;
3850 * ) break;;
3851 esac
3852 done
3853 else
3854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3856 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3857 See \`config.log' for more details" "$LINENO" 5; }
3859 rm -f conftest conftest$ac_cv_exeext
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3861 $as_echo "$ac_cv_exeext" >&6; }
3863 rm -f conftest.$ac_ext
3864 EXEEXT=$ac_cv_exeext
3865 ac_exeext=$EXEEXT
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3868 #include <stdio.h>
3870 main ()
3872 FILE *f = fopen ("conftest.out", "w");
3873 return ferror (f) || fclose (f) != 0;
3876 return 0;
3878 _ACEOF
3879 ac_clean_files="$ac_clean_files conftest.out"
3880 # Check that the compiler produces executables we can run. If not, either
3881 # the compiler is broken, or we cross compile.
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3883 $as_echo_n "checking whether we are cross compiling... " >&6; }
3884 if test "$cross_compiling" != yes; then
3885 { { ac_try="$ac_link"
3886 case "(($ac_try" in
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3889 esac
3890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3891 $as_echo "$ac_try_echo"; } >&5
3892 (eval "$ac_link") 2>&5
3893 ac_status=$?
3894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3895 test $ac_status = 0; }
3896 if { ac_try='./conftest$ac_cv_exeext'
3897 { { case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900 esac
3901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3902 $as_echo "$ac_try_echo"; } >&5
3903 (eval "$ac_try") 2>&5
3904 ac_status=$?
3905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3906 test $ac_status = 0; }; }; then
3907 cross_compiling=no
3908 else
3909 if test "$cross_compiling" = maybe; then
3910 cross_compiling=yes
3911 else
3912 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3914 as_fn_error $? "cannot run C compiled programs.
3915 If you meant to cross compile, use \`--host'.
3916 See \`config.log' for more details" "$LINENO" 5; }
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3921 $as_echo "$cross_compiling" >&6; }
3923 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3924 ac_clean_files=$ac_clean_files_save
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3926 $as_echo_n "checking for suffix of object files... " >&6; }
3927 if ${ac_cv_objext+:} false; then :
3928 $as_echo_n "(cached) " >&6
3929 else
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h. */
3934 main ()
3938 return 0;
3940 _ACEOF
3941 rm -f conftest.o conftest.obj
3942 if { { ac_try="$ac_compile"
3943 case "(($ac_try" in
3944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3945 *) ac_try_echo=$ac_try;;
3946 esac
3947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3948 $as_echo "$ac_try_echo"; } >&5
3949 (eval "$ac_compile") 2>&5
3950 ac_status=$?
3951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3952 test $ac_status = 0; }; then :
3953 for ac_file in conftest.o conftest.obj conftest.*; do
3954 test -f "$ac_file" || continue;
3955 case $ac_file in
3956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3957 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3958 break;;
3959 esac
3960 done
3961 else
3962 $as_echo "$as_me: failed program was:" >&5
3963 sed 's/^/| /' conftest.$ac_ext >&5
3965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3967 as_fn_error $? "cannot compute suffix of object files: cannot compile
3968 See \`config.log' for more details" "$LINENO" 5; }
3970 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3973 $as_echo "$ac_cv_objext" >&6; }
3974 OBJEXT=$ac_cv_objext
3975 ac_objext=$OBJEXT
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3977 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3978 if ${ac_cv_c_compiler_gnu+:} false; then :
3979 $as_echo_n "(cached) " >&6
3980 else
3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h. */
3985 main ()
3987 #ifndef __GNUC__
3988 choke me
3989 #endif
3992 return 0;
3994 _ACEOF
3995 if ac_fn_c_try_compile "$LINENO"; then :
3996 ac_compiler_gnu=yes
3997 else
3998 ac_compiler_gnu=no
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4005 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4006 if test $ac_compiler_gnu = yes; then
4007 GCC=yes
4008 else
4009 GCC=
4011 ac_test_CFLAGS=${CFLAGS+set}
4012 ac_save_CFLAGS=$CFLAGS
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4014 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4015 if ${ac_cv_prog_cc_g+:} false; then :
4016 $as_echo_n "(cached) " >&6
4017 else
4018 ac_save_c_werror_flag=$ac_c_werror_flag
4019 ac_c_werror_flag=yes
4020 ac_cv_prog_cc_g=no
4021 CFLAGS="-g"
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4026 main ()
4030 return 0;
4032 _ACEOF
4033 if ac_fn_c_try_compile "$LINENO"; then :
4034 ac_cv_prog_cc_g=yes
4035 else
4036 CFLAGS=""
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4041 main ()
4045 return 0;
4047 _ACEOF
4048 if ac_fn_c_try_compile "$LINENO"; then :
4050 else
4051 ac_c_werror_flag=$ac_save_c_werror_flag
4052 CFLAGS="-g"
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4057 main ()
4061 return 0;
4063 _ACEOF
4064 if ac_fn_c_try_compile "$LINENO"; then :
4065 ac_cv_prog_cc_g=yes
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 ac_c_werror_flag=$ac_save_c_werror_flag
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4075 $as_echo "$ac_cv_prog_cc_g" >&6; }
4076 if test "$ac_test_CFLAGS" = set; then
4077 CFLAGS=$ac_save_CFLAGS
4078 elif test $ac_cv_prog_cc_g = yes; then
4079 if test "$GCC" = yes; then
4080 CFLAGS="-g -O2"
4081 else
4082 CFLAGS="-g"
4084 else
4085 if test "$GCC" = yes; then
4086 CFLAGS="-O2"
4087 else
4088 CFLAGS=
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4092 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4093 if ${ac_cv_prog_cc_c89+:} false; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 ac_cv_prog_cc_c89=no
4097 ac_save_CC=$CC
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4100 #include <stdarg.h>
4101 #include <stdio.h>
4102 #include <sys/types.h>
4103 #include <sys/stat.h>
4104 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4105 struct buf { int x; };
4106 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4107 static char *e (p, i)
4108 char **p;
4109 int i;
4111 return p[i];
4113 static char *f (char * (*g) (char **, int), char **p, ...)
4115 char *s;
4116 va_list v;
4117 va_start (v,p);
4118 s = g (p, va_arg (v,int));
4119 va_end (v);
4120 return s;
4123 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4124 function prototypes and stuff, but not '\xHH' hex character constants.
4125 These don't provoke an error unfortunately, instead are silently treated
4126 as 'x'. The following induces an error, until -std is added to get
4127 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4128 array size at least. It's necessary to write '\x00'==0 to get something
4129 that's true only with -std. */
4130 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4132 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4133 inside strings and character constants. */
4134 #define FOO(x) 'x'
4135 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4137 int test (int i, double x);
4138 struct s1 {int (*f) (int a);};
4139 struct s2 {int (*f) (double a);};
4140 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4141 int argc;
4142 char **argv;
4144 main ()
4146 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4148 return 0;
4150 _ACEOF
4151 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4152 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4154 CC="$ac_save_CC $ac_arg"
4155 if ac_fn_c_try_compile "$LINENO"; then :
4156 ac_cv_prog_cc_c89=$ac_arg
4158 rm -f core conftest.err conftest.$ac_objext
4159 test "x$ac_cv_prog_cc_c89" != "xno" && break
4160 done
4161 rm -f conftest.$ac_ext
4162 CC=$ac_save_CC
4165 # AC_CACHE_VAL
4166 case "x$ac_cv_prog_cc_c89" in
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4169 $as_echo "none needed" >&6; } ;;
4170 xno)
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4172 $as_echo "unsupported" >&6; } ;;
4174 CC="$CC $ac_cv_prog_cc_c89"
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4176 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4177 esac
4178 if test "x$ac_cv_prog_cc_c89" != xno; then :
4182 ac_ext=c
4183 ac_cpp='$CPP $CPPFLAGS'
4184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188 depcc="$CC" am_compiler_list=
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4191 $as_echo_n "checking dependency style of $depcc... " >&6; }
4192 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4193 $as_echo_n "(cached) " >&6
4194 else
4195 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4196 # We make a subdir and do the tests there. Otherwise we can end up
4197 # making bogus files that we don't know about and never remove. For
4198 # instance it was reported that on HP-UX the gcc test will end up
4199 # making a dummy file named `D' -- because `-MD' means `put the output
4200 # in D'.
4201 rm -rf conftest.dir
4202 mkdir conftest.dir
4203 # Copy depcomp to subdir because otherwise we won't find it if we're
4204 # using a relative directory.
4205 cp "$am_depcomp" conftest.dir
4206 cd conftest.dir
4207 # We will build objects and dependencies in a subdirectory because
4208 # it helps to detect inapplicable dependency modes. For instance
4209 # both Tru64's cc and ICC support -MD to output dependencies as a
4210 # side effect of compilation, but ICC will put the dependencies in
4211 # the current directory while Tru64 will put them in the object
4212 # directory.
4213 mkdir sub
4215 am_cv_CC_dependencies_compiler_type=none
4216 if test "$am_compiler_list" = ""; then
4217 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4219 am__universal=false
4220 case " $depcc " in #(
4221 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4222 esac
4224 for depmode in $am_compiler_list; do
4225 # Setup a source with many dependencies, because some compilers
4226 # like to wrap large dependency lists on column 80 (with \), and
4227 # we should not choose a depcomp mode which is confused by this.
4229 # We need to recreate these files for each test, as the compiler may
4230 # overwrite some of them when testing with obscure command lines.
4231 # This happens at least with the AIX C compiler.
4232 : > sub/conftest.c
4233 for i in 1 2 3 4 5 6; do
4234 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4235 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4236 # Solaris 8's {/usr,}/bin/sh.
4237 touch sub/conftst$i.h
4238 done
4239 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4241 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4242 # mode. It turns out that the SunPro C++ compiler does not properly
4243 # handle `-M -o', and we need to detect this. Also, some Intel
4244 # versions had trouble with output in subdirs
4245 am__obj=sub/conftest.${OBJEXT-o}
4246 am__minus_obj="-o $am__obj"
4247 case $depmode in
4248 gcc)
4249 # This depmode causes a compiler race in universal mode.
4250 test "$am__universal" = false || continue
4252 nosideeffect)
4253 # after this tag, mechanisms are not by side-effect, so they'll
4254 # only be used when explicitly requested
4255 if test "x$enable_dependency_tracking" = xyes; then
4256 continue
4257 else
4258 break
4261 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4262 # This compiler won't grok `-c -o', but also, the minuso test has
4263 # not run yet. These depmodes are late enough in the game, and
4264 # so weak that their functioning should not be impacted.
4265 am__obj=conftest.${OBJEXT-o}
4266 am__minus_obj=
4268 none) break ;;
4269 esac
4270 if depmode=$depmode \
4271 source=sub/conftest.c object=$am__obj \
4272 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4273 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4274 >/dev/null 2>conftest.err &&
4275 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4276 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4277 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4278 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4279 # icc doesn't choke on unknown options, it will just issue warnings
4280 # or remarks (even with -Werror). So we grep stderr for any message
4281 # that says an option was ignored or not supported.
4282 # When given -MP, icc 7.0 and 7.1 complain thusly:
4283 # icc: Command line warning: ignoring option '-M'; no argument required
4284 # The diagnosis changed in icc 8.0:
4285 # icc: Command line remark: option '-MP' not supported
4286 if (grep 'ignoring option' conftest.err ||
4287 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4288 am_cv_CC_dependencies_compiler_type=$depmode
4289 break
4292 done
4294 cd ..
4295 rm -rf conftest.dir
4296 else
4297 am_cv_CC_dependencies_compiler_type=none
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4302 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4303 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4306 test "x$enable_dependency_tracking" != xno \
4307 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4308 am__fastdepCC_TRUE=
4309 am__fastdepCC_FALSE='#'
4310 else
4311 am__fastdepCC_TRUE='#'
4312 am__fastdepCC_FALSE=
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4317 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4318 if ${ac_cv_path_SED+:} false; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4322 for ac_i in 1 2 3 4 5 6 7; do
4323 ac_script="$ac_script$as_nl$ac_script"
4324 done
4325 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4326 { ac_script=; unset ac_script;}
4327 if test -z "$SED"; then
4328 ac_path_SED_found=false
4329 # Loop through the user's path and test for each of PROGNAME-LIST
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in $PATH
4333 IFS=$as_save_IFS
4334 test -z "$as_dir" && as_dir=.
4335 for ac_prog in sed gsed; do
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4338 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4339 # Check for GNU ac_path_SED and select it if it is found.
4340 # Check for GNU $ac_path_SED
4341 case `"$ac_path_SED" --version 2>&1` in
4342 *GNU*)
4343 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4345 ac_count=0
4346 $as_echo_n 0123456789 >"conftest.in"
4347 while :
4349 cat "conftest.in" "conftest.in" >"conftest.tmp"
4350 mv "conftest.tmp" "conftest.in"
4351 cp "conftest.in" "conftest.nl"
4352 $as_echo '' >> "conftest.nl"
4353 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4354 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4355 as_fn_arith $ac_count + 1 && ac_count=$as_val
4356 if test $ac_count -gt ${ac_path_SED_max-0}; then
4357 # Best one so far, save it but keep looking for a better one
4358 ac_cv_path_SED="$ac_path_SED"
4359 ac_path_SED_max=$ac_count
4361 # 10*(2^10) chars as input seems more than enough
4362 test $ac_count -gt 10 && break
4363 done
4364 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4365 esac
4367 $ac_path_SED_found && break 3
4368 done
4369 done
4370 done
4371 IFS=$as_save_IFS
4372 if test -z "$ac_cv_path_SED"; then
4373 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4375 else
4376 ac_cv_path_SED=$SED
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4381 $as_echo "$ac_cv_path_SED" >&6; }
4382 SED="$ac_cv_path_SED"
4383 rm -f conftest.sed
4385 test -z "$SED" && SED=sed
4386 Xsed="$SED -e 1s/^X//"
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4399 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4400 if ${ac_cv_path_GREP+:} false; then :
4401 $as_echo_n "(cached) " >&6
4402 else
4403 if test -z "$GREP"; then
4404 ac_path_GREP_found=false
4405 # Loop through the user's path and test for each of PROGNAME-LIST
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 for ac_prog in grep ggrep; do
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4414 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4415 # Check for GNU ac_path_GREP and select it if it is found.
4416 # Check for GNU $ac_path_GREP
4417 case `"$ac_path_GREP" --version 2>&1` in
4418 *GNU*)
4419 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4421 ac_count=0
4422 $as_echo_n 0123456789 >"conftest.in"
4423 while :
4425 cat "conftest.in" "conftest.in" >"conftest.tmp"
4426 mv "conftest.tmp" "conftest.in"
4427 cp "conftest.in" "conftest.nl"
4428 $as_echo 'GREP' >> "conftest.nl"
4429 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4430 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4431 as_fn_arith $ac_count + 1 && ac_count=$as_val
4432 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4433 # Best one so far, save it but keep looking for a better one
4434 ac_cv_path_GREP="$ac_path_GREP"
4435 ac_path_GREP_max=$ac_count
4437 # 10*(2^10) chars as input seems more than enough
4438 test $ac_count -gt 10 && break
4439 done
4440 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4441 esac
4443 $ac_path_GREP_found && break 3
4444 done
4445 done
4446 done
4447 IFS=$as_save_IFS
4448 if test -z "$ac_cv_path_GREP"; then
4449 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4451 else
4452 ac_cv_path_GREP=$GREP
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4457 $as_echo "$ac_cv_path_GREP" >&6; }
4458 GREP="$ac_cv_path_GREP"
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4462 $as_echo_n "checking for egrep... " >&6; }
4463 if ${ac_cv_path_EGREP+:} false; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4467 then ac_cv_path_EGREP="$GREP -E"
4468 else
4469 if test -z "$EGREP"; then
4470 ac_path_EGREP_found=false
4471 # Loop through the user's path and test for each of PROGNAME-LIST
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_prog in egrep; do
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4480 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4481 # Check for GNU ac_path_EGREP and select it if it is found.
4482 # Check for GNU $ac_path_EGREP
4483 case `"$ac_path_EGREP" --version 2>&1` in
4484 *GNU*)
4485 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4487 ac_count=0
4488 $as_echo_n 0123456789 >"conftest.in"
4489 while :
4491 cat "conftest.in" "conftest.in" >"conftest.tmp"
4492 mv "conftest.tmp" "conftest.in"
4493 cp "conftest.in" "conftest.nl"
4494 $as_echo 'EGREP' >> "conftest.nl"
4495 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4496 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4497 as_fn_arith $ac_count + 1 && ac_count=$as_val
4498 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4499 # Best one so far, save it but keep looking for a better one
4500 ac_cv_path_EGREP="$ac_path_EGREP"
4501 ac_path_EGREP_max=$ac_count
4503 # 10*(2^10) chars as input seems more than enough
4504 test $ac_count -gt 10 && break
4505 done
4506 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4507 esac
4509 $ac_path_EGREP_found && break 3
4510 done
4511 done
4512 done
4513 IFS=$as_save_IFS
4514 if test -z "$ac_cv_path_EGREP"; then
4515 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4517 else
4518 ac_cv_path_EGREP=$EGREP
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4524 $as_echo "$ac_cv_path_EGREP" >&6; }
4525 EGREP="$ac_cv_path_EGREP"
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4529 $as_echo_n "checking for fgrep... " >&6; }
4530 if ${ac_cv_path_FGREP+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4534 then ac_cv_path_FGREP="$GREP -F"
4535 else
4536 if test -z "$FGREP"; then
4537 ac_path_FGREP_found=false
4538 # Loop through the user's path and test for each of PROGNAME-LIST
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_prog in fgrep; do
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4547 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4548 # Check for GNU ac_path_FGREP and select it if it is found.
4549 # Check for GNU $ac_path_FGREP
4550 case `"$ac_path_FGREP" --version 2>&1` in
4551 *GNU*)
4552 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4554 ac_count=0
4555 $as_echo_n 0123456789 >"conftest.in"
4556 while :
4558 cat "conftest.in" "conftest.in" >"conftest.tmp"
4559 mv "conftest.tmp" "conftest.in"
4560 cp "conftest.in" "conftest.nl"
4561 $as_echo 'FGREP' >> "conftest.nl"
4562 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4564 as_fn_arith $ac_count + 1 && ac_count=$as_val
4565 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4566 # Best one so far, save it but keep looking for a better one
4567 ac_cv_path_FGREP="$ac_path_FGREP"
4568 ac_path_FGREP_max=$ac_count
4570 # 10*(2^10) chars as input seems more than enough
4571 test $ac_count -gt 10 && break
4572 done
4573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4574 esac
4576 $ac_path_FGREP_found && break 3
4577 done
4578 done
4579 done
4580 IFS=$as_save_IFS
4581 if test -z "$ac_cv_path_FGREP"; then
4582 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4584 else
4585 ac_cv_path_FGREP=$FGREP
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4591 $as_echo "$ac_cv_path_FGREP" >&6; }
4592 FGREP="$ac_cv_path_FGREP"
4595 test -z "$GREP" && GREP=grep
4615 # Check whether --with-gnu-ld was given.
4616 if test "${with_gnu_ld+set}" = set; then :
4617 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4618 else
4619 with_gnu_ld=no
4622 ac_prog=ld
4623 if test "$GCC" = yes; then
4624 # Check if gcc -print-prog-name=ld gives a path.
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4626 $as_echo_n "checking for ld used by $CC... " >&6; }
4627 case $host in
4628 *-*-mingw*)
4629 # gcc leaves a trailing carriage return which upsets mingw
4630 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4632 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4633 esac
4634 case $ac_prog in
4635 # Accept absolute paths.
4636 [\\/]* | ?:[\\/]*)
4637 re_direlt='/[^/][^/]*/\.\./'
4638 # Canonicalize the pathname of ld
4639 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4640 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4641 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4642 done
4643 test -z "$LD" && LD="$ac_prog"
4646 # If it fails, then pretend we aren't using GCC.
4647 ac_prog=ld
4650 # If it is relative, then search for the first ld in PATH.
4651 with_gnu_ld=unknown
4653 esac
4654 elif test "$with_gnu_ld" = yes; then
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4656 $as_echo_n "checking for GNU ld... " >&6; }
4657 else
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4659 $as_echo_n "checking for non-GNU ld... " >&6; }
4661 if ${lt_cv_path_LD+:} false; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 if test -z "$LD"; then
4665 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4666 for ac_dir in $PATH; do
4667 IFS="$lt_save_ifs"
4668 test -z "$ac_dir" && ac_dir=.
4669 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4670 lt_cv_path_LD="$ac_dir/$ac_prog"
4671 # Check to see if the program is GNU ld. I'd rather use --version,
4672 # but apparently some variants of GNU ld only accept -v.
4673 # Break only if it was the GNU/non-GNU ld that we prefer.
4674 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4675 *GNU* | *'with BFD'*)
4676 test "$with_gnu_ld" != no && break
4679 test "$with_gnu_ld" != yes && break
4681 esac
4683 done
4684 IFS="$lt_save_ifs"
4685 else
4686 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4690 LD="$lt_cv_path_LD"
4691 if test -n "$LD"; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4693 $as_echo "$LD" >&6; }
4694 else
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696 $as_echo "no" >&6; }
4698 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4700 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4701 if ${lt_cv_prog_gnu_ld+:} false; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4705 case `$LD -v 2>&1 </dev/null` in
4706 *GNU* | *'with BFD'*)
4707 lt_cv_prog_gnu_ld=yes
4710 lt_cv_prog_gnu_ld=no
4712 esac
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4715 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4716 with_gnu_ld=$lt_cv_prog_gnu_ld
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4727 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4728 if ${lt_cv_path_NM+:} false; then :
4729 $as_echo_n "(cached) " >&6
4730 else
4731 if test -n "$NM"; then
4732 # Let the user override the test.
4733 lt_cv_path_NM="$NM"
4734 else
4735 lt_nm_to_check="${ac_tool_prefix}nm"
4736 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4737 lt_nm_to_check="$lt_nm_to_check nm"
4739 for lt_tmp_nm in $lt_nm_to_check; do
4740 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4741 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4742 IFS="$lt_save_ifs"
4743 test -z "$ac_dir" && ac_dir=.
4744 tmp_nm="$ac_dir/$lt_tmp_nm"
4745 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4746 # Check to see if the nm accepts a BSD-compat flag.
4747 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4748 # nm: unknown option "B" ignored
4749 # Tru64's nm complains that /dev/null is an invalid object file
4750 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4751 */dev/null* | *'Invalid file or object type'*)
4752 lt_cv_path_NM="$tmp_nm -B"
4753 break
4756 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4757 */dev/null*)
4758 lt_cv_path_NM="$tmp_nm -p"
4759 break
4762 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4763 continue # so that we can try to find one that supports BSD flags
4765 esac
4767 esac
4769 done
4770 IFS="$lt_save_ifs"
4771 done
4772 : ${lt_cv_path_NM=no}
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4776 $as_echo "$lt_cv_path_NM" >&6; }
4777 if test "$lt_cv_path_NM" != "no"; then
4778 NM="$lt_cv_path_NM"
4779 else
4780 # Didn't find any BSD compatible name lister, look for dumpbin.
4781 if test -n "$DUMPBIN"; then :
4782 # Let the user override the test.
4783 else
4784 if test -n "$ac_tool_prefix"; then
4785 for ac_prog in dumpbin "link -dump"
4787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4788 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if ${ac_cv_prog_DUMPBIN+:} false; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 if test -n "$DUMPBIN"; then
4795 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 break 2
4808 done
4809 done
4810 IFS=$as_save_IFS
4814 DUMPBIN=$ac_cv_prog_DUMPBIN
4815 if test -n "$DUMPBIN"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4817 $as_echo "$DUMPBIN" >&6; }
4818 else
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4824 test -n "$DUMPBIN" && break
4825 done
4827 if test -z "$DUMPBIN"; then
4828 ac_ct_DUMPBIN=$DUMPBIN
4829 for ac_prog in dumpbin "link -dump"
4831 # Extract the first word of "$ac_prog", so it can be a program name with args.
4832 set dummy $ac_prog; ac_word=$2
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4834 $as_echo_n "checking for $ac_word... " >&6; }
4835 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4836 $as_echo_n "(cached) " >&6
4837 else
4838 if test -n "$ac_ct_DUMPBIN"; then
4839 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4840 else
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 for as_dir in $PATH
4844 IFS=$as_save_IFS
4845 test -z "$as_dir" && as_dir=.
4846 for ac_exec_ext in '' $ac_executable_extensions; do
4847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4848 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4850 break 2
4852 done
4853 done
4854 IFS=$as_save_IFS
4858 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4859 if test -n "$ac_ct_DUMPBIN"; then
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4861 $as_echo "$ac_ct_DUMPBIN" >&6; }
4862 else
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4864 $as_echo "no" >&6; }
4868 test -n "$ac_ct_DUMPBIN" && break
4869 done
4871 if test "x$ac_ct_DUMPBIN" = x; then
4872 DUMPBIN=":"
4873 else
4874 case $cross_compiling:$ac_tool_warned in
4875 yes:)
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4878 ac_tool_warned=yes ;;
4879 esac
4880 DUMPBIN=$ac_ct_DUMPBIN
4884 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4885 *COFF*)
4886 DUMPBIN="$DUMPBIN -symbols"
4889 DUMPBIN=:
4891 esac
4894 if test "$DUMPBIN" != ":"; then
4895 NM="$DUMPBIN"
4898 test -z "$NM" && NM=nm
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4906 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4907 if ${lt_cv_nm_interface+:} false; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 lt_cv_nm_interface="BSD nm"
4911 echo "int some_variable = 0;" > conftest.$ac_ext
4912 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4913 (eval "$ac_compile" 2>conftest.err)
4914 cat conftest.err >&5
4915 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4916 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4917 cat conftest.err >&5
4918 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4919 cat conftest.out >&5
4920 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4921 lt_cv_nm_interface="MS dumpbin"
4923 rm -f conftest*
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4926 $as_echo "$lt_cv_nm_interface" >&6; }
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4929 $as_echo_n "checking whether ln -s works... " >&6; }
4930 LN_S=$as_ln_s
4931 if test "$LN_S" = "ln -s"; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4933 $as_echo "yes" >&6; }
4934 else
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4936 $as_echo "no, using $LN_S" >&6; }
4939 # find the maximum length of command line arguments
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4941 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4942 if ${lt_cv_sys_max_cmd_len+:} false; then :
4943 $as_echo_n "(cached) " >&6
4944 else
4946 teststring="ABCD"
4948 case $build_os in
4949 msdosdjgpp*)
4950 # On DJGPP, this test can blow up pretty badly due to problems in libc
4951 # (any single argument exceeding 2000 bytes causes a buffer overrun
4952 # during glob expansion). Even if it were fixed, the result of this
4953 # check would be larger than it should be.
4954 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4957 gnu*)
4958 # Under GNU Hurd, this test is not required because there is
4959 # no limit to the length of command line arguments.
4960 # Libtool will interpret -1 as no limit whatsoever
4961 lt_cv_sys_max_cmd_len=-1;
4964 cygwin* | mingw* | cegcc*)
4965 # On Win9x/ME, this test blows up -- it succeeds, but takes
4966 # about 5 minutes as the teststring grows exponentially.
4967 # Worse, since 9x/ME are not pre-emptively multitasking,
4968 # you end up with a "frozen" computer, even though with patience
4969 # the test eventually succeeds (with a max line length of 256k).
4970 # Instead, let's just punt: use the minimum linelength reported by
4971 # all of the supported platforms: 8192 (on NT/2K/XP).
4972 lt_cv_sys_max_cmd_len=8192;
4975 mint*)
4976 # On MiNT this can take a long time and run out of memory.
4977 lt_cv_sys_max_cmd_len=8192;
4980 amigaos*)
4981 # On AmigaOS with pdksh, this test takes hours, literally.
4982 # So we just punt and use a minimum line length of 8192.
4983 lt_cv_sys_max_cmd_len=8192;
4986 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4987 # This has been around since 386BSD, at least. Likely further.
4988 if test -x /sbin/sysctl; then
4989 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4990 elif test -x /usr/sbin/sysctl; then
4991 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4992 else
4993 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4995 # And add a safety zone
4996 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4997 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5000 interix*)
5001 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5002 lt_cv_sys_max_cmd_len=196608
5005 os2*)
5006 # The test takes a long time on OS/2.
5007 lt_cv_sys_max_cmd_len=8192
5010 osf*)
5011 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5012 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5013 # nice to cause kernel panics so lets avoid the loop below.
5014 # First set a reasonable default.
5015 lt_cv_sys_max_cmd_len=16384
5017 if test -x /sbin/sysconfig; then
5018 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5019 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5020 esac
5023 sco3.2v5*)
5024 lt_cv_sys_max_cmd_len=102400
5026 sysv5* | sco5v6* | sysv4.2uw2*)
5027 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5028 if test -n "$kargmax"; then
5029 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5030 else
5031 lt_cv_sys_max_cmd_len=32768
5035 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5036 if test -n "$lt_cv_sys_max_cmd_len"; then
5037 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5038 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5039 else
5040 # Make teststring a little bigger before we do anything with it.
5041 # a 1K string should be a reasonable start.
5042 for i in 1 2 3 4 5 6 7 8 ; do
5043 teststring=$teststring$teststring
5044 done
5045 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5046 # If test is not a shell built-in, we'll probably end up computing a
5047 # maximum length that is only half of the actual maximum length, but
5048 # we can't tell.
5049 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5050 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5051 test $i != 17 # 1/2 MB should be enough
5053 i=`expr $i + 1`
5054 teststring=$teststring$teststring
5055 done
5056 # Only check the string length outside the loop.
5057 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5058 teststring=
5059 # Add a significant safety factor because C++ compilers can tack on
5060 # massive amounts of additional arguments before passing them to the
5061 # linker. It appears as though 1/2 is a usable value.
5062 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5065 esac
5069 if test -n $lt_cv_sys_max_cmd_len ; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5071 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5072 else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5074 $as_echo "none" >&6; }
5076 max_cmd_len=$lt_cv_sys_max_cmd_len
5083 : ${CP="cp -f"}
5084 : ${MV="mv -f"}
5085 : ${RM="rm -f"}
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5088 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5089 # Try some XSI features
5090 xsi_shell=no
5091 ( _lt_dummy="a/b/c"
5092 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5093 = c,a/b,b/c, \
5094 && eval 'test $(( 1 + 1 )) -eq 2 \
5095 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5096 && xsi_shell=yes
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5098 $as_echo "$xsi_shell" >&6; }
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5102 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5103 lt_shell_append=no
5104 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5105 >/dev/null 2>&1 \
5106 && lt_shell_append=yes
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5108 $as_echo "$lt_shell_append" >&6; }
5111 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5112 lt_unset=unset
5113 else
5114 lt_unset=false
5121 # test EBCDIC or ASCII
5122 case `echo X|tr X '\101'` in
5123 A) # ASCII based system
5124 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5125 lt_SP2NL='tr \040 \012'
5126 lt_NL2SP='tr \015\012 \040\040'
5128 *) # EBCDIC based system
5129 lt_SP2NL='tr \100 \n'
5130 lt_NL2SP='tr \r\n \100\100'
5132 esac
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5143 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5144 if ${lt_cv_to_host_file_cmd+:} false; then :
5145 $as_echo_n "(cached) " >&6
5146 else
5147 case $host in
5148 *-*-mingw* )
5149 case $build in
5150 *-*-mingw* ) # actually msys
5151 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5153 *-*-cygwin* )
5154 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5156 * ) # otherwise, assume *nix
5157 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5159 esac
5161 *-*-cygwin* )
5162 case $build in
5163 *-*-mingw* ) # actually msys
5164 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5166 *-*-cygwin* )
5167 lt_cv_to_host_file_cmd=func_convert_file_noop
5169 * ) # otherwise, assume *nix
5170 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5172 esac
5174 * ) # unhandled hosts (and "normal" native builds)
5175 lt_cv_to_host_file_cmd=func_convert_file_noop
5177 esac
5181 to_host_file_cmd=$lt_cv_to_host_file_cmd
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5183 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5190 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5191 if ${lt_cv_to_tool_file_cmd+:} false; then :
5192 $as_echo_n "(cached) " >&6
5193 else
5194 #assume ordinary cross tools, or native build.
5195 lt_cv_to_tool_file_cmd=func_convert_file_noop
5196 case $host in
5197 *-*-mingw* )
5198 case $build in
5199 *-*-mingw* ) # actually msys
5200 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5202 esac
5204 esac
5208 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5210 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5217 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5218 if ${lt_cv_ld_reload_flag+:} false; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 lt_cv_ld_reload_flag='-r'
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5224 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5225 reload_flag=$lt_cv_ld_reload_flag
5226 case $reload_flag in
5227 "" | " "*) ;;
5228 *) reload_flag=" $reload_flag" ;;
5229 esac
5230 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5231 case $host_os in
5232 cygwin* | mingw* | pw32* | cegcc*)
5233 if test "$GCC" != yes; then
5234 reload_cmds=false
5237 darwin*)
5238 if test "$GCC" = yes; then
5239 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5240 else
5241 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5244 esac
5254 if test -n "$ac_tool_prefix"; then
5255 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5256 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if ${ac_cv_prog_OBJDUMP+:} false; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 if test -n "$OBJDUMP"; then
5263 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5268 IFS=$as_save_IFS
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5272 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 break 2
5276 done
5277 done
5278 IFS=$as_save_IFS
5282 OBJDUMP=$ac_cv_prog_OBJDUMP
5283 if test -n "$OBJDUMP"; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5285 $as_echo "$OBJDUMP" >&6; }
5286 else
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5293 if test -z "$ac_cv_prog_OBJDUMP"; then
5294 ac_ct_OBJDUMP=$OBJDUMP
5295 # Extract the first word of "objdump", so it can be a program name with args.
5296 set dummy objdump; ac_word=$2
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298 $as_echo_n "checking for $ac_word... " >&6; }
5299 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 if test -n "$ac_ct_OBJDUMP"; then
5303 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5304 else
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5312 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 break 2
5316 done
5317 done
5318 IFS=$as_save_IFS
5322 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5323 if test -n "$ac_ct_OBJDUMP"; then
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5325 $as_echo "$ac_ct_OBJDUMP" >&6; }
5326 else
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328 $as_echo "no" >&6; }
5331 if test "x$ac_ct_OBJDUMP" = x; then
5332 OBJDUMP="false"
5333 else
5334 case $cross_compiling:$ac_tool_warned in
5335 yes:)
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5338 ac_tool_warned=yes ;;
5339 esac
5340 OBJDUMP=$ac_ct_OBJDUMP
5342 else
5343 OBJDUMP="$ac_cv_prog_OBJDUMP"
5346 test -z "$OBJDUMP" && OBJDUMP=objdump
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5357 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5358 if ${lt_cv_deplibs_check_method+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 lt_cv_file_magic_cmd='$MAGIC_CMD'
5362 lt_cv_file_magic_test_file=
5363 lt_cv_deplibs_check_method='unknown'
5364 # Need to set the preceding variable on all platforms that support
5365 # interlibrary dependencies.
5366 # 'none' -- dependencies not supported.
5367 # `unknown' -- same as none, but documents that we really don't know.
5368 # 'pass_all' -- all dependencies passed with no checks.
5369 # 'test_compile' -- check by making test program.
5370 # 'file_magic [[regex]]' -- check by looking for files in library path
5371 # which responds to the $file_magic_cmd with a given extended regex.
5372 # If you have `file' or equivalent on your system and you're not sure
5373 # whether `pass_all' will *always* work, you probably want this one.
5375 case $host_os in
5376 aix[4-9]*)
5377 lt_cv_deplibs_check_method=pass_all
5380 beos*)
5381 lt_cv_deplibs_check_method=pass_all
5384 bsdi[45]*)
5385 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5386 lt_cv_file_magic_cmd='/usr/bin/file -L'
5387 lt_cv_file_magic_test_file=/shlib/libc.so
5390 cygwin*)
5391 # func_win32_libid is a shell function defined in ltmain.sh
5392 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5393 lt_cv_file_magic_cmd='func_win32_libid'
5396 mingw* | pw32*)
5397 # Base MSYS/MinGW do not provide the 'file' command needed by
5398 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5399 # unless we find 'file', for example because we are cross-compiling.
5400 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5401 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5402 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5403 lt_cv_file_magic_cmd='func_win32_libid'
5404 else
5405 # Keep this pattern in sync with the one in func_win32_libid.
5406 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5407 lt_cv_file_magic_cmd='$OBJDUMP -f'
5411 cegcc*)
5412 # use the weaker test based on 'objdump'. See mingw*.
5413 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5414 lt_cv_file_magic_cmd='$OBJDUMP -f'
5417 darwin* | rhapsody*)
5418 lt_cv_deplibs_check_method=pass_all
5421 freebsd* | dragonfly*)
5422 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5423 case $host_cpu in
5424 i*86 )
5425 # Not sure whether the presence of OpenBSD here was a mistake.
5426 # Let's accept both of them until this is cleared up.
5427 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5428 lt_cv_file_magic_cmd=/usr/bin/file
5429 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5431 esac
5432 else
5433 lt_cv_deplibs_check_method=pass_all
5437 gnu*)
5438 lt_cv_deplibs_check_method=pass_all
5441 haiku*)
5442 lt_cv_deplibs_check_method=pass_all
5445 hpux10.20* | hpux11*)
5446 lt_cv_file_magic_cmd=/usr/bin/file
5447 case $host_cpu in
5448 ia64*)
5449 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5450 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5452 hppa*64*)
5453 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]'
5454 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5457 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5458 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5460 esac
5463 interix[3-9]*)
5464 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5465 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5468 irix5* | irix6* | nonstopux*)
5469 case $LD in
5470 *-32|*"-32 ") libmagic=32-bit;;
5471 *-n32|*"-n32 ") libmagic=N32;;
5472 *-64|*"-64 ") libmagic=64-bit;;
5473 *) libmagic=never-match;;
5474 esac
5475 lt_cv_deplibs_check_method=pass_all
5478 # This must be glibc/ELF.
5479 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5480 lt_cv_deplibs_check_method=pass_all
5483 netbsd* | netbsdelf*-gnu)
5484 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5485 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5486 else
5487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5491 newos6*)
5492 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5493 lt_cv_file_magic_cmd=/usr/bin/file
5494 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5497 *nto* | *qnx*)
5498 lt_cv_deplibs_check_method=pass_all
5501 openbsd*)
5502 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5503 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5504 else
5505 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5509 osf3* | osf4* | osf5*)
5510 lt_cv_deplibs_check_method=pass_all
5513 rdos*)
5514 lt_cv_deplibs_check_method=pass_all
5517 solaris*)
5518 lt_cv_deplibs_check_method=pass_all
5521 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5522 lt_cv_deplibs_check_method=pass_all
5525 sysv4 | sysv4.3*)
5526 case $host_vendor in
5527 motorola)
5528 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]'
5529 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5531 ncr)
5532 lt_cv_deplibs_check_method=pass_all
5534 sequent)
5535 lt_cv_file_magic_cmd='/bin/file'
5536 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5538 sni)
5539 lt_cv_file_magic_cmd='/bin/file'
5540 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5541 lt_cv_file_magic_test_file=/lib/libc.so
5543 siemens)
5544 lt_cv_deplibs_check_method=pass_all
5547 lt_cv_deplibs_check_method=pass_all
5549 esac
5552 tpf*)
5553 lt_cv_deplibs_check_method=pass_all
5555 esac
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5559 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5561 file_magic_glob=
5562 want_nocaseglob=no
5563 if test "$build" = "$host"; then
5564 case $host_os in
5565 mingw* | pw32*)
5566 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5567 want_nocaseglob=yes
5568 else
5569 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5572 esac
5575 file_magic_cmd=$lt_cv_file_magic_cmd
5576 deplibs_check_method=$lt_cv_deplibs_check_method
5577 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5600 if test -n "$ac_tool_prefix"; then
5601 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5602 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if ${ac_cv_prog_DLLTOOL+:} false; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 if test -n "$DLLTOOL"; then
5609 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5610 else
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5622 done
5623 done
5624 IFS=$as_save_IFS
5628 DLLTOOL=$ac_cv_prog_DLLTOOL
5629 if test -n "$DLLTOOL"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5631 $as_echo "$DLLTOOL" >&6; }
5632 else
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5639 if test -z "$ac_cv_prog_DLLTOOL"; then
5640 ac_ct_DLLTOOL=$DLLTOOL
5641 # Extract the first word of "dlltool", so it can be a program name with args.
5642 set dummy dlltool; ac_word=$2
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644 $as_echo_n "checking for $ac_word... " >&6; }
5645 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 if test -n "$ac_ct_DLLTOOL"; then
5649 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5650 else
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH
5654 IFS=$as_save_IFS
5655 test -z "$as_dir" && as_dir=.
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5658 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 break 2
5662 done
5663 done
5664 IFS=$as_save_IFS
5668 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5669 if test -n "$ac_ct_DLLTOOL"; then
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5671 $as_echo "$ac_ct_DLLTOOL" >&6; }
5672 else
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674 $as_echo "no" >&6; }
5677 if test "x$ac_ct_DLLTOOL" = x; then
5678 DLLTOOL="false"
5679 else
5680 case $cross_compiling:$ac_tool_warned in
5681 yes:)
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5684 ac_tool_warned=yes ;;
5685 esac
5686 DLLTOOL=$ac_ct_DLLTOOL
5688 else
5689 DLLTOOL="$ac_cv_prog_DLLTOOL"
5692 test -z "$DLLTOOL" && DLLTOOL=dlltool
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5704 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5705 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5706 $as_echo_n "(cached) " >&6
5707 else
5708 lt_cv_sharedlib_from_linklib_cmd='unknown'
5710 case $host_os in
5711 cygwin* | mingw* | pw32* | cegcc*)
5712 # two different shell functions defined in ltmain.sh
5713 # decide which to use based on capabilities of $DLLTOOL
5714 case `$DLLTOOL --help 2>&1` in
5715 *--identify-strict*)
5716 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5719 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5721 esac
5724 # fallback: assume linklib IS sharedlib
5725 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5727 esac
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5731 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5732 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5733 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5742 if test -n "$ac_tool_prefix"; then
5743 for ac_prog in ar
5745 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5746 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748 $as_echo_n "checking for $ac_word... " >&6; }
5749 if ${ac_cv_prog_AR+:} false; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 if test -n "$AR"; then
5753 ac_cv_prog_AR="$AR" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5758 IFS=$as_save_IFS
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5762 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 break 2
5766 done
5767 done
5768 IFS=$as_save_IFS
5772 AR=$ac_cv_prog_AR
5773 if test -n "$AR"; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5775 $as_echo "$AR" >&6; }
5776 else
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 $as_echo "no" >&6; }
5782 test -n "$AR" && break
5783 done
5785 if test -z "$AR"; then
5786 ac_ct_AR=$AR
5787 for ac_prog in ar
5789 # Extract the first word of "$ac_prog", so it can be a program name with args.
5790 set dummy $ac_prog; ac_word=$2
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5794 $as_echo_n "(cached) " >&6
5795 else
5796 if test -n "$ac_ct_AR"; then
5797 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5798 else
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5806 ac_cv_prog_ac_ct_AR="$ac_prog"
5807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 break 2
5810 done
5811 done
5812 IFS=$as_save_IFS
5816 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5817 if test -n "$ac_ct_AR"; then
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5819 $as_echo "$ac_ct_AR" >&6; }
5820 else
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5826 test -n "$ac_ct_AR" && break
5827 done
5829 if test "x$ac_ct_AR" = x; then
5830 AR="false"
5831 else
5832 case $cross_compiling:$ac_tool_warned in
5833 yes:)
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5836 ac_tool_warned=yes ;;
5837 esac
5838 AR=$ac_ct_AR
5842 : ${AR=ar}
5843 : ${AR_FLAGS=cru}
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5856 $as_echo_n "checking for archiver @FILE support... " >&6; }
5857 if ${lt_cv_ar_at_file+:} false; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 lt_cv_ar_at_file=no
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5865 main ()
5869 return 0;
5871 _ACEOF
5872 if ac_fn_c_try_compile "$LINENO"; then :
5873 echo conftest.$ac_objext > conftest.lst
5874 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5876 (eval $lt_ar_try) 2>&5
5877 ac_status=$?
5878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5879 test $ac_status = 0; }
5880 if test "$ac_status" -eq 0; then
5881 # Ensure the archiver fails upon bogus file names.
5882 rm -f conftest.$ac_objext libconftest.a
5883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5884 (eval $lt_ar_try) 2>&5
5885 ac_status=$?
5886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5887 test $ac_status = 0; }
5888 if test "$ac_status" -ne 0; then
5889 lt_cv_ar_at_file=@
5892 rm -f conftest.* libconftest.a
5895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5899 $as_echo "$lt_cv_ar_at_file" >&6; }
5901 if test "x$lt_cv_ar_at_file" = xno; then
5902 archiver_list_spec=
5903 else
5904 archiver_list_spec=$lt_cv_ar_at_file
5913 if test -n "$ac_tool_prefix"; then
5914 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5915 set dummy ${ac_tool_prefix}strip; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if ${ac_cv_prog_STRIP+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 if test -n "$STRIP"; then
5922 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5923 else
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5931 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5935 done
5936 done
5937 IFS=$as_save_IFS
5941 STRIP=$ac_cv_prog_STRIP
5942 if test -n "$STRIP"; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5944 $as_echo "$STRIP" >&6; }
5945 else
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 $as_echo "no" >&6; }
5952 if test -z "$ac_cv_prog_STRIP"; then
5953 ac_ct_STRIP=$STRIP
5954 # Extract the first word of "strip", so it can be a program name with args.
5955 set dummy strip; ac_word=$2
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957 $as_echo_n "checking for $ac_word... " >&6; }
5958 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 if test -n "$ac_ct_STRIP"; then
5962 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5967 IFS=$as_save_IFS
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5971 ac_cv_prog_ac_ct_STRIP="strip"
5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 break 2
5975 done
5976 done
5977 IFS=$as_save_IFS
5981 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5982 if test -n "$ac_ct_STRIP"; then
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5984 $as_echo "$ac_ct_STRIP" >&6; }
5985 else
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5990 if test "x$ac_ct_STRIP" = x; then
5991 STRIP=":"
5992 else
5993 case $cross_compiling:$ac_tool_warned in
5994 yes:)
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5997 ac_tool_warned=yes ;;
5998 esac
5999 STRIP=$ac_ct_STRIP
6001 else
6002 STRIP="$ac_cv_prog_STRIP"
6005 test -z "$STRIP" && STRIP=:
6012 if test -n "$ac_tool_prefix"; then
6013 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6014 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016 $as_echo_n "checking for $ac_word... " >&6; }
6017 if ${ac_cv_prog_RANLIB+:} false; then :
6018 $as_echo_n "(cached) " >&6
6019 else
6020 if test -n "$RANLIB"; then
6021 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6022 else
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6030 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6034 done
6035 done
6036 IFS=$as_save_IFS
6040 RANLIB=$ac_cv_prog_RANLIB
6041 if test -n "$RANLIB"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6043 $as_echo "$RANLIB" >&6; }
6044 else
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }
6051 if test -z "$ac_cv_prog_RANLIB"; then
6052 ac_ct_RANLIB=$RANLIB
6053 # Extract the first word of "ranlib", so it can be a program name with args.
6054 set dummy ranlib; ac_word=$2
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 if test -n "$ac_ct_RANLIB"; then
6061 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6062 else
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH
6066 IFS=$as_save_IFS
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6070 ac_cv_prog_ac_ct_RANLIB="ranlib"
6071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 break 2
6074 done
6075 done
6076 IFS=$as_save_IFS
6080 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6081 if test -n "$ac_ct_RANLIB"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6083 $as_echo "$ac_ct_RANLIB" >&6; }
6084 else
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6089 if test "x$ac_ct_RANLIB" = x; then
6090 RANLIB=":"
6091 else
6092 case $cross_compiling:$ac_tool_warned in
6093 yes:)
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096 ac_tool_warned=yes ;;
6097 esac
6098 RANLIB=$ac_ct_RANLIB
6100 else
6101 RANLIB="$ac_cv_prog_RANLIB"
6104 test -z "$RANLIB" && RANLIB=:
6111 # Determine commands to create old-style static archives.
6112 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6113 old_postinstall_cmds='chmod 644 $oldlib'
6114 old_postuninstall_cmds=
6116 if test -n "$RANLIB"; then
6117 case $host_os in
6118 openbsd*)
6119 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6122 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6124 esac
6125 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6128 case $host_os in
6129 darwin*)
6130 lock_old_archive_extraction=yes ;;
6132 lock_old_archive_extraction=no ;;
6133 esac
6173 # If no C compiler was specified, use CC.
6174 LTCC=${LTCC-"$CC"}
6176 # If no C compiler flags were specified, use CFLAGS.
6177 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6179 # Allow CC to be a program name with arguments.
6180 compiler=$CC
6183 # Check for command to grab the raw symbol name followed by C symbol from nm.
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6185 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6186 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6187 $as_echo_n "(cached) " >&6
6188 else
6190 # These are sane defaults that work on at least a few old systems.
6191 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6193 # Character class describing NM global symbol codes.
6194 symcode='[BCDEGRST]'
6196 # Regexp to match symbols that can be accessed directly from C.
6197 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6199 # Define system-specific variables.
6200 case $host_os in
6201 aix*)
6202 symcode='[BCDT]'
6204 cygwin* | mingw* | pw32* | cegcc*)
6205 symcode='[ABCDGISTW]'
6207 hpux*)
6208 if test "$host_cpu" = ia64; then
6209 symcode='[ABCDEGRST]'
6212 irix* | nonstopux*)
6213 symcode='[BCDEGRST]'
6215 osf*)
6216 symcode='[BCDEGQRST]'
6218 solaris*)
6219 symcode='[BDRT]'
6221 sco3.2v5*)
6222 symcode='[DT]'
6224 sysv4.2uw2*)
6225 symcode='[DT]'
6227 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6228 symcode='[ABDT]'
6230 sysv4)
6231 symcode='[DFNSTU]'
6233 esac
6235 # If we're using GNU nm, then use its standard symbol codes.
6236 case `$NM -V 2>&1` in
6237 *GNU* | *'with BFD'*)
6238 symcode='[ABCDGIRSTW]' ;;
6239 esac
6241 # Transform an extracted symbol line into a proper C declaration.
6242 # Some systems (esp. on ia64) link data and code symbols differently,
6243 # so use this general approach.
6244 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6246 # Transform an extracted symbol line into symbol name and symbol address
6247 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6248 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'"
6250 # Handle CRLF in mingw tool chain
6251 opt_cr=
6252 case $build_os in
6253 mingw*)
6254 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6256 esac
6258 # Try without a prefix underscore, then with it.
6259 for ac_symprfx in "" "_"; do
6261 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6262 symxfrm="\\1 $ac_symprfx\\2 \\2"
6264 # Write the raw and C identifiers.
6265 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6266 # Fake it for dumpbin and say T for any non-static function
6267 # and D for any global variable.
6268 # Also find C++ and __fastcall symbols from MSVC++,
6269 # which start with @ or ?.
6270 lt_cv_sys_global_symbol_pipe="$AWK '"\
6271 " {last_section=section; section=\$ 3};"\
6272 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6273 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6274 " \$ 0!~/External *\|/{next};"\
6275 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6276 " {if(hide[section]) next};"\
6277 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6278 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6279 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6280 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6281 " ' prfx=^$ac_symprfx"
6282 else
6283 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6285 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6287 # Check to see that the pipe works correctly.
6288 pipe_works=no
6290 rm -f conftest*
6291 cat > conftest.$ac_ext <<_LT_EOF
6292 #ifdef __cplusplus
6293 extern "C" {
6294 #endif
6295 char nm_test_var;
6296 void nm_test_func(void);
6297 void nm_test_func(void){}
6298 #ifdef __cplusplus
6300 #endif
6301 int main(){nm_test_var='a';nm_test_func();return(0);}
6302 _LT_EOF
6304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6305 (eval $ac_compile) 2>&5
6306 ac_status=$?
6307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6308 test $ac_status = 0; }; then
6309 # Now try to grab the symbols.
6310 nlist=conftest.nm
6311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6312 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6313 ac_status=$?
6314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6315 test $ac_status = 0; } && test -s "$nlist"; then
6316 # Try sorting and uniquifying the output.
6317 if sort "$nlist" | uniq > "$nlist"T; then
6318 mv -f "$nlist"T "$nlist"
6319 else
6320 rm -f "$nlist"T
6323 # Make sure that we snagged all the symbols we need.
6324 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6325 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6326 cat <<_LT_EOF > conftest.$ac_ext
6327 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6328 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6329 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6330 relocations are performed -- see ld's documentation on pseudo-relocs. */
6331 # define LT_DLSYM_CONST
6332 #elif defined(__osf__)
6333 /* This system does not cope well with relocations in const data. */
6334 # define LT_DLSYM_CONST
6335 #else
6336 # define LT_DLSYM_CONST const
6337 #endif
6339 #ifdef __cplusplus
6340 extern "C" {
6341 #endif
6343 _LT_EOF
6344 # Now generate the symbol file.
6345 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6347 cat <<_LT_EOF >> conftest.$ac_ext
6349 /* The mapping between symbol names and symbols. */
6350 LT_DLSYM_CONST struct {
6351 const char *name;
6352 void *address;
6354 lt__PROGRAM__LTX_preloaded_symbols[] =
6356 { "@PROGRAM@", (void *) 0 },
6357 _LT_EOF
6358 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6359 cat <<\_LT_EOF >> conftest.$ac_ext
6360 {0, (void *) 0}
6363 /* This works around a problem in FreeBSD linker */
6364 #ifdef FREEBSD_WORKAROUND
6365 static const void *lt_preloaded_setup() {
6366 return lt__PROGRAM__LTX_preloaded_symbols;
6368 #endif
6370 #ifdef __cplusplus
6372 #endif
6373 _LT_EOF
6374 # Now try linking the two files.
6375 mv conftest.$ac_objext conftstm.$ac_objext
6376 lt_globsym_save_LIBS=$LIBS
6377 lt_globsym_save_CFLAGS=$CFLAGS
6378 LIBS="conftstm.$ac_objext"
6379 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6381 (eval $ac_link) 2>&5
6382 ac_status=$?
6383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6384 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6385 pipe_works=yes
6387 LIBS=$lt_globsym_save_LIBS
6388 CFLAGS=$lt_globsym_save_CFLAGS
6389 else
6390 echo "cannot find nm_test_func in $nlist" >&5
6392 else
6393 echo "cannot find nm_test_var in $nlist" >&5
6395 else
6396 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6398 else
6399 echo "$progname: failed program was:" >&5
6400 cat conftest.$ac_ext >&5
6402 rm -rf conftest* conftst*
6404 # Do not use the global_symbol_pipe unless it works.
6405 if test "$pipe_works" = yes; then
6406 break
6407 else
6408 lt_cv_sys_global_symbol_pipe=
6410 done
6414 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6415 lt_cv_sys_global_symbol_to_cdecl=
6417 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6419 $as_echo "failed" >&6; }
6420 else
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6422 $as_echo "ok" >&6; }
6425 # Response file support.
6426 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6427 nm_file_list_spec='@'
6428 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6429 nm_file_list_spec='@'
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6459 $as_echo_n "checking for sysroot... " >&6; }
6461 # Check whether --with-sysroot was given.
6462 if test "${with_sysroot+set}" = set; then :
6463 withval=$with_sysroot;
6464 else
6465 with_sysroot=no
6469 lt_sysroot=
6470 case ${with_sysroot} in #(
6471 yes)
6472 if test "$GCC" = yes; then
6473 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6475 ;; #(
6477 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6478 ;; #(
6479 no|'')
6480 ;; #(
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6483 $as_echo "${with_sysroot}" >&6; }
6484 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6486 esac
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6489 $as_echo "${lt_sysroot:-no}" >&6; }
6495 # Check whether --enable-libtool-lock was given.
6496 if test "${enable_libtool_lock+set}" = set; then :
6497 enableval=$enable_libtool_lock;
6500 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6502 # Some flags need to be propagated to the compiler or linker for good
6503 # libtool support.
6504 case $host in
6505 ia64-*-hpux*)
6506 # Find out which ABI we are using.
6507 echo 'int i;' > conftest.$ac_ext
6508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6509 (eval $ac_compile) 2>&5
6510 ac_status=$?
6511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6512 test $ac_status = 0; }; then
6513 case `/usr/bin/file conftest.$ac_objext` in
6514 *ELF-32*)
6515 HPUX_IA64_MODE="32"
6517 *ELF-64*)
6518 HPUX_IA64_MODE="64"
6520 esac
6522 rm -rf conftest*
6524 *-*-irix6*)
6525 # Find out which ABI we are using.
6526 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6528 (eval $ac_compile) 2>&5
6529 ac_status=$?
6530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6531 test $ac_status = 0; }; then
6532 if test "$lt_cv_prog_gnu_ld" = yes; then
6533 case `/usr/bin/file conftest.$ac_objext` in
6534 *32-bit*)
6535 LD="${LD-ld} -melf32bsmip"
6537 *N32*)
6538 LD="${LD-ld} -melf32bmipn32"
6540 *64-bit*)
6541 LD="${LD-ld} -melf64bmip"
6543 esac
6544 else
6545 case `/usr/bin/file conftest.$ac_objext` in
6546 *32-bit*)
6547 LD="${LD-ld} -32"
6549 *N32*)
6550 LD="${LD-ld} -n32"
6552 *64-bit*)
6553 LD="${LD-ld} -64"
6555 esac
6558 rm -rf conftest*
6561 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6562 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6563 # Find out which ABI we are using.
6564 echo 'int i;' > conftest.$ac_ext
6565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6566 (eval $ac_compile) 2>&5
6567 ac_status=$?
6568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6569 test $ac_status = 0; }; then
6570 case `/usr/bin/file conftest.o` in
6571 *32-bit*)
6572 case $host in
6573 x86_64-*kfreebsd*-gnu)
6574 LD="${LD-ld} -m elf_i386_fbsd"
6576 x86_64-*linux*)
6577 LD="${LD-ld} -m elf_i386"
6579 ppc64-*linux*|powerpc64-*linux*)
6580 LD="${LD-ld} -m elf32ppclinux"
6582 s390x-*linux*)
6583 LD="${LD-ld} -m elf_s390"
6585 sparc64-*linux*)
6586 LD="${LD-ld} -m elf32_sparc"
6588 esac
6590 *64-bit*)
6591 case $host in
6592 x86_64-*kfreebsd*-gnu)
6593 LD="${LD-ld} -m elf_x86_64_fbsd"
6595 x86_64-*linux*)
6596 LD="${LD-ld} -m elf_x86_64"
6598 ppc*-*linux*|powerpc*-*linux*)
6599 LD="${LD-ld} -m elf64ppc"
6601 s390*-*linux*|s390*-*tpf*)
6602 LD="${LD-ld} -m elf64_s390"
6604 sparc*-*linux*)
6605 LD="${LD-ld} -m elf64_sparc"
6607 esac
6609 esac
6611 rm -rf conftest*
6614 *-*-sco3.2v5*)
6615 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6616 SAVE_CFLAGS="$CFLAGS"
6617 CFLAGS="$CFLAGS -belf"
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6619 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6620 if ${lt_cv_cc_needs_belf+:} false; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 ac_ext=c
6624 ac_cpp='$CPP $CPPFLAGS'
6625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6633 main ()
6637 return 0;
6639 _ACEOF
6640 if ac_fn_c_try_link "$LINENO"; then :
6641 lt_cv_cc_needs_belf=yes
6642 else
6643 lt_cv_cc_needs_belf=no
6645 rm -f core conftest.err conftest.$ac_objext \
6646 conftest$ac_exeext conftest.$ac_ext
6647 ac_ext=c
6648 ac_cpp='$CPP $CPPFLAGS'
6649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6655 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6656 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6657 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6658 CFLAGS="$SAVE_CFLAGS"
6661 *-*solaris*)
6662 # Find out which ABI we are using.
6663 echo 'int i;' > conftest.$ac_ext
6664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6665 (eval $ac_compile) 2>&5
6666 ac_status=$?
6667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6668 test $ac_status = 0; }; then
6669 case `/usr/bin/file conftest.o` in
6670 *64-bit*)
6671 case $lt_cv_prog_gnu_ld in
6672 yes*)
6673 case $host in
6674 i?86-*-solaris*)
6675 LD="${LD-ld} -m elf_x86_64"
6677 sparc*-*-solaris*)
6678 LD="${LD-ld} -m elf64_sparc"
6680 esac
6681 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6682 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6683 LD="${LD-ld}_sol2"
6687 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6688 LD="${LD-ld} -64"
6691 esac
6693 esac
6695 rm -rf conftest*
6697 esac
6699 need_locks="$enable_libtool_lock"
6701 if test -n "$ac_tool_prefix"; then
6702 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6703 set dummy ${ac_tool_prefix}mt; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6707 $as_echo_n "(cached) " >&6
6708 else
6709 if test -n "$MANIFEST_TOOL"; then
6710 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6711 else
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH
6715 IFS=$as_save_IFS
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6719 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 break 2
6723 done
6724 done
6725 IFS=$as_save_IFS
6729 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6730 if test -n "$MANIFEST_TOOL"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6732 $as_echo "$MANIFEST_TOOL" >&6; }
6733 else
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6740 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6741 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6742 # Extract the first word of "mt", so it can be a program name with args.
6743 set dummy mt; ac_word=$2
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6745 $as_echo_n "checking for $ac_word... " >&6; }
6746 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6747 $as_echo_n "(cached) " >&6
6748 else
6749 if test -n "$ac_ct_MANIFEST_TOOL"; then
6750 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6751 else
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6759 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 break 2
6763 done
6764 done
6765 IFS=$as_save_IFS
6769 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6770 if test -n "$ac_ct_MANIFEST_TOOL"; then
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6772 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6773 else
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6775 $as_echo "no" >&6; }
6778 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6779 MANIFEST_TOOL=":"
6780 else
6781 case $cross_compiling:$ac_tool_warned in
6782 yes:)
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6785 ac_tool_warned=yes ;;
6786 esac
6787 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6789 else
6790 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6793 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6795 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6796 if ${lt_cv_path_mainfest_tool+:} false; then :
6797 $as_echo_n "(cached) " >&6
6798 else
6799 lt_cv_path_mainfest_tool=no
6800 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6801 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6802 cat conftest.err >&5
6803 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6804 lt_cv_path_mainfest_tool=yes
6806 rm -f conftest*
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6809 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6810 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6811 MANIFEST_TOOL=:
6819 case $host_os in
6820 rhapsody* | darwin*)
6821 if test -n "$ac_tool_prefix"; then
6822 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6823 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 if test -n "$DSYMUTIL"; then
6830 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6843 done
6844 done
6845 IFS=$as_save_IFS
6849 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6850 if test -n "$DSYMUTIL"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6852 $as_echo "$DSYMUTIL" >&6; }
6853 else
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6860 if test -z "$ac_cv_prog_DSYMUTIL"; then
6861 ac_ct_DSYMUTIL=$DSYMUTIL
6862 # Extract the first word of "dsymutil", so it can be a program name with args.
6863 set dummy dsymutil; ac_word=$2
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865 $as_echo_n "checking for $ac_word... " >&6; }
6866 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6867 $as_echo_n "(cached) " >&6
6868 else
6869 if test -n "$ac_ct_DSYMUTIL"; then
6870 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6871 else
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6875 IFS=$as_save_IFS
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6879 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 break 2
6883 done
6884 done
6885 IFS=$as_save_IFS
6889 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6890 if test -n "$ac_ct_DSYMUTIL"; then
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6892 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6893 else
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 $as_echo "no" >&6; }
6898 if test "x$ac_ct_DSYMUTIL" = x; then
6899 DSYMUTIL=":"
6900 else
6901 case $cross_compiling:$ac_tool_warned in
6902 yes:)
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6905 ac_tool_warned=yes ;;
6906 esac
6907 DSYMUTIL=$ac_ct_DSYMUTIL
6909 else
6910 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6913 if test -n "$ac_tool_prefix"; then
6914 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6915 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if ${ac_cv_prog_NMEDIT+:} false; then :
6919 $as_echo_n "(cached) " >&6
6920 else
6921 if test -n "$NMEDIT"; then
6922 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6923 else
6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 for as_dir in $PATH
6927 IFS=$as_save_IFS
6928 test -z "$as_dir" && as_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6931 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6933 break 2
6935 done
6936 done
6937 IFS=$as_save_IFS
6941 NMEDIT=$ac_cv_prog_NMEDIT
6942 if test -n "$NMEDIT"; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6944 $as_echo "$NMEDIT" >&6; }
6945 else
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 $as_echo "no" >&6; }
6952 if test -z "$ac_cv_prog_NMEDIT"; then
6953 ac_ct_NMEDIT=$NMEDIT
6954 # Extract the first word of "nmedit", so it can be a program name with args.
6955 set dummy nmedit; ac_word=$2
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6957 $as_echo_n "checking for $ac_word... " >&6; }
6958 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6959 $as_echo_n "(cached) " >&6
6960 else
6961 if test -n "$ac_ct_NMEDIT"; then
6962 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6963 else
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 for as_dir in $PATH
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6971 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 break 2
6975 done
6976 done
6977 IFS=$as_save_IFS
6981 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6982 if test -n "$ac_ct_NMEDIT"; then
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6984 $as_echo "$ac_ct_NMEDIT" >&6; }
6985 else
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6987 $as_echo "no" >&6; }
6990 if test "x$ac_ct_NMEDIT" = x; then
6991 NMEDIT=":"
6992 else
6993 case $cross_compiling:$ac_tool_warned in
6994 yes:)
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6997 ac_tool_warned=yes ;;
6998 esac
6999 NMEDIT=$ac_ct_NMEDIT
7001 else
7002 NMEDIT="$ac_cv_prog_NMEDIT"
7005 if test -n "$ac_tool_prefix"; then
7006 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7007 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009 $as_echo_n "checking for $ac_word... " >&6; }
7010 if ${ac_cv_prog_LIPO+:} false; then :
7011 $as_echo_n "(cached) " >&6
7012 else
7013 if test -n "$LIPO"; then
7014 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7015 else
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7023 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7027 done
7028 done
7029 IFS=$as_save_IFS
7033 LIPO=$ac_cv_prog_LIPO
7034 if test -n "$LIPO"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7036 $as_echo "$LIPO" >&6; }
7037 else
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 $as_echo "no" >&6; }
7044 if test -z "$ac_cv_prog_LIPO"; then
7045 ac_ct_LIPO=$LIPO
7046 # Extract the first word of "lipo", so it can be a program name with args.
7047 set dummy lipo; ac_word=$2
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049 $as_echo_n "checking for $ac_word... " >&6; }
7050 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7051 $as_echo_n "(cached) " >&6
7052 else
7053 if test -n "$ac_ct_LIPO"; then
7054 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7055 else
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7063 ac_cv_prog_ac_ct_LIPO="lipo"
7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 break 2
7067 done
7068 done
7069 IFS=$as_save_IFS
7073 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7074 if test -n "$ac_ct_LIPO"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7076 $as_echo "$ac_ct_LIPO" >&6; }
7077 else
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 $as_echo "no" >&6; }
7082 if test "x$ac_ct_LIPO" = x; then
7083 LIPO=":"
7084 else
7085 case $cross_compiling:$ac_tool_warned in
7086 yes:)
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7089 ac_tool_warned=yes ;;
7090 esac
7091 LIPO=$ac_ct_LIPO
7093 else
7094 LIPO="$ac_cv_prog_LIPO"
7097 if test -n "$ac_tool_prefix"; then
7098 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7099 set dummy ${ac_tool_prefix}otool; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if ${ac_cv_prog_OTOOL+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 if test -n "$OTOOL"; then
7106 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7107 else
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7115 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7119 done
7120 done
7121 IFS=$as_save_IFS
7125 OTOOL=$ac_cv_prog_OTOOL
7126 if test -n "$OTOOL"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7128 $as_echo "$OTOOL" >&6; }
7129 else
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7136 if test -z "$ac_cv_prog_OTOOL"; then
7137 ac_ct_OTOOL=$OTOOL
7138 # Extract the first word of "otool", so it can be a program name with args.
7139 set dummy otool; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7143 $as_echo_n "(cached) " >&6
7144 else
7145 if test -n "$ac_ct_OTOOL"; then
7146 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7147 else
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_prog_ac_ct_OTOOL="otool"
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 break 2
7159 done
7160 done
7161 IFS=$as_save_IFS
7165 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7166 if test -n "$ac_ct_OTOOL"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7168 $as_echo "$ac_ct_OTOOL" >&6; }
7169 else
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7174 if test "x$ac_ct_OTOOL" = x; then
7175 OTOOL=":"
7176 else
7177 case $cross_compiling:$ac_tool_warned in
7178 yes:)
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7181 ac_tool_warned=yes ;;
7182 esac
7183 OTOOL=$ac_ct_OTOOL
7185 else
7186 OTOOL="$ac_cv_prog_OTOOL"
7189 if test -n "$ac_tool_prefix"; then
7190 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7191 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7193 $as_echo_n "checking for $ac_word... " >&6; }
7194 if ${ac_cv_prog_OTOOL64+:} false; then :
7195 $as_echo_n "(cached) " >&6
7196 else
7197 if test -n "$OTOOL64"; then
7198 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7199 else
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7207 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 break 2
7211 done
7212 done
7213 IFS=$as_save_IFS
7217 OTOOL64=$ac_cv_prog_OTOOL64
7218 if test -n "$OTOOL64"; then
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7220 $as_echo "$OTOOL64" >&6; }
7221 else
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7223 $as_echo "no" >&6; }
7228 if test -z "$ac_cv_prog_OTOOL64"; then
7229 ac_ct_OTOOL64=$OTOOL64
7230 # Extract the first word of "otool64", so it can be a program name with args.
7231 set dummy otool64; ac_word=$2
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7233 $as_echo_n "checking for $ac_word... " >&6; }
7234 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7235 $as_echo_n "(cached) " >&6
7236 else
7237 if test -n "$ac_ct_OTOOL64"; then
7238 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7239 else
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 ac_cv_prog_ac_ct_OTOOL64="otool64"
7248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 break 2
7251 done
7252 done
7253 IFS=$as_save_IFS
7257 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7258 if test -n "$ac_ct_OTOOL64"; then
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7260 $as_echo "$ac_ct_OTOOL64" >&6; }
7261 else
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263 $as_echo "no" >&6; }
7266 if test "x$ac_ct_OTOOL64" = x; then
7267 OTOOL64=":"
7268 else
7269 case $cross_compiling:$ac_tool_warned in
7270 yes:)
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7273 ac_tool_warned=yes ;;
7274 esac
7275 OTOOL64=$ac_ct_OTOOL64
7277 else
7278 OTOOL64="$ac_cv_prog_OTOOL64"
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7308 $as_echo_n "checking for -single_module linker flag... " >&6; }
7309 if ${lt_cv_apple_cc_single_mod+:} false; then :
7310 $as_echo_n "(cached) " >&6
7311 else
7312 lt_cv_apple_cc_single_mod=no
7313 if test -z "${LT_MULTI_MODULE}"; then
7314 # By default we will add the -single_module flag. You can override
7315 # by either setting the environment variable LT_MULTI_MODULE
7316 # non-empty at configure time, or by adding -multi_module to the
7317 # link flags.
7318 rm -rf libconftest.dylib*
7319 echo "int foo(void){return 1;}" > conftest.c
7320 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7321 -dynamiclib -Wl,-single_module conftest.c" >&5
7322 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7323 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7324 _lt_result=$?
7325 # If there is a non-empty error log, and "single_module"
7326 # appears in it, assume the flag caused a linker warning
7327 if test -s conftest.err && $GREP single_module conftest.err; then
7328 cat conftest.err >&5
7329 # Otherwise, if the output was created with a 0 exit code from
7330 # the compiler, it worked.
7331 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7332 lt_cv_apple_cc_single_mod=yes
7333 else
7334 cat conftest.err >&5
7336 rm -rf libconftest.dylib*
7337 rm -f conftest.*
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7341 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7344 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7345 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7346 $as_echo_n "(cached) " >&6
7347 else
7348 lt_cv_ld_exported_symbols_list=no
7349 save_LDFLAGS=$LDFLAGS
7350 echo "_main" > conftest.sym
7351 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7356 main ()
7360 return 0;
7362 _ACEOF
7363 if ac_fn_c_try_link "$LINENO"; then :
7364 lt_cv_ld_exported_symbols_list=yes
7365 else
7366 lt_cv_ld_exported_symbols_list=no
7368 rm -f core conftest.err conftest.$ac_objext \
7369 conftest$ac_exeext conftest.$ac_ext
7370 LDFLAGS="$save_LDFLAGS"
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7374 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7377 $as_echo_n "checking for -force_load linker flag... " >&6; }
7378 if ${lt_cv_ld_force_load+:} false; then :
7379 $as_echo_n "(cached) " >&6
7380 else
7381 lt_cv_ld_force_load=no
7382 cat > conftest.c << _LT_EOF
7383 int forced_loaded() { return 2;}
7384 _LT_EOF
7385 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7386 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7387 echo "$AR cru libconftest.a conftest.o" >&5
7388 $AR cru libconftest.a conftest.o 2>&5
7389 echo "$RANLIB libconftest.a" >&5
7390 $RANLIB libconftest.a 2>&5
7391 cat > conftest.c << _LT_EOF
7392 int main() { return 0;}
7393 _LT_EOF
7394 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7395 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7396 _lt_result=$?
7397 if test -s conftest.err && $GREP force_load conftest.err; then
7398 cat conftest.err >&5
7399 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7400 lt_cv_ld_force_load=yes
7401 else
7402 cat conftest.err >&5
7404 rm -f conftest.err libconftest.a conftest conftest.c
7405 rm -rf conftest.dSYM
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7409 $as_echo "$lt_cv_ld_force_load" >&6; }
7410 case $host_os in
7411 rhapsody* | darwin1.[012])
7412 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7413 darwin1.*)
7414 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7415 darwin*) # darwin 5.x on
7416 # if running on 10.5 or later, the deployment target defaults
7417 # to the OS version, if on x86, and 10.4, the deployment
7418 # target defaults to 10.4. Don't you love it?
7419 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7420 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7421 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7422 10.[012]*)
7423 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7424 10.*)
7425 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7426 esac
7428 esac
7429 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7430 _lt_dar_single_mod='$single_module'
7432 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7433 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7434 else
7435 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7437 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7438 _lt_dsymutil='~$DSYMUTIL $lib || :'
7439 else
7440 _lt_dsymutil=
7443 esac
7445 ac_ext=c
7446 ac_cpp='$CPP $CPPFLAGS'
7447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7451 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7452 # On Suns, sometimes $CPP names a directory.
7453 if test -n "$CPP" && test -d "$CPP"; then
7454 CPP=
7456 if test -z "$CPP"; then
7457 if ${ac_cv_prog_CPP+:} false; then :
7458 $as_echo_n "(cached) " >&6
7459 else
7460 # Double quotes because CPP needs to be expanded
7461 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7463 ac_preproc_ok=false
7464 for ac_c_preproc_warn_flag in '' yes
7466 # Use a header file that comes with gcc, so configuring glibc
7467 # with a fresh cross-compiler works.
7468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7469 # <limits.h> exists even on freestanding compilers.
7470 # On the NeXT, cc -E runs the code through the compiler's parser,
7471 # not just through cpp. "Syntax error" is here to catch this case.
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7474 #ifdef __STDC__
7475 # include <limits.h>
7476 #else
7477 # include <assert.h>
7478 #endif
7479 Syntax error
7480 _ACEOF
7481 if ac_fn_c_try_cpp "$LINENO"; then :
7483 else
7484 # Broken: fails on valid input.
7485 continue
7487 rm -f conftest.err conftest.i conftest.$ac_ext
7489 # OK, works on sane cases. Now check whether nonexistent headers
7490 # can be detected and how.
7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492 /* end confdefs.h. */
7493 #include <ac_nonexistent.h>
7494 _ACEOF
7495 if ac_fn_c_try_cpp "$LINENO"; then :
7496 # Broken: success on invalid input.
7497 continue
7498 else
7499 # Passes both tests.
7500 ac_preproc_ok=:
7501 break
7503 rm -f conftest.err conftest.i conftest.$ac_ext
7505 done
7506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7507 rm -f conftest.i conftest.err conftest.$ac_ext
7508 if $ac_preproc_ok; then :
7509 break
7512 done
7513 ac_cv_prog_CPP=$CPP
7516 CPP=$ac_cv_prog_CPP
7517 else
7518 ac_cv_prog_CPP=$CPP
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7521 $as_echo "$CPP" >&6; }
7522 ac_preproc_ok=false
7523 for ac_c_preproc_warn_flag in '' yes
7525 # Use a header file that comes with gcc, so configuring glibc
7526 # with a fresh cross-compiler works.
7527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7528 # <limits.h> exists even on freestanding compilers.
7529 # On the NeXT, cc -E runs the code through the compiler's parser,
7530 # not just through cpp. "Syntax error" is here to catch this case.
7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7533 #ifdef __STDC__
7534 # include <limits.h>
7535 #else
7536 # include <assert.h>
7537 #endif
7538 Syntax error
7539 _ACEOF
7540 if ac_fn_c_try_cpp "$LINENO"; then :
7542 else
7543 # Broken: fails on valid input.
7544 continue
7546 rm -f conftest.err conftest.i conftest.$ac_ext
7548 # OK, works on sane cases. Now check whether nonexistent headers
7549 # can be detected and how.
7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h. */
7552 #include <ac_nonexistent.h>
7553 _ACEOF
7554 if ac_fn_c_try_cpp "$LINENO"; then :
7555 # Broken: success on invalid input.
7556 continue
7557 else
7558 # Passes both tests.
7559 ac_preproc_ok=:
7560 break
7562 rm -f conftest.err conftest.i conftest.$ac_ext
7564 done
7565 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7566 rm -f conftest.i conftest.err conftest.$ac_ext
7567 if $ac_preproc_ok; then :
7569 else
7570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7572 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7573 See \`config.log' for more details" "$LINENO" 5; }
7576 ac_ext=c
7577 ac_cpp='$CPP $CPPFLAGS'
7578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7584 $as_echo_n "checking for ANSI C header files... " >&6; }
7585 if ${ac_cv_header_stdc+:} false; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7590 #include <stdlib.h>
7591 #include <stdarg.h>
7592 #include <string.h>
7593 #include <float.h>
7596 main ()
7600 return 0;
7602 _ACEOF
7603 if ac_fn_c_try_compile "$LINENO"; then :
7604 ac_cv_header_stdc=yes
7605 else
7606 ac_cv_header_stdc=no
7608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610 if test $ac_cv_header_stdc = yes; then
7611 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613 /* end confdefs.h. */
7614 #include <string.h>
7616 _ACEOF
7617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7618 $EGREP "memchr" >/dev/null 2>&1; then :
7620 else
7621 ac_cv_header_stdc=no
7623 rm -f conftest*
7627 if test $ac_cv_header_stdc = yes; then
7628 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630 /* end confdefs.h. */
7631 #include <stdlib.h>
7633 _ACEOF
7634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7635 $EGREP "free" >/dev/null 2>&1; then :
7637 else
7638 ac_cv_header_stdc=no
7640 rm -f conftest*
7644 if test $ac_cv_header_stdc = yes; then
7645 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7646 if test "$cross_compiling" = yes; then :
7648 else
7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650 /* end confdefs.h. */
7651 #include <ctype.h>
7652 #include <stdlib.h>
7653 #if ((' ' & 0x0FF) == 0x020)
7654 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7655 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7656 #else
7657 # define ISLOWER(c) \
7658 (('a' <= (c) && (c) <= 'i') \
7659 || ('j' <= (c) && (c) <= 'r') \
7660 || ('s' <= (c) && (c) <= 'z'))
7661 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7662 #endif
7664 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7666 main ()
7668 int i;
7669 for (i = 0; i < 256; i++)
7670 if (XOR (islower (i), ISLOWER (i))
7671 || toupper (i) != TOUPPER (i))
7672 return 2;
7673 return 0;
7675 _ACEOF
7676 if ac_fn_c_try_run "$LINENO"; then :
7678 else
7679 ac_cv_header_stdc=no
7681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7682 conftest.$ac_objext conftest.beam conftest.$ac_ext
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7688 $as_echo "$ac_cv_header_stdc" >&6; }
7689 if test $ac_cv_header_stdc = yes; then
7691 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7695 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7696 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7697 inttypes.h stdint.h unistd.h
7698 do :
7699 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7700 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7702 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7703 cat >>confdefs.h <<_ACEOF
7704 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7705 _ACEOF
7709 done
7712 for ac_header in dlfcn.h
7713 do :
7714 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7716 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7717 cat >>confdefs.h <<_ACEOF
7718 #define HAVE_DLFCN_H 1
7719 _ACEOF
7723 done
7729 # Set options
7733 enable_dlopen=no
7736 enable_win32_dll=no
7739 # Check whether --enable-shared was given.
7740 if test "${enable_shared+set}" = set; then :
7741 enableval=$enable_shared; p=${PACKAGE-default}
7742 case $enableval in
7743 yes) enable_shared=yes ;;
7744 no) enable_shared=no ;;
7746 enable_shared=no
7747 # Look at the argument we got. We use all the common list separators.
7748 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7749 for pkg in $enableval; do
7750 IFS="$lt_save_ifs"
7751 if test "X$pkg" = "X$p"; then
7752 enable_shared=yes
7754 done
7755 IFS="$lt_save_ifs"
7757 esac
7758 else
7759 enable_shared=yes
7770 # Check whether --enable-static was given.
7771 if test "${enable_static+set}" = set; then :
7772 enableval=$enable_static; p=${PACKAGE-default}
7773 case $enableval in
7774 yes) enable_static=yes ;;
7775 no) enable_static=no ;;
7777 enable_static=no
7778 # Look at the argument we got. We use all the common list separators.
7779 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7780 for pkg in $enableval; do
7781 IFS="$lt_save_ifs"
7782 if test "X$pkg" = "X$p"; then
7783 enable_static=yes
7785 done
7786 IFS="$lt_save_ifs"
7788 esac
7789 else
7790 enable_static=yes
7802 # Check whether --with-pic was given.
7803 if test "${with_pic+set}" = set; then :
7804 withval=$with_pic; lt_p=${PACKAGE-default}
7805 case $withval in
7806 yes|no) pic_mode=$withval ;;
7808 pic_mode=default
7809 # Look at the argument we got. We use all the common list separators.
7810 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7811 for lt_pkg in $withval; do
7812 IFS="$lt_save_ifs"
7813 if test "X$lt_pkg" = "X$lt_p"; then
7814 pic_mode=yes
7816 done
7817 IFS="$lt_save_ifs"
7819 esac
7820 else
7821 pic_mode=default
7825 test -z "$pic_mode" && pic_mode=default
7833 # Check whether --enable-fast-install was given.
7834 if test "${enable_fast_install+set}" = set; then :
7835 enableval=$enable_fast_install; p=${PACKAGE-default}
7836 case $enableval in
7837 yes) enable_fast_install=yes ;;
7838 no) enable_fast_install=no ;;
7840 enable_fast_install=no
7841 # Look at the argument we got. We use all the common list separators.
7842 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7843 for pkg in $enableval; do
7844 IFS="$lt_save_ifs"
7845 if test "X$pkg" = "X$p"; then
7846 enable_fast_install=yes
7848 done
7849 IFS="$lt_save_ifs"
7851 esac
7852 else
7853 enable_fast_install=yes
7866 # This can be used to rebuild libtool when needed
7867 LIBTOOL_DEPS="$ltmain"
7869 # Always use our own libtool.
7870 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7901 test -z "$LN_S" && LN_S="ln -s"
7916 if test -n "${ZSH_VERSION+set}" ; then
7917 setopt NO_GLOB_SUBST
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7921 $as_echo_n "checking for objdir... " >&6; }
7922 if ${lt_cv_objdir+:} false; then :
7923 $as_echo_n "(cached) " >&6
7924 else
7925 rm -f .libs 2>/dev/null
7926 mkdir .libs 2>/dev/null
7927 if test -d .libs; then
7928 lt_cv_objdir=.libs
7929 else
7930 # MS-DOS does not allow filenames that begin with a dot.
7931 lt_cv_objdir=_libs
7933 rmdir .libs 2>/dev/null
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7936 $as_echo "$lt_cv_objdir" >&6; }
7937 objdir=$lt_cv_objdir
7943 cat >>confdefs.h <<_ACEOF
7944 #define LT_OBJDIR "$lt_cv_objdir/"
7945 _ACEOF
7950 case $host_os in
7951 aix3*)
7952 # AIX sometimes has problems with the GCC collect2 program. For some
7953 # reason, if we set the COLLECT_NAMES environment variable, the problems
7954 # vanish in a puff of smoke.
7955 if test "X${COLLECT_NAMES+set}" != Xset; then
7956 COLLECT_NAMES=
7957 export COLLECT_NAMES
7960 esac
7962 # Global variables:
7963 ofile=libtool
7964 can_build_shared=yes
7966 # All known linkers require a `.a' archive for static linking (except MSVC,
7967 # which needs '.lib').
7968 libext=a
7970 with_gnu_ld="$lt_cv_prog_gnu_ld"
7972 old_CC="$CC"
7973 old_CFLAGS="$CFLAGS"
7975 # Set sane defaults for various variables
7976 test -z "$CC" && CC=cc
7977 test -z "$LTCC" && LTCC=$CC
7978 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7979 test -z "$LD" && LD=ld
7980 test -z "$ac_objext" && ac_objext=o
7982 for cc_temp in $compiler""; do
7983 case $cc_temp in
7984 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7985 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7986 \-*) ;;
7987 *) break;;
7988 esac
7989 done
7990 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7993 # Only perform the check for file, if the check method requires it
7994 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7995 case $deplibs_check_method in
7996 file_magic*)
7997 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7999 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8000 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8001 $as_echo_n "(cached) " >&6
8002 else
8003 case $MAGIC_CMD in
8004 [\\/*] | ?:[\\/]*)
8005 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8008 lt_save_MAGIC_CMD="$MAGIC_CMD"
8009 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8010 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8011 for ac_dir in $ac_dummy; do
8012 IFS="$lt_save_ifs"
8013 test -z "$ac_dir" && ac_dir=.
8014 if test -f $ac_dir/${ac_tool_prefix}file; then
8015 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8016 if test -n "$file_magic_test_file"; then
8017 case $deplibs_check_method in
8018 "file_magic "*)
8019 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8021 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8022 $EGREP "$file_magic_regex" > /dev/null; then
8024 else
8025 cat <<_LT_EOF 1>&2
8027 *** Warning: the command libtool uses to detect shared libraries,
8028 *** $file_magic_cmd, produces output that libtool cannot recognize.
8029 *** The result is that libtool may fail to recognize shared libraries
8030 *** as such. This will affect the creation of libtool libraries that
8031 *** depend on shared libraries, but programs linked with such libtool
8032 *** libraries will work regardless of this problem. Nevertheless, you
8033 *** may want to report the problem to your system manager and/or to
8034 *** bug-libtool@gnu.org
8036 _LT_EOF
8037 fi ;;
8038 esac
8040 break
8042 done
8043 IFS="$lt_save_ifs"
8044 MAGIC_CMD="$lt_save_MAGIC_CMD"
8046 esac
8049 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8050 if test -n "$MAGIC_CMD"; then
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8052 $as_echo "$MAGIC_CMD" >&6; }
8053 else
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055 $as_echo "no" >&6; }
8062 if test -z "$lt_cv_path_MAGIC_CMD"; then
8063 if test -n "$ac_tool_prefix"; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8065 $as_echo_n "checking for file... " >&6; }
8066 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8067 $as_echo_n "(cached) " >&6
8068 else
8069 case $MAGIC_CMD in
8070 [\\/*] | ?:[\\/]*)
8071 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8074 lt_save_MAGIC_CMD="$MAGIC_CMD"
8075 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8076 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8077 for ac_dir in $ac_dummy; do
8078 IFS="$lt_save_ifs"
8079 test -z "$ac_dir" && ac_dir=.
8080 if test -f $ac_dir/file; then
8081 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8082 if test -n "$file_magic_test_file"; then
8083 case $deplibs_check_method in
8084 "file_magic "*)
8085 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8086 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8087 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8088 $EGREP "$file_magic_regex" > /dev/null; then
8090 else
8091 cat <<_LT_EOF 1>&2
8093 *** Warning: the command libtool uses to detect shared libraries,
8094 *** $file_magic_cmd, produces output that libtool cannot recognize.
8095 *** The result is that libtool may fail to recognize shared libraries
8096 *** as such. This will affect the creation of libtool libraries that
8097 *** depend on shared libraries, but programs linked with such libtool
8098 *** libraries will work regardless of this problem. Nevertheless, you
8099 *** may want to report the problem to your system manager and/or to
8100 *** bug-libtool@gnu.org
8102 _LT_EOF
8103 fi ;;
8104 esac
8106 break
8108 done
8109 IFS="$lt_save_ifs"
8110 MAGIC_CMD="$lt_save_MAGIC_CMD"
8112 esac
8115 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8116 if test -n "$MAGIC_CMD"; then
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8118 $as_echo "$MAGIC_CMD" >&6; }
8119 else
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121 $as_echo "no" >&6; }
8125 else
8126 MAGIC_CMD=:
8132 esac
8134 # Use C for the default configuration in the libtool script
8136 lt_save_CC="$CC"
8137 ac_ext=c
8138 ac_cpp='$CPP $CPPFLAGS'
8139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8144 # Source file extension for C test sources.
8145 ac_ext=c
8147 # Object file extension for compiled C test sources.
8148 objext=o
8149 objext=$objext
8151 # Code to be used in simple compile tests
8152 lt_simple_compile_test_code="int some_variable = 0;"
8154 # Code to be used in simple link tests
8155 lt_simple_link_test_code='int main(){return(0);}'
8163 # If no C compiler was specified, use CC.
8164 LTCC=${LTCC-"$CC"}
8166 # If no C compiler flags were specified, use CFLAGS.
8167 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8169 # Allow CC to be a program name with arguments.
8170 compiler=$CC
8172 # Save the default compiler, since it gets overwritten when the other
8173 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8174 compiler_DEFAULT=$CC
8176 # save warnings/boilerplate of simple test code
8177 ac_outfile=conftest.$ac_objext
8178 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8179 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8180 _lt_compiler_boilerplate=`cat conftest.err`
8181 $RM conftest*
8183 ac_outfile=conftest.$ac_objext
8184 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8185 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8186 _lt_linker_boilerplate=`cat conftest.err`
8187 $RM -r conftest*
8190 ## CAVEAT EMPTOR:
8191 ## There is no encapsulation within the following macros, do not change
8192 ## the running order or otherwise move them around unless you know exactly
8193 ## what you are doing...
8194 if test -n "$compiler"; then
8196 lt_prog_compiler_no_builtin_flag=
8198 if test "$GCC" = yes; then
8199 case $cc_basename in
8200 nvcc*)
8201 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8203 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8204 esac
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8207 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8208 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8209 $as_echo_n "(cached) " >&6
8210 else
8211 lt_cv_prog_compiler_rtti_exceptions=no
8212 ac_outfile=conftest.$ac_objext
8213 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8214 lt_compiler_flag="-fno-rtti -fno-exceptions"
8215 # Insert the option either (1) after the last *FLAGS variable, or
8216 # (2) before a word containing "conftest.", or (3) at the end.
8217 # Note that $ac_compile itself does not contain backslashes and begins
8218 # with a dollar sign (not a hyphen), so the echo should work correctly.
8219 # The option is referenced via a variable to avoid confusing sed.
8220 lt_compile=`echo "$ac_compile" | $SED \
8221 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8223 -e 's:$: $lt_compiler_flag:'`
8224 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8225 (eval "$lt_compile" 2>conftest.err)
8226 ac_status=$?
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 if (exit $ac_status) && test -s "$ac_outfile"; then
8230 # The compiler can only warn and ignore the option if not recognized
8231 # So say no if there are warnings other than the usual output.
8232 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8233 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8234 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8235 lt_cv_prog_compiler_rtti_exceptions=yes
8238 $RM conftest*
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8242 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8244 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8245 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8246 else
8257 lt_prog_compiler_wl=
8258 lt_prog_compiler_pic=
8259 lt_prog_compiler_static=
8262 if test "$GCC" = yes; then
8263 lt_prog_compiler_wl='-Wl,'
8264 lt_prog_compiler_static='-static'
8266 case $host_os in
8267 aix*)
8268 # All AIX code is PIC.
8269 if test "$host_cpu" = ia64; then
8270 # AIX 5 now supports IA64 processor
8271 lt_prog_compiler_static='-Bstatic'
8275 amigaos*)
8276 case $host_cpu in
8277 powerpc)
8278 # see comment about AmigaOS4 .so support
8279 lt_prog_compiler_pic='-fPIC'
8281 m68k)
8282 # FIXME: we need at least 68020 code to build shared libraries, but
8283 # adding the `-m68020' flag to GCC prevents building anything better,
8284 # like `-m68040'.
8285 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8287 esac
8290 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8291 # PIC is the default for these OSes.
8294 mingw* | cygwin* | pw32* | os2* | cegcc*)
8295 # This hack is so that the source file can tell whether it is being
8296 # built for inclusion in a dll (and should export symbols for example).
8297 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8298 # (--disable-auto-import) libraries
8299 lt_prog_compiler_pic='-DDLL_EXPORT'
8302 darwin* | rhapsody*)
8303 # PIC is the default on this platform
8304 # Common symbols not allowed in MH_DYLIB files
8305 lt_prog_compiler_pic='-fno-common'
8308 haiku*)
8309 # PIC is the default for Haiku.
8310 # The "-static" flag exists, but is broken.
8311 lt_prog_compiler_static=
8314 hpux*)
8315 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8316 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8317 # sets the default TLS model and affects inlining.
8318 case $host_cpu in
8319 hppa*64*)
8320 # +Z the default
8323 lt_prog_compiler_pic='-fPIC'
8325 esac
8328 interix[3-9]*)
8329 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8330 # Instead, we relocate shared libraries at runtime.
8333 msdosdjgpp*)
8334 # Just because we use GCC doesn't mean we suddenly get shared libraries
8335 # on systems that don't support them.
8336 lt_prog_compiler_can_build_shared=no
8337 enable_shared=no
8340 *nto* | *qnx*)
8341 # QNX uses GNU C++, but need to define -shared option too, otherwise
8342 # it will coredump.
8343 lt_prog_compiler_pic='-fPIC -shared'
8346 sysv4*MP*)
8347 if test -d /usr/nec; then
8348 lt_prog_compiler_pic=-Kconform_pic
8353 lt_prog_compiler_pic='-fPIC'
8355 esac
8357 case $cc_basename in
8358 nvcc*) # Cuda Compiler Driver 2.2
8359 lt_prog_compiler_wl='-Xlinker '
8360 if test -n "$lt_prog_compiler_pic"; then
8361 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8364 esac
8365 else
8366 # PORTME Check for flag to pass linker flags through the system compiler.
8367 case $host_os in
8368 aix*)
8369 lt_prog_compiler_wl='-Wl,'
8370 if test "$host_cpu" = ia64; then
8371 # AIX 5 now supports IA64 processor
8372 lt_prog_compiler_static='-Bstatic'
8373 else
8374 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8378 mingw* | cygwin* | pw32* | os2* | cegcc*)
8379 # This hack is so that the source file can tell whether it is being
8380 # built for inclusion in a dll (and should export symbols for example).
8381 lt_prog_compiler_pic='-DDLL_EXPORT'
8384 hpux9* | hpux10* | hpux11*)
8385 lt_prog_compiler_wl='-Wl,'
8386 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8387 # not for PA HP-UX.
8388 case $host_cpu in
8389 hppa*64*|ia64*)
8390 # +Z the default
8393 lt_prog_compiler_pic='+Z'
8395 esac
8396 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8397 lt_prog_compiler_static='${wl}-a ${wl}archive'
8400 irix5* | irix6* | nonstopux*)
8401 lt_prog_compiler_wl='-Wl,'
8402 # PIC (with -KPIC) is the default.
8403 lt_prog_compiler_static='-non_shared'
8406 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8407 case $cc_basename in
8408 # old Intel for x86_64 which still supported -KPIC.
8409 ecc*)
8410 lt_prog_compiler_wl='-Wl,'
8411 lt_prog_compiler_pic='-KPIC'
8412 lt_prog_compiler_static='-static'
8414 # icc used to be incompatible with GCC.
8415 # ICC 10 doesn't accept -KPIC any more.
8416 icc* | ifort*)
8417 lt_prog_compiler_wl='-Wl,'
8418 lt_prog_compiler_pic='-fPIC'
8419 lt_prog_compiler_static='-static'
8421 # Lahey Fortran 8.1.
8422 lf95*)
8423 lt_prog_compiler_wl='-Wl,'
8424 lt_prog_compiler_pic='--shared'
8425 lt_prog_compiler_static='--static'
8427 nagfor*)
8428 # NAG Fortran compiler
8429 lt_prog_compiler_wl='-Wl,-Wl,,'
8430 lt_prog_compiler_pic='-PIC'
8431 lt_prog_compiler_static='-Bstatic'
8433 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8434 # Portland Group compilers (*not* the Pentium gcc compiler,
8435 # which looks to be a dead project)
8436 lt_prog_compiler_wl='-Wl,'
8437 lt_prog_compiler_pic='-fpic'
8438 lt_prog_compiler_static='-Bstatic'
8440 ccc*)
8441 lt_prog_compiler_wl='-Wl,'
8442 # All Alpha code is PIC.
8443 lt_prog_compiler_static='-non_shared'
8445 xl* | bgxl* | bgf* | mpixl*)
8446 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8447 lt_prog_compiler_wl='-Wl,'
8448 lt_prog_compiler_pic='-qpic'
8449 lt_prog_compiler_static='-qstaticlink'
8452 case `$CC -V 2>&1 | sed 5q` in
8453 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8454 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8455 lt_prog_compiler_pic='-KPIC'
8456 lt_prog_compiler_static='-Bstatic'
8457 lt_prog_compiler_wl=''
8459 *Sun\ F* | *Sun*Fortran*)
8460 lt_prog_compiler_pic='-KPIC'
8461 lt_prog_compiler_static='-Bstatic'
8462 lt_prog_compiler_wl='-Qoption ld '
8464 *Sun\ C*)
8465 # Sun C 5.9
8466 lt_prog_compiler_pic='-KPIC'
8467 lt_prog_compiler_static='-Bstatic'
8468 lt_prog_compiler_wl='-Wl,'
8470 *Intel*\ [CF]*Compiler*)
8471 lt_prog_compiler_wl='-Wl,'
8472 lt_prog_compiler_pic='-fPIC'
8473 lt_prog_compiler_static='-static'
8475 *Portland\ Group*)
8476 lt_prog_compiler_wl='-Wl,'
8477 lt_prog_compiler_pic='-fpic'
8478 lt_prog_compiler_static='-Bstatic'
8480 esac
8482 esac
8485 newsos6)
8486 lt_prog_compiler_pic='-KPIC'
8487 lt_prog_compiler_static='-Bstatic'
8490 *nto* | *qnx*)
8491 # QNX uses GNU C++, but need to define -shared option too, otherwise
8492 # it will coredump.
8493 lt_prog_compiler_pic='-fPIC -shared'
8496 osf3* | osf4* | osf5*)
8497 lt_prog_compiler_wl='-Wl,'
8498 # All OSF/1 code is PIC.
8499 lt_prog_compiler_static='-non_shared'
8502 rdos*)
8503 lt_prog_compiler_static='-non_shared'
8506 solaris*)
8507 lt_prog_compiler_pic='-KPIC'
8508 lt_prog_compiler_static='-Bstatic'
8509 case $cc_basename in
8510 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8511 lt_prog_compiler_wl='-Qoption ld ';;
8513 lt_prog_compiler_wl='-Wl,';;
8514 esac
8517 sunos4*)
8518 lt_prog_compiler_wl='-Qoption ld '
8519 lt_prog_compiler_pic='-PIC'
8520 lt_prog_compiler_static='-Bstatic'
8523 sysv4 | sysv4.2uw2* | sysv4.3*)
8524 lt_prog_compiler_wl='-Wl,'
8525 lt_prog_compiler_pic='-KPIC'
8526 lt_prog_compiler_static='-Bstatic'
8529 sysv4*MP*)
8530 if test -d /usr/nec ;then
8531 lt_prog_compiler_pic='-Kconform_pic'
8532 lt_prog_compiler_static='-Bstatic'
8536 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8537 lt_prog_compiler_wl='-Wl,'
8538 lt_prog_compiler_pic='-KPIC'
8539 lt_prog_compiler_static='-Bstatic'
8542 unicos*)
8543 lt_prog_compiler_wl='-Wl,'
8544 lt_prog_compiler_can_build_shared=no
8547 uts4*)
8548 lt_prog_compiler_pic='-pic'
8549 lt_prog_compiler_static='-Bstatic'
8553 lt_prog_compiler_can_build_shared=no
8555 esac
8558 case $host_os in
8559 # For platforms which do not support PIC, -DPIC is meaningless:
8560 *djgpp*)
8561 lt_prog_compiler_pic=
8564 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8566 esac
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8569 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8570 if ${lt_cv_prog_compiler_pic+:} false; then :
8571 $as_echo_n "(cached) " >&6
8572 else
8573 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8576 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8577 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8580 # Check to make sure the PIC flag actually works.
8582 if test -n "$lt_prog_compiler_pic"; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8584 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8585 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8586 $as_echo_n "(cached) " >&6
8587 else
8588 lt_cv_prog_compiler_pic_works=no
8589 ac_outfile=conftest.$ac_objext
8590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8591 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8592 # Insert the option either (1) after the last *FLAGS variable, or
8593 # (2) before a word containing "conftest.", or (3) at the end.
8594 # Note that $ac_compile itself does not contain backslashes and begins
8595 # with a dollar sign (not a hyphen), so the echo should work correctly.
8596 # The option is referenced via a variable to avoid confusing sed.
8597 lt_compile=`echo "$ac_compile" | $SED \
8598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8600 -e 's:$: $lt_compiler_flag:'`
8601 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8602 (eval "$lt_compile" 2>conftest.err)
8603 ac_status=$?
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 if (exit $ac_status) && test -s "$ac_outfile"; then
8607 # The compiler can only warn and ignore the option if not recognized
8608 # So say no if there are warnings other than the usual output.
8609 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8610 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8611 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8612 lt_cv_prog_compiler_pic_works=yes
8615 $RM conftest*
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8619 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8621 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8622 case $lt_prog_compiler_pic in
8623 "" | " "*) ;;
8624 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8625 esac
8626 else
8627 lt_prog_compiler_pic=
8628 lt_prog_compiler_can_build_shared=no
8644 # Check to make sure the static flag actually works.
8646 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8648 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8649 if ${lt_cv_prog_compiler_static_works+:} false; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 lt_cv_prog_compiler_static_works=no
8653 save_LDFLAGS="$LDFLAGS"
8654 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8655 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8656 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8657 # The linker can only warn and ignore the option if not recognized
8658 # So say no if there are warnings
8659 if test -s conftest.err; then
8660 # Append any errors to the config.log.
8661 cat conftest.err 1>&5
8662 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8663 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8664 if diff conftest.exp conftest.er2 >/dev/null; then
8665 lt_cv_prog_compiler_static_works=yes
8667 else
8668 lt_cv_prog_compiler_static_works=yes
8671 $RM -r conftest*
8672 LDFLAGS="$save_LDFLAGS"
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8676 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8678 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8680 else
8681 lt_prog_compiler_static=
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8691 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8692 if ${lt_cv_prog_compiler_c_o+:} false; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 lt_cv_prog_compiler_c_o=no
8696 $RM -r conftest 2>/dev/null
8697 mkdir conftest
8698 cd conftest
8699 mkdir out
8700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8702 lt_compiler_flag="-o out/conftest2.$ac_objext"
8703 # Insert the option either (1) after the last *FLAGS variable, or
8704 # (2) before a word containing "conftest.", or (3) at the end.
8705 # Note that $ac_compile itself does not contain backslashes and begins
8706 # with a dollar sign (not a hyphen), so the echo should work correctly.
8707 lt_compile=`echo "$ac_compile" | $SED \
8708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8710 -e 's:$: $lt_compiler_flag:'`
8711 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8712 (eval "$lt_compile" 2>out/conftest.err)
8713 ac_status=$?
8714 cat out/conftest.err >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8717 then
8718 # The compiler can only warn and ignore the option if not recognized
8719 # So say no if there are warnings
8720 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8721 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8722 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8723 lt_cv_prog_compiler_c_o=yes
8726 chmod u+w . 2>&5
8727 $RM conftest*
8728 # SGI C++ compiler will create directory out/ii_files/ for
8729 # template instantiation
8730 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8731 $RM out/* && rmdir out
8732 cd ..
8733 $RM -r conftest
8734 $RM conftest*
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8738 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8746 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8747 if ${lt_cv_prog_compiler_c_o+:} false; then :
8748 $as_echo_n "(cached) " >&6
8749 else
8750 lt_cv_prog_compiler_c_o=no
8751 $RM -r conftest 2>/dev/null
8752 mkdir conftest
8753 cd conftest
8754 mkdir out
8755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8757 lt_compiler_flag="-o out/conftest2.$ac_objext"
8758 # Insert the option either (1) after the last *FLAGS variable, or
8759 # (2) before a word containing "conftest.", or (3) at the end.
8760 # Note that $ac_compile itself does not contain backslashes and begins
8761 # with a dollar sign (not a hyphen), so the echo should work correctly.
8762 lt_compile=`echo "$ac_compile" | $SED \
8763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8765 -e 's:$: $lt_compiler_flag:'`
8766 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8767 (eval "$lt_compile" 2>out/conftest.err)
8768 ac_status=$?
8769 cat out/conftest.err >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8772 then
8773 # The compiler can only warn and ignore the option if not recognized
8774 # So say no if there are warnings
8775 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8776 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8777 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8778 lt_cv_prog_compiler_c_o=yes
8781 chmod u+w . 2>&5
8782 $RM conftest*
8783 # SGI C++ compiler will create directory out/ii_files/ for
8784 # template instantiation
8785 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8786 $RM out/* && rmdir out
8787 cd ..
8788 $RM -r conftest
8789 $RM conftest*
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8793 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8798 hard_links="nottested"
8799 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8800 # do not overwrite the value of need_locks provided by the user
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8802 $as_echo_n "checking if we can lock with hard links... " >&6; }
8803 hard_links=yes
8804 $RM conftest*
8805 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8806 touch conftest.a
8807 ln conftest.a conftest.b 2>&5 || hard_links=no
8808 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8810 $as_echo "$hard_links" >&6; }
8811 if test "$hard_links" = no; then
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8813 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8814 need_locks=warn
8816 else
8817 need_locks=no
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8826 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8828 runpath_var=
8829 allow_undefined_flag=
8830 always_export_symbols=no
8831 archive_cmds=
8832 archive_expsym_cmds=
8833 compiler_needs_object=no
8834 enable_shared_with_static_runtimes=no
8835 export_dynamic_flag_spec=
8836 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8837 hardcode_automatic=no
8838 hardcode_direct=no
8839 hardcode_direct_absolute=no
8840 hardcode_libdir_flag_spec=
8841 hardcode_libdir_separator=
8842 hardcode_minus_L=no
8843 hardcode_shlibpath_var=unsupported
8844 inherit_rpath=no
8845 link_all_deplibs=unknown
8846 module_cmds=
8847 module_expsym_cmds=
8848 old_archive_from_new_cmds=
8849 old_archive_from_expsyms_cmds=
8850 thread_safe_flag_spec=
8851 whole_archive_flag_spec=
8852 # include_expsyms should be a list of space-separated symbols to be *always*
8853 # included in the symbol list
8854 include_expsyms=
8855 # exclude_expsyms can be an extended regexp of symbols to exclude
8856 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8857 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8858 # as well as any symbol that contains `d'.
8859 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8860 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8861 # platforms (ab)use it in PIC code, but their linkers get confused if
8862 # the symbol is explicitly referenced. Since portable code cannot
8863 # rely on this symbol name, it's probably fine to never include it in
8864 # preloaded symbol tables.
8865 # Exclude shared library initialization/finalization symbols.
8866 extract_expsyms_cmds=
8868 case $host_os in
8869 cygwin* | mingw* | pw32* | cegcc*)
8870 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8871 # When not using gcc, we currently assume that we are using
8872 # Microsoft Visual C++.
8873 if test "$GCC" != yes; then
8874 with_gnu_ld=no
8877 interix*)
8878 # we just hope/assume this is gcc and not c89 (= MSVC++)
8879 with_gnu_ld=yes
8881 openbsd*)
8882 with_gnu_ld=no
8884 linux* | k*bsd*-gnu | gnu*)
8885 link_all_deplibs=no
8887 esac
8889 ld_shlibs=yes
8891 # On some targets, GNU ld is compatible enough with the native linker
8892 # that we're better off using the native interface for both.
8893 lt_use_gnu_ld_interface=no
8894 if test "$with_gnu_ld" = yes; then
8895 case $host_os in
8896 aix*)
8897 # The AIX port of GNU ld has always aspired to compatibility
8898 # with the native linker. However, as the warning in the GNU ld
8899 # block says, versions before 2.19.5* couldn't really create working
8900 # shared libraries, regardless of the interface used.
8901 case `$LD -v 2>&1` in
8902 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8903 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8904 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8906 lt_use_gnu_ld_interface=yes
8908 esac
8911 lt_use_gnu_ld_interface=yes
8913 esac
8916 if test "$lt_use_gnu_ld_interface" = yes; then
8917 # If archive_cmds runs LD, not CC, wlarc should be empty
8918 wlarc='${wl}'
8920 # Set some defaults for GNU ld with shared library support. These
8921 # are reset later if shared libraries are not supported. Putting them
8922 # here allows them to be overridden if necessary.
8923 runpath_var=LD_RUN_PATH
8924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8925 export_dynamic_flag_spec='${wl}--export-dynamic'
8926 # ancient GNU ld didn't support --whole-archive et. al.
8927 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8928 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8929 else
8930 whole_archive_flag_spec=
8932 supports_anon_versioning=no
8933 case `$LD -v 2>&1` in
8934 *GNU\ gold*) supports_anon_versioning=yes ;;
8935 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8936 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8937 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8938 *\ 2.11.*) ;; # other 2.11 versions
8939 *) supports_anon_versioning=yes ;;
8940 esac
8942 # See if GNU ld supports shared libraries.
8943 case $host_os in
8944 aix[3-9]*)
8945 # On AIX/PPC, the GNU linker is very broken
8946 if test "$host_cpu" != ia64; then
8947 ld_shlibs=no
8948 cat <<_LT_EOF 1>&2
8950 *** Warning: the GNU linker, at least up to release 2.19, is reported
8951 *** to be unable to reliably create shared libraries on AIX.
8952 *** Therefore, libtool is disabling shared libraries support. If you
8953 *** really care for shared libraries, you may want to install binutils
8954 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8955 *** You will then need to restart the configuration process.
8957 _LT_EOF
8961 amigaos*)
8962 case $host_cpu in
8963 powerpc)
8964 # see comment about AmigaOS4 .so support
8965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8966 archive_expsym_cmds=''
8968 m68k)
8969 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)'
8970 hardcode_libdir_flag_spec='-L$libdir'
8971 hardcode_minus_L=yes
8973 esac
8976 beos*)
8977 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8978 allow_undefined_flag=unsupported
8979 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8980 # support --undefined. This deserves some investigation. FIXME
8981 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982 else
8983 ld_shlibs=no
8987 cygwin* | mingw* | pw32* | cegcc*)
8988 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8989 # as there is no search path for DLLs.
8990 hardcode_libdir_flag_spec='-L$libdir'
8991 export_dynamic_flag_spec='${wl}--export-all-symbols'
8992 allow_undefined_flag=unsupported
8993 always_export_symbols=no
8994 enable_shared_with_static_runtimes=yes
8995 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'
8996 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8998 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9000 # If the export-symbols file already is a .def file (1st line
9001 # is EXPORTS), use it as is; otherwise, prepend...
9002 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9003 cp $export_symbols $output_objdir/$soname.def;
9004 else
9005 echo EXPORTS > $output_objdir/$soname.def;
9006 cat $export_symbols >> $output_objdir/$soname.def;
9008 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9009 else
9010 ld_shlibs=no
9014 haiku*)
9015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9016 link_all_deplibs=yes
9019 interix[3-9]*)
9020 hardcode_direct=no
9021 hardcode_shlibpath_var=no
9022 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9023 export_dynamic_flag_spec='${wl}-E'
9024 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9025 # Instead, shared libraries are loaded at an image base (0x10000000 by
9026 # default) and relocated if they conflict, which is a slow very memory
9027 # consuming and fragmenting process. To avoid this, we pick a random,
9028 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9029 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9030 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9031 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'
9034 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9035 tmp_diet=no
9036 if test "$host_os" = linux-dietlibc; then
9037 case $cc_basename in
9038 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9039 esac
9041 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9042 && test "$tmp_diet" = no
9043 then
9044 tmp_addflag=' $pic_flag'
9045 tmp_sharedflag='-shared'
9046 case $cc_basename,$host_cpu in
9047 pgcc*) # Portland Group C compiler
9048 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'
9049 tmp_addflag=' $pic_flag'
9051 pgf77* | pgf90* | pgf95* | pgfortran*)
9052 # Portland Group f77 and f90 compilers
9053 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'
9054 tmp_addflag=' $pic_flag -Mnomain' ;;
9055 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9056 tmp_addflag=' -i_dynamic' ;;
9057 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9058 tmp_addflag=' -i_dynamic -nofor_main' ;;
9059 ifc* | ifort*) # Intel Fortran compiler
9060 tmp_addflag=' -nofor_main' ;;
9061 lf95*) # Lahey Fortran 8.1
9062 whole_archive_flag_spec=
9063 tmp_sharedflag='--shared' ;;
9064 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9065 tmp_sharedflag='-qmkshrobj'
9066 tmp_addflag= ;;
9067 nvcc*) # Cuda Compiler Driver 2.2
9068 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'
9069 compiler_needs_object=yes
9071 esac
9072 case `$CC -V 2>&1 | sed 5q` in
9073 *Sun\ C*) # Sun C 5.9
9074 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'
9075 compiler_needs_object=yes
9076 tmp_sharedflag='-G' ;;
9077 *Sun\ F*) # Sun Fortran 8.3
9078 tmp_sharedflag='-G' ;;
9079 esac
9080 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9082 if test "x$supports_anon_versioning" = xyes; then
9083 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9084 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9085 echo "local: *; };" >> $output_objdir/$libname.ver~
9086 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9089 case $cc_basename in
9090 xlf* | bgf* | bgxlf* | mpixlf*)
9091 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9092 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9093 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9094 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9095 if test "x$supports_anon_versioning" = xyes; then
9096 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9097 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9098 echo "local: *; };" >> $output_objdir/$libname.ver~
9099 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9102 esac
9103 else
9104 ld_shlibs=no
9108 netbsd* | netbsdelf*-gnu)
9109 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9110 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9111 wlarc=
9112 else
9113 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9114 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9118 solaris*)
9119 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9120 ld_shlibs=no
9121 cat <<_LT_EOF 1>&2
9123 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9124 *** create shared libraries on Solaris systems. Therefore, libtool
9125 *** is disabling shared libraries support. We urge you to upgrade GNU
9126 *** binutils to release 2.9.1 or newer. Another option is to modify
9127 *** your PATH or compiler configuration so that the native linker is
9128 *** used, and then restart.
9130 _LT_EOF
9131 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9132 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9133 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9134 else
9135 ld_shlibs=no
9139 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9140 case `$LD -v 2>&1` in
9141 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9142 ld_shlibs=no
9143 cat <<_LT_EOF 1>&2
9145 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9146 *** reliably create shared libraries on SCO systems. Therefore, libtool
9147 *** is disabling shared libraries support. We urge you to upgrade GNU
9148 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9149 *** your PATH or compiler configuration so that the native linker is
9150 *** used, and then restart.
9152 _LT_EOF
9155 # For security reasons, it is highly recommended that you always
9156 # use absolute paths for naming shared libraries, and exclude the
9157 # DT_RUNPATH tag from executables and libraries. But doing so
9158 # requires that you compile everything twice, which is a pain.
9159 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9160 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9162 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9163 else
9164 ld_shlibs=no
9167 esac
9170 sunos4*)
9171 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9172 wlarc=
9173 hardcode_direct=yes
9174 hardcode_shlibpath_var=no
9178 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9179 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9180 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9181 else
9182 ld_shlibs=no
9185 esac
9187 if test "$ld_shlibs" = no; then
9188 runpath_var=
9189 hardcode_libdir_flag_spec=
9190 export_dynamic_flag_spec=
9191 whole_archive_flag_spec=
9193 else
9194 # PORTME fill in a description of your system's linker (not GNU ld)
9195 case $host_os in
9196 aix3*)
9197 allow_undefined_flag=unsupported
9198 always_export_symbols=yes
9199 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'
9200 # Note: this linker hardcodes the directories in LIBPATH if there
9201 # are no directories specified by -L.
9202 hardcode_minus_L=yes
9203 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9204 # Neither direct hardcoding nor static linking is supported with a
9205 # broken collect2.
9206 hardcode_direct=unsupported
9210 aix[4-9]*)
9211 if test "$host_cpu" = ia64; then
9212 # On IA64, the linker does run time linking by default, so we don't
9213 # have to do anything special.
9214 aix_use_runtimelinking=no
9215 exp_sym_flag='-Bexport'
9216 no_entry_flag=""
9217 else
9218 # If we're using GNU nm, then we don't want the "-C" option.
9219 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9220 # Also, AIX nm treats weak defined symbols like other global
9221 # defined symbols, whereas GNU nm marks them as "W".
9222 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9223 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'
9224 else
9225 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'
9227 aix_use_runtimelinking=no
9229 # Test if we are trying to use run time linking or normal
9230 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9231 # need to do runtime linking.
9232 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9233 for ld_flag in $LDFLAGS; do
9234 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9235 aix_use_runtimelinking=yes
9236 break
9238 done
9240 esac
9242 exp_sym_flag='-bexport'
9243 no_entry_flag='-bnoentry'
9246 # When large executables or shared objects are built, AIX ld can
9247 # have problems creating the table of contents. If linking a library
9248 # or program results in "error TOC overflow" add -mminimal-toc to
9249 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9250 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9252 archive_cmds=''
9253 hardcode_direct=yes
9254 hardcode_direct_absolute=yes
9255 hardcode_libdir_separator=':'
9256 link_all_deplibs=yes
9257 file_list_spec='${wl}-f,'
9259 if test "$GCC" = yes; then
9260 case $host_os in aix4.[012]|aix4.[012].*)
9261 # We only want to do this on AIX 4.2 and lower, the check
9262 # below for broken collect2 doesn't work under 4.3+
9263 collect2name=`${CC} -print-prog-name=collect2`
9264 if test -f "$collect2name" &&
9265 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9266 then
9267 # We have reworked collect2
9269 else
9270 # We have old collect2
9271 hardcode_direct=unsupported
9272 # It fails to find uninstalled libraries when the uninstalled
9273 # path is not listed in the libpath. Setting hardcode_minus_L
9274 # to unsupported forces relinking
9275 hardcode_minus_L=yes
9276 hardcode_libdir_flag_spec='-L$libdir'
9277 hardcode_libdir_separator=
9280 esac
9281 shared_flag='-shared'
9282 if test "$aix_use_runtimelinking" = yes; then
9283 shared_flag="$shared_flag "'${wl}-G'
9285 link_all_deplibs=no
9286 else
9287 # not using gcc
9288 if test "$host_cpu" = ia64; then
9289 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9290 # chokes on -Wl,-G. The following line is correct:
9291 shared_flag='-G'
9292 else
9293 if test "$aix_use_runtimelinking" = yes; then
9294 shared_flag='${wl}-G'
9295 else
9296 shared_flag='${wl}-bM:SRE'
9301 export_dynamic_flag_spec='${wl}-bexpall'
9302 # It seems that -bexpall does not export symbols beginning with
9303 # underscore (_), so it is better to generate a list of symbols to export.
9304 always_export_symbols=yes
9305 if test "$aix_use_runtimelinking" = yes; then
9306 # Warning - without using the other runtime loading flags (-brtl),
9307 # -berok will link without error, but may produce a broken library.
9308 allow_undefined_flag='-berok'
9309 # Determine the default libpath from the value encoded in an
9310 # empty executable.
9311 if test "${lt_cv_aix_libpath+set}" = set; then
9312 aix_libpath=$lt_cv_aix_libpath
9313 else
9314 if ${lt_cv_aix_libpath_+:} false; then :
9315 $as_echo_n "(cached) " >&6
9316 else
9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h. */
9321 main ()
9325 return 0;
9327 _ACEOF
9328 if ac_fn_c_try_link "$LINENO"; then :
9330 lt_aix_libpath_sed='
9331 /Import File Strings/,/^$/ {
9332 /^0/ {
9333 s/^0 *\([^ ]*\) *$/\1/
9337 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9338 # Check for a 64-bit object if we didn't find anything.
9339 if test -z "$lt_cv_aix_libpath_"; then
9340 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9343 rm -f core conftest.err conftest.$ac_objext \
9344 conftest$ac_exeext conftest.$ac_ext
9345 if test -z "$lt_cv_aix_libpath_"; then
9346 lt_cv_aix_libpath_="/usr/lib:/lib"
9351 aix_libpath=$lt_cv_aix_libpath_
9354 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9355 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"
9356 else
9357 if test "$host_cpu" = ia64; then
9358 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9359 allow_undefined_flag="-z nodefs"
9360 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"
9361 else
9362 # Determine the default libpath from the value encoded in an
9363 # empty executable.
9364 if test "${lt_cv_aix_libpath+set}" = set; then
9365 aix_libpath=$lt_cv_aix_libpath
9366 else
9367 if ${lt_cv_aix_libpath_+:} false; then :
9368 $as_echo_n "(cached) " >&6
9369 else
9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371 /* end confdefs.h. */
9374 main ()
9378 return 0;
9380 _ACEOF
9381 if ac_fn_c_try_link "$LINENO"; then :
9383 lt_aix_libpath_sed='
9384 /Import File Strings/,/^$/ {
9385 /^0/ {
9386 s/^0 *\([^ ]*\) *$/\1/
9390 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9391 # Check for a 64-bit object if we didn't find anything.
9392 if test -z "$lt_cv_aix_libpath_"; then
9393 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9396 rm -f core conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
9398 if test -z "$lt_cv_aix_libpath_"; then
9399 lt_cv_aix_libpath_="/usr/lib:/lib"
9404 aix_libpath=$lt_cv_aix_libpath_
9407 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9408 # Warning - without using the other run time loading flags,
9409 # -berok will link without error, but may produce a broken library.
9410 no_undefined_flag=' ${wl}-bernotok'
9411 allow_undefined_flag=' ${wl}-berok'
9412 if test "$with_gnu_ld" = yes; then
9413 # We only use this code for GNU lds that support --whole-archive.
9414 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9415 else
9416 # Exported symbols can be pulled into shared objects from archives
9417 whole_archive_flag_spec='$convenience'
9419 archive_cmds_need_lc=yes
9420 # This is similar to how AIX traditionally builds its shared libraries.
9421 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'
9426 amigaos*)
9427 case $host_cpu in
9428 powerpc)
9429 # see comment about AmigaOS4 .so support
9430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9431 archive_expsym_cmds=''
9433 m68k)
9434 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)'
9435 hardcode_libdir_flag_spec='-L$libdir'
9436 hardcode_minus_L=yes
9438 esac
9441 bsdi[45]*)
9442 export_dynamic_flag_spec=-rdynamic
9445 cygwin* | mingw* | pw32* | cegcc*)
9446 # When not using gcc, we currently assume that we are using
9447 # Microsoft Visual C++.
9448 # hardcode_libdir_flag_spec is actually meaningless, as there is
9449 # no search path for DLLs.
9450 case $cc_basename in
9451 cl*)
9452 # Native MSVC
9453 hardcode_libdir_flag_spec=' '
9454 allow_undefined_flag=unsupported
9455 always_export_symbols=yes
9456 file_list_spec='@'
9457 # Tell ltmain to make .lib files, not .a files.
9458 libext=lib
9459 # Tell ltmain to make .dll files, not .so files.
9460 shrext_cmds=".dll"
9461 # FIXME: Setting linknames here is a bad hack.
9462 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9463 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9464 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9465 else
9466 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9468 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9469 linknames='
9470 # The linker will not automatically build a static lib if we build a DLL.
9471 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9472 enable_shared_with_static_runtimes=yes
9473 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9474 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9475 # Don't use ranlib
9476 old_postinstall_cmds='chmod 644 $oldlib'
9477 postlink_cmds='lt_outputfile="@OUTPUT@"~
9478 lt_tool_outputfile="@TOOL_OUTPUT@"~
9479 case $lt_outputfile in
9480 *.exe|*.EXE) ;;
9482 lt_outputfile="$lt_outputfile.exe"
9483 lt_tool_outputfile="$lt_tool_outputfile.exe"
9485 esac~
9486 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9487 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9488 $RM "$lt_outputfile.manifest";
9492 # Assume MSVC wrapper
9493 hardcode_libdir_flag_spec=' '
9494 allow_undefined_flag=unsupported
9495 # Tell ltmain to make .lib files, not .a files.
9496 libext=lib
9497 # Tell ltmain to make .dll files, not .so files.
9498 shrext_cmds=".dll"
9499 # FIXME: Setting linknames here is a bad hack.
9500 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9501 # The linker will automatically build a .lib file if we build a DLL.
9502 old_archive_from_new_cmds='true'
9503 # FIXME: Should let the user specify the lib program.
9504 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9505 enable_shared_with_static_runtimes=yes
9507 esac
9510 darwin* | rhapsody*)
9513 archive_cmds_need_lc=no
9514 hardcode_direct=no
9515 hardcode_automatic=yes
9516 hardcode_shlibpath_var=unsupported
9517 if test "$lt_cv_ld_force_load" = "yes"; then
9518 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\"`'
9520 else
9521 whole_archive_flag_spec=''
9523 link_all_deplibs=yes
9524 allow_undefined_flag="$_lt_dar_allow_undefined"
9525 case $cc_basename in
9526 ifort*) _lt_dar_can_shared=yes ;;
9527 *) _lt_dar_can_shared=$GCC ;;
9528 esac
9529 if test "$_lt_dar_can_shared" = "yes"; then
9530 output_verbose_link_cmd=func_echo_all
9531 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9532 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9533 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}"
9534 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}"
9536 else
9537 ld_shlibs=no
9542 dgux*)
9543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9544 hardcode_libdir_flag_spec='-L$libdir'
9545 hardcode_shlibpath_var=no
9548 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9549 # support. Future versions do this automatically, but an explicit c++rt0.o
9550 # does not break anything, and helps significantly (at the cost of a little
9551 # extra space).
9552 freebsd2.2*)
9553 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9554 hardcode_libdir_flag_spec='-R$libdir'
9555 hardcode_direct=yes
9556 hardcode_shlibpath_var=no
9559 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9560 freebsd2.*)
9561 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9562 hardcode_direct=yes
9563 hardcode_minus_L=yes
9564 hardcode_shlibpath_var=no
9567 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9568 freebsd* | dragonfly*)
9569 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9570 hardcode_libdir_flag_spec='-R$libdir'
9571 hardcode_direct=yes
9572 hardcode_shlibpath_var=no
9575 hpux9*)
9576 if test "$GCC" = yes; then
9577 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'
9578 else
9579 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'
9581 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9582 hardcode_libdir_separator=:
9583 hardcode_direct=yes
9585 # hardcode_minus_L: Not really in the search PATH,
9586 # but as the default location of the library.
9587 hardcode_minus_L=yes
9588 export_dynamic_flag_spec='${wl}-E'
9591 hpux10*)
9592 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9593 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9594 else
9595 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9597 if test "$with_gnu_ld" = no; then
9598 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9599 hardcode_libdir_separator=:
9600 hardcode_direct=yes
9601 hardcode_direct_absolute=yes
9602 export_dynamic_flag_spec='${wl}-E'
9603 # hardcode_minus_L: Not really in the search PATH,
9604 # but as the default location of the library.
9605 hardcode_minus_L=yes
9609 hpux11*)
9610 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9611 case $host_cpu in
9612 hppa*64*)
9613 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9615 ia64*)
9616 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9619 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9621 esac
9622 else
9623 case $host_cpu in
9624 hppa*64*)
9625 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9627 ia64*)
9628 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9632 # Older versions of the 11.00 compiler do not understand -b yet
9633 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9635 $as_echo_n "checking if $CC understands -b... " >&6; }
9636 if ${lt_cv_prog_compiler__b+:} false; then :
9637 $as_echo_n "(cached) " >&6
9638 else
9639 lt_cv_prog_compiler__b=no
9640 save_LDFLAGS="$LDFLAGS"
9641 LDFLAGS="$LDFLAGS -b"
9642 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9643 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9644 # The linker can only warn and ignore the option if not recognized
9645 # So say no if there are warnings
9646 if test -s conftest.err; then
9647 # Append any errors to the config.log.
9648 cat conftest.err 1>&5
9649 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9650 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9651 if diff conftest.exp conftest.er2 >/dev/null; then
9652 lt_cv_prog_compiler__b=yes
9654 else
9655 lt_cv_prog_compiler__b=yes
9658 $RM -r conftest*
9659 LDFLAGS="$save_LDFLAGS"
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9663 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9665 if test x"$lt_cv_prog_compiler__b" = xyes; then
9666 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9667 else
9668 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9672 esac
9674 if test "$with_gnu_ld" = no; then
9675 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9676 hardcode_libdir_separator=:
9678 case $host_cpu in
9679 hppa*64*|ia64*)
9680 hardcode_direct=no
9681 hardcode_shlibpath_var=no
9684 hardcode_direct=yes
9685 hardcode_direct_absolute=yes
9686 export_dynamic_flag_spec='${wl}-E'
9688 # hardcode_minus_L: Not really in the search PATH,
9689 # but as the default location of the library.
9690 hardcode_minus_L=yes
9692 esac
9696 irix5* | irix6* | nonstopux*)
9697 if test "$GCC" = yes; then
9698 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'
9699 # Try to use the -exported_symbol ld option, if it does not
9700 # work, assume that -exports_file does not work either and
9701 # implicitly export all symbols.
9702 # This should be the same for all languages, so no per-tag cache variable.
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9704 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9705 if ${lt_cv_irix_exported_symbol+:} false; then :
9706 $as_echo_n "(cached) " >&6
9707 else
9708 save_LDFLAGS="$LDFLAGS"
9709 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9712 int foo (void) { return 0; }
9713 _ACEOF
9714 if ac_fn_c_try_link "$LINENO"; then :
9715 lt_cv_irix_exported_symbol=yes
9716 else
9717 lt_cv_irix_exported_symbol=no
9719 rm -f core conftest.err conftest.$ac_objext \
9720 conftest$ac_exeext conftest.$ac_ext
9721 LDFLAGS="$save_LDFLAGS"
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9724 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9725 if test "$lt_cv_irix_exported_symbol" = yes; then
9726 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'
9728 else
9729 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'
9730 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'
9732 archive_cmds_need_lc='no'
9733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9734 hardcode_libdir_separator=:
9735 inherit_rpath=yes
9736 link_all_deplibs=yes
9739 netbsd* | netbsdelf*-gnu)
9740 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9741 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9742 else
9743 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9745 hardcode_libdir_flag_spec='-R$libdir'
9746 hardcode_direct=yes
9747 hardcode_shlibpath_var=no
9750 newsos6)
9751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9752 hardcode_direct=yes
9753 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9754 hardcode_libdir_separator=:
9755 hardcode_shlibpath_var=no
9758 *nto* | *qnx*)
9761 openbsd*)
9762 if test -f /usr/libexec/ld.so; then
9763 hardcode_direct=yes
9764 hardcode_shlibpath_var=no
9765 hardcode_direct_absolute=yes
9766 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9767 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9768 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9769 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9770 export_dynamic_flag_spec='${wl}-E'
9771 else
9772 case $host_os in
9773 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9775 hardcode_libdir_flag_spec='-R$libdir'
9778 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9779 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9781 esac
9783 else
9784 ld_shlibs=no
9788 os2*)
9789 hardcode_libdir_flag_spec='-L$libdir'
9790 hardcode_minus_L=yes
9791 allow_undefined_flag=unsupported
9792 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'
9793 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9796 osf3*)
9797 if test "$GCC" = yes; then
9798 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9799 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'
9800 else
9801 allow_undefined_flag=' -expect_unresolved \*'
9802 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'
9804 archive_cmds_need_lc='no'
9805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9806 hardcode_libdir_separator=:
9809 osf4* | osf5*) # as osf3* with the addition of -msym flag
9810 if test "$GCC" = yes; then
9811 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9812 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'
9813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9814 else
9815 allow_undefined_flag=' -expect_unresolved \*'
9816 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'
9817 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~
9818 $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'
9820 # Both c and cxx compiler support -rpath directly
9821 hardcode_libdir_flag_spec='-rpath $libdir'
9823 archive_cmds_need_lc='no'
9824 hardcode_libdir_separator=:
9827 solaris*)
9828 no_undefined_flag=' -z defs'
9829 if test "$GCC" = yes; then
9830 wlarc='${wl}'
9831 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9832 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9833 $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'
9834 else
9835 case `$CC -V 2>&1` in
9836 *"Compilers 5.0"*)
9837 wlarc=''
9838 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9839 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9840 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9843 wlarc='${wl}'
9844 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9845 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9846 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9848 esac
9850 hardcode_libdir_flag_spec='-R$libdir'
9851 hardcode_shlibpath_var=no
9852 case $host_os in
9853 solaris2.[0-5] | solaris2.[0-5].*) ;;
9855 # The compiler driver will combine and reorder linker options,
9856 # but understands `-z linker_flag'. GCC discards it without `$wl',
9857 # but is careful enough not to reorder.
9858 # Supported since Solaris 2.6 (maybe 2.5.1?)
9859 if test "$GCC" = yes; then
9860 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9861 else
9862 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9865 esac
9866 link_all_deplibs=yes
9869 sunos4*)
9870 if test "x$host_vendor" = xsequent; then
9871 # Use $CC to link under sequent, because it throws in some extra .o
9872 # files that make .init and .fini sections work.
9873 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9874 else
9875 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9877 hardcode_libdir_flag_spec='-L$libdir'
9878 hardcode_direct=yes
9879 hardcode_minus_L=yes
9880 hardcode_shlibpath_var=no
9883 sysv4)
9884 case $host_vendor in
9885 sni)
9886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9887 hardcode_direct=yes # is this really true???
9889 siemens)
9890 ## LD is ld it makes a PLAMLIB
9891 ## CC just makes a GrossModule.
9892 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9893 reload_cmds='$CC -r -o $output$reload_objs'
9894 hardcode_direct=no
9896 motorola)
9897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9898 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9900 esac
9901 runpath_var='LD_RUN_PATH'
9902 hardcode_shlibpath_var=no
9905 sysv4.3*)
9906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9907 hardcode_shlibpath_var=no
9908 export_dynamic_flag_spec='-Bexport'
9911 sysv4*MP*)
9912 if test -d /usr/nec; then
9913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9914 hardcode_shlibpath_var=no
9915 runpath_var=LD_RUN_PATH
9916 hardcode_runpath_var=yes
9917 ld_shlibs=yes
9921 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9922 no_undefined_flag='${wl}-z,text'
9923 archive_cmds_need_lc=no
9924 hardcode_shlibpath_var=no
9925 runpath_var='LD_RUN_PATH'
9927 if test "$GCC" = yes; then
9928 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9929 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9930 else
9931 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9932 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9936 sysv5* | sco3.2v5* | sco5v6*)
9937 # Note: We can NOT use -z defs as we might desire, because we do not
9938 # link with -lc, and that would cause any symbols used from libc to
9939 # always be unresolved, which means just about no library would
9940 # ever link correctly. If we're not using GNU ld we use -z text
9941 # though, which does catch some bad symbols but isn't as heavy-handed
9942 # as -z defs.
9943 no_undefined_flag='${wl}-z,text'
9944 allow_undefined_flag='${wl}-z,nodefs'
9945 archive_cmds_need_lc=no
9946 hardcode_shlibpath_var=no
9947 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9948 hardcode_libdir_separator=':'
9949 link_all_deplibs=yes
9950 export_dynamic_flag_spec='${wl}-Bexport'
9951 runpath_var='LD_RUN_PATH'
9953 if test "$GCC" = yes; then
9954 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9955 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9956 else
9957 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9958 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9962 uts4*)
9963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9964 hardcode_libdir_flag_spec='-L$libdir'
9965 hardcode_shlibpath_var=no
9969 ld_shlibs=no
9971 esac
9973 if test x$host_vendor = xsni; then
9974 case $host in
9975 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9976 export_dynamic_flag_spec='${wl}-Blargedynsym'
9978 esac
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9983 $as_echo "$ld_shlibs" >&6; }
9984 test "$ld_shlibs" = no && can_build_shared=no
9986 with_gnu_ld=$with_gnu_ld
10003 # Do we need to explicitly link libc?
10005 case "x$archive_cmds_need_lc" in
10006 x|xyes)
10007 # Assume -lc should be added
10008 archive_cmds_need_lc=yes
10010 if test "$enable_shared" = yes && test "$GCC" = yes; then
10011 case $archive_cmds in
10012 *'~'*)
10013 # FIXME: we may have to deal with multi-command sequences.
10015 '$CC '*)
10016 # Test whether the compiler implicitly links with -lc since on some
10017 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10018 # to ld, don't add -lc before -lgcc.
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10020 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10021 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10022 $as_echo_n "(cached) " >&6
10023 else
10024 $RM conftest*
10025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10028 (eval $ac_compile) 2>&5
10029 ac_status=$?
10030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10031 test $ac_status = 0; } 2>conftest.err; then
10032 soname=conftest
10033 lib=conftest
10034 libobjs=conftest.$ac_objext
10035 deplibs=
10036 wl=$lt_prog_compiler_wl
10037 pic_flag=$lt_prog_compiler_pic
10038 compiler_flags=-v
10039 linker_flags=-v
10040 verstring=
10041 output_objdir=.
10042 libname=conftest
10043 lt_save_allow_undefined_flag=$allow_undefined_flag
10044 allow_undefined_flag=
10045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10046 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10047 ac_status=$?
10048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10049 test $ac_status = 0; }
10050 then
10051 lt_cv_archive_cmds_need_lc=no
10052 else
10053 lt_cv_archive_cmds_need_lc=yes
10055 allow_undefined_flag=$lt_save_allow_undefined_flag
10056 else
10057 cat conftest.err 1>&5
10059 $RM conftest*
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10063 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10064 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10066 esac
10069 esac
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10223 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10225 if test "$GCC" = yes; then
10226 case $host_os in
10227 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10228 *) lt_awk_arg="/^libraries:/" ;;
10229 esac
10230 case $host_os in
10231 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10232 *) lt_sed_strip_eq="s,=/,/,g" ;;
10233 esac
10234 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10235 case $lt_search_path_spec in
10236 *\;*)
10237 # if the path contains ";" then we assume it to be the separator
10238 # otherwise default to the standard path separator (i.e. ":") - it is
10239 # assumed that no part of a normal pathname contains ";" but that should
10240 # okay in the real world where ";" in dirpaths is itself problematic.
10241 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10244 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10246 esac
10247 # Ok, now we have the path, separated by spaces, we can step through it
10248 # and add multilib dir if necessary.
10249 lt_tmp_lt_search_path_spec=
10250 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10251 for lt_sys_path in $lt_search_path_spec; do
10252 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10253 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10254 else
10255 test -d "$lt_sys_path" && \
10256 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10258 done
10259 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10260 BEGIN {RS=" "; FS="/|\n";} {
10261 lt_foo="";
10262 lt_count=0;
10263 for (lt_i = NF; lt_i > 0; lt_i--) {
10264 if ($lt_i != "" && $lt_i != ".") {
10265 if ($lt_i == "..") {
10266 lt_count++;
10267 } else {
10268 if (lt_count == 0) {
10269 lt_foo="/" $lt_i lt_foo;
10270 } else {
10271 lt_count--;
10276 if (lt_foo != "") { lt_freq[lt_foo]++; }
10277 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10279 # AWK program above erroneously prepends '/' to C:/dos/paths
10280 # for these hosts.
10281 case $host_os in
10282 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10283 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10284 esac
10285 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10286 else
10287 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10289 library_names_spec=
10290 libname_spec='lib$name'
10291 soname_spec=
10292 shrext_cmds=".so"
10293 postinstall_cmds=
10294 postuninstall_cmds=
10295 finish_cmds=
10296 finish_eval=
10297 shlibpath_var=
10298 shlibpath_overrides_runpath=unknown
10299 version_type=none
10300 dynamic_linker="$host_os ld.so"
10301 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10302 need_lib_prefix=unknown
10303 hardcode_into_libs=no
10305 # when you set need_version to no, make sure it does not cause -set_version
10306 # flags to be left without arguments
10307 need_version=unknown
10309 case $host_os in
10310 aix3*)
10311 version_type=linux # correct to gnu/linux during the next big refactor
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10313 shlibpath_var=LIBPATH
10315 # AIX 3 has no versioning support, so we append a major version to the name.
10316 soname_spec='${libname}${release}${shared_ext}$major'
10319 aix[4-9]*)
10320 version_type=linux # correct to gnu/linux during the next big refactor
10321 need_lib_prefix=no
10322 need_version=no
10323 hardcode_into_libs=yes
10324 if test "$host_cpu" = ia64; then
10325 # AIX 5 supports IA64
10326 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10327 shlibpath_var=LD_LIBRARY_PATH
10328 else
10329 # With GCC up to 2.95.x, collect2 would create an import file
10330 # for dependence libraries. The import file would start with
10331 # the line `#! .'. This would cause the generated library to
10332 # depend on `.', always an invalid library. This was fixed in
10333 # development snapshots of GCC prior to 3.0.
10334 case $host_os in
10335 aix4 | aix4.[01] | aix4.[01].*)
10336 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10337 echo ' yes '
10338 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10340 else
10341 can_build_shared=no
10344 esac
10345 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10346 # soname into executable. Probably we can add versioning support to
10347 # collect2, so additional links can be useful in future.
10348 if test "$aix_use_runtimelinking" = yes; then
10349 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10350 # instead of lib<name>.a to let people know that these are not
10351 # typical AIX shared libraries.
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10353 else
10354 # We preserve .a as extension for shared libraries through AIX4.2
10355 # and later when we are not doing run time linking.
10356 library_names_spec='${libname}${release}.a $libname.a'
10357 soname_spec='${libname}${release}${shared_ext}$major'
10359 shlibpath_var=LIBPATH
10363 amigaos*)
10364 case $host_cpu in
10365 powerpc)
10366 # Since July 2007 AmigaOS4 officially supports .so libraries.
10367 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370 m68k)
10371 library_names_spec='$libname.ixlibrary $libname.a'
10372 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10373 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'
10375 esac
10378 beos*)
10379 library_names_spec='${libname}${shared_ext}'
10380 dynamic_linker="$host_os ld.so"
10381 shlibpath_var=LIBRARY_PATH
10384 bsdi[45]*)
10385 version_type=linux # correct to gnu/linux during the next big refactor
10386 need_version=no
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10390 shlibpath_var=LD_LIBRARY_PATH
10391 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10392 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10393 # the default ld.so.conf also contains /usr/contrib/lib and
10394 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10395 # libtool to hard-code these into programs
10398 cygwin* | mingw* | pw32* | cegcc*)
10399 version_type=windows
10400 shrext_cmds=".dll"
10401 need_version=no
10402 need_lib_prefix=no
10404 case $GCC,$cc_basename in
10405 yes,*)
10406 # gcc
10407 library_names_spec='$libname.dll.a'
10408 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10409 postinstall_cmds='base_file=`basename \${file}`~
10410 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10411 dldir=$destdir/`dirname \$dlpath`~
10412 test -d \$dldir || mkdir -p \$dldir~
10413 $install_prog $dir/$dlname \$dldir/$dlname~
10414 chmod a+x \$dldir/$dlname~
10415 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10416 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10418 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10419 dlpath=$dir/\$dldll~
10420 $RM \$dlpath'
10421 shlibpath_overrides_runpath=yes
10423 case $host_os in
10424 cygwin*)
10425 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10426 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10428 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10430 mingw* | cegcc*)
10431 # MinGW DLLs use traditional 'lib' prefix
10432 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10434 pw32*)
10435 # pw32 DLLs use 'pw' prefix rather than 'lib'
10436 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10438 esac
10439 dynamic_linker='Win32 ld.exe'
10442 *,cl*)
10443 # Native MSVC
10444 libname_spec='$name'
10445 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10446 library_names_spec='${libname}.dll.lib'
10448 case $build_os in
10449 mingw*)
10450 sys_lib_search_path_spec=
10451 lt_save_ifs=$IFS
10452 IFS=';'
10453 for lt_path in $LIB
10455 IFS=$lt_save_ifs
10456 # Let DOS variable expansion print the short 8.3 style file name.
10457 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10458 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10459 done
10460 IFS=$lt_save_ifs
10461 # Convert to MSYS style.
10462 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10464 cygwin*)
10465 # Convert to unix form, then to dos form, then back to unix form
10466 # but this time dos style (no spaces!) so that the unix form looks
10467 # like /cygdrive/c/PROGRA~1:/cygdr...
10468 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10469 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10470 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10473 sys_lib_search_path_spec="$LIB"
10474 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10475 # It is most probably a Windows format PATH.
10476 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10477 else
10478 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10480 # FIXME: find the short name or the path components, as spaces are
10481 # common. (e.g. "Program Files" -> "PROGRA~1")
10483 esac
10485 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10486 postinstall_cmds='base_file=`basename \${file}`~
10487 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10488 dldir=$destdir/`dirname \$dlpath`~
10489 test -d \$dldir || mkdir -p \$dldir~
10490 $install_prog $dir/$dlname \$dldir/$dlname'
10491 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10492 dlpath=$dir/\$dldll~
10493 $RM \$dlpath'
10494 shlibpath_overrides_runpath=yes
10495 dynamic_linker='Win32 link.exe'
10499 # Assume MSVC wrapper
10500 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10501 dynamic_linker='Win32 ld.exe'
10503 esac
10504 # FIXME: first we should search . and the directory the executable is in
10505 shlibpath_var=PATH
10508 darwin* | rhapsody*)
10509 dynamic_linker="$host_os dyld"
10510 version_type=darwin
10511 need_lib_prefix=no
10512 need_version=no
10513 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10514 soname_spec='${libname}${release}${major}$shared_ext'
10515 shlibpath_overrides_runpath=yes
10516 shlibpath_var=DYLD_LIBRARY_PATH
10517 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10519 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10520 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10523 dgux*)
10524 version_type=linux # correct to gnu/linux during the next big refactor
10525 need_lib_prefix=no
10526 need_version=no
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10528 soname_spec='${libname}${release}${shared_ext}$major'
10529 shlibpath_var=LD_LIBRARY_PATH
10532 freebsd* | dragonfly*)
10533 # DragonFly does not have aout. When/if they implement a new
10534 # versioning mechanism, adjust this.
10535 if test -x /usr/bin/objformat; then
10536 objformat=`/usr/bin/objformat`
10537 else
10538 case $host_os in
10539 freebsd[23].*) objformat=aout ;;
10540 *) objformat=elf ;;
10541 esac
10543 version_type=freebsd-$objformat
10544 case $version_type in
10545 freebsd-elf*)
10546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10547 need_version=no
10548 need_lib_prefix=no
10550 freebsd-*)
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10552 need_version=yes
10554 esac
10555 shlibpath_var=LD_LIBRARY_PATH
10556 case $host_os in
10557 freebsd2.*)
10558 shlibpath_overrides_runpath=yes
10560 freebsd3.[01]* | freebsdelf3.[01]*)
10561 shlibpath_overrides_runpath=yes
10562 hardcode_into_libs=yes
10564 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10565 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10566 shlibpath_overrides_runpath=no
10567 hardcode_into_libs=yes
10569 *) # from 4.6 on, and DragonFly
10570 shlibpath_overrides_runpath=yes
10571 hardcode_into_libs=yes
10573 esac
10576 gnu*)
10577 version_type=linux # correct to gnu/linux during the next big refactor
10578 need_lib_prefix=no
10579 need_version=no
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10581 soname_spec='${libname}${release}${shared_ext}$major'
10582 shlibpath_var=LD_LIBRARY_PATH
10583 shlibpath_overrides_runpath=no
10584 hardcode_into_libs=yes
10587 haiku*)
10588 version_type=linux # correct to gnu/linux during the next big refactor
10589 need_lib_prefix=no
10590 need_version=no
10591 dynamic_linker="$host_os runtime_loader"
10592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10593 soname_spec='${libname}${release}${shared_ext}$major'
10594 shlibpath_var=LIBRARY_PATH
10595 shlibpath_overrides_runpath=yes
10596 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10597 hardcode_into_libs=yes
10600 hpux9* | hpux10* | hpux11*)
10601 # Give a soname corresponding to the major version so that dld.sl refuses to
10602 # link against other versions.
10603 version_type=sunos
10604 need_lib_prefix=no
10605 need_version=no
10606 case $host_cpu in
10607 ia64*)
10608 shrext_cmds='.so'
10609 hardcode_into_libs=yes
10610 dynamic_linker="$host_os dld.so"
10611 shlibpath_var=LD_LIBRARY_PATH
10612 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10614 soname_spec='${libname}${release}${shared_ext}$major'
10615 if test "X$HPUX_IA64_MODE" = X32; then
10616 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10617 else
10618 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10620 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10622 hppa*64*)
10623 shrext_cmds='.sl'
10624 hardcode_into_libs=yes
10625 dynamic_linker="$host_os dld.sl"
10626 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10627 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629 soname_spec='${libname}${release}${shared_ext}$major'
10630 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10631 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10634 shrext_cmds='.sl'
10635 dynamic_linker="$host_os dld.sl"
10636 shlibpath_var=SHLIB_PATH
10637 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10639 soname_spec='${libname}${release}${shared_ext}$major'
10641 esac
10642 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10643 postinstall_cmds='chmod 555 $lib'
10644 # or fails outright, so override atomically:
10645 install_override_mode=555
10648 interix[3-9]*)
10649 version_type=linux # correct to gnu/linux during the next big refactor
10650 need_lib_prefix=no
10651 need_version=no
10652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10653 soname_spec='${libname}${release}${shared_ext}$major'
10654 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 shlibpath_overrides_runpath=no
10657 hardcode_into_libs=yes
10660 irix5* | irix6* | nonstopux*)
10661 case $host_os in
10662 nonstopux*) version_type=nonstopux ;;
10664 if test "$lt_cv_prog_gnu_ld" = yes; then
10665 version_type=linux # correct to gnu/linux during the next big refactor
10666 else
10667 version_type=irix
10668 fi ;;
10669 esac
10670 need_lib_prefix=no
10671 need_version=no
10672 soname_spec='${libname}${release}${shared_ext}$major'
10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10674 case $host_os in
10675 irix5* | nonstopux*)
10676 libsuff= shlibsuff=
10679 case $LD in # libtool.m4 will add one of these switches to LD
10680 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10681 libsuff= shlibsuff= libmagic=32-bit;;
10682 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10683 libsuff=32 shlibsuff=N32 libmagic=N32;;
10684 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10685 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10686 *) libsuff= shlibsuff= libmagic=never-match;;
10687 esac
10689 esac
10690 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10691 shlibpath_overrides_runpath=no
10692 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10693 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10694 hardcode_into_libs=yes
10697 # No shared lib support for Linux oldld, aout, or coff.
10698 linux*oldld* | linux*aout* | linux*coff*)
10699 dynamic_linker=no
10702 # This must be glibc/ELF.
10703 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10704 version_type=linux # correct to gnu/linux during the next big refactor
10705 need_lib_prefix=no
10706 need_version=no
10707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10708 soname_spec='${libname}${release}${shared_ext}$major'
10709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10710 shlibpath_var=LD_LIBRARY_PATH
10711 shlibpath_overrides_runpath=no
10713 # Some binutils ld are patched to set DT_RUNPATH
10714 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10715 $as_echo_n "(cached) " >&6
10716 else
10717 lt_cv_shlibpath_overrides_runpath=no
10718 save_LDFLAGS=$LDFLAGS
10719 save_libdir=$libdir
10720 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10721 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10723 /* end confdefs.h. */
10726 main ()
10730 return 0;
10732 _ACEOF
10733 if ac_fn_c_try_link "$LINENO"; then :
10734 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10735 lt_cv_shlibpath_overrides_runpath=yes
10738 rm -f core conftest.err conftest.$ac_objext \
10739 conftest$ac_exeext conftest.$ac_ext
10740 LDFLAGS=$save_LDFLAGS
10741 libdir=$save_libdir
10745 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10747 # This implies no fast_install, which is unacceptable.
10748 # Some rework will be needed to allow for fast_install
10749 # before this can be enabled.
10750 hardcode_into_libs=yes
10752 # Append ld.so.conf contents to the search path
10753 if test -f /etc/ld.so.conf; then
10754 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' ' '`
10755 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10758 # We used to test for /lib/ld.so.1 and disable shared libraries on
10759 # powerpc, because MkLinux only supported shared libraries with the
10760 # GNU dynamic linker. Since this was broken with cross compilers,
10761 # most powerpc-linux boxes support dynamic linking these days and
10762 # people can always --disable-shared, the test was removed, and we
10763 # assume the GNU/Linux dynamic linker is in use.
10764 dynamic_linker='GNU/Linux ld.so'
10767 netbsdelf*-gnu)
10768 version_type=linux
10769 need_lib_prefix=no
10770 need_version=no
10771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10772 soname_spec='${libname}${release}${shared_ext}$major'
10773 shlibpath_var=LD_LIBRARY_PATH
10774 shlibpath_overrides_runpath=no
10775 hardcode_into_libs=yes
10776 dynamic_linker='NetBSD ld.elf_so'
10779 netbsd*)
10780 version_type=sunos
10781 need_lib_prefix=no
10782 need_version=no
10783 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10785 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10786 dynamic_linker='NetBSD (a.out) ld.so'
10787 else
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10789 soname_spec='${libname}${release}${shared_ext}$major'
10790 dynamic_linker='NetBSD ld.elf_so'
10792 shlibpath_var=LD_LIBRARY_PATH
10793 shlibpath_overrides_runpath=yes
10794 hardcode_into_libs=yes
10797 newsos6)
10798 version_type=linux # correct to gnu/linux during the next big refactor
10799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10800 shlibpath_var=LD_LIBRARY_PATH
10801 shlibpath_overrides_runpath=yes
10804 *nto* | *qnx*)
10805 version_type=qnx
10806 need_lib_prefix=no
10807 need_version=no
10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10809 soname_spec='${libname}${release}${shared_ext}$major'
10810 shlibpath_var=LD_LIBRARY_PATH
10811 shlibpath_overrides_runpath=no
10812 hardcode_into_libs=yes
10813 dynamic_linker='ldqnx.so'
10816 openbsd*)
10817 version_type=sunos
10818 sys_lib_dlsearch_path_spec="/usr/lib"
10819 need_lib_prefix=no
10820 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10821 case $host_os in
10822 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10823 *) need_version=no ;;
10824 esac
10825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10827 shlibpath_var=LD_LIBRARY_PATH
10828 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10829 case $host_os in
10830 openbsd2.[89] | openbsd2.[89].*)
10831 shlibpath_overrides_runpath=no
10834 shlibpath_overrides_runpath=yes
10836 esac
10837 else
10838 shlibpath_overrides_runpath=yes
10842 os2*)
10843 libname_spec='$name'
10844 shrext_cmds=".dll"
10845 need_lib_prefix=no
10846 library_names_spec='$libname${shared_ext} $libname.a'
10847 dynamic_linker='OS/2 ld.exe'
10848 shlibpath_var=LIBPATH
10851 osf3* | osf4* | osf5*)
10852 version_type=osf
10853 need_lib_prefix=no
10854 need_version=no
10855 soname_spec='${libname}${release}${shared_ext}$major'
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10857 shlibpath_var=LD_LIBRARY_PATH
10858 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10859 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10862 rdos*)
10863 dynamic_linker=no
10866 solaris*)
10867 version_type=linux # correct to gnu/linux during the next big refactor
10868 need_lib_prefix=no
10869 need_version=no
10870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10871 soname_spec='${libname}${release}${shared_ext}$major'
10872 shlibpath_var=LD_LIBRARY_PATH
10873 shlibpath_overrides_runpath=yes
10874 hardcode_into_libs=yes
10875 # ldd complains unless libraries are executable
10876 postinstall_cmds='chmod +x $lib'
10879 sunos4*)
10880 version_type=sunos
10881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10882 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10883 shlibpath_var=LD_LIBRARY_PATH
10884 shlibpath_overrides_runpath=yes
10885 if test "$with_gnu_ld" = yes; then
10886 need_lib_prefix=no
10888 need_version=yes
10891 sysv4 | sysv4.3*)
10892 version_type=linux # correct to gnu/linux during the next big refactor
10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10894 soname_spec='${libname}${release}${shared_ext}$major'
10895 shlibpath_var=LD_LIBRARY_PATH
10896 case $host_vendor in
10897 sni)
10898 shlibpath_overrides_runpath=no
10899 need_lib_prefix=no
10900 runpath_var=LD_RUN_PATH
10902 siemens)
10903 need_lib_prefix=no
10905 motorola)
10906 need_lib_prefix=no
10907 need_version=no
10908 shlibpath_overrides_runpath=no
10909 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10911 esac
10914 sysv4*MP*)
10915 if test -d /usr/nec ;then
10916 version_type=linux # correct to gnu/linux during the next big refactor
10917 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10918 soname_spec='$libname${shared_ext}.$major'
10919 shlibpath_var=LD_LIBRARY_PATH
10923 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10924 version_type=freebsd-elf
10925 need_lib_prefix=no
10926 need_version=no
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10928 soname_spec='${libname}${release}${shared_ext}$major'
10929 shlibpath_var=LD_LIBRARY_PATH
10930 shlibpath_overrides_runpath=yes
10931 hardcode_into_libs=yes
10932 if test "$with_gnu_ld" = yes; then
10933 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10934 else
10935 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10936 case $host_os in
10937 sco3.2v5*)
10938 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10940 esac
10942 sys_lib_dlsearch_path_spec='/usr/lib'
10945 tpf*)
10946 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10947 version_type=linux # correct to gnu/linux during the next big refactor
10948 need_lib_prefix=no
10949 need_version=no
10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10951 shlibpath_var=LD_LIBRARY_PATH
10952 shlibpath_overrides_runpath=no
10953 hardcode_into_libs=yes
10956 uts4*)
10957 version_type=linux # correct to gnu/linux during the next big refactor
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10959 soname_spec='${libname}${release}${shared_ext}$major'
10960 shlibpath_var=LD_LIBRARY_PATH
10964 dynamic_linker=no
10966 esac
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10968 $as_echo "$dynamic_linker" >&6; }
10969 test "$dynamic_linker" = no && can_build_shared=no
10971 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10972 if test "$GCC" = yes; then
10973 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10976 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10977 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10979 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10980 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11075 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11076 hardcode_action=
11077 if test -n "$hardcode_libdir_flag_spec" ||
11078 test -n "$runpath_var" ||
11079 test "X$hardcode_automatic" = "Xyes" ; then
11081 # We can hardcode non-existent directories.
11082 if test "$hardcode_direct" != no &&
11083 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11084 # have to relink, otherwise we might link with an installed library
11085 # when we should be linking with a yet-to-be-installed one
11086 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11087 test "$hardcode_minus_L" != no; then
11088 # Linking always hardcodes the temporary library directory.
11089 hardcode_action=relink
11090 else
11091 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11092 hardcode_action=immediate
11094 else
11095 # We cannot hardcode anything, or else we can only hardcode existing
11096 # directories.
11097 hardcode_action=unsupported
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11100 $as_echo "$hardcode_action" >&6; }
11102 if test "$hardcode_action" = relink ||
11103 test "$inherit_rpath" = yes; then
11104 # Fast installation is not supported
11105 enable_fast_install=no
11106 elif test "$shlibpath_overrides_runpath" = yes ||
11107 test "$enable_shared" = no; then
11108 # Fast installation is not necessary
11109 enable_fast_install=needless
11117 if test "x$enable_dlopen" != xyes; then
11118 enable_dlopen=unknown
11119 enable_dlopen_self=unknown
11120 enable_dlopen_self_static=unknown
11121 else
11122 lt_cv_dlopen=no
11123 lt_cv_dlopen_libs=
11125 case $host_os in
11126 beos*)
11127 lt_cv_dlopen="load_add_on"
11128 lt_cv_dlopen_libs=
11129 lt_cv_dlopen_self=yes
11132 mingw* | pw32* | cegcc*)
11133 lt_cv_dlopen="LoadLibrary"
11134 lt_cv_dlopen_libs=
11137 cygwin*)
11138 lt_cv_dlopen="dlopen"
11139 lt_cv_dlopen_libs=
11142 darwin*)
11143 # if libdl is installed we need to link against it
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11145 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11146 if ${ac_cv_lib_dl_dlopen+:} false; then :
11147 $as_echo_n "(cached) " >&6
11148 else
11149 ac_check_lib_save_LIBS=$LIBS
11150 LIBS="-ldl $LIBS"
11151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11152 /* end confdefs.h. */
11154 /* Override any GCC internal prototype to avoid an error.
11155 Use char because int might match the return type of a GCC
11156 builtin and then its argument prototype would still apply. */
11157 #ifdef __cplusplus
11158 extern "C"
11159 #endif
11160 char dlopen ();
11162 main ()
11164 return dlopen ();
11166 return 0;
11168 _ACEOF
11169 if ac_fn_c_try_link "$LINENO"; then :
11170 ac_cv_lib_dl_dlopen=yes
11171 else
11172 ac_cv_lib_dl_dlopen=no
11174 rm -f core conftest.err conftest.$ac_objext \
11175 conftest$ac_exeext conftest.$ac_ext
11176 LIBS=$ac_check_lib_save_LIBS
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11179 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11180 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11181 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11182 else
11184 lt_cv_dlopen="dyld"
11185 lt_cv_dlopen_libs=
11186 lt_cv_dlopen_self=yes
11193 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11194 if test "x$ac_cv_func_shl_load" = xyes; then :
11195 lt_cv_dlopen="shl_load"
11196 else
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11198 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11199 if ${ac_cv_lib_dld_shl_load+:} false; then :
11200 $as_echo_n "(cached) " >&6
11201 else
11202 ac_check_lib_save_LIBS=$LIBS
11203 LIBS="-ldld $LIBS"
11204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11205 /* end confdefs.h. */
11207 /* Override any GCC internal prototype to avoid an error.
11208 Use char because int might match the return type of a GCC
11209 builtin and then its argument prototype would still apply. */
11210 #ifdef __cplusplus
11211 extern "C"
11212 #endif
11213 char shl_load ();
11215 main ()
11217 return shl_load ();
11219 return 0;
11221 _ACEOF
11222 if ac_fn_c_try_link "$LINENO"; then :
11223 ac_cv_lib_dld_shl_load=yes
11224 else
11225 ac_cv_lib_dld_shl_load=no
11227 rm -f core conftest.err conftest.$ac_objext \
11228 conftest$ac_exeext conftest.$ac_ext
11229 LIBS=$ac_check_lib_save_LIBS
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11232 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11233 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11234 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11235 else
11236 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11237 if test "x$ac_cv_func_dlopen" = xyes; then :
11238 lt_cv_dlopen="dlopen"
11239 else
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11241 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11242 if ${ac_cv_lib_dl_dlopen+:} false; then :
11243 $as_echo_n "(cached) " >&6
11244 else
11245 ac_check_lib_save_LIBS=$LIBS
11246 LIBS="-ldl $LIBS"
11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11250 /* Override any GCC internal prototype to avoid an error.
11251 Use char because int might match the return type of a GCC
11252 builtin and then its argument prototype would still apply. */
11253 #ifdef __cplusplus
11254 extern "C"
11255 #endif
11256 char dlopen ();
11258 main ()
11260 return dlopen ();
11262 return 0;
11264 _ACEOF
11265 if ac_fn_c_try_link "$LINENO"; then :
11266 ac_cv_lib_dl_dlopen=yes
11267 else
11268 ac_cv_lib_dl_dlopen=no
11270 rm -f core conftest.err conftest.$ac_objext \
11271 conftest$ac_exeext conftest.$ac_ext
11272 LIBS=$ac_check_lib_save_LIBS
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11275 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11276 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11277 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11278 else
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11280 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11281 if ${ac_cv_lib_svld_dlopen+:} false; then :
11282 $as_echo_n "(cached) " >&6
11283 else
11284 ac_check_lib_save_LIBS=$LIBS
11285 LIBS="-lsvld $LIBS"
11286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11287 /* end confdefs.h. */
11289 /* Override any GCC internal prototype to avoid an error.
11290 Use char because int might match the return type of a GCC
11291 builtin and then its argument prototype would still apply. */
11292 #ifdef __cplusplus
11293 extern "C"
11294 #endif
11295 char dlopen ();
11297 main ()
11299 return dlopen ();
11301 return 0;
11303 _ACEOF
11304 if ac_fn_c_try_link "$LINENO"; then :
11305 ac_cv_lib_svld_dlopen=yes
11306 else
11307 ac_cv_lib_svld_dlopen=no
11309 rm -f core conftest.err conftest.$ac_objext \
11310 conftest$ac_exeext conftest.$ac_ext
11311 LIBS=$ac_check_lib_save_LIBS
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11314 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11315 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11316 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11317 else
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11319 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11320 if ${ac_cv_lib_dld_dld_link+:} false; then :
11321 $as_echo_n "(cached) " >&6
11322 else
11323 ac_check_lib_save_LIBS=$LIBS
11324 LIBS="-ldld $LIBS"
11325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11326 /* end confdefs.h. */
11328 /* Override any GCC internal prototype to avoid an error.
11329 Use char because int might match the return type of a GCC
11330 builtin and then its argument prototype would still apply. */
11331 #ifdef __cplusplus
11332 extern "C"
11333 #endif
11334 char dld_link ();
11336 main ()
11338 return dld_link ();
11340 return 0;
11342 _ACEOF
11343 if ac_fn_c_try_link "$LINENO"; then :
11344 ac_cv_lib_dld_dld_link=yes
11345 else
11346 ac_cv_lib_dld_dld_link=no
11348 rm -f core conftest.err conftest.$ac_objext \
11349 conftest$ac_exeext conftest.$ac_ext
11350 LIBS=$ac_check_lib_save_LIBS
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11353 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11354 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11355 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11374 esac
11376 if test "x$lt_cv_dlopen" != xno; then
11377 enable_dlopen=yes
11378 else
11379 enable_dlopen=no
11382 case $lt_cv_dlopen in
11383 dlopen)
11384 save_CPPFLAGS="$CPPFLAGS"
11385 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11387 save_LDFLAGS="$LDFLAGS"
11388 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11390 save_LIBS="$LIBS"
11391 LIBS="$lt_cv_dlopen_libs $LIBS"
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11394 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11395 if ${lt_cv_dlopen_self+:} false; then :
11396 $as_echo_n "(cached) " >&6
11397 else
11398 if test "$cross_compiling" = yes; then :
11399 lt_cv_dlopen_self=cross
11400 else
11401 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11402 lt_status=$lt_dlunknown
11403 cat > conftest.$ac_ext <<_LT_EOF
11404 #line $LINENO "configure"
11405 #include "confdefs.h"
11407 #if HAVE_DLFCN_H
11408 #include <dlfcn.h>
11409 #endif
11411 #include <stdio.h>
11413 #ifdef RTLD_GLOBAL
11414 # define LT_DLGLOBAL RTLD_GLOBAL
11415 #else
11416 # ifdef DL_GLOBAL
11417 # define LT_DLGLOBAL DL_GLOBAL
11418 # else
11419 # define LT_DLGLOBAL 0
11420 # endif
11421 #endif
11423 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11424 find out it does not work in some platform. */
11425 #ifndef LT_DLLAZY_OR_NOW
11426 # ifdef RTLD_LAZY
11427 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11428 # else
11429 # ifdef DL_LAZY
11430 # define LT_DLLAZY_OR_NOW DL_LAZY
11431 # else
11432 # ifdef RTLD_NOW
11433 # define LT_DLLAZY_OR_NOW RTLD_NOW
11434 # else
11435 # ifdef DL_NOW
11436 # define LT_DLLAZY_OR_NOW DL_NOW
11437 # else
11438 # define LT_DLLAZY_OR_NOW 0
11439 # endif
11440 # endif
11441 # endif
11442 # endif
11443 #endif
11445 /* When -fvisbility=hidden is used, assume the code has been annotated
11446 correspondingly for the symbols needed. */
11447 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11448 int fnord () __attribute__((visibility("default")));
11449 #endif
11451 int fnord () { return 42; }
11452 int main ()
11454 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11455 int status = $lt_dlunknown;
11457 if (self)
11459 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11460 else
11462 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11463 else puts (dlerror ());
11465 /* dlclose (self); */
11467 else
11468 puts (dlerror ());
11470 return status;
11472 _LT_EOF
11473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11474 (eval $ac_link) 2>&5
11475 ac_status=$?
11476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11477 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11478 (./conftest; exit; ) >&5 2>/dev/null
11479 lt_status=$?
11480 case x$lt_status in
11481 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11482 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11483 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11484 esac
11485 else :
11486 # compilation failed
11487 lt_cv_dlopen_self=no
11490 rm -fr conftest*
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11495 $as_echo "$lt_cv_dlopen_self" >&6; }
11497 if test "x$lt_cv_dlopen_self" = xyes; then
11498 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11500 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11501 if ${lt_cv_dlopen_self_static+:} false; then :
11502 $as_echo_n "(cached) " >&6
11503 else
11504 if test "$cross_compiling" = yes; then :
11505 lt_cv_dlopen_self_static=cross
11506 else
11507 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11508 lt_status=$lt_dlunknown
11509 cat > conftest.$ac_ext <<_LT_EOF
11510 #line $LINENO "configure"
11511 #include "confdefs.h"
11513 #if HAVE_DLFCN_H
11514 #include <dlfcn.h>
11515 #endif
11517 #include <stdio.h>
11519 #ifdef RTLD_GLOBAL
11520 # define LT_DLGLOBAL RTLD_GLOBAL
11521 #else
11522 # ifdef DL_GLOBAL
11523 # define LT_DLGLOBAL DL_GLOBAL
11524 # else
11525 # define LT_DLGLOBAL 0
11526 # endif
11527 #endif
11529 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11530 find out it does not work in some platform. */
11531 #ifndef LT_DLLAZY_OR_NOW
11532 # ifdef RTLD_LAZY
11533 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11534 # else
11535 # ifdef DL_LAZY
11536 # define LT_DLLAZY_OR_NOW DL_LAZY
11537 # else
11538 # ifdef RTLD_NOW
11539 # define LT_DLLAZY_OR_NOW RTLD_NOW
11540 # else
11541 # ifdef DL_NOW
11542 # define LT_DLLAZY_OR_NOW DL_NOW
11543 # else
11544 # define LT_DLLAZY_OR_NOW 0
11545 # endif
11546 # endif
11547 # endif
11548 # endif
11549 #endif
11551 /* When -fvisbility=hidden is used, assume the code has been annotated
11552 correspondingly for the symbols needed. */
11553 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11554 int fnord () __attribute__((visibility("default")));
11555 #endif
11557 int fnord () { return 42; }
11558 int main ()
11560 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11561 int status = $lt_dlunknown;
11563 if (self)
11565 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11566 else
11568 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11569 else puts (dlerror ());
11571 /* dlclose (self); */
11573 else
11574 puts (dlerror ());
11576 return status;
11578 _LT_EOF
11579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11580 (eval $ac_link) 2>&5
11581 ac_status=$?
11582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11583 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11584 (./conftest; exit; ) >&5 2>/dev/null
11585 lt_status=$?
11586 case x$lt_status in
11587 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11588 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11589 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11590 esac
11591 else :
11592 # compilation failed
11593 lt_cv_dlopen_self_static=no
11596 rm -fr conftest*
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11601 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11604 CPPFLAGS="$save_CPPFLAGS"
11605 LDFLAGS="$save_LDFLAGS"
11606 LIBS="$save_LIBS"
11608 esac
11610 case $lt_cv_dlopen_self in
11611 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11612 *) enable_dlopen_self=unknown ;;
11613 esac
11615 case $lt_cv_dlopen_self_static in
11616 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11617 *) enable_dlopen_self_static=unknown ;;
11618 esac
11637 striplib=
11638 old_striplib=
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11640 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11641 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11642 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11643 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11645 $as_echo "yes" >&6; }
11646 else
11647 # FIXME - insert some real tests, host_os isn't really good enough
11648 case $host_os in
11649 darwin*)
11650 if test -n "$STRIP" ; then
11651 striplib="$STRIP -x"
11652 old_striplib="$STRIP -S"
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11654 $as_echo "yes" >&6; }
11655 else
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657 $as_echo "no" >&6; }
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11662 $as_echo "no" >&6; }
11664 esac
11678 # Report which library types will actually be built
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11680 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11682 $as_echo "$can_build_shared" >&6; }
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11685 $as_echo_n "checking whether to build shared libraries... " >&6; }
11686 test "$can_build_shared" = "no" && enable_shared=no
11688 # On AIX, shared libraries and static libraries use the same namespace, and
11689 # are all built from PIC.
11690 case $host_os in
11691 aix3*)
11692 test "$enable_shared" = yes && enable_static=no
11693 if test -n "$RANLIB"; then
11694 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11695 postinstall_cmds='$RANLIB $lib'
11699 aix[4-9]*)
11700 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11701 test "$enable_shared" = yes && enable_static=no
11704 esac
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11706 $as_echo "$enable_shared" >&6; }
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11709 $as_echo_n "checking whether to build static libraries... " >&6; }
11710 # Make sure either enable_shared or enable_static is yes.
11711 test "$enable_shared" = yes || enable_static=yes
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11713 $as_echo "$enable_static" >&6; }
11719 ac_ext=c
11720 ac_cpp='$CPP $CPPFLAGS'
11721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11725 CC="$lt_save_CC"
11741 ac_config_commands="$ac_config_commands libtool"
11746 # Only expand once:
11750 if test 0 = "0"; then
11751 supported_build=yes
11752 CPPFLAGS="$CPPFLAGS -DNDEBUG"
11753 else
11754 supported_build=no
11755 if test "x$GCC" = "xyes" ; then
11756 CFLAGS="$CFLAGS -g -O0"
11757 CXXFLAGS="$CXXFLAGS -g -O0"
11760 if test "x$supported_build" = "xno"; then
11761 TR_UNSTABLE_TRUE=
11762 TR_UNSTABLE_FALSE='#'
11763 else
11764 TR_UNSTABLE_TRUE='#'
11765 TR_UNSTABLE_FALSE=
11771 ## MANDATORY for everything
11774 CURL_MINIMUM=7.15.4
11776 LIBEVENT_MINIMUM=2.0.10
11778 OPENSSL_MINIMUM=0.9.4
11783 ## MANDATORY for the GTK+ client
11787 GTK2_MINIMUM=2.22.0
11789 GTK3_MINIMUM=3.2.0
11791 GLIB_MINIMUM=2.28.0
11793 GIO_MINIMUM=2.26.0
11798 ## OPTIONAL for the GTK+ client
11802 # create the tray icon with AppIndicator
11803 LIBAPPINDICATOR_MINIMUM=0.0.11
11807 ac_ext=c
11808 ac_cpp='$CPP $CPPFLAGS'
11809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11812 if test -n "$ac_tool_prefix"; then
11813 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11814 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11816 $as_echo_n "checking for $ac_word... " >&6; }
11817 if ${ac_cv_prog_CC+:} false; then :
11818 $as_echo_n "(cached) " >&6
11819 else
11820 if test -n "$CC"; then
11821 ac_cv_prog_CC="$CC" # Let the user override the test.
11822 else
11823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11824 for as_dir in $PATH
11826 IFS=$as_save_IFS
11827 test -z "$as_dir" && as_dir=.
11828 for ac_exec_ext in '' $ac_executable_extensions; do
11829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11830 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11832 break 2
11834 done
11835 done
11836 IFS=$as_save_IFS
11840 CC=$ac_cv_prog_CC
11841 if test -n "$CC"; then
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11843 $as_echo "$CC" >&6; }
11844 else
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
11851 if test -z "$ac_cv_prog_CC"; then
11852 ac_ct_CC=$CC
11853 # Extract the first word of "gcc", so it can be a program name with args.
11854 set dummy gcc; ac_word=$2
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11856 $as_echo_n "checking for $ac_word... " >&6; }
11857 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11858 $as_echo_n "(cached) " >&6
11859 else
11860 if test -n "$ac_ct_CC"; then
11861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11862 else
11863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11864 for as_dir in $PATH
11866 IFS=$as_save_IFS
11867 test -z "$as_dir" && as_dir=.
11868 for ac_exec_ext in '' $ac_executable_extensions; do
11869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11870 ac_cv_prog_ac_ct_CC="gcc"
11871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11872 break 2
11874 done
11875 done
11876 IFS=$as_save_IFS
11880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11881 if test -n "$ac_ct_CC"; then
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11883 $as_echo "$ac_ct_CC" >&6; }
11884 else
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11886 $as_echo "no" >&6; }
11889 if test "x$ac_ct_CC" = x; then
11890 CC=""
11891 else
11892 case $cross_compiling:$ac_tool_warned in
11893 yes:)
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11896 ac_tool_warned=yes ;;
11897 esac
11898 CC=$ac_ct_CC
11900 else
11901 CC="$ac_cv_prog_CC"
11904 if test -z "$CC"; then
11905 if test -n "$ac_tool_prefix"; then
11906 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11907 set dummy ${ac_tool_prefix}cc; ac_word=$2
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11909 $as_echo_n "checking for $ac_word... " >&6; }
11910 if ${ac_cv_prog_CC+:} false; then :
11911 $as_echo_n "(cached) " >&6
11912 else
11913 if test -n "$CC"; then
11914 ac_cv_prog_CC="$CC" # Let the user override the test.
11915 else
11916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917 for as_dir in $PATH
11919 IFS=$as_save_IFS
11920 test -z "$as_dir" && as_dir=.
11921 for ac_exec_ext in '' $ac_executable_extensions; do
11922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11923 ac_cv_prog_CC="${ac_tool_prefix}cc"
11924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11925 break 2
11927 done
11928 done
11929 IFS=$as_save_IFS
11933 CC=$ac_cv_prog_CC
11934 if test -n "$CC"; then
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11936 $as_echo "$CC" >&6; }
11937 else
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939 $as_echo "no" >&6; }
11945 if test -z "$CC"; then
11946 # Extract the first word of "cc", so it can be a program name with args.
11947 set dummy cc; ac_word=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949 $as_echo_n "checking for $ac_word... " >&6; }
11950 if ${ac_cv_prog_CC+:} false; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 if test -n "$CC"; then
11954 ac_cv_prog_CC="$CC" # Let the user override the test.
11955 else
11956 ac_prog_rejected=no
11957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11958 for as_dir in $PATH
11960 IFS=$as_save_IFS
11961 test -z "$as_dir" && as_dir=.
11962 for ac_exec_ext in '' $ac_executable_extensions; do
11963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11964 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11965 ac_prog_rejected=yes
11966 continue
11968 ac_cv_prog_CC="cc"
11969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11970 break 2
11972 done
11973 done
11974 IFS=$as_save_IFS
11976 if test $ac_prog_rejected = yes; then
11977 # We found a bogon in the path, so make sure we never use it.
11978 set dummy $ac_cv_prog_CC
11979 shift
11980 if test $# != 0; then
11981 # We chose a different compiler from the bogus one.
11982 # However, it has the same basename, so the bogon will be chosen
11983 # first if we set CC to just the basename; use the full file name.
11984 shift
11985 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11990 CC=$ac_cv_prog_CC
11991 if test -n "$CC"; then
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11993 $as_echo "$CC" >&6; }
11994 else
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11996 $as_echo "no" >&6; }
12001 if test -z "$CC"; then
12002 if test -n "$ac_tool_prefix"; then
12003 for ac_prog in cl.exe
12005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12008 $as_echo_n "checking for $ac_word... " >&6; }
12009 if ${ac_cv_prog_CC+:} false; then :
12010 $as_echo_n "(cached) " >&6
12011 else
12012 if test -n "$CC"; then
12013 ac_cv_prog_CC="$CC" # Let the user override the test.
12014 else
12015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016 for as_dir in $PATH
12018 IFS=$as_save_IFS
12019 test -z "$as_dir" && as_dir=.
12020 for ac_exec_ext in '' $ac_executable_extensions; do
12021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12022 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12024 break 2
12026 done
12027 done
12028 IFS=$as_save_IFS
12032 CC=$ac_cv_prog_CC
12033 if test -n "$CC"; then
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12035 $as_echo "$CC" >&6; }
12036 else
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038 $as_echo "no" >&6; }
12042 test -n "$CC" && break
12043 done
12045 if test -z "$CC"; then
12046 ac_ct_CC=$CC
12047 for ac_prog in cl.exe
12049 # Extract the first word of "$ac_prog", so it can be a program name with args.
12050 set dummy $ac_prog; ac_word=$2
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12052 $as_echo_n "checking for $ac_word... " >&6; }
12053 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12054 $as_echo_n "(cached) " >&6
12055 else
12056 if test -n "$ac_ct_CC"; then
12057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12058 else
12059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060 for as_dir in $PATH
12062 IFS=$as_save_IFS
12063 test -z "$as_dir" && as_dir=.
12064 for ac_exec_ext in '' $ac_executable_extensions; do
12065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12066 ac_cv_prog_ac_ct_CC="$ac_prog"
12067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12068 break 2
12070 done
12071 done
12072 IFS=$as_save_IFS
12076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12077 if test -n "$ac_ct_CC"; then
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12079 $as_echo "$ac_ct_CC" >&6; }
12080 else
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082 $as_echo "no" >&6; }
12086 test -n "$ac_ct_CC" && break
12087 done
12089 if test "x$ac_ct_CC" = x; then
12090 CC=""
12091 else
12092 case $cross_compiling:$ac_tool_warned in
12093 yes:)
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12096 ac_tool_warned=yes ;;
12097 esac
12098 CC=$ac_ct_CC
12105 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12107 as_fn_error $? "no acceptable C compiler found in \$PATH
12108 See \`config.log' for more details" "$LINENO" 5; }
12110 # Provide some information about the compiler.
12111 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12112 set X $ac_compile
12113 ac_compiler=$2
12114 for ac_option in --version -v -V -qversion; do
12115 { { ac_try="$ac_compiler $ac_option >&5"
12116 case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12119 esac
12120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12121 $as_echo "$ac_try_echo"; } >&5
12122 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12123 ac_status=$?
12124 if test -s conftest.err; then
12125 sed '10a\
12126 ... rest of stderr output deleted ...
12127 10q' conftest.err >conftest.er1
12128 cat conftest.er1 >&5
12130 rm -f conftest.er1 conftest.err
12131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12132 test $ac_status = 0; }
12133 done
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12136 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12137 if ${ac_cv_c_compiler_gnu+:} false; then :
12138 $as_echo_n "(cached) " >&6
12139 else
12140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12141 /* end confdefs.h. */
12144 main ()
12146 #ifndef __GNUC__
12147 choke me
12148 #endif
12151 return 0;
12153 _ACEOF
12154 if ac_fn_c_try_compile "$LINENO"; then :
12155 ac_compiler_gnu=yes
12156 else
12157 ac_compiler_gnu=no
12159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12160 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12164 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12165 if test $ac_compiler_gnu = yes; then
12166 GCC=yes
12167 else
12168 GCC=
12170 ac_test_CFLAGS=${CFLAGS+set}
12171 ac_save_CFLAGS=$CFLAGS
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12173 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12174 if ${ac_cv_prog_cc_g+:} false; then :
12175 $as_echo_n "(cached) " >&6
12176 else
12177 ac_save_c_werror_flag=$ac_c_werror_flag
12178 ac_c_werror_flag=yes
12179 ac_cv_prog_cc_g=no
12180 CFLAGS="-g"
12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12185 main ()
12189 return 0;
12191 _ACEOF
12192 if ac_fn_c_try_compile "$LINENO"; then :
12193 ac_cv_prog_cc_g=yes
12194 else
12195 CFLAGS=""
12196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h. */
12200 main ()
12204 return 0;
12206 _ACEOF
12207 if ac_fn_c_try_compile "$LINENO"; then :
12209 else
12210 ac_c_werror_flag=$ac_save_c_werror_flag
12211 CFLAGS="-g"
12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12216 main ()
12220 return 0;
12222 _ACEOF
12223 if ac_fn_c_try_compile "$LINENO"; then :
12224 ac_cv_prog_cc_g=yes
12226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12231 ac_c_werror_flag=$ac_save_c_werror_flag
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12234 $as_echo "$ac_cv_prog_cc_g" >&6; }
12235 if test "$ac_test_CFLAGS" = set; then
12236 CFLAGS=$ac_save_CFLAGS
12237 elif test $ac_cv_prog_cc_g = yes; then
12238 if test "$GCC" = yes; then
12239 CFLAGS="-g -O2"
12240 else
12241 CFLAGS="-g"
12243 else
12244 if test "$GCC" = yes; then
12245 CFLAGS="-O2"
12246 else
12247 CFLAGS=
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12251 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12252 if ${ac_cv_prog_cc_c89+:} false; then :
12253 $as_echo_n "(cached) " >&6
12254 else
12255 ac_cv_prog_cc_c89=no
12256 ac_save_CC=$CC
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12259 #include <stdarg.h>
12260 #include <stdio.h>
12261 #include <sys/types.h>
12262 #include <sys/stat.h>
12263 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12264 struct buf { int x; };
12265 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12266 static char *e (p, i)
12267 char **p;
12268 int i;
12270 return p[i];
12272 static char *f (char * (*g) (char **, int), char **p, ...)
12274 char *s;
12275 va_list v;
12276 va_start (v,p);
12277 s = g (p, va_arg (v,int));
12278 va_end (v);
12279 return s;
12282 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12283 function prototypes and stuff, but not '\xHH' hex character constants.
12284 These don't provoke an error unfortunately, instead are silently treated
12285 as 'x'. The following induces an error, until -std is added to get
12286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12287 array size at least. It's necessary to write '\x00'==0 to get something
12288 that's true only with -std. */
12289 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12291 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12292 inside strings and character constants. */
12293 #define FOO(x) 'x'
12294 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12296 int test (int i, double x);
12297 struct s1 {int (*f) (int a);};
12298 struct s2 {int (*f) (double a);};
12299 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12300 int argc;
12301 char **argv;
12303 main ()
12305 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12307 return 0;
12309 _ACEOF
12310 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12311 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12313 CC="$ac_save_CC $ac_arg"
12314 if ac_fn_c_try_compile "$LINENO"; then :
12315 ac_cv_prog_cc_c89=$ac_arg
12317 rm -f core conftest.err conftest.$ac_objext
12318 test "x$ac_cv_prog_cc_c89" != "xno" && break
12319 done
12320 rm -f conftest.$ac_ext
12321 CC=$ac_save_CC
12324 # AC_CACHE_VAL
12325 case "x$ac_cv_prog_cc_c89" in
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12328 $as_echo "none needed" >&6; } ;;
12329 xno)
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12331 $as_echo "unsupported" >&6; } ;;
12333 CC="$CC $ac_cv_prog_cc_c89"
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12335 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12336 esac
12337 if test "x$ac_cv_prog_cc_c89" != xno; then :
12341 ac_ext=c
12342 ac_cpp='$CPP $CPPFLAGS'
12343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12347 depcc="$CC" am_compiler_list=
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12350 $as_echo_n "checking dependency style of $depcc... " >&6; }
12351 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12352 $as_echo_n "(cached) " >&6
12353 else
12354 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12355 # We make a subdir and do the tests there. Otherwise we can end up
12356 # making bogus files that we don't know about and never remove. For
12357 # instance it was reported that on HP-UX the gcc test will end up
12358 # making a dummy file named `D' -- because `-MD' means `put the output
12359 # in D'.
12360 rm -rf conftest.dir
12361 mkdir conftest.dir
12362 # Copy depcomp to subdir because otherwise we won't find it if we're
12363 # using a relative directory.
12364 cp "$am_depcomp" conftest.dir
12365 cd conftest.dir
12366 # We will build objects and dependencies in a subdirectory because
12367 # it helps to detect inapplicable dependency modes. For instance
12368 # both Tru64's cc and ICC support -MD to output dependencies as a
12369 # side effect of compilation, but ICC will put the dependencies in
12370 # the current directory while Tru64 will put them in the object
12371 # directory.
12372 mkdir sub
12374 am_cv_CC_dependencies_compiler_type=none
12375 if test "$am_compiler_list" = ""; then
12376 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12378 am__universal=false
12379 case " $depcc " in #(
12380 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12381 esac
12383 for depmode in $am_compiler_list; do
12384 # Setup a source with many dependencies, because some compilers
12385 # like to wrap large dependency lists on column 80 (with \), and
12386 # we should not choose a depcomp mode which is confused by this.
12388 # We need to recreate these files for each test, as the compiler may
12389 # overwrite some of them when testing with obscure command lines.
12390 # This happens at least with the AIX C compiler.
12391 : > sub/conftest.c
12392 for i in 1 2 3 4 5 6; do
12393 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12394 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12395 # Solaris 8's {/usr,}/bin/sh.
12396 touch sub/conftst$i.h
12397 done
12398 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12400 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12401 # mode. It turns out that the SunPro C++ compiler does not properly
12402 # handle `-M -o', and we need to detect this. Also, some Intel
12403 # versions had trouble with output in subdirs
12404 am__obj=sub/conftest.${OBJEXT-o}
12405 am__minus_obj="-o $am__obj"
12406 case $depmode in
12407 gcc)
12408 # This depmode causes a compiler race in universal mode.
12409 test "$am__universal" = false || continue
12411 nosideeffect)
12412 # after this tag, mechanisms are not by side-effect, so they'll
12413 # only be used when explicitly requested
12414 if test "x$enable_dependency_tracking" = xyes; then
12415 continue
12416 else
12417 break
12420 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12421 # This compiler won't grok `-c -o', but also, the minuso test has
12422 # not run yet. These depmodes are late enough in the game, and
12423 # so weak that their functioning should not be impacted.
12424 am__obj=conftest.${OBJEXT-o}
12425 am__minus_obj=
12427 none) break ;;
12428 esac
12429 if depmode=$depmode \
12430 source=sub/conftest.c object=$am__obj \
12431 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12432 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12433 >/dev/null 2>conftest.err &&
12434 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12435 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12436 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12437 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12438 # icc doesn't choke on unknown options, it will just issue warnings
12439 # or remarks (even with -Werror). So we grep stderr for any message
12440 # that says an option was ignored or not supported.
12441 # When given -MP, icc 7.0 and 7.1 complain thusly:
12442 # icc: Command line warning: ignoring option '-M'; no argument required
12443 # The diagnosis changed in icc 8.0:
12444 # icc: Command line remark: option '-MP' not supported
12445 if (grep 'ignoring option' conftest.err ||
12446 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12447 am_cv_CC_dependencies_compiler_type=$depmode
12448 break
12451 done
12453 cd ..
12454 rm -rf conftest.dir
12455 else
12456 am_cv_CC_dependencies_compiler_type=none
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12461 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12462 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12465 test "x$enable_dependency_tracking" != xno \
12466 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12467 am__fastdepCC_TRUE=
12468 am__fastdepCC_FALSE='#'
12469 else
12470 am__fastdepCC_TRUE='#'
12471 am__fastdepCC_FALSE=
12475 ac_ext=cpp
12476 ac_cpp='$CXXCPP $CPPFLAGS'
12477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12480 if test -z "$CXX"; then
12481 if test -n "$CCC"; then
12482 CXX=$CCC
12483 else
12484 if test -n "$ac_tool_prefix"; then
12485 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12488 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12490 $as_echo_n "checking for $ac_word... " >&6; }
12491 if ${ac_cv_prog_CXX+:} false; then :
12492 $as_echo_n "(cached) " >&6
12493 else
12494 if test -n "$CXX"; then
12495 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12496 else
12497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12498 for as_dir in $PATH
12500 IFS=$as_save_IFS
12501 test -z "$as_dir" && as_dir=.
12502 for ac_exec_ext in '' $ac_executable_extensions; do
12503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12504 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12506 break 2
12508 done
12509 done
12510 IFS=$as_save_IFS
12514 CXX=$ac_cv_prog_CXX
12515 if test -n "$CXX"; then
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12517 $as_echo "$CXX" >&6; }
12518 else
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12520 $as_echo "no" >&6; }
12524 test -n "$CXX" && break
12525 done
12527 if test -z "$CXX"; then
12528 ac_ct_CXX=$CXX
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_prog", so it can be a program name with args.
12532 set dummy $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_ac_ct_CXX+:} false; then :
12536 $as_echo_n "(cached) " >&6
12537 else
12538 if test -n "$ac_ct_CXX"; then
12539 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12540 else
12541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12542 for as_dir in $PATH
12544 IFS=$as_save_IFS
12545 test -z "$as_dir" && as_dir=.
12546 for ac_exec_ext in '' $ac_executable_extensions; do
12547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12548 ac_cv_prog_ac_ct_CXX="$ac_prog"
12549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12550 break 2
12552 done
12553 done
12554 IFS=$as_save_IFS
12558 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12559 if test -n "$ac_ct_CXX"; then
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12561 $as_echo "$ac_ct_CXX" >&6; }
12562 else
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564 $as_echo "no" >&6; }
12568 test -n "$ac_ct_CXX" && break
12569 done
12571 if test "x$ac_ct_CXX" = x; then
12572 CXX="g++"
12573 else
12574 case $cross_compiling:$ac_tool_warned in
12575 yes:)
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12578 ac_tool_warned=yes ;;
12579 esac
12580 CXX=$ac_ct_CXX
12586 # Provide some information about the compiler.
12587 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12588 set X $ac_compile
12589 ac_compiler=$2
12590 for ac_option in --version -v -V -qversion; do
12591 { { ac_try="$ac_compiler $ac_option >&5"
12592 case "(($ac_try" in
12593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12594 *) ac_try_echo=$ac_try;;
12595 esac
12596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12597 $as_echo "$ac_try_echo"; } >&5
12598 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12599 ac_status=$?
12600 if test -s conftest.err; then
12601 sed '10a\
12602 ... rest of stderr output deleted ...
12603 10q' conftest.err >conftest.er1
12604 cat conftest.er1 >&5
12606 rm -f conftest.er1 conftest.err
12607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12608 test $ac_status = 0; }
12609 done
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12612 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12613 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12614 $as_echo_n "(cached) " >&6
12615 else
12616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h. */
12620 main ()
12622 #ifndef __GNUC__
12623 choke me
12624 #endif
12627 return 0;
12629 _ACEOF
12630 if ac_fn_cxx_try_compile "$LINENO"; then :
12631 ac_compiler_gnu=yes
12632 else
12633 ac_compiler_gnu=no
12635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12636 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12640 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12641 if test $ac_compiler_gnu = yes; then
12642 GXX=yes
12643 else
12644 GXX=
12646 ac_test_CXXFLAGS=${CXXFLAGS+set}
12647 ac_save_CXXFLAGS=$CXXFLAGS
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12649 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12650 if ${ac_cv_prog_cxx_g+:} false; then :
12651 $as_echo_n "(cached) " >&6
12652 else
12653 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12654 ac_cxx_werror_flag=yes
12655 ac_cv_prog_cxx_g=no
12656 CXXFLAGS="-g"
12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12661 main ()
12665 return 0;
12667 _ACEOF
12668 if ac_fn_cxx_try_compile "$LINENO"; then :
12669 ac_cv_prog_cxx_g=yes
12670 else
12671 CXXFLAGS=""
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h. */
12676 main ()
12680 return 0;
12682 _ACEOF
12683 if ac_fn_cxx_try_compile "$LINENO"; then :
12685 else
12686 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12687 CXXFLAGS="-g"
12688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12689 /* end confdefs.h. */
12692 main ()
12696 return 0;
12698 _ACEOF
12699 if ac_fn_cxx_try_compile "$LINENO"; then :
12700 ac_cv_prog_cxx_g=yes
12702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12707 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12710 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12711 if test "$ac_test_CXXFLAGS" = set; then
12712 CXXFLAGS=$ac_save_CXXFLAGS
12713 elif test $ac_cv_prog_cxx_g = yes; then
12714 if test "$GXX" = yes; then
12715 CXXFLAGS="-g -O2"
12716 else
12717 CXXFLAGS="-g"
12719 else
12720 if test "$GXX" = yes; then
12721 CXXFLAGS="-O2"
12722 else
12723 CXXFLAGS=
12726 ac_ext=c
12727 ac_cpp='$CPP $CPPFLAGS'
12728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12732 depcc="$CXX" am_compiler_list=
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12735 $as_echo_n "checking dependency style of $depcc... " >&6; }
12736 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12737 $as_echo_n "(cached) " >&6
12738 else
12739 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12740 # We make a subdir and do the tests there. Otherwise we can end up
12741 # making bogus files that we don't know about and never remove. For
12742 # instance it was reported that on HP-UX the gcc test will end up
12743 # making a dummy file named `D' -- because `-MD' means `put the output
12744 # in D'.
12745 rm -rf conftest.dir
12746 mkdir conftest.dir
12747 # Copy depcomp to subdir because otherwise we won't find it if we're
12748 # using a relative directory.
12749 cp "$am_depcomp" conftest.dir
12750 cd conftest.dir
12751 # We will build objects and dependencies in a subdirectory because
12752 # it helps to detect inapplicable dependency modes. For instance
12753 # both Tru64's cc and ICC support -MD to output dependencies as a
12754 # side effect of compilation, but ICC will put the dependencies in
12755 # the current directory while Tru64 will put them in the object
12756 # directory.
12757 mkdir sub
12759 am_cv_CXX_dependencies_compiler_type=none
12760 if test "$am_compiler_list" = ""; then
12761 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12763 am__universal=false
12764 case " $depcc " in #(
12765 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12766 esac
12768 for depmode in $am_compiler_list; do
12769 # Setup a source with many dependencies, because some compilers
12770 # like to wrap large dependency lists on column 80 (with \), and
12771 # we should not choose a depcomp mode which is confused by this.
12773 # We need to recreate these files for each test, as the compiler may
12774 # overwrite some of them when testing with obscure command lines.
12775 # This happens at least with the AIX C compiler.
12776 : > sub/conftest.c
12777 for i in 1 2 3 4 5 6; do
12778 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12779 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12780 # Solaris 8's {/usr,}/bin/sh.
12781 touch sub/conftst$i.h
12782 done
12783 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12785 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12786 # mode. It turns out that the SunPro C++ compiler does not properly
12787 # handle `-M -o', and we need to detect this. Also, some Intel
12788 # versions had trouble with output in subdirs
12789 am__obj=sub/conftest.${OBJEXT-o}
12790 am__minus_obj="-o $am__obj"
12791 case $depmode in
12792 gcc)
12793 # This depmode causes a compiler race in universal mode.
12794 test "$am__universal" = false || continue
12796 nosideeffect)
12797 # after this tag, mechanisms are not by side-effect, so they'll
12798 # only be used when explicitly requested
12799 if test "x$enable_dependency_tracking" = xyes; then
12800 continue
12801 else
12802 break
12805 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12806 # This compiler won't grok `-c -o', but also, the minuso test has
12807 # not run yet. These depmodes are late enough in the game, and
12808 # so weak that their functioning should not be impacted.
12809 am__obj=conftest.${OBJEXT-o}
12810 am__minus_obj=
12812 none) break ;;
12813 esac
12814 if depmode=$depmode \
12815 source=sub/conftest.c object=$am__obj \
12816 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12817 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12818 >/dev/null 2>conftest.err &&
12819 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12820 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12821 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12822 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12823 # icc doesn't choke on unknown options, it will just issue warnings
12824 # or remarks (even with -Werror). So we grep stderr for any message
12825 # that says an option was ignored or not supported.
12826 # When given -MP, icc 7.0 and 7.1 complain thusly:
12827 # icc: Command line warning: ignoring option '-M'; no argument required
12828 # The diagnosis changed in icc 8.0:
12829 # icc: Command line remark: option '-MP' not supported
12830 if (grep 'ignoring option' conftest.err ||
12831 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12832 am_cv_CXX_dependencies_compiler_type=$depmode
12833 break
12836 done
12838 cd ..
12839 rm -rf conftest.dir
12840 else
12841 am_cv_CXX_dependencies_compiler_type=none
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12846 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12847 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12850 test "x$enable_dependency_tracking" != xno \
12851 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12852 am__fastdepCXX_TRUE=
12853 am__fastdepCXX_FALSE='#'
12854 else
12855 am__fastdepCXX_TRUE='#'
12856 am__fastdepCXX_FALSE=
12862 func_stripname_cnf ()
12864 case ${2} in
12865 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12866 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12867 esac
12868 } # func_stripname_cnf
12870 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12871 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12872 (test "X$CXX" != "Xg++"))) ; then
12873 ac_ext=cpp
12874 ac_cpp='$CXXCPP $CPPFLAGS'
12875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12879 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12880 if test -z "$CXXCPP"; then
12881 if ${ac_cv_prog_CXXCPP+:} false; then :
12882 $as_echo_n "(cached) " >&6
12883 else
12884 # Double quotes because CXXCPP needs to be expanded
12885 for CXXCPP in "$CXX -E" "/lib/cpp"
12887 ac_preproc_ok=false
12888 for ac_cxx_preproc_warn_flag in '' yes
12890 # Use a header file that comes with gcc, so configuring glibc
12891 # with a fresh cross-compiler works.
12892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12893 # <limits.h> exists even on freestanding compilers.
12894 # On the NeXT, cc -E runs the code through the compiler's parser,
12895 # not just through cpp. "Syntax error" is here to catch this case.
12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897 /* end confdefs.h. */
12898 #ifdef __STDC__
12899 # include <limits.h>
12900 #else
12901 # include <assert.h>
12902 #endif
12903 Syntax error
12904 _ACEOF
12905 if ac_fn_cxx_try_cpp "$LINENO"; then :
12907 else
12908 # Broken: fails on valid input.
12909 continue
12911 rm -f conftest.err conftest.i conftest.$ac_ext
12913 # OK, works on sane cases. Now check whether nonexistent headers
12914 # can be detected and how.
12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h. */
12917 #include <ac_nonexistent.h>
12918 _ACEOF
12919 if ac_fn_cxx_try_cpp "$LINENO"; then :
12920 # Broken: success on invalid input.
12921 continue
12922 else
12923 # Passes both tests.
12924 ac_preproc_ok=:
12925 break
12927 rm -f conftest.err conftest.i conftest.$ac_ext
12929 done
12930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12931 rm -f conftest.i conftest.err conftest.$ac_ext
12932 if $ac_preproc_ok; then :
12933 break
12936 done
12937 ac_cv_prog_CXXCPP=$CXXCPP
12940 CXXCPP=$ac_cv_prog_CXXCPP
12941 else
12942 ac_cv_prog_CXXCPP=$CXXCPP
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12945 $as_echo "$CXXCPP" >&6; }
12946 ac_preproc_ok=false
12947 for ac_cxx_preproc_warn_flag in '' yes
12949 # Use a header file that comes with gcc, so configuring glibc
12950 # with a fresh cross-compiler works.
12951 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12952 # <limits.h> exists even on freestanding compilers.
12953 # On the NeXT, cc -E runs the code through the compiler's parser,
12954 # not just through cpp. "Syntax error" is here to catch this case.
12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h. */
12957 #ifdef __STDC__
12958 # include <limits.h>
12959 #else
12960 # include <assert.h>
12961 #endif
12962 Syntax error
12963 _ACEOF
12964 if ac_fn_cxx_try_cpp "$LINENO"; then :
12966 else
12967 # Broken: fails on valid input.
12968 continue
12970 rm -f conftest.err conftest.i conftest.$ac_ext
12972 # OK, works on sane cases. Now check whether nonexistent headers
12973 # can be detected and how.
12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975 /* end confdefs.h. */
12976 #include <ac_nonexistent.h>
12977 _ACEOF
12978 if ac_fn_cxx_try_cpp "$LINENO"; then :
12979 # Broken: success on invalid input.
12980 continue
12981 else
12982 # Passes both tests.
12983 ac_preproc_ok=:
12984 break
12986 rm -f conftest.err conftest.i conftest.$ac_ext
12988 done
12989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12990 rm -f conftest.i conftest.err conftest.$ac_ext
12991 if $ac_preproc_ok; then :
12993 else
12994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12996 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12997 See \`config.log' for more details" "$LINENO" 5; }
13000 ac_ext=c
13001 ac_cpp='$CPP $CPPFLAGS'
13002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13006 else
13007 _lt_caught_CXX_error=yes
13010 ac_ext=cpp
13011 ac_cpp='$CXXCPP $CPPFLAGS'
13012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13016 archive_cmds_need_lc_CXX=no
13017 allow_undefined_flag_CXX=
13018 always_export_symbols_CXX=no
13019 archive_expsym_cmds_CXX=
13020 compiler_needs_object_CXX=no
13021 export_dynamic_flag_spec_CXX=
13022 hardcode_direct_CXX=no
13023 hardcode_direct_absolute_CXX=no
13024 hardcode_libdir_flag_spec_CXX=
13025 hardcode_libdir_separator_CXX=
13026 hardcode_minus_L_CXX=no
13027 hardcode_shlibpath_var_CXX=unsupported
13028 hardcode_automatic_CXX=no
13029 inherit_rpath_CXX=no
13030 module_cmds_CXX=
13031 module_expsym_cmds_CXX=
13032 link_all_deplibs_CXX=unknown
13033 old_archive_cmds_CXX=$old_archive_cmds
13034 reload_flag_CXX=$reload_flag
13035 reload_cmds_CXX=$reload_cmds
13036 no_undefined_flag_CXX=
13037 whole_archive_flag_spec_CXX=
13038 enable_shared_with_static_runtimes_CXX=no
13040 # Source file extension for C++ test sources.
13041 ac_ext=cpp
13043 # Object file extension for compiled C++ test sources.
13044 objext=o
13045 objext_CXX=$objext
13047 # No sense in running all these tests if we already determined that
13048 # the CXX compiler isn't working. Some variables (like enable_shared)
13049 # are currently assumed to apply to all compilers on this platform,
13050 # and will be corrupted by setting them based on a non-working compiler.
13051 if test "$_lt_caught_CXX_error" != yes; then
13052 # Code to be used in simple compile tests
13053 lt_simple_compile_test_code="int some_variable = 0;"
13055 # Code to be used in simple link tests
13056 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13058 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13065 # If no C compiler was specified, use CC.
13066 LTCC=${LTCC-"$CC"}
13068 # If no C compiler flags were specified, use CFLAGS.
13069 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13071 # Allow CC to be a program name with arguments.
13072 compiler=$CC
13075 # save warnings/boilerplate of simple test code
13076 ac_outfile=conftest.$ac_objext
13077 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13078 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13079 _lt_compiler_boilerplate=`cat conftest.err`
13080 $RM conftest*
13082 ac_outfile=conftest.$ac_objext
13083 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13084 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13085 _lt_linker_boilerplate=`cat conftest.err`
13086 $RM -r conftest*
13089 # Allow CC to be a program name with arguments.
13090 lt_save_CC=$CC
13091 lt_save_CFLAGS=$CFLAGS
13092 lt_save_LD=$LD
13093 lt_save_GCC=$GCC
13094 GCC=$GXX
13095 lt_save_with_gnu_ld=$with_gnu_ld
13096 lt_save_path_LD=$lt_cv_path_LD
13097 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13098 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13099 else
13100 $as_unset lt_cv_prog_gnu_ld
13102 if test -n "${lt_cv_path_LDCXX+set}"; then
13103 lt_cv_path_LD=$lt_cv_path_LDCXX
13104 else
13105 $as_unset lt_cv_path_LD
13107 test -z "${LDCXX+set}" || LD=$LDCXX
13108 CC=${CXX-"c++"}
13109 CFLAGS=$CXXFLAGS
13110 compiler=$CC
13111 compiler_CXX=$CC
13112 for cc_temp in $compiler""; do
13113 case $cc_temp in
13114 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13115 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13116 \-*) ;;
13117 *) break;;
13118 esac
13119 done
13120 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13123 if test -n "$compiler"; then
13124 # We don't want -fno-exception when compiling C++ code, so set the
13125 # no_builtin_flag separately
13126 if test "$GXX" = yes; then
13127 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13128 else
13129 lt_prog_compiler_no_builtin_flag_CXX=
13132 if test "$GXX" = yes; then
13133 # Set up default GNU C++ configuration
13137 # Check whether --with-gnu-ld was given.
13138 if test "${with_gnu_ld+set}" = set; then :
13139 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13140 else
13141 with_gnu_ld=no
13144 ac_prog=ld
13145 if test "$GCC" = yes; then
13146 # Check if gcc -print-prog-name=ld gives a path.
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13148 $as_echo_n "checking for ld used by $CC... " >&6; }
13149 case $host in
13150 *-*-mingw*)
13151 # gcc leaves a trailing carriage return which upsets mingw
13152 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13154 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13155 esac
13156 case $ac_prog in
13157 # Accept absolute paths.
13158 [\\/]* | ?:[\\/]*)
13159 re_direlt='/[^/][^/]*/\.\./'
13160 # Canonicalize the pathname of ld
13161 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13162 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13163 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13164 done
13165 test -z "$LD" && LD="$ac_prog"
13168 # If it fails, then pretend we aren't using GCC.
13169 ac_prog=ld
13172 # If it is relative, then search for the first ld in PATH.
13173 with_gnu_ld=unknown
13175 esac
13176 elif test "$with_gnu_ld" = yes; then
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13178 $as_echo_n "checking for GNU ld... " >&6; }
13179 else
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13181 $as_echo_n "checking for non-GNU ld... " >&6; }
13183 if ${lt_cv_path_LD+:} false; then :
13184 $as_echo_n "(cached) " >&6
13185 else
13186 if test -z "$LD"; then
13187 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13188 for ac_dir in $PATH; do
13189 IFS="$lt_save_ifs"
13190 test -z "$ac_dir" && ac_dir=.
13191 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13192 lt_cv_path_LD="$ac_dir/$ac_prog"
13193 # Check to see if the program is GNU ld. I'd rather use --version,
13194 # but apparently some variants of GNU ld only accept -v.
13195 # Break only if it was the GNU/non-GNU ld that we prefer.
13196 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13197 *GNU* | *'with BFD'*)
13198 test "$with_gnu_ld" != no && break
13201 test "$with_gnu_ld" != yes && break
13203 esac
13205 done
13206 IFS="$lt_save_ifs"
13207 else
13208 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13212 LD="$lt_cv_path_LD"
13213 if test -n "$LD"; then
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13215 $as_echo "$LD" >&6; }
13216 else
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13218 $as_echo "no" >&6; }
13220 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13222 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13223 if ${lt_cv_prog_gnu_ld+:} false; then :
13224 $as_echo_n "(cached) " >&6
13225 else
13226 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13227 case `$LD -v 2>&1 </dev/null` in
13228 *GNU* | *'with BFD'*)
13229 lt_cv_prog_gnu_ld=yes
13232 lt_cv_prog_gnu_ld=no
13234 esac
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13237 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13238 with_gnu_ld=$lt_cv_prog_gnu_ld
13246 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13247 # archiving commands below assume that GNU ld is being used.
13248 if test "$with_gnu_ld" = yes; then
13249 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13250 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'
13252 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13253 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13255 # If archive_cmds runs LD, not CC, wlarc should be empty
13256 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13257 # investigate it a little bit more. (MM)
13258 wlarc='${wl}'
13260 # ancient GNU ld didn't support --whole-archive et. al.
13261 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13262 $GREP 'no-whole-archive' > /dev/null; then
13263 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13264 else
13265 whole_archive_flag_spec_CXX=
13267 else
13268 with_gnu_ld=no
13269 wlarc=
13271 # A generic and very simple default shared library creation
13272 # command for GNU C++ for the case where it uses the native
13273 # linker, instead of GNU ld. If possible, this setting should
13274 # overridden to take advantage of the native linker features on
13275 # the platform it is being used on.
13276 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13279 # Commands to make compiler produce verbose output that lists
13280 # what "hidden" libraries, object files and flags are used when
13281 # linking a shared library.
13282 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13284 else
13285 GXX=no
13286 with_gnu_ld=no
13287 wlarc=
13290 # PORTME: fill in a description of your system's C++ link characteristics
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13292 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13293 ld_shlibs_CXX=yes
13294 case $host_os in
13295 aix3*)
13296 # FIXME: insert proper C++ library support
13297 ld_shlibs_CXX=no
13299 aix[4-9]*)
13300 if test "$host_cpu" = ia64; then
13301 # On IA64, the linker does run time linking by default, so we don't
13302 # have to do anything special.
13303 aix_use_runtimelinking=no
13304 exp_sym_flag='-Bexport'
13305 no_entry_flag=""
13306 else
13307 aix_use_runtimelinking=no
13309 # Test if we are trying to use run time linking or normal
13310 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13311 # need to do runtime linking.
13312 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13313 for ld_flag in $LDFLAGS; do
13314 case $ld_flag in
13315 *-brtl*)
13316 aix_use_runtimelinking=yes
13317 break
13319 esac
13320 done
13322 esac
13324 exp_sym_flag='-bexport'
13325 no_entry_flag='-bnoentry'
13328 # When large executables or shared objects are built, AIX ld can
13329 # have problems creating the table of contents. If linking a library
13330 # or program results in "error TOC overflow" add -mminimal-toc to
13331 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13332 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13334 archive_cmds_CXX=''
13335 hardcode_direct_CXX=yes
13336 hardcode_direct_absolute_CXX=yes
13337 hardcode_libdir_separator_CXX=':'
13338 link_all_deplibs_CXX=yes
13339 file_list_spec_CXX='${wl}-f,'
13341 if test "$GXX" = yes; then
13342 case $host_os in aix4.[012]|aix4.[012].*)
13343 # We only want to do this on AIX 4.2 and lower, the check
13344 # below for broken collect2 doesn't work under 4.3+
13345 collect2name=`${CC} -print-prog-name=collect2`
13346 if test -f "$collect2name" &&
13347 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13348 then
13349 # We have reworked collect2
13351 else
13352 # We have old collect2
13353 hardcode_direct_CXX=unsupported
13354 # It fails to find uninstalled libraries when the uninstalled
13355 # path is not listed in the libpath. Setting hardcode_minus_L
13356 # to unsupported forces relinking
13357 hardcode_minus_L_CXX=yes
13358 hardcode_libdir_flag_spec_CXX='-L$libdir'
13359 hardcode_libdir_separator_CXX=
13361 esac
13362 shared_flag='-shared'
13363 if test "$aix_use_runtimelinking" = yes; then
13364 shared_flag="$shared_flag "'${wl}-G'
13366 else
13367 # not using gcc
13368 if test "$host_cpu" = ia64; then
13369 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13370 # chokes on -Wl,-G. The following line is correct:
13371 shared_flag='-G'
13372 else
13373 if test "$aix_use_runtimelinking" = yes; then
13374 shared_flag='${wl}-G'
13375 else
13376 shared_flag='${wl}-bM:SRE'
13381 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13382 # It seems that -bexpall does not export symbols beginning with
13383 # underscore (_), so it is better to generate a list of symbols to
13384 # export.
13385 always_export_symbols_CXX=yes
13386 if test "$aix_use_runtimelinking" = yes; then
13387 # Warning - without using the other runtime loading flags (-brtl),
13388 # -berok will link without error, but may produce a broken library.
13389 allow_undefined_flag_CXX='-berok'
13390 # Determine the default libpath from the value encoded in an empty
13391 # executable.
13392 if test "${lt_cv_aix_libpath+set}" = set; then
13393 aix_libpath=$lt_cv_aix_libpath
13394 else
13395 if ${lt_cv_aix_libpath__CXX+:} false; then :
13396 $as_echo_n "(cached) " >&6
13397 else
13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h. */
13402 main ()
13406 return 0;
13408 _ACEOF
13409 if ac_fn_cxx_try_link "$LINENO"; then :
13411 lt_aix_libpath_sed='
13412 /Import File Strings/,/^$/ {
13413 /^0/ {
13414 s/^0 *\([^ ]*\) *$/\1/
13418 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13419 # Check for a 64-bit object if we didn't find anything.
13420 if test -z "$lt_cv_aix_libpath__CXX"; then
13421 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13424 rm -f core conftest.err conftest.$ac_objext \
13425 conftest$ac_exeext conftest.$ac_ext
13426 if test -z "$lt_cv_aix_libpath__CXX"; then
13427 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13432 aix_libpath=$lt_cv_aix_libpath__CXX
13435 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13437 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"
13438 else
13439 if test "$host_cpu" = ia64; then
13440 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13441 allow_undefined_flag_CXX="-z nodefs"
13442 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"
13443 else
13444 # Determine the default libpath from the value encoded in an
13445 # empty executable.
13446 if test "${lt_cv_aix_libpath+set}" = set; then
13447 aix_libpath=$lt_cv_aix_libpath
13448 else
13449 if ${lt_cv_aix_libpath__CXX+:} false; then :
13450 $as_echo_n "(cached) " >&6
13451 else
13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453 /* end confdefs.h. */
13456 main ()
13460 return 0;
13462 _ACEOF
13463 if ac_fn_cxx_try_link "$LINENO"; then :
13465 lt_aix_libpath_sed='
13466 /Import File Strings/,/^$/ {
13467 /^0/ {
13468 s/^0 *\([^ ]*\) *$/\1/
13472 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13473 # Check for a 64-bit object if we didn't find anything.
13474 if test -z "$lt_cv_aix_libpath__CXX"; then
13475 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13478 rm -f core conftest.err conftest.$ac_objext \
13479 conftest$ac_exeext conftest.$ac_ext
13480 if test -z "$lt_cv_aix_libpath__CXX"; then
13481 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13486 aix_libpath=$lt_cv_aix_libpath__CXX
13489 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13490 # Warning - without using the other run time loading flags,
13491 # -berok will link without error, but may produce a broken library.
13492 no_undefined_flag_CXX=' ${wl}-bernotok'
13493 allow_undefined_flag_CXX=' ${wl}-berok'
13494 if test "$with_gnu_ld" = yes; then
13495 # We only use this code for GNU lds that support --whole-archive.
13496 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13497 else
13498 # Exported symbols can be pulled into shared objects from archives
13499 whole_archive_flag_spec_CXX='$convenience'
13501 archive_cmds_need_lc_CXX=yes
13502 # This is similar to how AIX traditionally builds its shared
13503 # libraries.
13504 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'
13509 beos*)
13510 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13511 allow_undefined_flag_CXX=unsupported
13512 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13513 # support --undefined. This deserves some investigation. FIXME
13514 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13515 else
13516 ld_shlibs_CXX=no
13520 chorus*)
13521 case $cc_basename in
13523 # FIXME: insert proper C++ library support
13524 ld_shlibs_CXX=no
13526 esac
13529 cygwin* | mingw* | pw32* | cegcc*)
13530 case $GXX,$cc_basename in
13531 ,cl* | no,cl*)
13532 # Native MSVC
13533 # hardcode_libdir_flag_spec is actually meaningless, as there is
13534 # no search path for DLLs.
13535 hardcode_libdir_flag_spec_CXX=' '
13536 allow_undefined_flag_CXX=unsupported
13537 always_export_symbols_CXX=yes
13538 file_list_spec_CXX='@'
13539 # Tell ltmain to make .lib files, not .a files.
13540 libext=lib
13541 # Tell ltmain to make .dll files, not .so files.
13542 shrext_cmds=".dll"
13543 # FIXME: Setting linknames here is a bad hack.
13544 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13545 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13546 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13547 else
13548 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13550 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13551 linknames='
13552 # The linker will not automatically build a static lib if we build a DLL.
13553 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13554 enable_shared_with_static_runtimes_CXX=yes
13555 # Don't use ranlib
13556 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13557 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13558 lt_tool_outputfile="@TOOL_OUTPUT@"~
13559 case $lt_outputfile in
13560 *.exe|*.EXE) ;;
13562 lt_outputfile="$lt_outputfile.exe"
13563 lt_tool_outputfile="$lt_tool_outputfile.exe"
13565 esac~
13566 func_to_tool_file "$lt_outputfile"~
13567 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13568 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13569 $RM "$lt_outputfile.manifest";
13573 # g++
13574 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13575 # as there is no search path for DLLs.
13576 hardcode_libdir_flag_spec_CXX='-L$libdir'
13577 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13578 allow_undefined_flag_CXX=unsupported
13579 always_export_symbols_CXX=no
13580 enable_shared_with_static_runtimes_CXX=yes
13582 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13583 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'
13584 # If the export-symbols file already is a .def file (1st line
13585 # is EXPORTS), use it as is; otherwise, prepend...
13586 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13587 cp $export_symbols $output_objdir/$soname.def;
13588 else
13589 echo EXPORTS > $output_objdir/$soname.def;
13590 cat $export_symbols >> $output_objdir/$soname.def;
13592 $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'
13593 else
13594 ld_shlibs_CXX=no
13597 esac
13599 darwin* | rhapsody*)
13602 archive_cmds_need_lc_CXX=no
13603 hardcode_direct_CXX=no
13604 hardcode_automatic_CXX=yes
13605 hardcode_shlibpath_var_CXX=unsupported
13606 if test "$lt_cv_ld_force_load" = "yes"; then
13607 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\"`'
13609 else
13610 whole_archive_flag_spec_CXX=''
13612 link_all_deplibs_CXX=yes
13613 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13614 case $cc_basename in
13615 ifort*) _lt_dar_can_shared=yes ;;
13616 *) _lt_dar_can_shared=$GCC ;;
13617 esac
13618 if test "$_lt_dar_can_shared" = "yes"; then
13619 output_verbose_link_cmd=func_echo_all
13620 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}"
13621 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13622 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}"
13623 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}"
13624 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13625 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}"
13626 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}"
13629 else
13630 ld_shlibs_CXX=no
13635 dgux*)
13636 case $cc_basename in
13637 ec++*)
13638 # FIXME: insert proper C++ library support
13639 ld_shlibs_CXX=no
13641 ghcx*)
13642 # Green Hills C++ Compiler
13643 # FIXME: insert proper C++ library support
13644 ld_shlibs_CXX=no
13647 # FIXME: insert proper C++ library support
13648 ld_shlibs_CXX=no
13650 esac
13653 freebsd2.*)
13654 # C++ shared libraries reported to be fairly broken before
13655 # switch to ELF
13656 ld_shlibs_CXX=no
13659 freebsd-elf*)
13660 archive_cmds_need_lc_CXX=no
13663 freebsd* | dragonfly*)
13664 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13665 # conventions
13666 ld_shlibs_CXX=yes
13669 gnu*)
13672 haiku*)
13673 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13674 link_all_deplibs_CXX=yes
13677 hpux9*)
13678 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13679 hardcode_libdir_separator_CXX=:
13680 export_dynamic_flag_spec_CXX='${wl}-E'
13681 hardcode_direct_CXX=yes
13682 hardcode_minus_L_CXX=yes # Not in the search PATH,
13683 # but as the default
13684 # location of the library.
13686 case $cc_basename in
13687 CC*)
13688 # FIXME: insert proper C++ library support
13689 ld_shlibs_CXX=no
13691 aCC*)
13692 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'
13693 # Commands to make compiler produce verbose output that lists
13694 # what "hidden" libraries, object files and flags are used when
13695 # linking a shared library.
13697 # There doesn't appear to be a way to prevent this compiler from
13698 # explicitly linking system object files so we need to strip them
13699 # from the output so that they don't get included in the library
13700 # dependencies.
13701 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"'
13704 if test "$GXX" = yes; then
13705 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'
13706 else
13707 # FIXME: insert proper C++ library support
13708 ld_shlibs_CXX=no
13711 esac
13714 hpux10*|hpux11*)
13715 if test $with_gnu_ld = no; then
13716 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13717 hardcode_libdir_separator_CXX=:
13719 case $host_cpu in
13720 hppa*64*|ia64*)
13723 export_dynamic_flag_spec_CXX='${wl}-E'
13725 esac
13727 case $host_cpu in
13728 hppa*64*|ia64*)
13729 hardcode_direct_CXX=no
13730 hardcode_shlibpath_var_CXX=no
13733 hardcode_direct_CXX=yes
13734 hardcode_direct_absolute_CXX=yes
13735 hardcode_minus_L_CXX=yes # Not in the search PATH,
13736 # but as the default
13737 # location of the library.
13739 esac
13741 case $cc_basename in
13742 CC*)
13743 # FIXME: insert proper C++ library support
13744 ld_shlibs_CXX=no
13746 aCC*)
13747 case $host_cpu in
13748 hppa*64*)
13749 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13751 ia64*)
13752 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13755 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13757 esac
13758 # Commands to make compiler produce verbose output that lists
13759 # what "hidden" libraries, object files and flags are used when
13760 # linking a shared library.
13762 # There doesn't appear to be a way to prevent this compiler from
13763 # explicitly linking system object files so we need to strip them
13764 # from the output so that they don't get included in the library
13765 # dependencies.
13766 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"'
13769 if test "$GXX" = yes; then
13770 if test $with_gnu_ld = no; then
13771 case $host_cpu in
13772 hppa*64*)
13773 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13775 ia64*)
13776 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13779 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'
13781 esac
13783 else
13784 # FIXME: insert proper C++ library support
13785 ld_shlibs_CXX=no
13788 esac
13791 interix[3-9]*)
13792 hardcode_direct_CXX=no
13793 hardcode_shlibpath_var_CXX=no
13794 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13795 export_dynamic_flag_spec_CXX='${wl}-E'
13796 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13797 # Instead, shared libraries are loaded at an image base (0x10000000 by
13798 # default) and relocated if they conflict, which is a slow very memory
13799 # consuming and fragmenting process. To avoid this, we pick a random,
13800 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13801 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13802 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'
13803 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'
13805 irix5* | irix6*)
13806 case $cc_basename in
13807 CC*)
13808 # SGI C++
13809 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'
13811 # Archives containing C++ object files must be created using
13812 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13813 # necessary to make sure instantiated templates are included
13814 # in the archive.
13815 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13818 if test "$GXX" = yes; then
13819 if test "$with_gnu_ld" = no; then
13820 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'
13821 else
13822 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'
13825 link_all_deplibs_CXX=yes
13827 esac
13828 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13829 hardcode_libdir_separator_CXX=:
13830 inherit_rpath_CXX=yes
13833 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13834 case $cc_basename in
13835 KCC*)
13836 # Kuck and Associates, Inc. (KAI) C++ Compiler
13838 # KCC will only create a shared library if the output file
13839 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13840 # to its proper name (with version) after linking.
13841 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'
13842 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'
13843 # Commands to make compiler produce verbose output that lists
13844 # what "hidden" libraries, object files and flags are used when
13845 # linking a shared library.
13847 # There doesn't appear to be a way to prevent this compiler from
13848 # explicitly linking system object files so we need to strip them
13849 # from the output so that they don't get included in the library
13850 # dependencies.
13851 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"'
13853 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13854 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13856 # Archives containing C++ object files must be created using
13857 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13858 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13860 icpc* | ecpc* )
13861 # Intel C++
13862 with_gnu_ld=yes
13863 # version 8.0 and above of icpc choke on multiply defined symbols
13864 # if we add $predep_objects and $postdep_objects, however 7.1 and
13865 # earlier do not add the objects themselves.
13866 case `$CC -V 2>&1` in
13867 *"Version 7."*)
13868 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13869 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'
13871 *) # Version 8.0 or newer
13872 tmp_idyn=
13873 case $host_cpu in
13874 ia64*) tmp_idyn=' -i_dynamic';;
13875 esac
13876 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13877 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'
13879 esac
13880 archive_cmds_need_lc_CXX=no
13881 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13882 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13883 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13885 pgCC* | pgcpp*)
13886 # Portland Group C++ compiler
13887 case `$CC -V` in
13888 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13889 prelink_cmds_CXX='tpldir=Template.dir~
13890 rm -rf $tpldir~
13891 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13892 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13893 old_archive_cmds_CXX='tpldir=Template.dir~
13894 rm -rf $tpldir~
13895 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13896 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13897 $RANLIB $oldlib'
13898 archive_cmds_CXX='tpldir=Template.dir~
13899 rm -rf $tpldir~
13900 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13901 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13902 archive_expsym_cmds_CXX='tpldir=Template.dir~
13903 rm -rf $tpldir~
13904 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13905 $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'
13907 *) # Version 6 and above use weak symbols
13908 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13909 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'
13911 esac
13913 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13914 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13915 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'
13917 cxx*)
13918 # Compaq C++
13919 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13920 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'
13922 runpath_var=LD_RUN_PATH
13923 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13924 hardcode_libdir_separator_CXX=:
13926 # Commands to make compiler produce verbose output that lists
13927 # what "hidden" libraries, object files and flags are used when
13928 # linking a shared library.
13930 # There doesn't appear to be a way to prevent this compiler from
13931 # explicitly linking system object files so we need to strip them
13932 # from the output so that they don't get included in the library
13933 # dependencies.
13934 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'
13936 xl* | mpixl* | bgxl*)
13937 # IBM XL 8.0 on PPC, with GNU ld
13938 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13939 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13940 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13941 if test "x$supports_anon_versioning" = xyes; then
13942 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13943 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13944 echo "local: *; };" >> $output_objdir/$libname.ver~
13945 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13949 case `$CC -V 2>&1 | sed 5q` in
13950 *Sun\ C*)
13951 # Sun C++ 5.9
13952 no_undefined_flag_CXX=' -zdefs'
13953 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13954 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'
13955 hardcode_libdir_flag_spec_CXX='-R$libdir'
13956 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'
13957 compiler_needs_object_CXX=yes
13959 # Not sure whether something based on
13960 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13961 # would be better.
13962 output_verbose_link_cmd='func_echo_all'
13964 # Archives containing C++ object files must be created using
13965 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13966 # necessary to make sure instantiated templates are included
13967 # in the archive.
13968 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13970 esac
13972 esac
13975 lynxos*)
13976 # FIXME: insert proper C++ library support
13977 ld_shlibs_CXX=no
13980 m88k*)
13981 # FIXME: insert proper C++ library support
13982 ld_shlibs_CXX=no
13985 mvs*)
13986 case $cc_basename in
13987 cxx*)
13988 # FIXME: insert proper C++ library support
13989 ld_shlibs_CXX=no
13992 # FIXME: insert proper C++ library support
13993 ld_shlibs_CXX=no
13995 esac
13998 netbsd*)
13999 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14000 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14001 wlarc=
14002 hardcode_libdir_flag_spec_CXX='-R$libdir'
14003 hardcode_direct_CXX=yes
14004 hardcode_shlibpath_var_CXX=no
14006 # Workaround some broken pre-1.5 toolchains
14007 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14010 *nto* | *qnx*)
14011 ld_shlibs_CXX=yes
14014 openbsd2*)
14015 # C++ shared libraries are fairly broken
14016 ld_shlibs_CXX=no
14019 openbsd*)
14020 if test -f /usr/libexec/ld.so; then
14021 hardcode_direct_CXX=yes
14022 hardcode_shlibpath_var_CXX=no
14023 hardcode_direct_absolute_CXX=yes
14024 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14025 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14026 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14027 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14028 export_dynamic_flag_spec_CXX='${wl}-E'
14029 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14031 output_verbose_link_cmd=func_echo_all
14032 else
14033 ld_shlibs_CXX=no
14037 osf3* | osf4* | osf5*)
14038 case $cc_basename in
14039 KCC*)
14040 # Kuck and Associates, Inc. (KAI) C++ Compiler
14042 # KCC will only create a shared library if the output file
14043 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14044 # to its proper name (with version) after linking.
14045 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'
14047 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14048 hardcode_libdir_separator_CXX=:
14050 # Archives containing C++ object files must be created using
14051 # the KAI C++ compiler.
14052 case $host in
14053 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14054 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14055 esac
14057 RCC*)
14058 # Rational C++ 2.4.1
14059 # FIXME: insert proper C++ library support
14060 ld_shlibs_CXX=no
14062 cxx*)
14063 case $host in
14064 osf3*)
14065 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14066 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'
14067 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14070 allow_undefined_flag_CXX=' -expect_unresolved \*'
14071 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'
14072 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14073 echo "-hidden">> $lib.exp~
14074 $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~
14075 $RM $lib.exp'
14076 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14078 esac
14080 hardcode_libdir_separator_CXX=:
14082 # Commands to make compiler produce verbose output that lists
14083 # what "hidden" libraries, object files and flags are used when
14084 # linking a shared library.
14086 # There doesn't appear to be a way to prevent this compiler from
14087 # explicitly linking system object files so we need to strip them
14088 # from the output so that they don't get included in the library
14089 # dependencies.
14090 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"'
14093 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14094 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14095 case $host in
14096 osf3*)
14097 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'
14100 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'
14102 esac
14104 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14105 hardcode_libdir_separator_CXX=:
14107 # Commands to make compiler produce verbose output that lists
14108 # what "hidden" libraries, object files and flags are used when
14109 # linking a shared library.
14110 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14112 else
14113 # FIXME: insert proper C++ library support
14114 ld_shlibs_CXX=no
14117 esac
14120 psos*)
14121 # FIXME: insert proper C++ library support
14122 ld_shlibs_CXX=no
14125 sunos4*)
14126 case $cc_basename in
14127 CC*)
14128 # Sun C++ 4.x
14129 # FIXME: insert proper C++ library support
14130 ld_shlibs_CXX=no
14132 lcc*)
14133 # Lucid
14134 # FIXME: insert proper C++ library support
14135 ld_shlibs_CXX=no
14138 # FIXME: insert proper C++ library support
14139 ld_shlibs_CXX=no
14141 esac
14144 solaris*)
14145 case $cc_basename in
14146 CC* | sunCC*)
14147 # Sun C++ 4.2, 5.x and Centerline C++
14148 archive_cmds_need_lc_CXX=yes
14149 no_undefined_flag_CXX=' -zdefs'
14150 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14151 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14152 $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'
14154 hardcode_libdir_flag_spec_CXX='-R$libdir'
14155 hardcode_shlibpath_var_CXX=no
14156 case $host_os in
14157 solaris2.[0-5] | solaris2.[0-5].*) ;;
14159 # The compiler driver will combine and reorder linker options,
14160 # but understands `-z linker_flag'.
14161 # Supported since Solaris 2.6 (maybe 2.5.1?)
14162 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14164 esac
14165 link_all_deplibs_CXX=yes
14167 output_verbose_link_cmd='func_echo_all'
14169 # Archives containing C++ object files must be created using
14170 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14171 # necessary to make sure instantiated templates are included
14172 # in the archive.
14173 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14175 gcx*)
14176 # Green Hills C++ Compiler
14177 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14179 # The C++ compiler must be used to create the archive.
14180 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14183 # GNU C++ compiler with Solaris linker
14184 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14185 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14186 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14187 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14188 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14189 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14191 # Commands to make compiler produce verbose output that lists
14192 # what "hidden" libraries, object files and flags are used when
14193 # linking a shared library.
14194 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14195 else
14196 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14197 # platform.
14198 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14199 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14200 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14202 # Commands to make compiler produce verbose output that lists
14203 # what "hidden" libraries, object files and flags are used when
14204 # linking a shared library.
14205 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14208 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14209 case $host_os in
14210 solaris2.[0-5] | solaris2.[0-5].*) ;;
14212 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14214 esac
14217 esac
14220 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14221 no_undefined_flag_CXX='${wl}-z,text'
14222 archive_cmds_need_lc_CXX=no
14223 hardcode_shlibpath_var_CXX=no
14224 runpath_var='LD_RUN_PATH'
14226 case $cc_basename in
14227 CC*)
14228 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14229 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14232 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14233 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14235 esac
14238 sysv5* | sco3.2v5* | sco5v6*)
14239 # Note: We can NOT use -z defs as we might desire, because we do not
14240 # link with -lc, and that would cause any symbols used from libc to
14241 # always be unresolved, which means just about no library would
14242 # ever link correctly. If we're not using GNU ld we use -z text
14243 # though, which does catch some bad symbols but isn't as heavy-handed
14244 # as -z defs.
14245 no_undefined_flag_CXX='${wl}-z,text'
14246 allow_undefined_flag_CXX='${wl}-z,nodefs'
14247 archive_cmds_need_lc_CXX=no
14248 hardcode_shlibpath_var_CXX=no
14249 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14250 hardcode_libdir_separator_CXX=':'
14251 link_all_deplibs_CXX=yes
14252 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14253 runpath_var='LD_RUN_PATH'
14255 case $cc_basename in
14256 CC*)
14257 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14258 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14259 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14260 '"$old_archive_cmds_CXX"
14261 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14262 '"$reload_cmds_CXX"
14265 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14266 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14268 esac
14271 tandem*)
14272 case $cc_basename in
14273 NCC*)
14274 # NonStop-UX NCC 3.20
14275 # FIXME: insert proper C++ library support
14276 ld_shlibs_CXX=no
14279 # FIXME: insert proper C++ library support
14280 ld_shlibs_CXX=no
14282 esac
14285 vxworks*)
14286 # FIXME: insert proper C++ library support
14287 ld_shlibs_CXX=no
14291 # FIXME: insert proper C++ library support
14292 ld_shlibs_CXX=no
14294 esac
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14297 $as_echo "$ld_shlibs_CXX" >&6; }
14298 test "$ld_shlibs_CXX" = no && can_build_shared=no
14300 GCC_CXX="$GXX"
14301 LD_CXX="$LD"
14303 ## CAVEAT EMPTOR:
14304 ## There is no encapsulation within the following macros, do not change
14305 ## the running order or otherwise move them around unless you know exactly
14306 ## what you are doing...
14307 # Dependencies to place before and after the object being linked:
14308 predep_objects_CXX=
14309 postdep_objects_CXX=
14310 predeps_CXX=
14311 postdeps_CXX=
14312 compiler_lib_search_path_CXX=
14314 cat > conftest.$ac_ext <<_LT_EOF
14315 class Foo
14317 public:
14318 Foo (void) { a = 0; }
14319 private:
14320 int a;
14322 _LT_EOF
14325 _lt_libdeps_save_CFLAGS=$CFLAGS
14326 case "$CC $CFLAGS " in #(
14327 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14328 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14329 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14330 esac
14332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14333 (eval $ac_compile) 2>&5
14334 ac_status=$?
14335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14336 test $ac_status = 0; }; then
14337 # Parse the compiler output and extract the necessary
14338 # objects, libraries and library flags.
14340 # Sentinel used to keep track of whether or not we are before
14341 # the conftest object file.
14342 pre_test_object_deps_done=no
14344 for p in `eval "$output_verbose_link_cmd"`; do
14345 case ${prev}${p} in
14347 -L* | -R* | -l*)
14348 # Some compilers place space between "-{L,R}" and the path.
14349 # Remove the space.
14350 if test $p = "-L" ||
14351 test $p = "-R"; then
14352 prev=$p
14353 continue
14356 # Expand the sysroot to ease extracting the directories later.
14357 if test -z "$prev"; then
14358 case $p in
14359 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14360 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14361 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14362 esac
14364 case $p in
14365 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14366 esac
14367 if test "$pre_test_object_deps_done" = no; then
14368 case ${prev} in
14369 -L | -R)
14370 # Internal compiler library paths should come after those
14371 # provided the user. The postdeps already come after the
14372 # user supplied libs so there is no need to process them.
14373 if test -z "$compiler_lib_search_path_CXX"; then
14374 compiler_lib_search_path_CXX="${prev}${p}"
14375 else
14376 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14379 # The "-l" case would never come before the object being
14380 # linked, so don't bother handling this case.
14381 esac
14382 else
14383 if test -z "$postdeps_CXX"; then
14384 postdeps_CXX="${prev}${p}"
14385 else
14386 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14389 prev=
14392 *.lto.$objext) ;; # Ignore GCC LTO objects
14393 *.$objext)
14394 # This assumes that the test object file only shows up
14395 # once in the compiler output.
14396 if test "$p" = "conftest.$objext"; then
14397 pre_test_object_deps_done=yes
14398 continue
14401 if test "$pre_test_object_deps_done" = no; then
14402 if test -z "$predep_objects_CXX"; then
14403 predep_objects_CXX="$p"
14404 else
14405 predep_objects_CXX="$predep_objects_CXX $p"
14407 else
14408 if test -z "$postdep_objects_CXX"; then
14409 postdep_objects_CXX="$p"
14410 else
14411 postdep_objects_CXX="$postdep_objects_CXX $p"
14416 *) ;; # Ignore the rest.
14418 esac
14419 done
14421 # Clean up.
14422 rm -f a.out a.exe
14423 else
14424 echo "libtool.m4: error: problem compiling CXX test program"
14427 $RM -f confest.$objext
14428 CFLAGS=$_lt_libdeps_save_CFLAGS
14430 # PORTME: override above test on systems where it is broken
14431 case $host_os in
14432 interix[3-9]*)
14433 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14434 # hack all around it, let's just trust "g++" to DTRT.
14435 predep_objects_CXX=
14436 postdep_objects_CXX=
14437 postdeps_CXX=
14440 linux*)
14441 case `$CC -V 2>&1 | sed 5q` in
14442 *Sun\ C*)
14443 # Sun C++ 5.9
14445 # The more standards-conforming stlport4 library is
14446 # incompatible with the Cstd library. Avoid specifying
14447 # it if it's in CXXFLAGS. Ignore libCrun as
14448 # -library=stlport4 depends on it.
14449 case " $CXX $CXXFLAGS " in
14450 *" -library=stlport4 "*)
14451 solaris_use_stlport4=yes
14453 esac
14455 if test "$solaris_use_stlport4" != yes; then
14456 postdeps_CXX='-library=Cstd -library=Crun'
14459 esac
14462 solaris*)
14463 case $cc_basename in
14464 CC* | sunCC*)
14465 # The more standards-conforming stlport4 library is
14466 # incompatible with the Cstd library. Avoid specifying
14467 # it if it's in CXXFLAGS. Ignore libCrun as
14468 # -library=stlport4 depends on it.
14469 case " $CXX $CXXFLAGS " in
14470 *" -library=stlport4 "*)
14471 solaris_use_stlport4=yes
14473 esac
14475 # Adding this requires a known-good setup of shared libraries for
14476 # Sun compiler versions before 5.6, else PIC objects from an old
14477 # archive will be linked into the output, leading to subtle bugs.
14478 if test "$solaris_use_stlport4" != yes; then
14479 postdeps_CXX='-library=Cstd -library=Crun'
14482 esac
14484 esac
14487 case " $postdeps_CXX " in
14488 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14489 esac
14490 compiler_lib_search_dirs_CXX=
14491 if test -n "${compiler_lib_search_path_CXX}"; then
14492 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14525 lt_prog_compiler_wl_CXX=
14526 lt_prog_compiler_pic_CXX=
14527 lt_prog_compiler_static_CXX=
14530 # C++ specific cases for pic, static, wl, etc.
14531 if test "$GXX" = yes; then
14532 lt_prog_compiler_wl_CXX='-Wl,'
14533 lt_prog_compiler_static_CXX='-static'
14535 case $host_os in
14536 aix*)
14537 # All AIX code is PIC.
14538 if test "$host_cpu" = ia64; then
14539 # AIX 5 now supports IA64 processor
14540 lt_prog_compiler_static_CXX='-Bstatic'
14544 amigaos*)
14545 case $host_cpu in
14546 powerpc)
14547 # see comment about AmigaOS4 .so support
14548 lt_prog_compiler_pic_CXX='-fPIC'
14550 m68k)
14551 # FIXME: we need at least 68020 code to build shared libraries, but
14552 # adding the `-m68020' flag to GCC prevents building anything better,
14553 # like `-m68040'.
14554 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14556 esac
14559 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14560 # PIC is the default for these OSes.
14562 mingw* | cygwin* | os2* | pw32* | cegcc*)
14563 # This hack is so that the source file can tell whether it is being
14564 # built for inclusion in a dll (and should export symbols for example).
14565 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14566 # (--disable-auto-import) libraries
14567 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14569 darwin* | rhapsody*)
14570 # PIC is the default on this platform
14571 # Common symbols not allowed in MH_DYLIB files
14572 lt_prog_compiler_pic_CXX='-fno-common'
14574 *djgpp*)
14575 # DJGPP does not support shared libraries at all
14576 lt_prog_compiler_pic_CXX=
14578 haiku*)
14579 # PIC is the default for Haiku.
14580 # The "-static" flag exists, but is broken.
14581 lt_prog_compiler_static_CXX=
14583 interix[3-9]*)
14584 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14585 # Instead, we relocate shared libraries at runtime.
14587 sysv4*MP*)
14588 if test -d /usr/nec; then
14589 lt_prog_compiler_pic_CXX=-Kconform_pic
14592 hpux*)
14593 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14594 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14595 # sets the default TLS model and affects inlining.
14596 case $host_cpu in
14597 hppa*64*)
14600 lt_prog_compiler_pic_CXX='-fPIC'
14602 esac
14604 *qnx* | *nto*)
14605 # QNX uses GNU C++, but need to define -shared option too, otherwise
14606 # it will coredump.
14607 lt_prog_compiler_pic_CXX='-fPIC -shared'
14610 lt_prog_compiler_pic_CXX='-fPIC'
14612 esac
14613 else
14614 case $host_os in
14615 aix[4-9]*)
14616 # All AIX code is PIC.
14617 if test "$host_cpu" = ia64; then
14618 # AIX 5 now supports IA64 processor
14619 lt_prog_compiler_static_CXX='-Bstatic'
14620 else
14621 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14624 chorus*)
14625 case $cc_basename in
14626 cxch68*)
14627 # Green Hills C++ Compiler
14628 # _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"
14630 esac
14632 mingw* | cygwin* | os2* | pw32* | cegcc*)
14633 # This hack is so that the source file can tell whether it is being
14634 # built for inclusion in a dll (and should export symbols for example).
14635 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14637 dgux*)
14638 case $cc_basename in
14639 ec++*)
14640 lt_prog_compiler_pic_CXX='-KPIC'
14642 ghcx*)
14643 # Green Hills C++ Compiler
14644 lt_prog_compiler_pic_CXX='-pic'
14648 esac
14650 freebsd* | dragonfly*)
14651 # FreeBSD uses GNU C++
14653 hpux9* | hpux10* | hpux11*)
14654 case $cc_basename in
14655 CC*)
14656 lt_prog_compiler_wl_CXX='-Wl,'
14657 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14658 if test "$host_cpu" != ia64; then
14659 lt_prog_compiler_pic_CXX='+Z'
14662 aCC*)
14663 lt_prog_compiler_wl_CXX='-Wl,'
14664 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14665 case $host_cpu in
14666 hppa*64*|ia64*)
14667 # +Z the default
14670 lt_prog_compiler_pic_CXX='+Z'
14672 esac
14676 esac
14678 interix*)
14679 # This is c89, which is MS Visual C++ (no shared libs)
14680 # Anyone wants to do a port?
14682 irix5* | irix6* | nonstopux*)
14683 case $cc_basename in
14684 CC*)
14685 lt_prog_compiler_wl_CXX='-Wl,'
14686 lt_prog_compiler_static_CXX='-non_shared'
14687 # CC pic flag -KPIC is the default.
14691 esac
14693 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14694 case $cc_basename in
14695 KCC*)
14696 # KAI C++ Compiler
14697 lt_prog_compiler_wl_CXX='--backend -Wl,'
14698 lt_prog_compiler_pic_CXX='-fPIC'
14700 ecpc* )
14701 # old Intel C++ for x86_64 which still supported -KPIC.
14702 lt_prog_compiler_wl_CXX='-Wl,'
14703 lt_prog_compiler_pic_CXX='-KPIC'
14704 lt_prog_compiler_static_CXX='-static'
14706 icpc* )
14707 # Intel C++, used to be incompatible with GCC.
14708 # ICC 10 doesn't accept -KPIC any more.
14709 lt_prog_compiler_wl_CXX='-Wl,'
14710 lt_prog_compiler_pic_CXX='-fPIC'
14711 lt_prog_compiler_static_CXX='-static'
14713 pgCC* | pgcpp*)
14714 # Portland Group C++ compiler
14715 lt_prog_compiler_wl_CXX='-Wl,'
14716 lt_prog_compiler_pic_CXX='-fpic'
14717 lt_prog_compiler_static_CXX='-Bstatic'
14719 cxx*)
14720 # Compaq C++
14721 # Make sure the PIC flag is empty. It appears that all Alpha
14722 # Linux and Compaq Tru64 Unix objects are PIC.
14723 lt_prog_compiler_pic_CXX=
14724 lt_prog_compiler_static_CXX='-non_shared'
14726 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14727 # IBM XL 8.0, 9.0 on PPC and BlueGene
14728 lt_prog_compiler_wl_CXX='-Wl,'
14729 lt_prog_compiler_pic_CXX='-qpic'
14730 lt_prog_compiler_static_CXX='-qstaticlink'
14733 case `$CC -V 2>&1 | sed 5q` in
14734 *Sun\ C*)
14735 # Sun C++ 5.9
14736 lt_prog_compiler_pic_CXX='-KPIC'
14737 lt_prog_compiler_static_CXX='-Bstatic'
14738 lt_prog_compiler_wl_CXX='-Qoption ld '
14740 esac
14742 esac
14744 lynxos*)
14746 m88k*)
14748 mvs*)
14749 case $cc_basename in
14750 cxx*)
14751 lt_prog_compiler_pic_CXX='-W c,exportall'
14755 esac
14757 netbsd* | netbsdelf*-gnu)
14759 *qnx* | *nto*)
14760 # QNX uses GNU C++, but need to define -shared option too, otherwise
14761 # it will coredump.
14762 lt_prog_compiler_pic_CXX='-fPIC -shared'
14764 osf3* | osf4* | osf5*)
14765 case $cc_basename in
14766 KCC*)
14767 lt_prog_compiler_wl_CXX='--backend -Wl,'
14769 RCC*)
14770 # Rational C++ 2.4.1
14771 lt_prog_compiler_pic_CXX='-pic'
14773 cxx*)
14774 # Digital/Compaq C++
14775 lt_prog_compiler_wl_CXX='-Wl,'
14776 # Make sure the PIC flag is empty. It appears that all Alpha
14777 # Linux and Compaq Tru64 Unix objects are PIC.
14778 lt_prog_compiler_pic_CXX=
14779 lt_prog_compiler_static_CXX='-non_shared'
14783 esac
14785 psos*)
14787 solaris*)
14788 case $cc_basename in
14789 CC* | sunCC*)
14790 # Sun C++ 4.2, 5.x and Centerline C++
14791 lt_prog_compiler_pic_CXX='-KPIC'
14792 lt_prog_compiler_static_CXX='-Bstatic'
14793 lt_prog_compiler_wl_CXX='-Qoption ld '
14795 gcx*)
14796 # Green Hills C++ Compiler
14797 lt_prog_compiler_pic_CXX='-PIC'
14801 esac
14803 sunos4*)
14804 case $cc_basename in
14805 CC*)
14806 # Sun C++ 4.x
14807 lt_prog_compiler_pic_CXX='-pic'
14808 lt_prog_compiler_static_CXX='-Bstatic'
14810 lcc*)
14811 # Lucid
14812 lt_prog_compiler_pic_CXX='-pic'
14816 esac
14818 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14819 case $cc_basename in
14820 CC*)
14821 lt_prog_compiler_wl_CXX='-Wl,'
14822 lt_prog_compiler_pic_CXX='-KPIC'
14823 lt_prog_compiler_static_CXX='-Bstatic'
14825 esac
14827 tandem*)
14828 case $cc_basename in
14829 NCC*)
14830 # NonStop-UX NCC 3.20
14831 lt_prog_compiler_pic_CXX='-KPIC'
14835 esac
14837 vxworks*)
14840 lt_prog_compiler_can_build_shared_CXX=no
14842 esac
14845 case $host_os in
14846 # For platforms which do not support PIC, -DPIC is meaningless:
14847 *djgpp*)
14848 lt_prog_compiler_pic_CXX=
14851 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14853 esac
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14856 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14857 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14858 $as_echo_n "(cached) " >&6
14859 else
14860 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14863 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14864 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14867 # Check to make sure the PIC flag actually works.
14869 if test -n "$lt_prog_compiler_pic_CXX"; then
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14871 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14872 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14873 $as_echo_n "(cached) " >&6
14874 else
14875 lt_cv_prog_compiler_pic_works_CXX=no
14876 ac_outfile=conftest.$ac_objext
14877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14878 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14879 # Insert the option either (1) after the last *FLAGS variable, or
14880 # (2) before a word containing "conftest.", or (3) at the end.
14881 # Note that $ac_compile itself does not contain backslashes and begins
14882 # with a dollar sign (not a hyphen), so the echo should work correctly.
14883 # The option is referenced via a variable to avoid confusing sed.
14884 lt_compile=`echo "$ac_compile" | $SED \
14885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14887 -e 's:$: $lt_compiler_flag:'`
14888 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14889 (eval "$lt_compile" 2>conftest.err)
14890 ac_status=$?
14891 cat conftest.err >&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 if (exit $ac_status) && test -s "$ac_outfile"; then
14894 # The compiler can only warn and ignore the option if not recognized
14895 # So say no if there are warnings other than the usual output.
14896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14898 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14899 lt_cv_prog_compiler_pic_works_CXX=yes
14902 $RM conftest*
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14906 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14908 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14909 case $lt_prog_compiler_pic_CXX in
14910 "" | " "*) ;;
14911 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14912 esac
14913 else
14914 lt_prog_compiler_pic_CXX=
14915 lt_prog_compiler_can_build_shared_CXX=no
14925 # Check to make sure the static flag actually works.
14927 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14929 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14930 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14931 $as_echo_n "(cached) " >&6
14932 else
14933 lt_cv_prog_compiler_static_works_CXX=no
14934 save_LDFLAGS="$LDFLAGS"
14935 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14936 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14937 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14938 # The linker can only warn and ignore the option if not recognized
14939 # So say no if there are warnings
14940 if test -s conftest.err; then
14941 # Append any errors to the config.log.
14942 cat conftest.err 1>&5
14943 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14945 if diff conftest.exp conftest.er2 >/dev/null; then
14946 lt_cv_prog_compiler_static_works_CXX=yes
14948 else
14949 lt_cv_prog_compiler_static_works_CXX=yes
14952 $RM -r conftest*
14953 LDFLAGS="$save_LDFLAGS"
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14957 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14959 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14961 else
14962 lt_prog_compiler_static_CXX=
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14969 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14970 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14971 $as_echo_n "(cached) " >&6
14972 else
14973 lt_cv_prog_compiler_c_o_CXX=no
14974 $RM -r conftest 2>/dev/null
14975 mkdir conftest
14976 cd conftest
14977 mkdir out
14978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14980 lt_compiler_flag="-o out/conftest2.$ac_objext"
14981 # Insert the option either (1) after the last *FLAGS variable, or
14982 # (2) before a word containing "conftest.", or (3) at the end.
14983 # Note that $ac_compile itself does not contain backslashes and begins
14984 # with a dollar sign (not a hyphen), so the echo should work correctly.
14985 lt_compile=`echo "$ac_compile" | $SED \
14986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14988 -e 's:$: $lt_compiler_flag:'`
14989 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14990 (eval "$lt_compile" 2>out/conftest.err)
14991 ac_status=$?
14992 cat out/conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14995 then
14996 # The compiler can only warn and ignore the option if not recognized
14997 # So say no if there are warnings
14998 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14999 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15000 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15001 lt_cv_prog_compiler_c_o_CXX=yes
15004 chmod u+w . 2>&5
15005 $RM conftest*
15006 # SGI C++ compiler will create directory out/ii_files/ for
15007 # template instantiation
15008 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15009 $RM out/* && rmdir out
15010 cd ..
15011 $RM -r conftest
15012 $RM conftest*
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15016 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15021 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15022 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15023 $as_echo_n "(cached) " >&6
15024 else
15025 lt_cv_prog_compiler_c_o_CXX=no
15026 $RM -r conftest 2>/dev/null
15027 mkdir conftest
15028 cd conftest
15029 mkdir out
15030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15032 lt_compiler_flag="-o out/conftest2.$ac_objext"
15033 # Insert the option either (1) after the last *FLAGS variable, or
15034 # (2) before a word containing "conftest.", or (3) at the end.
15035 # Note that $ac_compile itself does not contain backslashes and begins
15036 # with a dollar sign (not a hyphen), so the echo should work correctly.
15037 lt_compile=`echo "$ac_compile" | $SED \
15038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15040 -e 's:$: $lt_compiler_flag:'`
15041 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15042 (eval "$lt_compile" 2>out/conftest.err)
15043 ac_status=$?
15044 cat out/conftest.err >&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15047 then
15048 # The compiler can only warn and ignore the option if not recognized
15049 # So say no if there are warnings
15050 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15053 lt_cv_prog_compiler_c_o_CXX=yes
15056 chmod u+w . 2>&5
15057 $RM conftest*
15058 # SGI C++ compiler will create directory out/ii_files/ for
15059 # template instantiation
15060 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15061 $RM out/* && rmdir out
15062 cd ..
15063 $RM -r conftest
15064 $RM conftest*
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15068 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15073 hard_links="nottested"
15074 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15075 # do not overwrite the value of need_locks provided by the user
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15077 $as_echo_n "checking if we can lock with hard links... " >&6; }
15078 hard_links=yes
15079 $RM conftest*
15080 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15081 touch conftest.a
15082 ln conftest.a conftest.b 2>&5 || hard_links=no
15083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15085 $as_echo "$hard_links" >&6; }
15086 if test "$hard_links" = no; then
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15088 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15089 need_locks=warn
15091 else
15092 need_locks=no
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15098 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15100 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15101 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15102 case $host_os in
15103 aix[4-9]*)
15104 # If we're using GNU nm, then we don't want the "-C" option.
15105 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15106 # Also, AIX nm treats weak defined symbols like other global defined
15107 # symbols, whereas GNU nm marks them as "W".
15108 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15109 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'
15110 else
15111 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'
15114 pw32*)
15115 export_symbols_cmds_CXX="$ltdll_cmds"
15117 cygwin* | mingw* | cegcc*)
15118 case $cc_basename in
15119 cl*)
15120 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15123 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'
15124 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15126 esac
15128 linux* | k*bsd*-gnu | gnu*)
15129 link_all_deplibs_CXX=no
15132 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15134 esac
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15137 $as_echo "$ld_shlibs_CXX" >&6; }
15138 test "$ld_shlibs_CXX" = no && can_build_shared=no
15140 with_gnu_ld_CXX=$with_gnu_ld
15148 # Do we need to explicitly link libc?
15150 case "x$archive_cmds_need_lc_CXX" in
15151 x|xyes)
15152 # Assume -lc should be added
15153 archive_cmds_need_lc_CXX=yes
15155 if test "$enable_shared" = yes && test "$GCC" = yes; then
15156 case $archive_cmds_CXX in
15157 *'~'*)
15158 # FIXME: we may have to deal with multi-command sequences.
15160 '$CC '*)
15161 # Test whether the compiler implicitly links with -lc since on some
15162 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15163 # to ld, don't add -lc before -lgcc.
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15165 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15166 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15167 $as_echo_n "(cached) " >&6
15168 else
15169 $RM conftest*
15170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15173 (eval $ac_compile) 2>&5
15174 ac_status=$?
15175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15176 test $ac_status = 0; } 2>conftest.err; then
15177 soname=conftest
15178 lib=conftest
15179 libobjs=conftest.$ac_objext
15180 deplibs=
15181 wl=$lt_prog_compiler_wl_CXX
15182 pic_flag=$lt_prog_compiler_pic_CXX
15183 compiler_flags=-v
15184 linker_flags=-v
15185 verstring=
15186 output_objdir=.
15187 libname=conftest
15188 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15189 allow_undefined_flag_CXX=
15190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15191 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15192 ac_status=$?
15193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15194 test $ac_status = 0; }
15195 then
15196 lt_cv_archive_cmds_need_lc_CXX=no
15197 else
15198 lt_cv_archive_cmds_need_lc_CXX=yes
15200 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15201 else
15202 cat conftest.err 1>&5
15204 $RM conftest*
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15208 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15209 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15211 esac
15214 esac
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15278 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15280 library_names_spec=
15281 libname_spec='lib$name'
15282 soname_spec=
15283 shrext_cmds=".so"
15284 postinstall_cmds=
15285 postuninstall_cmds=
15286 finish_cmds=
15287 finish_eval=
15288 shlibpath_var=
15289 shlibpath_overrides_runpath=unknown
15290 version_type=none
15291 dynamic_linker="$host_os ld.so"
15292 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15293 need_lib_prefix=unknown
15294 hardcode_into_libs=no
15296 # when you set need_version to no, make sure it does not cause -set_version
15297 # flags to be left without arguments
15298 need_version=unknown
15300 case $host_os in
15301 aix3*)
15302 version_type=linux # correct to gnu/linux during the next big refactor
15303 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15304 shlibpath_var=LIBPATH
15306 # AIX 3 has no versioning support, so we append a major version to the name.
15307 soname_spec='${libname}${release}${shared_ext}$major'
15310 aix[4-9]*)
15311 version_type=linux # correct to gnu/linux during the next big refactor
15312 need_lib_prefix=no
15313 need_version=no
15314 hardcode_into_libs=yes
15315 if test "$host_cpu" = ia64; then
15316 # AIX 5 supports IA64
15317 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15318 shlibpath_var=LD_LIBRARY_PATH
15319 else
15320 # With GCC up to 2.95.x, collect2 would create an import file
15321 # for dependence libraries. The import file would start with
15322 # the line `#! .'. This would cause the generated library to
15323 # depend on `.', always an invalid library. This was fixed in
15324 # development snapshots of GCC prior to 3.0.
15325 case $host_os in
15326 aix4 | aix4.[01] | aix4.[01].*)
15327 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15328 echo ' yes '
15329 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15331 else
15332 can_build_shared=no
15335 esac
15336 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15337 # soname into executable. Probably we can add versioning support to
15338 # collect2, so additional links can be useful in future.
15339 if test "$aix_use_runtimelinking" = yes; then
15340 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15341 # instead of lib<name>.a to let people know that these are not
15342 # typical AIX shared libraries.
15343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15344 else
15345 # We preserve .a as extension for shared libraries through AIX4.2
15346 # and later when we are not doing run time linking.
15347 library_names_spec='${libname}${release}.a $libname.a'
15348 soname_spec='${libname}${release}${shared_ext}$major'
15350 shlibpath_var=LIBPATH
15354 amigaos*)
15355 case $host_cpu in
15356 powerpc)
15357 # Since July 2007 AmigaOS4 officially supports .so libraries.
15358 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15361 m68k)
15362 library_names_spec='$libname.ixlibrary $libname.a'
15363 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15364 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'
15366 esac
15369 beos*)
15370 library_names_spec='${libname}${shared_ext}'
15371 dynamic_linker="$host_os ld.so"
15372 shlibpath_var=LIBRARY_PATH
15375 bsdi[45]*)
15376 version_type=linux # correct to gnu/linux during the next big refactor
15377 need_version=no
15378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15379 soname_spec='${libname}${release}${shared_ext}$major'
15380 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15381 shlibpath_var=LD_LIBRARY_PATH
15382 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15383 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15384 # the default ld.so.conf also contains /usr/contrib/lib and
15385 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15386 # libtool to hard-code these into programs
15389 cygwin* | mingw* | pw32* | cegcc*)
15390 version_type=windows
15391 shrext_cmds=".dll"
15392 need_version=no
15393 need_lib_prefix=no
15395 case $GCC,$cc_basename in
15396 yes,*)
15397 # gcc
15398 library_names_spec='$libname.dll.a'
15399 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15400 postinstall_cmds='base_file=`basename \${file}`~
15401 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15402 dldir=$destdir/`dirname \$dlpath`~
15403 test -d \$dldir || mkdir -p \$dldir~
15404 $install_prog $dir/$dlname \$dldir/$dlname~
15405 chmod a+x \$dldir/$dlname~
15406 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15407 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15409 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15410 dlpath=$dir/\$dldll~
15411 $RM \$dlpath'
15412 shlibpath_overrides_runpath=yes
15414 case $host_os in
15415 cygwin*)
15416 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15417 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15420 mingw* | cegcc*)
15421 # MinGW DLLs use traditional 'lib' prefix
15422 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15424 pw32*)
15425 # pw32 DLLs use 'pw' prefix rather than 'lib'
15426 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15428 esac
15429 dynamic_linker='Win32 ld.exe'
15432 *,cl*)
15433 # Native MSVC
15434 libname_spec='$name'
15435 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15436 library_names_spec='${libname}.dll.lib'
15438 case $build_os in
15439 mingw*)
15440 sys_lib_search_path_spec=
15441 lt_save_ifs=$IFS
15442 IFS=';'
15443 for lt_path in $LIB
15445 IFS=$lt_save_ifs
15446 # Let DOS variable expansion print the short 8.3 style file name.
15447 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15448 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15449 done
15450 IFS=$lt_save_ifs
15451 # Convert to MSYS style.
15452 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15454 cygwin*)
15455 # Convert to unix form, then to dos form, then back to unix form
15456 # but this time dos style (no spaces!) so that the unix form looks
15457 # like /cygdrive/c/PROGRA~1:/cygdr...
15458 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15459 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15460 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15463 sys_lib_search_path_spec="$LIB"
15464 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15465 # It is most probably a Windows format PATH.
15466 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15467 else
15468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15470 # FIXME: find the short name or the path components, as spaces are
15471 # common. (e.g. "Program Files" -> "PROGRA~1")
15473 esac
15475 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15476 postinstall_cmds='base_file=`basename \${file}`~
15477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15478 dldir=$destdir/`dirname \$dlpath`~
15479 test -d \$dldir || mkdir -p \$dldir~
15480 $install_prog $dir/$dlname \$dldir/$dlname'
15481 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15482 dlpath=$dir/\$dldll~
15483 $RM \$dlpath'
15484 shlibpath_overrides_runpath=yes
15485 dynamic_linker='Win32 link.exe'
15489 # Assume MSVC wrapper
15490 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15491 dynamic_linker='Win32 ld.exe'
15493 esac
15494 # FIXME: first we should search . and the directory the executable is in
15495 shlibpath_var=PATH
15498 darwin* | rhapsody*)
15499 dynamic_linker="$host_os dyld"
15500 version_type=darwin
15501 need_lib_prefix=no
15502 need_version=no
15503 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15504 soname_spec='${libname}${release}${major}$shared_ext'
15505 shlibpath_overrides_runpath=yes
15506 shlibpath_var=DYLD_LIBRARY_PATH
15507 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15512 dgux*)
15513 version_type=linux # correct to gnu/linux during the next big refactor
15514 need_lib_prefix=no
15515 need_version=no
15516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15517 soname_spec='${libname}${release}${shared_ext}$major'
15518 shlibpath_var=LD_LIBRARY_PATH
15521 freebsd* | dragonfly*)
15522 # DragonFly does not have aout. When/if they implement a new
15523 # versioning mechanism, adjust this.
15524 if test -x /usr/bin/objformat; then
15525 objformat=`/usr/bin/objformat`
15526 else
15527 case $host_os in
15528 freebsd[23].*) objformat=aout ;;
15529 *) objformat=elf ;;
15530 esac
15532 version_type=freebsd-$objformat
15533 case $version_type in
15534 freebsd-elf*)
15535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15536 need_version=no
15537 need_lib_prefix=no
15539 freebsd-*)
15540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15541 need_version=yes
15543 esac
15544 shlibpath_var=LD_LIBRARY_PATH
15545 case $host_os in
15546 freebsd2.*)
15547 shlibpath_overrides_runpath=yes
15549 freebsd3.[01]* | freebsdelf3.[01]*)
15550 shlibpath_overrides_runpath=yes
15551 hardcode_into_libs=yes
15553 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15554 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15555 shlibpath_overrides_runpath=no
15556 hardcode_into_libs=yes
15558 *) # from 4.6 on, and DragonFly
15559 shlibpath_overrides_runpath=yes
15560 hardcode_into_libs=yes
15562 esac
15565 gnu*)
15566 version_type=linux # correct to gnu/linux during the next big refactor
15567 need_lib_prefix=no
15568 need_version=no
15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15570 soname_spec='${libname}${release}${shared_ext}$major'
15571 shlibpath_var=LD_LIBRARY_PATH
15572 shlibpath_overrides_runpath=no
15573 hardcode_into_libs=yes
15576 haiku*)
15577 version_type=linux # correct to gnu/linux during the next big refactor
15578 need_lib_prefix=no
15579 need_version=no
15580 dynamic_linker="$host_os runtime_loader"
15581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15582 soname_spec='${libname}${release}${shared_ext}$major'
15583 shlibpath_var=LIBRARY_PATH
15584 shlibpath_overrides_runpath=yes
15585 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15586 hardcode_into_libs=yes
15589 hpux9* | hpux10* | hpux11*)
15590 # Give a soname corresponding to the major version so that dld.sl refuses to
15591 # link against other versions.
15592 version_type=sunos
15593 need_lib_prefix=no
15594 need_version=no
15595 case $host_cpu in
15596 ia64*)
15597 shrext_cmds='.so'
15598 hardcode_into_libs=yes
15599 dynamic_linker="$host_os dld.so"
15600 shlibpath_var=LD_LIBRARY_PATH
15601 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15603 soname_spec='${libname}${release}${shared_ext}$major'
15604 if test "X$HPUX_IA64_MODE" = X32; then
15605 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15606 else
15607 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15609 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15611 hppa*64*)
15612 shrext_cmds='.sl'
15613 hardcode_into_libs=yes
15614 dynamic_linker="$host_os dld.sl"
15615 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15616 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15618 soname_spec='${libname}${release}${shared_ext}$major'
15619 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15620 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15623 shrext_cmds='.sl'
15624 dynamic_linker="$host_os dld.sl"
15625 shlibpath_var=SHLIB_PATH
15626 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628 soname_spec='${libname}${release}${shared_ext}$major'
15630 esac
15631 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15632 postinstall_cmds='chmod 555 $lib'
15633 # or fails outright, so override atomically:
15634 install_override_mode=555
15637 interix[3-9]*)
15638 version_type=linux # correct to gnu/linux during the next big refactor
15639 need_lib_prefix=no
15640 need_version=no
15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15642 soname_spec='${libname}${release}${shared_ext}$major'
15643 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15644 shlibpath_var=LD_LIBRARY_PATH
15645 shlibpath_overrides_runpath=no
15646 hardcode_into_libs=yes
15649 irix5* | irix6* | nonstopux*)
15650 case $host_os in
15651 nonstopux*) version_type=nonstopux ;;
15653 if test "$lt_cv_prog_gnu_ld" = yes; then
15654 version_type=linux # correct to gnu/linux during the next big refactor
15655 else
15656 version_type=irix
15657 fi ;;
15658 esac
15659 need_lib_prefix=no
15660 need_version=no
15661 soname_spec='${libname}${release}${shared_ext}$major'
15662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15663 case $host_os in
15664 irix5* | nonstopux*)
15665 libsuff= shlibsuff=
15668 case $LD in # libtool.m4 will add one of these switches to LD
15669 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15670 libsuff= shlibsuff= libmagic=32-bit;;
15671 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15672 libsuff=32 shlibsuff=N32 libmagic=N32;;
15673 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15674 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15675 *) libsuff= shlibsuff= libmagic=never-match;;
15676 esac
15678 esac
15679 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15680 shlibpath_overrides_runpath=no
15681 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15682 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15683 hardcode_into_libs=yes
15686 # No shared lib support for Linux oldld, aout, or coff.
15687 linux*oldld* | linux*aout* | linux*coff*)
15688 dynamic_linker=no
15691 # This must be glibc/ELF.
15692 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15693 version_type=linux # correct to gnu/linux during the next big refactor
15694 need_lib_prefix=no
15695 need_version=no
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697 soname_spec='${libname}${release}${shared_ext}$major'
15698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15699 shlibpath_var=LD_LIBRARY_PATH
15700 shlibpath_overrides_runpath=no
15702 # Some binutils ld are patched to set DT_RUNPATH
15703 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15704 $as_echo_n "(cached) " >&6
15705 else
15706 lt_cv_shlibpath_overrides_runpath=no
15707 save_LDFLAGS=$LDFLAGS
15708 save_libdir=$libdir
15709 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15710 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15712 /* end confdefs.h. */
15715 main ()
15719 return 0;
15721 _ACEOF
15722 if ac_fn_cxx_try_link "$LINENO"; then :
15723 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15724 lt_cv_shlibpath_overrides_runpath=yes
15727 rm -f core conftest.err conftest.$ac_objext \
15728 conftest$ac_exeext conftest.$ac_ext
15729 LDFLAGS=$save_LDFLAGS
15730 libdir=$save_libdir
15734 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15736 # This implies no fast_install, which is unacceptable.
15737 # Some rework will be needed to allow for fast_install
15738 # before this can be enabled.
15739 hardcode_into_libs=yes
15741 # Append ld.so.conf contents to the search path
15742 if test -f /etc/ld.so.conf; then
15743 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' ' '`
15744 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15747 # We used to test for /lib/ld.so.1 and disable shared libraries on
15748 # powerpc, because MkLinux only supported shared libraries with the
15749 # GNU dynamic linker. Since this was broken with cross compilers,
15750 # most powerpc-linux boxes support dynamic linking these days and
15751 # people can always --disable-shared, the test was removed, and we
15752 # assume the GNU/Linux dynamic linker is in use.
15753 dynamic_linker='GNU/Linux ld.so'
15756 netbsdelf*-gnu)
15757 version_type=linux
15758 need_lib_prefix=no
15759 need_version=no
15760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15761 soname_spec='${libname}${release}${shared_ext}$major'
15762 shlibpath_var=LD_LIBRARY_PATH
15763 shlibpath_overrides_runpath=no
15764 hardcode_into_libs=yes
15765 dynamic_linker='NetBSD ld.elf_so'
15768 netbsd*)
15769 version_type=sunos
15770 need_lib_prefix=no
15771 need_version=no
15772 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15775 dynamic_linker='NetBSD (a.out) ld.so'
15776 else
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15778 soname_spec='${libname}${release}${shared_ext}$major'
15779 dynamic_linker='NetBSD ld.elf_so'
15781 shlibpath_var=LD_LIBRARY_PATH
15782 shlibpath_overrides_runpath=yes
15783 hardcode_into_libs=yes
15786 newsos6)
15787 version_type=linux # correct to gnu/linux during the next big refactor
15788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15789 shlibpath_var=LD_LIBRARY_PATH
15790 shlibpath_overrides_runpath=yes
15793 *nto* | *qnx*)
15794 version_type=qnx
15795 need_lib_prefix=no
15796 need_version=no
15797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15798 soname_spec='${libname}${release}${shared_ext}$major'
15799 shlibpath_var=LD_LIBRARY_PATH
15800 shlibpath_overrides_runpath=no
15801 hardcode_into_libs=yes
15802 dynamic_linker='ldqnx.so'
15805 openbsd*)
15806 version_type=sunos
15807 sys_lib_dlsearch_path_spec="/usr/lib"
15808 need_lib_prefix=no
15809 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15810 case $host_os in
15811 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15812 *) need_version=no ;;
15813 esac
15814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15816 shlibpath_var=LD_LIBRARY_PATH
15817 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15818 case $host_os in
15819 openbsd2.[89] | openbsd2.[89].*)
15820 shlibpath_overrides_runpath=no
15823 shlibpath_overrides_runpath=yes
15825 esac
15826 else
15827 shlibpath_overrides_runpath=yes
15831 os2*)
15832 libname_spec='$name'
15833 shrext_cmds=".dll"
15834 need_lib_prefix=no
15835 library_names_spec='$libname${shared_ext} $libname.a'
15836 dynamic_linker='OS/2 ld.exe'
15837 shlibpath_var=LIBPATH
15840 osf3* | osf4* | osf5*)
15841 version_type=osf
15842 need_lib_prefix=no
15843 need_version=no
15844 soname_spec='${libname}${release}${shared_ext}$major'
15845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15846 shlibpath_var=LD_LIBRARY_PATH
15847 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15848 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15851 rdos*)
15852 dynamic_linker=no
15855 solaris*)
15856 version_type=linux # correct to gnu/linux during the next big refactor
15857 need_lib_prefix=no
15858 need_version=no
15859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15860 soname_spec='${libname}${release}${shared_ext}$major'
15861 shlibpath_var=LD_LIBRARY_PATH
15862 shlibpath_overrides_runpath=yes
15863 hardcode_into_libs=yes
15864 # ldd complains unless libraries are executable
15865 postinstall_cmds='chmod +x $lib'
15868 sunos4*)
15869 version_type=sunos
15870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15871 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15872 shlibpath_var=LD_LIBRARY_PATH
15873 shlibpath_overrides_runpath=yes
15874 if test "$with_gnu_ld" = yes; then
15875 need_lib_prefix=no
15877 need_version=yes
15880 sysv4 | sysv4.3*)
15881 version_type=linux # correct to gnu/linux during the next big refactor
15882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15883 soname_spec='${libname}${release}${shared_ext}$major'
15884 shlibpath_var=LD_LIBRARY_PATH
15885 case $host_vendor in
15886 sni)
15887 shlibpath_overrides_runpath=no
15888 need_lib_prefix=no
15889 runpath_var=LD_RUN_PATH
15891 siemens)
15892 need_lib_prefix=no
15894 motorola)
15895 need_lib_prefix=no
15896 need_version=no
15897 shlibpath_overrides_runpath=no
15898 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15900 esac
15903 sysv4*MP*)
15904 if test -d /usr/nec ;then
15905 version_type=linux # correct to gnu/linux during the next big refactor
15906 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15907 soname_spec='$libname${shared_ext}.$major'
15908 shlibpath_var=LD_LIBRARY_PATH
15912 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15913 version_type=freebsd-elf
15914 need_lib_prefix=no
15915 need_version=no
15916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15917 soname_spec='${libname}${release}${shared_ext}$major'
15918 shlibpath_var=LD_LIBRARY_PATH
15919 shlibpath_overrides_runpath=yes
15920 hardcode_into_libs=yes
15921 if test "$with_gnu_ld" = yes; then
15922 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15923 else
15924 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15925 case $host_os in
15926 sco3.2v5*)
15927 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15929 esac
15931 sys_lib_dlsearch_path_spec='/usr/lib'
15934 tpf*)
15935 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15936 version_type=linux # correct to gnu/linux during the next big refactor
15937 need_lib_prefix=no
15938 need_version=no
15939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15940 shlibpath_var=LD_LIBRARY_PATH
15941 shlibpath_overrides_runpath=no
15942 hardcode_into_libs=yes
15945 uts4*)
15946 version_type=linux # correct to gnu/linux during the next big refactor
15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948 soname_spec='${libname}${release}${shared_ext}$major'
15949 shlibpath_var=LD_LIBRARY_PATH
15953 dynamic_linker=no
15955 esac
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15957 $as_echo "$dynamic_linker" >&6; }
15958 test "$dynamic_linker" = no && can_build_shared=no
15960 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15961 if test "$GCC" = yes; then
15962 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15965 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15966 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15968 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15969 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16010 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16011 hardcode_action_CXX=
16012 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16013 test -n "$runpath_var_CXX" ||
16014 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16016 # We can hardcode non-existent directories.
16017 if test "$hardcode_direct_CXX" != no &&
16018 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16019 # have to relink, otherwise we might link with an installed library
16020 # when we should be linking with a yet-to-be-installed one
16021 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16022 test "$hardcode_minus_L_CXX" != no; then
16023 # Linking always hardcodes the temporary library directory.
16024 hardcode_action_CXX=relink
16025 else
16026 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16027 hardcode_action_CXX=immediate
16029 else
16030 # We cannot hardcode anything, or else we can only hardcode existing
16031 # directories.
16032 hardcode_action_CXX=unsupported
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16035 $as_echo "$hardcode_action_CXX" >&6; }
16037 if test "$hardcode_action_CXX" = relink ||
16038 test "$inherit_rpath_CXX" = yes; then
16039 # Fast installation is not supported
16040 enable_fast_install=no
16041 elif test "$shlibpath_overrides_runpath" = yes ||
16042 test "$enable_shared" = no; then
16043 # Fast installation is not necessary
16044 enable_fast_install=needless
16053 fi # test -n "$compiler"
16055 CC=$lt_save_CC
16056 CFLAGS=$lt_save_CFLAGS
16057 LDCXX=$LD
16058 LD=$lt_save_LD
16059 GCC=$lt_save_GCC
16060 with_gnu_ld=$lt_save_with_gnu_ld
16061 lt_cv_path_LDCXX=$lt_cv_path_LD
16062 lt_cv_path_LD=$lt_save_path_LD
16063 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16064 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16065 fi # test "$_lt_caught_CXX_error" != yes
16067 ac_ext=c
16068 ac_cpp='$CPP $CPPFLAGS'
16069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16074 if test "x$CXX" != "x"; then # CXX is set...
16075 if test -f "$CXX"; then # maybe it's an absolute path passed in env variables...
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX" >&5
16077 $as_echo_n "checking for $CXX... " >&6; }
16078 HAVE_CXX="yes"
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CXX" >&5
16080 $as_echo "$HAVE_CXX" >&6; }
16081 else
16082 # Extract the first word of "$CXX", so it can be a program name with args.
16083 set dummy $CXX; ac_word=$2
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16085 $as_echo_n "checking for $ac_word... " >&6; }
16086 if ${ac_cv_prog_HAVE_CXX+:} false; then :
16087 $as_echo_n "(cached) " >&6
16088 else
16089 if test -n "$HAVE_CXX"; then
16090 ac_cv_prog_HAVE_CXX="$HAVE_CXX" # Let the user override the test.
16091 else
16092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16093 for as_dir in $PATH
16095 IFS=$as_save_IFS
16096 test -z "$as_dir" && as_dir=.
16097 for ac_exec_ext in '' $ac_executable_extensions; do
16098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16099 ac_cv_prog_HAVE_CXX="yes"
16100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16101 break 2
16103 done
16104 done
16105 IFS=$as_save_IFS
16107 test -z "$ac_cv_prog_HAVE_CXX" && ac_cv_prog_HAVE_CXX="no"
16110 HAVE_CXX=$ac_cv_prog_HAVE_CXX
16111 if test -n "$HAVE_CXX"; then
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CXX" >&5
16113 $as_echo "$HAVE_CXX" >&6; }
16114 else
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16116 $as_echo "no" >&6; }
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16123 $as_echo_n "checking for inline... " >&6; }
16124 if ${ac_cv_c_inline+:} false; then :
16125 $as_echo_n "(cached) " >&6
16126 else
16127 ac_cv_c_inline=no
16128 for ac_kw in inline __inline__ __inline; do
16129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16130 /* end confdefs.h. */
16131 #ifndef __cplusplus
16132 typedef int foo_t;
16133 static $ac_kw foo_t static_foo () {return 0; }
16134 $ac_kw foo_t foo () {return 0; }
16135 #endif
16137 _ACEOF
16138 if ac_fn_c_try_compile "$LINENO"; then :
16139 ac_cv_c_inline=$ac_kw
16141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16142 test "$ac_cv_c_inline" != no && break
16143 done
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16147 $as_echo "$ac_cv_c_inline" >&6; }
16149 case $ac_cv_c_inline in
16150 inline | yes) ;;
16152 case $ac_cv_c_inline in
16153 no) ac_val=;;
16154 *) ac_val=$ac_cv_c_inline;;
16155 esac
16156 cat >>confdefs.h <<_ACEOF
16157 #ifndef __cplusplus
16158 #define inline $ac_val
16159 #endif
16160 _ACEOF
16162 esac
16164 if test "x$GCC" = "xyes" ; then
16166 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"
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
16169 $as_echo_n "checking gcc version... " >&6; }
16170 GCC_VERSION=`$CC -dumpversion`
16171 GCC_MAJOR=`echo $GCC_VERSION | cut -d . -f1`
16172 GCC_MINOR=`echo $GCC_VERSION | cut -d . -f2`
16173 GCC_VERSION_NUM=`(expr $GCC_MAJOR "*" 100 + $GCC_MINOR) 2>/dev/null`
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
16176 $as_echo "$GCC_VERSION" >&6; }
16177 if test $GCC_VERSION_NUM -ge 304; then
16178 CFLAGS="$CFLAGS -Wextra -Wdeclaration-after-statement -Winit-self"
16180 if test $GCC_VERSION_NUM -ge 403; then
16181 CFLAGS="$CFLAGS -Wvariadic-macros"
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16186 $as_echo_n "checking for ANSI C header files... " >&6; }
16187 if ${ac_cv_header_stdc+:} false; then :
16188 $as_echo_n "(cached) " >&6
16189 else
16190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191 /* end confdefs.h. */
16192 #include <stdlib.h>
16193 #include <stdarg.h>
16194 #include <string.h>
16195 #include <float.h>
16198 main ()
16202 return 0;
16204 _ACEOF
16205 if ac_fn_c_try_compile "$LINENO"; then :
16206 ac_cv_header_stdc=yes
16207 else
16208 ac_cv_header_stdc=no
16210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16212 if test $ac_cv_header_stdc = yes; then
16213 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16215 /* end confdefs.h. */
16216 #include <string.h>
16218 _ACEOF
16219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16220 $EGREP "memchr" >/dev/null 2>&1; then :
16222 else
16223 ac_cv_header_stdc=no
16225 rm -f conftest*
16229 if test $ac_cv_header_stdc = yes; then
16230 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16232 /* end confdefs.h. */
16233 #include <stdlib.h>
16235 _ACEOF
16236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16237 $EGREP "free" >/dev/null 2>&1; then :
16239 else
16240 ac_cv_header_stdc=no
16242 rm -f conftest*
16246 if test $ac_cv_header_stdc = yes; then
16247 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16248 if test "$cross_compiling" = yes; then :
16250 else
16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16253 #include <ctype.h>
16254 #include <stdlib.h>
16255 #if ((' ' & 0x0FF) == 0x020)
16256 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16257 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16258 #else
16259 # define ISLOWER(c) \
16260 (('a' <= (c) && (c) <= 'i') \
16261 || ('j' <= (c) && (c) <= 'r') \
16262 || ('s' <= (c) && (c) <= 'z'))
16263 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16264 #endif
16266 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16268 main ()
16270 int i;
16271 for (i = 0; i < 256; i++)
16272 if (XOR (islower (i), ISLOWER (i))
16273 || toupper (i) != TOUPPER (i))
16274 return 2;
16275 return 0;
16277 _ACEOF
16278 if ac_fn_c_try_run "$LINENO"; then :
16280 else
16281 ac_cv_header_stdc=no
16283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16284 conftest.$ac_objext conftest.beam conftest.$ac_ext
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16290 $as_echo "$ac_cv_header_stdc" >&6; }
16291 if test $ac_cv_header_stdc = yes; then
16293 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16298 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16299 if ${ac_cv_header_time+:} false; then :
16300 $as_echo_n "(cached) " >&6
16301 else
16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h. */
16304 #include <sys/types.h>
16305 #include <sys/time.h>
16306 #include <time.h>
16309 main ()
16311 if ((struct tm *) 0)
16312 return 0;
16314 return 0;
16316 _ACEOF
16317 if ac_fn_c_try_compile "$LINENO"; then :
16318 ac_cv_header_time=yes
16319 else
16320 ac_cv_header_time=no
16322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16325 $as_echo "$ac_cv_header_time" >&6; }
16326 if test $ac_cv_header_time = yes; then
16328 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16333 for ac_header in stdbool.h
16334 do :
16335 ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
16336 if test "x$ac_cv_header_stdbool_h" = xyes; then :
16337 cat >>confdefs.h <<_ACEOF
16338 #define HAVE_STDBOOL_H 1
16339 _ACEOF
16343 done
16345 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
16346 do :
16347 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16348 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16349 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16350 cat >>confdefs.h <<_ACEOF
16351 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16352 _ACEOF
16355 done
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16359 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16360 set x ${MAKE-make}
16361 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16362 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16363 $as_echo_n "(cached) " >&6
16364 else
16365 cat >conftest.make <<\_ACEOF
16366 SHELL = /bin/sh
16367 all:
16368 @echo '@@@%%%=$(MAKE)=@@@%%%'
16369 _ACEOF
16370 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16371 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16372 *@@@%%%=?*=@@@%%%*)
16373 eval ac_cv_prog_make_${ac_make}_set=yes;;
16375 eval ac_cv_prog_make_${ac_make}_set=no;;
16376 esac
16377 rm -f conftest.make
16379 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16381 $as_echo "yes" >&6; }
16382 SET_MAKE=
16383 else
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16385 $as_echo "no" >&6; }
16386 SET_MAKE="MAKE=${MAKE-make}"
16392 ac_ext=c
16393 ac_cpp='$CPP $CPPFLAGS'
16394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16398 acx_pthread_ok=no
16400 # We used to check for pthread.h first, but this fails if pthread.h
16401 # requires special compiler flags (e.g. on True64 or Sequent).
16402 # It gets checked for in the link test anyway.
16404 # First of all, check if the user has set any of the PTHREAD_LIBS,
16405 # etcetera environment variables, and if threads linking works using
16406 # them:
16407 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16408 save_CFLAGS="$CFLAGS"
16409 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16410 save_LIBS="$LIBS"
16411 LIBS="$PTHREAD_LIBS $LIBS"
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16413 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16415 /* end confdefs.h. */
16417 /* Override any GCC internal prototype to avoid an error.
16418 Use char because int might match the return type of a GCC
16419 builtin and then its argument prototype would still apply. */
16420 #ifdef __cplusplus
16421 extern "C"
16422 #endif
16423 char pthread_join ();
16425 main ()
16427 return pthread_join ();
16429 return 0;
16431 _ACEOF
16432 if ac_fn_c_try_link "$LINENO"; then :
16433 acx_pthread_ok=yes
16435 rm -f core conftest.err conftest.$ac_objext \
16436 conftest$ac_exeext conftest.$ac_ext
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16438 $as_echo "$acx_pthread_ok" >&6; }
16439 if test x"$acx_pthread_ok" = xno; then
16440 PTHREAD_LIBS=""
16441 PTHREAD_CFLAGS=""
16443 LIBS="$save_LIBS"
16444 CFLAGS="$save_CFLAGS"
16447 # We must check for the threads library under a number of different
16448 # names; the ordering is very important because some systems
16449 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16450 # libraries is broken (non-POSIX).
16452 # Create a list of thread flags to try. Items starting with a "-" are
16453 # C compiler flags, and other items are library names, except for "none"
16454 # which indicates that we try without any flags at all, and "pthread-config"
16455 # which is a program returning the flags for the Pth emulation library.
16457 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16459 # The ordering *is* (sometimes) important. Some notes on the
16460 # individual items follow:
16462 # pthreads: AIX (must check this before -lpthread)
16463 # none: in case threads are in libc; should be tried before -Kthread and
16464 # other compiler flags to prevent continual compiler warnings
16465 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16466 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16467 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16468 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16469 # -pthreads: Solaris/gcc
16470 # -mthreads: Mingw32/gcc, Lynx/gcc
16471 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16472 # doesn't hurt to check since this sometimes defines pthreads too;
16473 # also defines -D_REENTRANT)
16474 # ... -mt is also the pthreads flag for HP/aCC
16475 # pthread: Linux, etcetera
16476 # --thread-safe: KAI C++
16477 # pthread-config: use pthread-config program (for GNU Pth library)
16479 case "${host_cpu}-${host_os}" in
16480 *solaris*)
16482 # On Solaris (at least, for some versions), libc contains stubbed
16483 # (non-functional) versions of the pthreads routines, so link-based
16484 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16485 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16486 # a function called by this macro, so we could check for that, but
16487 # who knows whether they'll stub that too in a future libc.) So,
16488 # we'll just look for -pthreads and -lpthread first:
16490 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
16492 esac
16494 if test x"$acx_pthread_ok" = xno; then
16495 for flag in $acx_pthread_flags; do
16497 case $flag in
16498 none)
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16500 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16505 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16506 PTHREAD_CFLAGS="$flag"
16509 pthread-config)
16510 # Extract the first word of "pthread-config", so it can be a program name with args.
16511 set dummy pthread-config; ac_word=$2
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16513 $as_echo_n "checking for $ac_word... " >&6; }
16514 if ${ac_cv_prog_acx_pthread_config+:} false; then :
16515 $as_echo_n "(cached) " >&6
16516 else
16517 if test -n "$acx_pthread_config"; then
16518 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16519 else
16520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16521 for as_dir in $PATH
16523 IFS=$as_save_IFS
16524 test -z "$as_dir" && as_dir=.
16525 for ac_exec_ext in '' $ac_executable_extensions; do
16526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16527 ac_cv_prog_acx_pthread_config="yes"
16528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16529 break 2
16531 done
16532 done
16533 IFS=$as_save_IFS
16535 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16538 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16539 if test -n "$acx_pthread_config"; then
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
16541 $as_echo "$acx_pthread_config" >&6; }
16542 else
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16544 $as_echo "no" >&6; }
16548 if test x"$acx_pthread_config" = xno; then continue; fi
16549 PTHREAD_CFLAGS="`pthread-config --cflags`"
16550 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16555 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16556 PTHREAD_LIBS="-l$flag"
16558 esac
16560 save_LIBS="$LIBS"
16561 save_CFLAGS="$CFLAGS"
16562 LIBS="$PTHREAD_LIBS $LIBS"
16563 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16565 # Check for various functions. We must include pthread.h,
16566 # since some functions may be macros. (On the Sequent, we
16567 # need a special flag -Kthread to make this header compile.)
16568 # We check for pthread_join because it is in -lpthread on IRIX
16569 # while pthread_create is in libc. We check for pthread_attr_init
16570 # due to DEC craziness with -lpthreads. We check for
16571 # pthread_cleanup_push because it is one of the few pthread
16572 # functions on Solaris that doesn't have a non-functional libc stub.
16573 # We try pthread_create on general principles.
16574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16575 /* end confdefs.h. */
16576 #include <pthread.h>
16578 main ()
16580 pthread_t th; pthread_join(th, 0);
16581 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16582 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16584 return 0;
16586 _ACEOF
16587 if ac_fn_c_try_link "$LINENO"; then :
16588 acx_pthread_ok=yes
16590 rm -f core conftest.err conftest.$ac_objext \
16591 conftest$ac_exeext conftest.$ac_ext
16593 LIBS="$save_LIBS"
16594 CFLAGS="$save_CFLAGS"
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16597 $as_echo "$acx_pthread_ok" >&6; }
16598 if test "x$acx_pthread_ok" = xyes; then
16599 break;
16602 PTHREAD_LIBS=""
16603 PTHREAD_CFLAGS=""
16604 done
16607 # Various other checks:
16608 if test "x$acx_pthread_ok" = xyes; then
16609 save_LIBS="$LIBS"
16610 LIBS="$PTHREAD_LIBS $LIBS"
16611 save_CFLAGS="$CFLAGS"
16612 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16614 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16616 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16617 attr_name=unknown
16618 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16620 /* end confdefs.h. */
16621 #include <pthread.h>
16623 main ()
16625 int attr=$attr; return attr;
16627 return 0;
16629 _ACEOF
16630 if ac_fn_c_try_link "$LINENO"; then :
16631 attr_name=$attr; break
16633 rm -f core conftest.err conftest.$ac_objext \
16634 conftest$ac_exeext conftest.$ac_ext
16635 done
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16637 $as_echo "$attr_name" >&6; }
16638 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16640 cat >>confdefs.h <<_ACEOF
16641 #define PTHREAD_CREATE_JOINABLE $attr_name
16642 _ACEOF
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16647 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16648 flag=no
16649 case "${host_cpu}-${host_os}" in
16650 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16651 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16652 esac
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
16654 $as_echo "${flag}" >&6; }
16655 if test "x$flag" != xno; then
16656 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16659 LIBS="$save_LIBS"
16660 CFLAGS="$save_CFLAGS"
16662 # More AIX lossage: must compile with xlc_r or cc_r
16663 if test x"$GCC" != xyes; then
16664 for ac_prog in xlc_r cc_r
16666 # Extract the first word of "$ac_prog", so it can be a program name with args.
16667 set dummy $ac_prog; ac_word=$2
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16669 $as_echo_n "checking for $ac_word... " >&6; }
16670 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16671 $as_echo_n "(cached) " >&6
16672 else
16673 if test -n "$PTHREAD_CC"; then
16674 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16675 else
16676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16677 for as_dir in $PATH
16679 IFS=$as_save_IFS
16680 test -z "$as_dir" && as_dir=.
16681 for ac_exec_ext in '' $ac_executable_extensions; do
16682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16683 ac_cv_prog_PTHREAD_CC="$ac_prog"
16684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16685 break 2
16687 done
16688 done
16689 IFS=$as_save_IFS
16693 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16694 if test -n "$PTHREAD_CC"; then
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16696 $as_echo "$PTHREAD_CC" >&6; }
16697 else
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16699 $as_echo "no" >&6; }
16703 test -n "$PTHREAD_CC" && break
16704 done
16705 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
16707 else
16708 PTHREAD_CC=$CC
16710 else
16711 PTHREAD_CC="$CC"
16718 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16719 if test x"$acx_pthread_ok" = xyes; then
16721 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16724 else
16725 acx_pthread_ok=no
16728 ac_ext=c
16729 ac_cpp='$CPP $CPPFLAGS'
16730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16736 if test "x$ac_cv_func_strtold" != "xyes" ; then
16737 CPPFLAGS="$CPPFLAGS -Dstrtold=strtod"
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
16741 $as_echo_n "checking for library containing cos... " >&6; }
16742 if ${ac_cv_search_cos+:} false; then :
16743 $as_echo_n "(cached) " >&6
16744 else
16745 ac_func_search_save_LIBS=$LIBS
16746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747 /* end confdefs.h. */
16749 /* Override any GCC internal prototype to avoid an error.
16750 Use char because int might match the return type of a GCC
16751 builtin and then its argument prototype would still apply. */
16752 #ifdef __cplusplus
16753 extern "C"
16754 #endif
16755 char cos ();
16757 main ()
16759 return cos ();
16761 return 0;
16763 _ACEOF
16764 for ac_lib in '' m; do
16765 if test -z "$ac_lib"; then
16766 ac_res="none required"
16767 else
16768 ac_res=-l$ac_lib
16769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16771 if ac_fn_c_try_link "$LINENO"; then :
16772 ac_cv_search_cos=$ac_res
16774 rm -f core conftest.err conftest.$ac_objext \
16775 conftest$ac_exeext
16776 if ${ac_cv_search_cos+:} false; then :
16777 break
16779 done
16780 if ${ac_cv_search_cos+:} false; then :
16782 else
16783 ac_cv_search_cos=no
16785 rm conftest.$ac_ext
16786 LIBS=$ac_func_search_save_LIBS
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
16789 $as_echo "$ac_cv_search_cos" >&6; }
16790 ac_res=$ac_cv_search_cos
16791 if test "$ac_res" != no; then :
16792 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
16797 $as_echo_n "checking for library containing socket... " >&6; }
16798 if ${ac_cv_search_socket+:} false; then :
16799 $as_echo_n "(cached) " >&6
16800 else
16801 ac_func_search_save_LIBS=$LIBS
16802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16803 /* end confdefs.h. */
16805 /* Override any GCC internal prototype to avoid an error.
16806 Use char because int might match the return type of a GCC
16807 builtin and then its argument prototype would still apply. */
16808 #ifdef __cplusplus
16809 extern "C"
16810 #endif
16811 char socket ();
16813 main ()
16815 return socket ();
16817 return 0;
16819 _ACEOF
16820 for ac_lib in '' socket net; do
16821 if test -z "$ac_lib"; then
16822 ac_res="none required"
16823 else
16824 ac_res=-l$ac_lib
16825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16827 if ac_fn_c_try_link "$LINENO"; then :
16828 ac_cv_search_socket=$ac_res
16830 rm -f core conftest.err conftest.$ac_objext \
16831 conftest$ac_exeext
16832 if ${ac_cv_search_socket+:} false; then :
16833 break
16835 done
16836 if ${ac_cv_search_socket+:} false; then :
16838 else
16839 ac_cv_search_socket=no
16841 rm conftest.$ac_ext
16842 LIBS=$ac_func_search_save_LIBS
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
16845 $as_echo "$ac_cv_search_socket" >&6; }
16846 ac_res=$ac_cv_search_socket
16847 if test "$ac_res" != no; then :
16848 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
16853 $as_echo_n "checking for library containing gethostbyname... " >&6; }
16854 if ${ac_cv_search_gethostbyname+:} false; then :
16855 $as_echo_n "(cached) " >&6
16856 else
16857 ac_func_search_save_LIBS=$LIBS
16858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16859 /* end confdefs.h. */
16861 /* Override any GCC internal prototype to avoid an error.
16862 Use char because int might match the return type of a GCC
16863 builtin and then its argument prototype would still apply. */
16864 #ifdef __cplusplus
16865 extern "C"
16866 #endif
16867 char gethostbyname ();
16869 main ()
16871 return gethostbyname ();
16873 return 0;
16875 _ACEOF
16876 for ac_lib in '' nsl bind; do
16877 if test -z "$ac_lib"; then
16878 ac_res="none required"
16879 else
16880 ac_res=-l$ac_lib
16881 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16883 if ac_fn_c_try_link "$LINENO"; then :
16884 ac_cv_search_gethostbyname=$ac_res
16886 rm -f core conftest.err conftest.$ac_objext \
16887 conftest$ac_exeext
16888 if ${ac_cv_search_gethostbyname+:} false; then :
16889 break
16891 done
16892 if ${ac_cv_search_gethostbyname+:} false; then :
16894 else
16895 ac_cv_search_gethostbyname=no
16897 rm conftest.$ac_ext
16898 LIBS=$ac_func_search_save_LIBS
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
16901 $as_echo "$ac_cv_search_gethostbyname" >&6; }
16902 ac_res=$ac_cv_search_gethostbyname
16903 if test "$ac_res" != no; then :
16904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16910 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16911 if test -n "$ac_tool_prefix"; then
16912 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16913 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16915 $as_echo_n "checking for $ac_word... " >&6; }
16916 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16917 $as_echo_n "(cached) " >&6
16918 else
16919 case $PKG_CONFIG in
16920 [\\/]* | ?:[\\/]*)
16921 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16925 for as_dir in $PATH
16927 IFS=$as_save_IFS
16928 test -z "$as_dir" && as_dir=.
16929 for ac_exec_ext in '' $ac_executable_extensions; do
16930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16931 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16933 break 2
16935 done
16936 done
16937 IFS=$as_save_IFS
16940 esac
16942 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16943 if test -n "$PKG_CONFIG"; then
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16945 $as_echo "$PKG_CONFIG" >&6; }
16946 else
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16948 $as_echo "no" >&6; }
16953 if test -z "$ac_cv_path_PKG_CONFIG"; then
16954 ac_pt_PKG_CONFIG=$PKG_CONFIG
16955 # Extract the first word of "pkg-config", so it can be a program name with args.
16956 set dummy pkg-config; ac_word=$2
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16958 $as_echo_n "checking for $ac_word... " >&6; }
16959 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16960 $as_echo_n "(cached) " >&6
16961 else
16962 case $ac_pt_PKG_CONFIG in
16963 [\\/]* | ?:[\\/]*)
16964 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16968 for as_dir in $PATH
16970 IFS=$as_save_IFS
16971 test -z "$as_dir" && as_dir=.
16972 for ac_exec_ext in '' $ac_executable_extensions; do
16973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16974 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16976 break 2
16978 done
16979 done
16980 IFS=$as_save_IFS
16983 esac
16985 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16986 if test -n "$ac_pt_PKG_CONFIG"; then
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16988 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16989 else
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16991 $as_echo "no" >&6; }
16994 if test "x$ac_pt_PKG_CONFIG" = x; then
16995 PKG_CONFIG=""
16996 else
16997 case $cross_compiling:$ac_tool_warned in
16998 yes:)
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17001 ac_tool_warned=yes ;;
17002 esac
17003 PKG_CONFIG=$ac_pt_PKG_CONFIG
17005 else
17006 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17010 if test -n "$PKG_CONFIG"; then
17011 _pkg_min_version=0.9.0
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17013 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17014 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17016 $as_echo "yes" >&6; }
17017 else
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17019 $as_echo "no" >&6; }
17020 PKG_CONFIG=""
17025 pkg_failed=no
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
17027 $as_echo_n "checking for OPENSSL... " >&6; }
17029 if test -n "$PKG_CONFIG"; then
17030 if test -n "$OPENSSL_CFLAGS"; then
17031 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
17032 else
17033 if test -n "$PKG_CONFIG" && \
17034 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_MINIMUM\""; } >&5
17035 ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_MINIMUM") 2>&5
17036 ac_status=$?
17037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17038 test $ac_status = 0; }; then
17039 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= $OPENSSL_MINIMUM" 2>/dev/null`
17040 else
17041 pkg_failed=yes
17044 else
17045 pkg_failed=untried
17047 if test -n "$PKG_CONFIG"; then
17048 if test -n "$OPENSSL_LIBS"; then
17049 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
17050 else
17051 if test -n "$PKG_CONFIG" && \
17052 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_MINIMUM\""; } >&5
17053 ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_MINIMUM") 2>&5
17054 ac_status=$?
17055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17056 test $ac_status = 0; }; then
17057 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= $OPENSSL_MINIMUM" 2>/dev/null`
17058 else
17059 pkg_failed=yes
17062 else
17063 pkg_failed=untried
17068 if test $pkg_failed = yes; then
17070 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17071 _pkg_short_errors_supported=yes
17072 else
17073 _pkg_short_errors_supported=no
17075 if test $_pkg_short_errors_supported = yes; then
17076 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openssl >= $OPENSSL_MINIMUM"`
17077 else
17078 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl >= $OPENSSL_MINIMUM"`
17080 # Put the nasty error message in config.log where it belongs
17081 echo "$OPENSSL_PKG_ERRORS" >&5
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17084 $as_echo "no" >&6; }
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
17087 $as_echo_n "checking for OpenSSL... " >&6; }
17089 for dir in $with_ssl /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr; do
17090 ssldir="$dir"
17091 if test -f "$dir/include/openssl/ssl.h"; then
17092 found_ssl="yes";
17093 OPENSSL_CFLAGS="-I$ssldir/include";
17094 break;
17096 if test -f "$dir/include/ssl.h"; then
17097 found_ssl="yes";
17098 OPENSSL_CFLAGS="-I$ssldir/include";
17099 break
17101 done
17102 if test x_$found_ssl != x_yes; then
17103 as_fn_error $? "Cannot locate ssl" "$LINENO" 5
17104 else
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssldir" >&5
17106 $as_echo "$ssldir" >&6; }
17107 OPENSSL_LIBS="-L$ssldir/lib -lssl -lcrypto";
17110 elif test $pkg_failed = untried; then
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
17113 $as_echo_n "checking for OpenSSL... " >&6; }
17115 for dir in $with_ssl /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr; do
17116 ssldir="$dir"
17117 if test -f "$dir/include/openssl/ssl.h"; then
17118 found_ssl="yes";
17119 OPENSSL_CFLAGS="-I$ssldir/include";
17120 break;
17122 if test -f "$dir/include/ssl.h"; then
17123 found_ssl="yes";
17124 OPENSSL_CFLAGS="-I$ssldir/include";
17125 break
17127 done
17128 if test x_$found_ssl != x_yes; then
17129 as_fn_error $? "Cannot locate ssl" "$LINENO" 5
17130 else
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssldir" >&5
17132 $as_echo "$ssldir" >&6; }
17133 OPENSSL_LIBS="-L$ssldir/lib -lssl -lcrypto";
17136 else
17137 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
17138 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17140 $as_echo "yes" >&6; }
17144 pkg_failed=no
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCURL" >&5
17146 $as_echo_n "checking for LIBCURL... " >&6; }
17148 if test -n "$PKG_CONFIG"; then
17149 if test -n "$LIBCURL_CFLAGS"; then
17150 pkg_cv_LIBCURL_CFLAGS="$LIBCURL_CFLAGS"
17151 else
17152 if test -n "$PKG_CONFIG" && \
17153 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= \$CURL_MINIMUM\""; } >&5
17154 ($PKG_CONFIG --exists --print-errors "libcurl >= $CURL_MINIMUM") 2>&5
17155 ac_status=$?
17156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17157 test $ac_status = 0; }; then
17158 pkg_cv_LIBCURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= $CURL_MINIMUM" 2>/dev/null`
17159 else
17160 pkg_failed=yes
17163 else
17164 pkg_failed=untried
17166 if test -n "$PKG_CONFIG"; then
17167 if test -n "$LIBCURL_LIBS"; then
17168 pkg_cv_LIBCURL_LIBS="$LIBCURL_LIBS"
17169 else
17170 if test -n "$PKG_CONFIG" && \
17171 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= \$CURL_MINIMUM\""; } >&5
17172 ($PKG_CONFIG --exists --print-errors "libcurl >= $CURL_MINIMUM") 2>&5
17173 ac_status=$?
17174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17175 test $ac_status = 0; }; then
17176 pkg_cv_LIBCURL_LIBS=`$PKG_CONFIG --libs "libcurl >= $CURL_MINIMUM" 2>/dev/null`
17177 else
17178 pkg_failed=yes
17181 else
17182 pkg_failed=untried
17187 if test $pkg_failed = yes; then
17189 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17190 _pkg_short_errors_supported=yes
17191 else
17192 _pkg_short_errors_supported=no
17194 if test $_pkg_short_errors_supported = yes; then
17195 LIBCURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcurl >= $CURL_MINIMUM"`
17196 else
17197 LIBCURL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcurl >= $CURL_MINIMUM"`
17199 # Put the nasty error message in config.log where it belongs
17200 echo "$LIBCURL_PKG_ERRORS" >&5
17202 as_fn_error $? "Package requirements (libcurl >= $CURL_MINIMUM) were not met:
17204 $LIBCURL_PKG_ERRORS
17206 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17207 installed software in a non-standard prefix.
17209 Alternatively, you may set the environment variables LIBCURL_CFLAGS
17210 and LIBCURL_LIBS to avoid the need to call pkg-config.
17211 See the pkg-config man page for more details.
17212 " "$LINENO" 5
17213 elif test $pkg_failed = untried; then
17214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17216 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17217 is in your PATH or set the PKG_CONFIG environment variable to the full
17218 path to pkg-config.
17220 Alternatively, you may set the environment variables LIBCURL_CFLAGS
17221 and LIBCURL_LIBS to avoid the need to call pkg-config.
17222 See the pkg-config man page for more details.
17224 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
17225 See \`config.log' for more details" "$LINENO" 5; }
17226 else
17227 LIBCURL_CFLAGS=$pkg_cv_LIBCURL_CFLAGS
17228 LIBCURL_LIBS=$pkg_cv_LIBCURL_LIBS
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17230 $as_echo "yes" >&6; }
17234 pkg_failed=no
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEVENT" >&5
17236 $as_echo_n "checking for LIBEVENT... " >&6; }
17238 if test -n "$PKG_CONFIG"; then
17239 if test -n "$LIBEVENT_CFLAGS"; then
17240 pkg_cv_LIBEVENT_CFLAGS="$LIBEVENT_CFLAGS"
17241 else
17242 if test -n "$PKG_CONFIG" && \
17243 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent >= \$LIBEVENT_MINIMUM\""; } >&5
17244 ($PKG_CONFIG --exists --print-errors "libevent >= $LIBEVENT_MINIMUM") 2>&5
17245 ac_status=$?
17246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17247 test $ac_status = 0; }; then
17248 pkg_cv_LIBEVENT_CFLAGS=`$PKG_CONFIG --cflags "libevent >= $LIBEVENT_MINIMUM" 2>/dev/null`
17249 else
17250 pkg_failed=yes
17253 else
17254 pkg_failed=untried
17256 if test -n "$PKG_CONFIG"; then
17257 if test -n "$LIBEVENT_LIBS"; then
17258 pkg_cv_LIBEVENT_LIBS="$LIBEVENT_LIBS"
17259 else
17260 if test -n "$PKG_CONFIG" && \
17261 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent >= \$LIBEVENT_MINIMUM\""; } >&5
17262 ($PKG_CONFIG --exists --print-errors "libevent >= $LIBEVENT_MINIMUM") 2>&5
17263 ac_status=$?
17264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17265 test $ac_status = 0; }; then
17266 pkg_cv_LIBEVENT_LIBS=`$PKG_CONFIG --libs "libevent >= $LIBEVENT_MINIMUM" 2>/dev/null`
17267 else
17268 pkg_failed=yes
17271 else
17272 pkg_failed=untried
17277 if test $pkg_failed = yes; then
17279 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17280 _pkg_short_errors_supported=yes
17281 else
17282 _pkg_short_errors_supported=no
17284 if test $_pkg_short_errors_supported = yes; then
17285 LIBEVENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libevent >= $LIBEVENT_MINIMUM"`
17286 else
17287 LIBEVENT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libevent >= $LIBEVENT_MINIMUM"`
17289 # Put the nasty error message in config.log where it belongs
17290 echo "$LIBEVENT_PKG_ERRORS" >&5
17292 as_fn_error $? "Package requirements (libevent >= $LIBEVENT_MINIMUM) were not met:
17294 $LIBEVENT_PKG_ERRORS
17296 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17297 installed software in a non-standard prefix.
17299 Alternatively, you may set the environment variables LIBEVENT_CFLAGS
17300 and LIBEVENT_LIBS to avoid the need to call pkg-config.
17301 See the pkg-config man page for more details.
17302 " "$LINENO" 5
17303 elif test $pkg_failed = untried; then
17304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17306 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17307 is in your PATH or set the PKG_CONFIG environment variable to the full
17308 path to pkg-config.
17310 Alternatively, you may set the environment variables LIBEVENT_CFLAGS
17311 and LIBEVENT_LIBS to avoid the need to call pkg-config.
17312 See the pkg-config man page for more details.
17314 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
17315 See \`config.log' for more details" "$LINENO" 5; }
17316 else
17317 LIBEVENT_CFLAGS=$pkg_cv_LIBEVENT_CFLAGS
17318 LIBEVENT_LIBS=$pkg_cv_LIBEVENT_LIBS
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17320 $as_echo "yes" >&6; }
17325 # Check whether --with-zlib was given.
17326 if test "${with_zlib+set}" = set; then :
17327 withval=$with_zlib; for dir in `echo "$withval" | tr : ' '`; do
17328 if test -d $dir/include; then
17329 ZLIB_CFLAGS="$ZLIB_CFLAGS -I$dir/include"
17331 if test -d $dir/lib; then
17332 ZLIB_LDFLAGS="$ZLIB_LDFLAGS -L$dir/lib"
17334 done
17339 # Check whether --with-zlib-includes was given.
17340 if test "${with_zlib_includes+set}" = set; then :
17341 withval=$with_zlib_includes; for dir in `echo "$withval" | tr : ' '`; do
17342 if test -d $dir; then
17343 ZLIB_CFLAGS="$ZLIB_CFLAGS -I$dir"
17345 done
17349 ac_zlib_saved_CFLAGS="$CFLAGS"
17350 ac_zlib_saved_LDFLAGS="$LDFLAGS"
17351 ac_zlib_saved_LIBS="$LIBS"
17352 CFLAGS="$CFLAGS $ZLIB_CFLAGS"
17353 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
17354 ac_have_zlibh=no
17355 ac_have_zlib=no
17356 touch /tmp/dummy1_zlib.h
17357 for ac_header in /tmp/dummy1_zlib.h
17358 do :
17359 ac_fn_c_check_header_compile "$LINENO" "/tmp/dummy1_zlib.h" "ac_cv_header__tmp_dummy1_zlib_h" "#include \"zlib.h\"
17361 if test "x$ac_cv_header__tmp_dummy1_zlib_h" = xyes; then :
17362 cat >>confdefs.h <<_ACEOF
17363 #define HAVE__TMP_DUMMY1_ZLIB_H 1
17364 _ACEOF
17365 ac_have_zlibh=yes
17366 else
17367 ac_have_zlibh=no
17370 done
17372 rm /tmp/dummy1_zlib.h
17373 if test $ac_have_zlibh = yes; then
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gzopen" >&5
17375 $as_echo_n "checking for library containing gzopen... " >&6; }
17376 if ${ac_cv_search_gzopen+:} false; then :
17377 $as_echo_n "(cached) " >&6
17378 else
17379 ac_func_search_save_LIBS=$LIBS
17380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17381 /* end confdefs.h. */
17383 /* Override any GCC internal prototype to avoid an error.
17384 Use char because int might match the return type of a GCC
17385 builtin and then its argument prototype would still apply. */
17386 #ifdef __cplusplus
17387 extern "C"
17388 #endif
17389 char gzopen ();
17391 main ()
17393 return gzopen ();
17395 return 0;
17397 _ACEOF
17398 for ac_lib in '' z; do
17399 if test -z "$ac_lib"; then
17400 ac_res="none required"
17401 else
17402 ac_res=-l$ac_lib
17403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17405 if ac_fn_c_try_link "$LINENO"; then :
17406 ac_cv_search_gzopen=$ac_res
17408 rm -f core conftest.err conftest.$ac_objext \
17409 conftest$ac_exeext
17410 if ${ac_cv_search_gzopen+:} false; then :
17411 break
17413 done
17414 if ${ac_cv_search_gzopen+:} false; then :
17416 else
17417 ac_cv_search_gzopen=no
17419 rm conftest.$ac_ext
17420 LIBS=$ac_func_search_save_LIBS
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gzopen" >&5
17423 $as_echo "$ac_cv_search_gzopen" >&6; }
17424 ac_res=$ac_cv_search_gzopen
17425 if test "$ac_res" != no; then :
17426 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17427 ac_have_zlib=yes
17428 else
17429 ac_have_zlib=no
17433 # List of places to try
17434 testdirs="$HOME/opt/zlib $OBITINSTALL/other"
17435 for dir in $testdirs; do
17436 if test $ac_have_zlib = no; then
17437 if test -f $dir/include/zlib.h; then
17438 ZLIB_CFLAGS="-I$dir/include"
17439 CPPFLAGS="$ac_zlib_saved_CPPFLAGS $ZLIB_CFLAGS"
17440 ZLIB_LDFLAGS="-L$dir/lib"
17441 LDFLAGS="$ac_zlib_saved_LDFLAGS $ZLIB_LDFLAGS"
17442 touch /tmp/dummy3_zlib.h
17443 for ac_header in /tmp/dummy3_zlib.h
17444 do :
17445 ac_fn_c_check_header_compile "$LINENO" "/tmp/dummy3_zlib.h" "ac_cv_header__tmp_dummy3_zlib_h" "#include \"zlib.h\"
17447 if test "x$ac_cv_header__tmp_dummy3_zlib_h" = xyes; then :
17448 cat >>confdefs.h <<_ACEOF
17449 #define HAVE__TMP_DUMMY3_ZLIB_H 1
17450 _ACEOF
17451 ac_have_zlibh=yes
17452 else
17453 ac_have_zlibh=no
17456 done
17458 rm /tmp/dummy3_zlib.h
17459 if test $ac_have_zlibh = yes; then
17460 # Force check
17461 ac_cv_search_gzopen=" "
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gzopen" >&5
17463 $as_echo_n "checking for library containing gzopen... " >&6; }
17464 if ${ac_cv_search_gzopen+:} false; then :
17465 $as_echo_n "(cached) " >&6
17466 else
17467 ac_func_search_save_LIBS=$LIBS
17468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17469 /* end confdefs.h. */
17471 /* Override any GCC internal prototype to avoid an error.
17472 Use char because int might match the return type of a GCC
17473 builtin and then its argument prototype would still apply. */
17474 #ifdef __cplusplus
17475 extern "C"
17476 #endif
17477 char gzopen ();
17479 main ()
17481 return gzopen ();
17483 return 0;
17485 _ACEOF
17486 for ac_lib in '' z; do
17487 if test -z "$ac_lib"; then
17488 ac_res="none required"
17489 else
17490 ac_res=-l$ac_lib
17491 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17493 if ac_fn_c_try_link "$LINENO"; then :
17494 ac_cv_search_gzopen=$ac_res
17496 rm -f core conftest.err conftest.$ac_objext \
17497 conftest$ac_exeext
17498 if ${ac_cv_search_gzopen+:} false; then :
17499 break
17501 done
17502 if ${ac_cv_search_gzopen+:} false; then :
17504 else
17505 ac_cv_search_gzopen=no
17507 rm conftest.$ac_ext
17508 LIBS=$ac_func_search_save_LIBS
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gzopen" >&5
17511 $as_echo "$ac_cv_search_gzopen" >&6; }
17512 ac_res=$ac_cv_search_gzopen
17513 if test "$ac_res" != no; then :
17514 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17515 ac_have_zlib=yes
17516 else
17517 ac_have_zlib=no
17521 if test $ac_have_zlib = yes ; then
17522 if test $ac_have_zlibh = yes ; then
17523 break;
17528 done
17529 if test $ac_have_zlib = no; then
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find ZLIB library" >&5
17531 $as_echo "$as_me: WARNING: cannot find ZLIB library" >&2;}
17533 if test $ac_have_zlibh = no; then
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find ZLIB headers" >&5
17535 $as_echo "$as_me: WARNING: cannot find ZLIB headers" >&2;}
17536 ac_have_zlib=no
17538 if test $ac_have_zlib = yes; then
17540 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
17543 ZLIB_LIBS="$LIBS"
17544 CFLAGS="$ac_zlib_saved_CFLAGS"
17545 LDFLAGS="$ac_zlib_saved_LDFLAGS"
17546 LIBS="$ac_zlib_saved_LIBS"
17552 # Check whether --enable-largefile was given.
17553 if test "${enable_largefile+set}" = set; then :
17554 enableval=$enable_largefile;
17557 if test "$enable_largefile" != no; then
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17560 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17561 if ${ac_cv_sys_largefile_CC+:} false; then :
17562 $as_echo_n "(cached) " >&6
17563 else
17564 ac_cv_sys_largefile_CC=no
17565 if test "$GCC" != yes; then
17566 ac_save_CC=$CC
17567 while :; do
17568 # IRIX 6.2 and later do not support large files by default,
17569 # so use the C compiler's -n32 option if that helps.
17570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17571 /* end confdefs.h. */
17572 #include <sys/types.h>
17573 /* Check that off_t can represent 2**63 - 1 correctly.
17574 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17575 since some C++ compilers masquerading as C compilers
17576 incorrectly reject 9223372036854775807. */
17577 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17578 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17579 && LARGE_OFF_T % 2147483647 == 1)
17580 ? 1 : -1];
17582 main ()
17586 return 0;
17588 _ACEOF
17589 if ac_fn_c_try_compile "$LINENO"; then :
17590 break
17592 rm -f core conftest.err conftest.$ac_objext
17593 CC="$CC -n32"
17594 if ac_fn_c_try_compile "$LINENO"; then :
17595 ac_cv_sys_largefile_CC=' -n32'; break
17597 rm -f core conftest.err conftest.$ac_objext
17598 break
17599 done
17600 CC=$ac_save_CC
17601 rm -f conftest.$ac_ext
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17605 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17606 if test "$ac_cv_sys_largefile_CC" != no; then
17607 CC=$CC$ac_cv_sys_largefile_CC
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17611 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17612 if ${ac_cv_sys_file_offset_bits+:} false; then :
17613 $as_echo_n "(cached) " >&6
17614 else
17615 while :; do
17616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17617 /* end confdefs.h. */
17618 #include <sys/types.h>
17619 /* Check that off_t can represent 2**63 - 1 correctly.
17620 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17621 since some C++ compilers masquerading as C compilers
17622 incorrectly reject 9223372036854775807. */
17623 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17625 && LARGE_OFF_T % 2147483647 == 1)
17626 ? 1 : -1];
17628 main ()
17632 return 0;
17634 _ACEOF
17635 if ac_fn_c_try_compile "$LINENO"; then :
17636 ac_cv_sys_file_offset_bits=no; break
17638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17640 /* end confdefs.h. */
17641 #define _FILE_OFFSET_BITS 64
17642 #include <sys/types.h>
17643 /* Check that off_t can represent 2**63 - 1 correctly.
17644 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17645 since some C++ compilers masquerading as C compilers
17646 incorrectly reject 9223372036854775807. */
17647 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17648 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17649 && LARGE_OFF_T % 2147483647 == 1)
17650 ? 1 : -1];
17652 main ()
17656 return 0;
17658 _ACEOF
17659 if ac_fn_c_try_compile "$LINENO"; then :
17660 ac_cv_sys_file_offset_bits=64; break
17662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17663 ac_cv_sys_file_offset_bits=unknown
17664 break
17665 done
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17668 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17669 case $ac_cv_sys_file_offset_bits in #(
17670 no | unknown) ;;
17672 cat >>confdefs.h <<_ACEOF
17673 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17674 _ACEOF
17676 esac
17677 rm -rf conftest*
17678 if test $ac_cv_sys_file_offset_bits = unknown; then
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17680 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17681 if ${ac_cv_sys_large_files+:} false; then :
17682 $as_echo_n "(cached) " >&6
17683 else
17684 while :; do
17685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686 /* end confdefs.h. */
17687 #include <sys/types.h>
17688 /* Check that off_t can represent 2**63 - 1 correctly.
17689 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17690 since some C++ compilers masquerading as C compilers
17691 incorrectly reject 9223372036854775807. */
17692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17694 && LARGE_OFF_T % 2147483647 == 1)
17695 ? 1 : -1];
17697 main ()
17701 return 0;
17703 _ACEOF
17704 if ac_fn_c_try_compile "$LINENO"; then :
17705 ac_cv_sys_large_files=no; break
17707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17709 /* end confdefs.h. */
17710 #define _LARGE_FILES 1
17711 #include <sys/types.h>
17712 /* Check that off_t can represent 2**63 - 1 correctly.
17713 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17714 since some C++ compilers masquerading as C compilers
17715 incorrectly reject 9223372036854775807. */
17716 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17717 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17718 && LARGE_OFF_T % 2147483647 == 1)
17719 ? 1 : -1];
17721 main ()
17725 return 0;
17727 _ACEOF
17728 if ac_fn_c_try_compile "$LINENO"; then :
17729 ac_cv_sys_large_files=1; break
17731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17732 ac_cv_sys_large_files=unknown
17733 break
17734 done
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17737 $as_echo "$ac_cv_sys_large_files" >&6; }
17738 case $ac_cv_sys_large_files in #(
17739 no | unknown) ;;
17741 cat >>confdefs.h <<_ACEOF
17742 #define _LARGE_FILES $ac_cv_sys_large_files
17743 _ACEOF
17745 esac
17746 rm -rf conftest*
17750 for ac_func in lseek64
17751 do :
17752 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
17753 if test "x$ac_cv_func_lseek64" = xyes; then :
17754 cat >>confdefs.h <<_ACEOF
17755 #define HAVE_LSEEK64 1
17756 _ACEOF
17759 done
17764 ac_fn_c_check_decl "$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "
17765 #define _XOPEN_SOURCE 600
17766 #include <fcntl.h>
17768 if test "x$ac_cv_have_decl_posix_fadvise" = xyes; then :
17769 ac_have_decl=1
17770 else
17771 ac_have_decl=0
17774 cat >>confdefs.h <<_ACEOF
17775 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
17776 _ACEOF
17778 for ac_func in posix_fadvise
17779 do :
17780 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
17781 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
17782 cat >>confdefs.h <<_ACEOF
17783 #define HAVE_POSIX_FADVISE 1
17784 _ACEOF
17787 done
17792 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
17793 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
17794 ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
17795 if test "x$ac_cv_func_inotify_init" = xyes; then :
17796 have_inotify="yes"
17797 else
17798 have_inotify="no"
17801 else
17802 have_inotify="no"
17807 # Check whether --with-inotify was given.
17808 if test "${with_inotify+set}" = set; then :
17809 withval=$with_inotify; want_inotify=${withval}
17810 else
17811 want_inotify=${have_inotify}
17814 if test "x$want_inotify" = "xyes" ; then
17815 if test "x$have_inotify" = "xyes"; then
17816 $as_echo "#define WITH_INOTIFY 1" >>confdefs.h
17818 else
17819 as_fn_error $? "\"inotify not found!\"" "$LINENO" 5
17823 ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
17824 if test "x$ac_cv_header_sys_event_h" = xyes; then :
17825 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
17826 if test "x$ac_cv_func_kqueue" = xyes; then :
17827 have_kqueue="yes"
17828 else
17829 have_kqueue="no"
17832 else
17833 have_kqueue="no"
17838 # Check whether --with-kqueue was given.
17839 if test "${with_kqueue+set}" = set; then :
17840 withval=$with_kqueue; want_kqueue=${withval}
17841 else
17842 want_kqueue=${have_kqueue}
17845 if test "x$want_kqueue" = "xyes" ; then
17846 if test "x$have_kqueue" = "xyes"; then
17847 $as_echo "#define WITH_KQUEUE 1" >>confdefs.h
17849 else
17850 as_fn_error $? "\"kqueue not found!\"" "$LINENO" 5
17854 for ac_header in sys/statvfs.h \
17855 xfs/xfs.h
17856 do :
17857 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17858 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17859 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17860 cat >>confdefs.h <<_ACEOF
17861 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17862 _ACEOF
17866 done
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to copy va_list" >&5
17872 $as_echo_n "checking how to copy va_list... " >&6; }
17873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17874 /* end confdefs.h. */
17875 #include <stdarg.h>
17877 main ()
17879 va_list ap1, ap2; va_copy(ap1, ap2);
17881 return 0;
17883 _ACEOF
17884 if ac_fn_c_try_link "$LINENO"; then :
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: va_copy" >&5
17886 $as_echo "va_copy" >&6; }
17887 else
17889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17890 /* end confdefs.h. */
17891 #include <stdarg.h>
17893 main ()
17895 va_list ap1, ap2; __va_copy(ap1, ap2);
17897 return 0;
17899 _ACEOF
17900 if ac_fn_c_try_link "$LINENO"; then :
17901 $as_echo "#define va_copy __va_copy" >>confdefs.h
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __va_copy" >&5
17904 $as_echo "__va_copy" >&6; }
17905 else
17906 $as_echo "#define va_copy(dest,src) memcpy(&dest,&src,sizeof(va_list))" >>confdefs.h
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: memcpy" >&5
17909 $as_echo "memcpy" >&6; }
17912 rm -f core conftest.err conftest.$ac_objext \
17913 conftest$ac_exeext conftest.$ac_ext
17916 rm -f core conftest.err conftest.$ac_objext \
17917 conftest$ac_exeext conftest.$ac_ext
17921 DHT_CFLAGS="-I\$(top_srcdir)/third-party/dht"
17922 DHT_LIBS="\$(top_builddir)/third-party/dht/libdht.a"
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
17929 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
17930 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
17931 $as_echo_n "(cached) " >&6
17932 else
17933 ac_check_lib_save_LIBS=$LIBS
17934 LIBS="-lrt $LIBS"
17935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17936 /* end confdefs.h. */
17938 /* Override any GCC internal prototype to avoid an error.
17939 Use char because int might match the return type of a GCC
17940 builtin and then its argument prototype would still apply. */
17941 #ifdef __cplusplus
17942 extern "C"
17943 #endif
17944 char clock_gettime ();
17946 main ()
17948 return clock_gettime ();
17950 return 0;
17952 _ACEOF
17953 if ac_fn_c_try_link "$LINENO"; then :
17954 ac_cv_lib_rt_clock_gettime=yes
17955 else
17956 ac_cv_lib_rt_clock_gettime=no
17958 rm -f core conftest.err conftest.$ac_objext \
17959 conftest$ac_exeext conftest.$ac_ext
17960 LIBS=$ac_check_lib_save_LIBS
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
17963 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
17964 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
17965 libutp_extra_libs="-lrt"
17966 else
17967 libutp_extra_libs=""
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking µTP" >&5
17972 $as_echo_n "checking µTP... " >&6; }
17973 build_utp="no"
17974 if test "x$HAVE_CXX" = "xyes" ; then
17975 have_utp="yes"
17976 else
17977 have_utp="no"
17979 # Check whether --enable-utp was given.
17980 if test "${enable_utp+set}" = set; then :
17981 enableval=$enable_utp; want_utp=${enableval}
17982 else
17983 want_utp=${have_utp}
17986 if test "x$want_utp" = "xyes" ; then
17987 if test "x$have_utp" = "xyes"; then
17988 LIBUTP_CFLAGS="-I\$(top_srcdir)/third-party/"
17989 LIBUTP_LIBS="\$(top_builddir)/third-party/libutp/libutp.a"
17990 LIBUTP_LIBS_QT="\$\${TRANSMISSION_TOP}/third-party/libutp/libutp.a"
17991 if test "x$libutp_extra_libs" != "x" ; then
17992 LIBUTP_LIBS="$LIBUTP_LIBS $libutp_extra_libs"
17993 LIBUTP_LIBS_QT="$LIBUTP_LIBS_QT $libutp_extra_libs"
17995 $as_echo "#define WITH_UTP 1" >>confdefs.h
17997 build_utp="yes"
17998 else
17999 as_fn_error $? "\"Unable to build uTP support -- C++ compiler not found\"" "$LINENO" 5
18005 if test "x$build_utp" = "xyes"; then
18006 BUILD_UTP_TRUE=
18007 BUILD_UTP_FALSE='#'
18008 else
18009 BUILD_UTP_TRUE='#'
18010 BUILD_UTP_FALSE=
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_utp" >&5
18014 $as_echo "$build_utp" >&6; }
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking supported miniupnp library" >&5
18019 $as_echo_n "checking supported miniupnp library... " >&6; }
18020 upnp_version="none"
18021 ac_save_LIBS="$LIBS"
18022 LIBS="-lminiupnpc"
18023 # See if the OS has its miniupnp 1.5 installed
18024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18025 /* end confdefs.h. */
18027 #include <stdlib.h>
18028 #include <miniupnpc/miniupnpc.h>
18029 #include <miniupnpc/upnpcommands.h>
18032 main ()
18035 struct UPNPDev * devlist;
18036 struct UPNPUrls urls;
18037 struct IGDdatas data;
18038 char lanaddr[16];
18039 char portStr[8];
18040 char intPort[8];
18041 char intClient[16];
18042 upnpDiscover( 2000, NULL, NULL, 0 );
18043 UPNP_GetValidIGD( devlist, &urls, &data, lanaddr, sizeof( lanaddr ) );
18044 UPNP_GetSpecificPortMappingEntry( urls.controlURL, data.first.servicetype,
18045 portStr, "TCP", intClient, intPort );
18048 return 0;
18050 _ACEOF
18051 if ac_fn_c_try_link "$LINENO"; then :
18054 $as_echo "#define HAVE_MINIUPNP_15 1" >>confdefs.h
18056 upnp_version="1.5"
18058 rm -f core conftest.err conftest.$ac_objext \
18059 conftest$ac_exeext conftest.$ac_ext
18061 # See if the OS has its miniupnp 1.6 installed
18062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18063 /* end confdefs.h. */
18065 #include <stdlib.h>
18066 #include <errno.h>
18067 #include <miniupnpc/miniupnpc.h>
18068 #include <miniupnpc/upnpcommands.h>
18071 main ()
18074 struct UPNPDev * devlist;
18075 struct UPNPUrls urls;
18076 struct IGDdatas data;
18077 char lanaddr[16];
18078 char portStr[8];
18079 char intPort[8];
18080 char intClient[16];
18081 upnpDiscover( 2000, NULL, NULL, 0, 0, &errno );
18082 UPNP_GetValidIGD( devlist, &urls, &data, lanaddr, sizeof( lanaddr ) );
18083 UPNP_GetSpecificPortMappingEntry( urls.controlURL, data.first.servicetype,
18084 portStr, "TCP", intClient, intPort, NULL, NULL, NULL );
18087 return 0;
18089 _ACEOF
18090 if ac_fn_c_try_link "$LINENO"; then :
18093 $as_echo "#define HAVE_MINIUPNP_16 1" >>confdefs.h
18095 upnp_version="1.6"
18097 rm -f core conftest.err conftest.$ac_objext \
18098 conftest$ac_exeext conftest.$ac_ext
18100 # ... and the results of our tests
18101 LIBS="$ac_save_LIBS"
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upnp_version" >&5
18103 $as_echo "$upnp_version" >&6; }
18104 if test "x$upnp_version" = "xnone"; then
18105 BUILD_MINIUPNP_TRUE=
18106 BUILD_MINIUPNP_FALSE='#'
18107 else
18108 BUILD_MINIUPNP_TRUE='#'
18109 BUILD_MINIUPNP_FALSE=
18112 if test "x$upnp_version" = "xnone" ; then
18113 LIBUPNP_CFLAGS="-I\$(top_srcdir)/third-party/"
18114 LIBUPNP_LIBS="\$(top_builddir)/third-party/miniupnp/libminiupnp.a"
18115 LIBUPNP_LIBS_QT="\$\${TRANSMISSION_TOP}/third-party/miniupnp/libminiupnp.a"
18117 $as_echo "#define HAVE_MINIUPNP_16 1" >>confdefs.h
18119 else
18120 $as_echo "#define SYSTEM_MINIUPNP 1" >>confdefs.h
18122 LIBUPNP_CFLAGS=""
18123 LIBUPNP_LIBS="-lminiupnpc"
18124 LIBUPNP_LIBS_QT="-lminiupnpc"
18134 LIBNATPMP_CFLAGS="-I\$(top_srcdir)/third-party/libnatpmp/"
18135 LIBNATPMP_LIBS="\$(top_builddir)/third-party/libnatpmp/libnatpmp.a"
18136 LIBNATPMP_LIBS_QT="\$\${TRANSMISSION_TOP}/third-party/libnatpmp/libnatpmp.a"
18137 build_bundled_natpmp="yes"
18138 # Check whether --enable-external-natpmp was given.
18139 if test "${enable_external_natpmp+set}" = set; then :
18140 enableval=$enable_external_natpmp; want_external_natpmp=${enableval}
18141 else
18142 want_external_natpmp=no
18145 if test "x$want_external_natpmp" != "xno" ; then
18146 LIBNATPMP_CFLAGS=""
18147 LIBNATPMP_LIBS="-lnatpmp"
18148 LIBNATPMP_LIBS_QT="-lnatpmp"
18149 build_bundled_natpmp="no"
18151 if test "x$build_bundled_natpmp" = "xyes"; then
18152 BUILD_NATPMP_TRUE=
18153 BUILD_NATPMP_FALSE='#'
18154 else
18155 BUILD_NATPMP_TRUE='#'
18156 BUILD_NATPMP_FALSE=
18166 gtk_version="none"
18167 with_gtk_default="no"
18168 if test -n "$PKG_CONFIG" && \
18169 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= \$GTK2_MINIMUM\""; } >&5
18170 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= $GTK2_MINIMUM") 2>&5
18171 ac_status=$?
18172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18173 test $ac_status = 0; }; then
18174 gtk_version="2" with_gtk_default="yes"
18176 if test -n "$PKG_CONFIG" && \
18177 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK3_MINIMUM\""; } >&5
18178 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK3_MINIMUM") 2>&5
18179 ac_status=$?
18180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18181 test $ac_status = 0; }; then
18182 gtk_version="3" with_gtk_default="yes"
18185 # Check whether --with-gtk was given.
18186 if test "${with_gtk+set}" = set; then :
18187 withval=$with_gtk; with_gtk=$withval
18188 else
18189 with_gtk=$with_gtk_default
18192 if test "x$with_gtk" = "x2" ; then
18193 if test -n "$PKG_CONFIG" && \
18194 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= \$GTK2_MINIMUM\""; } >&5
18195 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= $GTK2_MINIMUM") 2>&5
18196 ac_status=$?
18197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18198 test $ac_status = 0; }; then
18199 gtk_version="2" with_gtk="yes"
18200 else
18201 gtk_version="none" with_gtk="no"
18204 if test "x$with_gtk" = "x3" ; then
18205 if test -n "$PKG_CONFIG" && \
18206 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK3_MINIMUM\""; } >&5
18207 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK3_MINIMUM") 2>&5
18208 ac_status=$?
18209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18210 test $ac_status = 0; }; then
18211 gtk_version="3" with_gtk="yes"
18212 else
18213 gtk_version="none" with_gtk="no"
18216 # Check whether --enable-nls was given.
18217 if test "${enable_nls+set}" = set; then :
18218 enableval=$enable_nls;
18219 else
18220 enable_nls=yes
18223 if test "x$with_gtk" = "xyes"; then
18224 BUILD_GTK_TRUE=
18225 BUILD_GTK_FALSE='#'
18226 else
18227 BUILD_GTK_TRUE='#'
18228 BUILD_GTK_FALSE=
18231 use_libappindicator=no
18232 if test "x$with_gtk" = "xyes" ; then
18234 if test "x$gtk_version" = "xnone" ; then
18235 as_fn_error $? "\"GTK+ not found!\"" "$LINENO" 5
18237 if test "x$enable_nls" = "xno" ; then
18238 as_fn_error $? "\"The gtk client cannot be built without nls support. Try adding either --enable-nls or --without-gtk\" " "$LINENO" 5
18241 if test "x$gtk_version" = "x3"; then
18244 pkg_failed=no
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
18246 $as_echo_n "checking for GTK... " >&6; }
18248 if test -n "$PKG_CONFIG"; then
18249 if test -n "$GTK_CFLAGS"; then
18250 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
18251 else
18252 if test -n "$PKG_CONFIG" && \
18253 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK3_MINIMUM
18254 glib-2.0 >= \$GLIB_MINIMUM
18255 gio-2.0 >= \$GIO_MINIMUM,
18256 gmodule-2.0 >= \$GLIB_MINIMUM
18257 gthread-2.0 >= \$GLIB_MINIMUM\""; } >&5
18258 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK3_MINIMUM
18259 glib-2.0 >= $GLIB_MINIMUM
18260 gio-2.0 >= $GIO_MINIMUM,
18261 gmodule-2.0 >= $GLIB_MINIMUM
18262 gthread-2.0 >= $GLIB_MINIMUM") 2>&5
18263 ac_status=$?
18264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18265 test $ac_status = 0; }; then
18266 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= $GTK3_MINIMUM
18267 glib-2.0 >= $GLIB_MINIMUM
18268 gio-2.0 >= $GIO_MINIMUM,
18269 gmodule-2.0 >= $GLIB_MINIMUM
18270 gthread-2.0 >= $GLIB_MINIMUM" 2>/dev/null`
18271 else
18272 pkg_failed=yes
18275 else
18276 pkg_failed=untried
18278 if test -n "$PKG_CONFIG"; then
18279 if test -n "$GTK_LIBS"; then
18280 pkg_cv_GTK_LIBS="$GTK_LIBS"
18281 else
18282 if test -n "$PKG_CONFIG" && \
18283 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK3_MINIMUM
18284 glib-2.0 >= \$GLIB_MINIMUM
18285 gio-2.0 >= \$GIO_MINIMUM,
18286 gmodule-2.0 >= \$GLIB_MINIMUM
18287 gthread-2.0 >= \$GLIB_MINIMUM\""; } >&5
18288 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK3_MINIMUM
18289 glib-2.0 >= $GLIB_MINIMUM
18290 gio-2.0 >= $GIO_MINIMUM,
18291 gmodule-2.0 >= $GLIB_MINIMUM
18292 gthread-2.0 >= $GLIB_MINIMUM") 2>&5
18293 ac_status=$?
18294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18295 test $ac_status = 0; }; then
18296 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= $GTK3_MINIMUM
18297 glib-2.0 >= $GLIB_MINIMUM
18298 gio-2.0 >= $GIO_MINIMUM,
18299 gmodule-2.0 >= $GLIB_MINIMUM
18300 gthread-2.0 >= $GLIB_MINIMUM" 2>/dev/null`
18301 else
18302 pkg_failed=yes
18305 else
18306 pkg_failed=untried
18311 if test $pkg_failed = yes; then
18313 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18314 _pkg_short_errors_supported=yes
18315 else
18316 _pkg_short_errors_supported=no
18318 if test $_pkg_short_errors_supported = yes; then
18319 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-3.0 >= $GTK3_MINIMUM
18320 glib-2.0 >= $GLIB_MINIMUM
18321 gio-2.0 >= $GIO_MINIMUM,
18322 gmodule-2.0 >= $GLIB_MINIMUM
18323 gthread-2.0 >= $GLIB_MINIMUM"`
18324 else
18325 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-3.0 >= $GTK3_MINIMUM
18326 glib-2.0 >= $GLIB_MINIMUM
18327 gio-2.0 >= $GIO_MINIMUM,
18328 gmodule-2.0 >= $GLIB_MINIMUM
18329 gthread-2.0 >= $GLIB_MINIMUM"`
18331 # Put the nasty error message in config.log where it belongs
18332 echo "$GTK_PKG_ERRORS" >&5
18334 as_fn_error $? "Package requirements (gtk+-3.0 >= $GTK3_MINIMUM
18335 glib-2.0 >= $GLIB_MINIMUM
18336 gio-2.0 >= $GIO_MINIMUM,
18337 gmodule-2.0 >= $GLIB_MINIMUM
18338 gthread-2.0 >= $GLIB_MINIMUM) were not met:
18340 $GTK_PKG_ERRORS
18342 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18343 installed software in a non-standard prefix.
18345 Alternatively, you may set the environment variables GTK_CFLAGS
18346 and GTK_LIBS to avoid the need to call pkg-config.
18347 See the pkg-config man page for more details.
18348 " "$LINENO" 5
18349 elif test $pkg_failed = untried; then
18350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18352 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18353 is in your PATH or set the PKG_CONFIG environment variable to the full
18354 path to pkg-config.
18356 Alternatively, you may set the environment variables GTK_CFLAGS
18357 and GTK_LIBS to avoid the need to call pkg-config.
18358 See the pkg-config man page for more details.
18360 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
18361 See \`config.log' for more details" "$LINENO" 5; }
18362 else
18363 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
18364 GTK_LIBS=$pkg_cv_GTK_LIBS
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18366 $as_echo "yes" >&6; }
18370 pkg_failed=no
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBAPPINDICATOR" >&5
18372 $as_echo_n "checking for LIBAPPINDICATOR... " >&6; }
18374 if test -n "$PKG_CONFIG"; then
18375 if test -n "$LIBAPPINDICATOR_CFLAGS"; then
18376 pkg_cv_LIBAPPINDICATOR_CFLAGS="$LIBAPPINDICATOR_CFLAGS"
18377 else
18378 if test -n "$PKG_CONFIG" && \
18379 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1 >= \$LIBAPPINDICATOR_MINIMUM\""; } >&5
18380 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM") 2>&5
18381 ac_status=$?
18382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18383 test $ac_status = 0; }; then
18384 pkg_cv_LIBAPPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM" 2>/dev/null`
18385 else
18386 pkg_failed=yes
18389 else
18390 pkg_failed=untried
18392 if test -n "$PKG_CONFIG"; then
18393 if test -n "$LIBAPPINDICATOR_LIBS"; then
18394 pkg_cv_LIBAPPINDICATOR_LIBS="$LIBAPPINDICATOR_LIBS"
18395 else
18396 if test -n "$PKG_CONFIG" && \
18397 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator3-0.1 >= \$LIBAPPINDICATOR_MINIMUM\""; } >&5
18398 ($PKG_CONFIG --exists --print-errors "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM") 2>&5
18399 ac_status=$?
18400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18401 test $ac_status = 0; }; then
18402 pkg_cv_LIBAPPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM" 2>/dev/null`
18403 else
18404 pkg_failed=yes
18407 else
18408 pkg_failed=untried
18413 if test $pkg_failed = yes; then
18415 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18416 _pkg_short_errors_supported=yes
18417 else
18418 _pkg_short_errors_supported=no
18420 if test $_pkg_short_errors_supported = yes; then
18421 LIBAPPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM"`
18422 else
18423 LIBAPPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "appindicator3-0.1 >= $LIBAPPINDICATOR_MINIMUM"`
18425 # Put the nasty error message in config.log where it belongs
18426 echo "$LIBAPPINDICATOR_PKG_ERRORS" >&5
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18429 $as_echo "no" >&6; }
18430 have_libappindicator=no
18431 elif test $pkg_failed = untried; then
18432 have_libappindicator=no
18433 else
18434 LIBAPPINDICATOR_CFLAGS=$pkg_cv_LIBAPPINDICATOR_CFLAGS
18435 LIBAPPINDICATOR_LIBS=$pkg_cv_LIBAPPINDICATOR_LIBS
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18437 $as_echo "yes" >&6; }
18438 have_libappindicator=yes
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: using GTK+ 3" >&5
18441 $as_echo "$as_me: using GTK+ 3" >&6;}
18442 else
18445 pkg_failed=no
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
18447 $as_echo_n "checking for GTK... " >&6; }
18449 if test -n "$PKG_CONFIG"; then
18450 if test -n "$GTK_CFLAGS"; then
18451 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
18452 else
18453 if test -n "$PKG_CONFIG" && \
18454 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= \$GTK2_MINIMUM
18455 glib-2.0 >= \$GLIB_MINIMUM
18456 gio-2.0 >= \$GIO_MINIMUM,
18457 gmodule-2.0 >= \$GLIB_MINIMUM
18458 gthread-2.0 >= \$GLIB_MINIMUM\""; } >&5
18459 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= $GTK2_MINIMUM
18460 glib-2.0 >= $GLIB_MINIMUM
18461 gio-2.0 >= $GIO_MINIMUM,
18462 gmodule-2.0 >= $GLIB_MINIMUM
18463 gthread-2.0 >= $GLIB_MINIMUM") 2>&5
18464 ac_status=$?
18465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18466 test $ac_status = 0; }; then
18467 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= $GTK2_MINIMUM
18468 glib-2.0 >= $GLIB_MINIMUM
18469 gio-2.0 >= $GIO_MINIMUM,
18470 gmodule-2.0 >= $GLIB_MINIMUM
18471 gthread-2.0 >= $GLIB_MINIMUM" 2>/dev/null`
18472 else
18473 pkg_failed=yes
18476 else
18477 pkg_failed=untried
18479 if test -n "$PKG_CONFIG"; then
18480 if test -n "$GTK_LIBS"; then
18481 pkg_cv_GTK_LIBS="$GTK_LIBS"
18482 else
18483 if test -n "$PKG_CONFIG" && \
18484 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= \$GTK2_MINIMUM
18485 glib-2.0 >= \$GLIB_MINIMUM
18486 gio-2.0 >= \$GIO_MINIMUM,
18487 gmodule-2.0 >= \$GLIB_MINIMUM
18488 gthread-2.0 >= \$GLIB_MINIMUM\""; } >&5
18489 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= $GTK2_MINIMUM
18490 glib-2.0 >= $GLIB_MINIMUM
18491 gio-2.0 >= $GIO_MINIMUM,
18492 gmodule-2.0 >= $GLIB_MINIMUM
18493 gthread-2.0 >= $GLIB_MINIMUM") 2>&5
18494 ac_status=$?
18495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18496 test $ac_status = 0; }; then
18497 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= $GTK2_MINIMUM
18498 glib-2.0 >= $GLIB_MINIMUM
18499 gio-2.0 >= $GIO_MINIMUM,
18500 gmodule-2.0 >= $GLIB_MINIMUM
18501 gthread-2.0 >= $GLIB_MINIMUM" 2>/dev/null`
18502 else
18503 pkg_failed=yes
18506 else
18507 pkg_failed=untried
18512 if test $pkg_failed = yes; then
18514 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18515 _pkg_short_errors_supported=yes
18516 else
18517 _pkg_short_errors_supported=no
18519 if test $_pkg_short_errors_supported = yes; then
18520 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= $GTK2_MINIMUM
18521 glib-2.0 >= $GLIB_MINIMUM
18522 gio-2.0 >= $GIO_MINIMUM,
18523 gmodule-2.0 >= $GLIB_MINIMUM
18524 gthread-2.0 >= $GLIB_MINIMUM"`
18525 else
18526 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= $GTK2_MINIMUM
18527 glib-2.0 >= $GLIB_MINIMUM
18528 gio-2.0 >= $GIO_MINIMUM,
18529 gmodule-2.0 >= $GLIB_MINIMUM
18530 gthread-2.0 >= $GLIB_MINIMUM"`
18532 # Put the nasty error message in config.log where it belongs
18533 echo "$GTK_PKG_ERRORS" >&5
18535 as_fn_error $? "Package requirements (gtk+-2.0 >= $GTK2_MINIMUM
18536 glib-2.0 >= $GLIB_MINIMUM
18537 gio-2.0 >= $GIO_MINIMUM,
18538 gmodule-2.0 >= $GLIB_MINIMUM
18539 gthread-2.0 >= $GLIB_MINIMUM) were not met:
18541 $GTK_PKG_ERRORS
18543 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18544 installed software in a non-standard prefix.
18546 Alternatively, you may set the environment variables GTK_CFLAGS
18547 and GTK_LIBS to avoid the need to call pkg-config.
18548 See the pkg-config man page for more details.
18549 " "$LINENO" 5
18550 elif test $pkg_failed = untried; then
18551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18553 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18554 is in your PATH or set the PKG_CONFIG environment variable to the full
18555 path to pkg-config.
18557 Alternatively, you may set the environment variables GTK_CFLAGS
18558 and GTK_LIBS to avoid the need to call pkg-config.
18559 See the pkg-config man page for more details.
18561 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
18562 See \`config.log' for more details" "$LINENO" 5; }
18563 else
18564 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
18565 GTK_LIBS=$pkg_cv_GTK_LIBS
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18567 $as_echo "yes" >&6; }
18571 pkg_failed=no
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBAPPINDICATOR" >&5
18573 $as_echo_n "checking for LIBAPPINDICATOR... " >&6; }
18575 if test -n "$PKG_CONFIG"; then
18576 if test -n "$LIBAPPINDICATOR_CFLAGS"; then
18577 pkg_cv_LIBAPPINDICATOR_CFLAGS="$LIBAPPINDICATOR_CFLAGS"
18578 else
18579 if test -n "$PKG_CONFIG" && \
18580 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 >= \$LIBAPPINDICATOR_MINIMUM\""; } >&5
18581 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 >= $LIBAPPINDICATOR_MINIMUM") 2>&5
18582 ac_status=$?
18583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18584 test $ac_status = 0; }; then
18585 pkg_cv_LIBAPPINDICATOR_CFLAGS=`$PKG_CONFIG --cflags "appindicator-0.1 >= $LIBAPPINDICATOR_MINIMUM" 2>/dev/null`
18586 else
18587 pkg_failed=yes
18590 else
18591 pkg_failed=untried
18593 if test -n "$PKG_CONFIG"; then
18594 if test -n "$LIBAPPINDICATOR_LIBS"; then
18595 pkg_cv_LIBAPPINDICATOR_LIBS="$LIBAPPINDICATOR_LIBS"
18596 else
18597 if test -n "$PKG_CONFIG" && \
18598 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"appindicator-0.1 >= \$LIBAPPINDICATOR_MINIMUM\""; } >&5
18599 ($PKG_CONFIG --exists --print-errors "appindicator-0.1 >= $LIBAPPINDICATOR_MINIMUM") 2>&5
18600 ac_status=$?
18601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18602 test $ac_status = 0; }; then
18603 pkg_cv_LIBAPPINDICATOR_LIBS=`$PKG_CONFIG --libs "appindicator-0.1 >= $LIBAPPINDICATOR_MINIMUM" 2>/dev/null`
18604 else
18605 pkg_failed=yes
18608 else
18609 pkg_failed=untried
18614 if test $pkg_failed = yes; then
18616 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18617 _pkg_short_errors_supported=yes
18618 else
18619 _pkg_short_errors_supported=no
18621 if test $_pkg_short_errors_supported = yes; then
18622 LIBAPPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "appindicator-0.1 >= $LIBAPPINDICATOR_MINIMUM"`
18623 else
18624 LIBAPPINDICATOR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "appindicator-0.1 >= $LIBAPPINDICATOR_MINIMUM"`
18626 # Put the nasty error message in config.log where it belongs
18627 echo "$LIBAPPINDICATOR_PKG_ERRORS" >&5
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18630 $as_echo "no" >&6; }
18631 have_libappindicator=no
18632 elif test $pkg_failed = untried; then
18633 have_libappindicator=no
18634 else
18635 LIBAPPINDICATOR_CFLAGS=$pkg_cv_LIBAPPINDICATOR_CFLAGS
18636 LIBAPPINDICATOR_LIBS=$pkg_cv_LIBAPPINDICATOR_LIBS
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18638 $as_echo "yes" >&6; }
18639 have_libappindicator=yes
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: using GTK+ 2" >&5
18642 $as_echo "$as_me: using GTK+ 2" >&6;}
18646 if test "x$have_libappindicator" = "xyes"; then
18647 use_libappindicator=yes
18648 $as_echo "#define HAVE_LIBAPPINDICATOR 1" >>confdefs.h
18650 else
18651 LIBAPPINDICATOR_CFLAGS=
18652 LIBAPPINDICATOR_LIBS=
18657 use_nls=no
18658 if test "x$enable_nls" = "xyes" ; then
18659 use_nls=yes
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18662 $as_echo_n "checking whether NLS is requested... " >&6; }
18663 # Check whether --enable-nls was given.
18664 if test "${enable_nls+set}" = set; then :
18665 enableval=$enable_nls; USE_NLS=$enableval
18666 else
18667 USE_NLS=yes
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18671 $as_echo "$USE_NLS" >&6; }
18676 case "$am__api_version" in
18677 1.01234)
18678 as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
18682 esac
18684 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
18685 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
18686 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
18687 if test -n "0.35.0"; then
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5
18689 $as_echo_n "checking for intltool >= 0.35.0... " >&6; }
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
18691 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
18692 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
18693 as_fn_error $? "Your intltool is too old. You need intltool 0.35.0 or later." "$LINENO" 5
18696 # Extract the first word of "intltool-update", so it can be a program name with args.
18697 set dummy intltool-update; ac_word=$2
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18699 $as_echo_n "checking for $ac_word... " >&6; }
18700 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
18701 $as_echo_n "(cached) " >&6
18702 else
18703 case $INTLTOOL_UPDATE in
18704 [\\/]* | ?:[\\/]*)
18705 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
18708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18709 for as_dir in $PATH
18711 IFS=$as_save_IFS
18712 test -z "$as_dir" && as_dir=.
18713 for ac_exec_ext in '' $ac_executable_extensions; do
18714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18715 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
18716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18717 break 2
18719 done
18720 done
18721 IFS=$as_save_IFS
18724 esac
18726 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
18727 if test -n "$INTLTOOL_UPDATE"; then
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
18729 $as_echo "$INTLTOOL_UPDATE" >&6; }
18730 else
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18732 $as_echo "no" >&6; }
18736 # Extract the first word of "intltool-merge", so it can be a program name with args.
18737 set dummy intltool-merge; ac_word=$2
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18739 $as_echo_n "checking for $ac_word... " >&6; }
18740 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
18741 $as_echo_n "(cached) " >&6
18742 else
18743 case $INTLTOOL_MERGE in
18744 [\\/]* | ?:[\\/]*)
18745 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
18748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18749 for as_dir in $PATH
18751 IFS=$as_save_IFS
18752 test -z "$as_dir" && as_dir=.
18753 for ac_exec_ext in '' $ac_executable_extensions; do
18754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18755 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
18756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18757 break 2
18759 done
18760 done
18761 IFS=$as_save_IFS
18764 esac
18766 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
18767 if test -n "$INTLTOOL_MERGE"; then
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
18769 $as_echo "$INTLTOOL_MERGE" >&6; }
18770 else
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18772 $as_echo "no" >&6; }
18776 # Extract the first word of "intltool-extract", so it can be a program name with args.
18777 set dummy intltool-extract; ac_word=$2
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18779 $as_echo_n "checking for $ac_word... " >&6; }
18780 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
18781 $as_echo_n "(cached) " >&6
18782 else
18783 case $INTLTOOL_EXTRACT in
18784 [\\/]* | ?:[\\/]*)
18785 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
18788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18789 for as_dir in $PATH
18791 IFS=$as_save_IFS
18792 test -z "$as_dir" && as_dir=.
18793 for ac_exec_ext in '' $ac_executable_extensions; do
18794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18795 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
18796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18797 break 2
18799 done
18800 done
18801 IFS=$as_save_IFS
18804 esac
18806 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
18807 if test -n "$INTLTOOL_EXTRACT"; then
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
18809 $as_echo "$INTLTOOL_EXTRACT" >&6; }
18810 else
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18812 $as_echo "no" >&6; }
18816 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
18817 as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
18820 if test -z "$AM_DEFAULT_VERBOSITY"; then
18821 AM_DEFAULT_VERBOSITY=1
18825 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
18826 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
18827 INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;'
18832 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
18833 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
18834 intltool__v_merge_options_0='-q'
18839 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 $< $@'
18840 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 $< $@'
18841 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 $< $@'
18842 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 $< $@'
18843 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 $< $@'
18844 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 $< $@'
18845 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 $< $@'
18846 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 $< $@'
18847 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 $< $@'
18848 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 $< $@'
18849 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 $< $@'
18850 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
18851 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 $< $@'
18852 else
18853 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'
18855 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 $< $@'
18856 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 $< $@'
18857 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 $< $@'
18858 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 $< $@'
18859 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 $< $@'
18860 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 $< $@'
18861 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 $< $@'
18959 # Check the gettext tools to make sure they are GNU
18960 # Extract the first word of "xgettext", so it can be a program name with args.
18961 set dummy xgettext; ac_word=$2
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18963 $as_echo_n "checking for $ac_word... " >&6; }
18964 if ${ac_cv_path_XGETTEXT+:} false; then :
18965 $as_echo_n "(cached) " >&6
18966 else
18967 case $XGETTEXT in
18968 [\\/]* | ?:[\\/]*)
18969 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18973 for as_dir in $PATH
18975 IFS=$as_save_IFS
18976 test -z "$as_dir" && as_dir=.
18977 for ac_exec_ext in '' $ac_executable_extensions; do
18978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18979 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
18980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18981 break 2
18983 done
18984 done
18985 IFS=$as_save_IFS
18988 esac
18990 XGETTEXT=$ac_cv_path_XGETTEXT
18991 if test -n "$XGETTEXT"; then
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18993 $as_echo "$XGETTEXT" >&6; }
18994 else
18995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18996 $as_echo "no" >&6; }
19000 # Extract the first word of "msgmerge", so it can be a program name with args.
19001 set dummy msgmerge; ac_word=$2
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19003 $as_echo_n "checking for $ac_word... " >&6; }
19004 if ${ac_cv_path_MSGMERGE+:} false; then :
19005 $as_echo_n "(cached) " >&6
19006 else
19007 case $MSGMERGE in
19008 [\\/]* | ?:[\\/]*)
19009 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
19012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19013 for as_dir in $PATH
19015 IFS=$as_save_IFS
19016 test -z "$as_dir" && as_dir=.
19017 for ac_exec_ext in '' $ac_executable_extensions; do
19018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19019 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
19020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19021 break 2
19023 done
19024 done
19025 IFS=$as_save_IFS
19028 esac
19030 MSGMERGE=$ac_cv_path_MSGMERGE
19031 if test -n "$MSGMERGE"; then
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
19033 $as_echo "$MSGMERGE" >&6; }
19034 else
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19036 $as_echo "no" >&6; }
19040 # Extract the first word of "msgfmt", so it can be a program name with args.
19041 set dummy msgfmt; ac_word=$2
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19043 $as_echo_n "checking for $ac_word... " >&6; }
19044 if ${ac_cv_path_MSGFMT+:} false; then :
19045 $as_echo_n "(cached) " >&6
19046 else
19047 case $MSGFMT in
19048 [\\/]* | ?:[\\/]*)
19049 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19053 for as_dir in $PATH
19055 IFS=$as_save_IFS
19056 test -z "$as_dir" && as_dir=.
19057 for ac_exec_ext in '' $ac_executable_extensions; do
19058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19059 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
19060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19061 break 2
19063 done
19064 done
19065 IFS=$as_save_IFS
19068 esac
19070 MSGFMT=$ac_cv_path_MSGFMT
19071 if test -n "$MSGFMT"; then
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19073 $as_echo "$MSGFMT" >&6; }
19074 else
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19076 $as_echo "no" >&6; }
19080 # Extract the first word of "gmsgfmt", so it can be a program name with args.
19081 set dummy gmsgfmt; ac_word=$2
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19083 $as_echo_n "checking for $ac_word... " >&6; }
19084 if ${ac_cv_path_GMSGFMT+:} false; then :
19085 $as_echo_n "(cached) " >&6
19086 else
19087 case $GMSGFMT in
19088 [\\/]* | ?:[\\/]*)
19089 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
19092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19093 for as_dir in $PATH
19095 IFS=$as_save_IFS
19096 test -z "$as_dir" && as_dir=.
19097 for ac_exec_ext in '' $ac_executable_extensions; do
19098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19099 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
19100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19101 break 2
19103 done
19104 done
19105 IFS=$as_save_IFS
19107 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
19109 esac
19111 GMSGFMT=$ac_cv_path_GMSGFMT
19112 if test -n "$GMSGFMT"; then
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
19114 $as_echo "$GMSGFMT" >&6; }
19115 else
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19117 $as_echo "no" >&6; }
19121 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
19122 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
19124 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
19125 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
19126 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
19127 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
19128 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
19131 # Extract the first word of "perl", so it can be a program name with args.
19132 set dummy perl; ac_word=$2
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19134 $as_echo_n "checking for $ac_word... " >&6; }
19135 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
19136 $as_echo_n "(cached) " >&6
19137 else
19138 case $INTLTOOL_PERL in
19139 [\\/]* | ?:[\\/]*)
19140 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
19143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19144 for as_dir in $PATH
19146 IFS=$as_save_IFS
19147 test -z "$as_dir" && as_dir=.
19148 for ac_exec_ext in '' $ac_executable_extensions; do
19149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19150 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
19151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19152 break 2
19154 done
19155 done
19156 IFS=$as_save_IFS
19159 esac
19161 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
19162 if test -n "$INTLTOOL_PERL"; then
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
19164 $as_echo "$INTLTOOL_PERL" >&6; }
19165 else
19166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19167 $as_echo "no" >&6; }
19171 if test -z "$INTLTOOL_PERL"; then
19172 as_fn_error $? "perl not found" "$LINENO" 5
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
19175 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
19176 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
19177 if test $? -ne 0; then
19178 as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
19179 else
19180 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
19182 $as_echo "$IT_PERL_VERSION" >&6; }
19184 if test "xno-xml" != "xno-xml"; then
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
19186 $as_echo_n "checking for XML::Parser... " >&6; }
19187 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
19189 $as_echo "ok" >&6; }
19190 else
19191 as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
19195 # Substitute ALL_LINGUAS so we can use it in po/Makefile
19198 # Set DATADIRNAME correctly if it is not set yet
19199 # (copied from glib-gettext.m4)
19200 if test -z "$DATADIRNAME"; then
19201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19202 /* end confdefs.h. */
19205 main ()
19207 extern int _nl_msg_cat_cntr;
19208 return _nl_msg_cat_cntr
19210 return 0;
19212 _ACEOF
19213 if ac_fn_c_try_link "$LINENO"; then :
19214 DATADIRNAME=share
19215 else
19216 case $host in
19217 *-*-solaris*)
19218 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19219 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19220 DATADIRNAME=share
19221 else
19222 DATADIRNAME=lib
19227 DATADIRNAME=lib
19229 esac
19231 rm -f core conftest.err conftest.$ac_objext \
19232 conftest$ac_exeext conftest.$ac_ext
19239 for ac_header in libintl.h
19240 do :
19241 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
19242 if test "x$ac_cv_header_libintl_h" = xyes; then :
19243 cat >>confdefs.h <<_ACEOF
19244 #define HAVE_LIBINTL_H 1
19245 _ACEOF
19249 done
19251 GETTEXT_PACKAGE=transmission-gtk
19254 cat >>confdefs.h <<_ACEOF
19255 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
19256 _ACEOF
19259 for ac_header in locale.h
19260 do :
19261 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
19262 if test "x$ac_cv_header_locale_h" = xyes; then :
19263 cat >>confdefs.h <<_ACEOF
19264 #define HAVE_LOCALE_H 1
19265 _ACEOF
19269 done
19271 if test $ac_cv_header_locale_h = yes; then
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19273 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19274 if ${am_cv_val_LC_MESSAGES+:} false; then :
19275 $as_echo_n "(cached) " >&6
19276 else
19277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19278 /* end confdefs.h. */
19279 #include <locale.h>
19281 main ()
19283 return LC_MESSAGES
19285 return 0;
19287 _ACEOF
19288 if ac_fn_c_try_link "$LINENO"; then :
19289 am_cv_val_LC_MESSAGES=yes
19290 else
19291 am_cv_val_LC_MESSAGES=no
19293 rm -f core conftest.err conftest.$ac_objext \
19294 conftest$ac_exeext conftest.$ac_ext
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
19297 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
19298 if test $am_cv_val_LC_MESSAGES = yes; then
19300 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19304 USE_NLS=yes
19307 gt_cv_have_gettext=no
19309 CATOBJEXT=NONE
19310 XGETTEXT=:
19311 INTLLIBS=
19313 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
19314 if test "x$ac_cv_header_libintl_h" = xyes; then :
19315 gt_cv_func_dgettext_libintl="no"
19316 libintl_extra_libs=""
19319 # First check in libc
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
19322 $as_echo_n "checking for ngettext in libc... " >&6; }
19323 if ${gt_cv_func_ngettext_libc+:} false; then :
19324 $as_echo_n "(cached) " >&6
19325 else
19326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19327 /* end confdefs.h. */
19329 #include <libintl.h>
19332 main ()
19334 return !ngettext ("","", 1)
19336 return 0;
19338 _ACEOF
19339 if ac_fn_c_try_link "$LINENO"; then :
19340 gt_cv_func_ngettext_libc=yes
19341 else
19342 gt_cv_func_ngettext_libc=no
19344 rm -f core conftest.err conftest.$ac_objext \
19345 conftest$ac_exeext conftest.$ac_ext
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
19349 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
19351 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
19353 $as_echo_n "checking for dgettext in libc... " >&6; }
19354 if ${gt_cv_func_dgettext_libc+:} false; then :
19355 $as_echo_n "(cached) " >&6
19356 else
19357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19358 /* end confdefs.h. */
19360 #include <libintl.h>
19363 main ()
19365 return !dgettext ("","")
19367 return 0;
19369 _ACEOF
19370 if ac_fn_c_try_link "$LINENO"; then :
19371 gt_cv_func_dgettext_libc=yes
19372 else
19373 gt_cv_func_dgettext_libc=no
19375 rm -f core conftest.err conftest.$ac_objext \
19376 conftest$ac_exeext conftest.$ac_ext
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
19380 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
19383 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
19384 for ac_func in bind_textdomain_codeset
19385 do :
19386 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19387 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19388 cat >>confdefs.h <<_ACEOF
19389 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19390 _ACEOF
19393 done
19398 # If we don't have everything we want, check in libintl
19400 if test "$gt_cv_func_dgettext_libc" != "yes" \
19401 || test "$gt_cv_func_ngettext_libc" != "yes" \
19402 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
19405 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
19406 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
19407 $as_echo_n "(cached) " >&6
19408 else
19409 ac_check_lib_save_LIBS=$LIBS
19410 LIBS="-lintl $LIBS"
19411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19412 /* end confdefs.h. */
19414 /* Override any GCC internal prototype to avoid an error.
19415 Use char because int might match the return type of a GCC
19416 builtin and then its argument prototype would still apply. */
19417 #ifdef __cplusplus
19418 extern "C"
19419 #endif
19420 char bindtextdomain ();
19422 main ()
19424 return bindtextdomain ();
19426 return 0;
19428 _ACEOF
19429 if ac_fn_c_try_link "$LINENO"; then :
19430 ac_cv_lib_intl_bindtextdomain=yes
19431 else
19432 ac_cv_lib_intl_bindtextdomain=no
19434 rm -f core conftest.err conftest.$ac_objext \
19435 conftest$ac_exeext conftest.$ac_ext
19436 LIBS=$ac_check_lib_save_LIBS
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
19439 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
19440 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
19442 $as_echo_n "checking for ngettext in -lintl... " >&6; }
19443 if ${ac_cv_lib_intl_ngettext+:} false; then :
19444 $as_echo_n "(cached) " >&6
19445 else
19446 ac_check_lib_save_LIBS=$LIBS
19447 LIBS="-lintl $LIBS"
19448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19449 /* end confdefs.h. */
19451 /* Override any GCC internal prototype to avoid an error.
19452 Use char because int might match the return type of a GCC
19453 builtin and then its argument prototype would still apply. */
19454 #ifdef __cplusplus
19455 extern "C"
19456 #endif
19457 char ngettext ();
19459 main ()
19461 return ngettext ();
19463 return 0;
19465 _ACEOF
19466 if ac_fn_c_try_link "$LINENO"; then :
19467 ac_cv_lib_intl_ngettext=yes
19468 else
19469 ac_cv_lib_intl_ngettext=no
19471 rm -f core conftest.err conftest.$ac_objext \
19472 conftest$ac_exeext conftest.$ac_ext
19473 LIBS=$ac_check_lib_save_LIBS
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
19476 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
19477 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
19479 $as_echo_n "checking for dgettext in -lintl... " >&6; }
19480 if ${ac_cv_lib_intl_dgettext+:} false; then :
19481 $as_echo_n "(cached) " >&6
19482 else
19483 ac_check_lib_save_LIBS=$LIBS
19484 LIBS="-lintl $LIBS"
19485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19486 /* end confdefs.h. */
19488 /* Override any GCC internal prototype to avoid an error.
19489 Use char because int might match the return type of a GCC
19490 builtin and then its argument prototype would still apply. */
19491 #ifdef __cplusplus
19492 extern "C"
19493 #endif
19494 char dgettext ();
19496 main ()
19498 return dgettext ();
19500 return 0;
19502 _ACEOF
19503 if ac_fn_c_try_link "$LINENO"; then :
19504 ac_cv_lib_intl_dgettext=yes
19505 else
19506 ac_cv_lib_intl_dgettext=no
19508 rm -f core conftest.err conftest.$ac_objext \
19509 conftest$ac_exeext conftest.$ac_ext
19510 LIBS=$ac_check_lib_save_LIBS
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
19513 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
19514 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
19515 gt_cv_func_dgettext_libintl=yes
19523 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
19525 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
19527 $as_echo "" >&6; }
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
19529 $as_echo_n "checking for ngettext in -lintl... " >&6; }
19530 if ${ac_cv_lib_intl_ngettext+:} false; then :
19531 $as_echo_n "(cached) " >&6
19532 else
19533 ac_check_lib_save_LIBS=$LIBS
19534 LIBS="-lintl -liconv $LIBS"
19535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19536 /* end confdefs.h. */
19538 /* Override any GCC internal prototype to avoid an error.
19539 Use char because int might match the return type of a GCC
19540 builtin and then its argument prototype would still apply. */
19541 #ifdef __cplusplus
19542 extern "C"
19543 #endif
19544 char ngettext ();
19546 main ()
19548 return ngettext ();
19550 return 0;
19552 _ACEOF
19553 if ac_fn_c_try_link "$LINENO"; then :
19554 ac_cv_lib_intl_ngettext=yes
19555 else
19556 ac_cv_lib_intl_ngettext=no
19558 rm -f core conftest.err conftest.$ac_objext \
19559 conftest$ac_exeext conftest.$ac_ext
19560 LIBS=$ac_check_lib_save_LIBS
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
19563 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
19564 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
19565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
19566 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
19567 if ${ac_cv_lib_intl_dcgettext+:} false; then :
19568 $as_echo_n "(cached) " >&6
19569 else
19570 ac_check_lib_save_LIBS=$LIBS
19571 LIBS="-lintl -liconv $LIBS"
19572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19573 /* end confdefs.h. */
19575 /* Override any GCC internal prototype to avoid an error.
19576 Use char because int might match the return type of a GCC
19577 builtin and then its argument prototype would still apply. */
19578 #ifdef __cplusplus
19579 extern "C"
19580 #endif
19581 char dcgettext ();
19583 main ()
19585 return dcgettext ();
19587 return 0;
19589 _ACEOF
19590 if ac_fn_c_try_link "$LINENO"; then :
19591 ac_cv_lib_intl_dcgettext=yes
19592 else
19593 ac_cv_lib_intl_dcgettext=no
19595 rm -f core conftest.err conftest.$ac_objext \
19596 conftest$ac_exeext conftest.$ac_ext
19597 LIBS=$ac_check_lib_save_LIBS
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
19600 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
19601 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
19602 gt_cv_func_dgettext_libintl=yes
19603 libintl_extra_libs=-liconv
19604 else
19608 else
19615 # If we found libintl, then check in it for bind_textdomain_codeset();
19616 # we'll prefer libc if neither have bind_textdomain_codeset(),
19617 # and both have dgettext and ngettext
19619 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
19620 glib_save_LIBS="$LIBS"
19621 LIBS="$LIBS -lintl $libintl_extra_libs"
19622 unset ac_cv_func_bind_textdomain_codeset
19623 for ac_func in bind_textdomain_codeset
19624 do :
19625 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19626 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19627 cat >>confdefs.h <<_ACEOF
19628 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19629 _ACEOF
19632 done
19634 LIBS="$glib_save_LIBS"
19636 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
19637 gt_cv_func_dgettext_libc=no
19638 else
19639 if test "$gt_cv_func_dgettext_libc" = "yes" \
19640 && test "$gt_cv_func_ngettext_libc" = "yes"; then
19641 gt_cv_func_dgettext_libintl=no
19647 if test "$gt_cv_func_dgettext_libc" = "yes" \
19648 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
19649 gt_cv_have_gettext=yes
19652 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
19653 INTLLIBS="-lintl $libintl_extra_libs"
19656 if test "$gt_cv_have_gettext" = "yes"; then
19658 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
19660 # Extract the first word of "msgfmt", so it can be a program name with args.
19661 set dummy msgfmt; ac_word=$2
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19663 $as_echo_n "checking for $ac_word... " >&6; }
19664 if ${ac_cv_path_MSGFMT+:} false; then :
19665 $as_echo_n "(cached) " >&6
19666 else
19667 case "$MSGFMT" in
19669 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19672 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
19673 for ac_dir in $PATH; do
19674 test -z "$ac_dir" && ac_dir=.
19675 if test -f $ac_dir/$ac_word; then
19676 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
19677 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
19678 break
19681 done
19682 IFS="$ac_save_ifs"
19683 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
19685 esac
19687 MSGFMT="$ac_cv_path_MSGFMT"
19688 if test "$MSGFMT" != "no"; then
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19690 $as_echo "$MSGFMT" >&6; }
19691 else
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19693 $as_echo "no" >&6; }
19695 if test "$MSGFMT" != "no"; then
19696 glib_save_LIBS="$LIBS"
19697 LIBS="$LIBS $INTLLIBS"
19698 for ac_func in dcgettext
19699 do :
19700 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
19701 if test "x$ac_cv_func_dcgettext" = xyes; then :
19702 cat >>confdefs.h <<_ACEOF
19703 #define HAVE_DCGETTEXT 1
19704 _ACEOF
19707 done
19709 # Extract the first word of "gmsgfmt", so it can be a program name with args.
19710 set dummy gmsgfmt; ac_word=$2
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19712 $as_echo_n "checking for $ac_word... " >&6; }
19713 if ${ac_cv_path_GMSGFMT+:} false; then :
19714 $as_echo_n "(cached) " >&6
19715 else
19716 case $GMSGFMT in
19717 [\\/]* | ?:[\\/]*)
19718 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
19721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19722 for as_dir in $PATH
19724 IFS=$as_save_IFS
19725 test -z "$as_dir" && as_dir=.
19726 for ac_exec_ext in '' $ac_executable_extensions; do
19727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19728 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
19729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19730 break 2
19732 done
19733 done
19734 IFS=$as_save_IFS
19736 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
19738 esac
19740 GMSGFMT=$ac_cv_path_GMSGFMT
19741 if test -n "$GMSGFMT"; then
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
19743 $as_echo "$GMSGFMT" >&6; }
19744 else
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19746 $as_echo "no" >&6; }
19750 # Extract the first word of "xgettext", so it can be a program name with args.
19751 set dummy xgettext; ac_word=$2
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19753 $as_echo_n "checking for $ac_word... " >&6; }
19754 if ${ac_cv_path_XGETTEXT+:} false; then :
19755 $as_echo_n "(cached) " >&6
19756 else
19757 case "$XGETTEXT" in
19759 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
19762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
19763 for ac_dir in $PATH; do
19764 test -z "$ac_dir" && ac_dir=.
19765 if test -f $ac_dir/$ac_word; then
19766 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
19767 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
19768 break
19771 done
19772 IFS="$ac_save_ifs"
19773 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
19775 esac
19777 XGETTEXT="$ac_cv_path_XGETTEXT"
19778 if test "$XGETTEXT" != ":"; then
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
19780 $as_echo "$XGETTEXT" >&6; }
19781 else
19782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19783 $as_echo "no" >&6; }
19786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19787 /* end confdefs.h. */
19790 main ()
19792 extern int _nl_msg_cat_cntr;
19793 return _nl_msg_cat_cntr
19795 return 0;
19797 _ACEOF
19798 if ac_fn_c_try_link "$LINENO"; then :
19799 CATOBJEXT=.gmo
19800 DATADIRNAME=share
19801 else
19802 case $host in
19803 *-*-solaris*)
19804 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19805 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19806 CATOBJEXT=.gmo
19807 DATADIRNAME=share
19808 else
19809 CATOBJEXT=.mo
19810 DATADIRNAME=lib
19815 CATOBJEXT=.mo
19816 DATADIRNAME=lib
19818 esac
19820 rm -f core conftest.err conftest.$ac_objext \
19821 conftest$ac_exeext conftest.$ac_ext
19822 LIBS="$glib_save_LIBS"
19823 INSTOBJEXT=.mo
19824 else
19825 gt_cv_have_gettext=no
19833 if test "$gt_cv_have_gettext" = "yes" ; then
19835 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
19839 if test "$XGETTEXT" != ":"; then
19840 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
19842 else
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
19844 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
19845 XGETTEXT=":"
19849 # We need to process the po/ directory.
19850 POSUB=po
19852 ac_config_commands="$ac_config_commands default-1"
19855 for lang in $ALL_LINGUAS; do
19856 GMOFILES="$GMOFILES $lang.gmo"
19857 POFILES="$POFILES $lang.po"
19858 done
19872 if test "$gt_cv_have_gettext" = "yes"; then
19873 if test "x$ALL_LINGUAS" = "x"; then
19874 LINGUAS=
19875 else
19876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
19877 $as_echo_n "checking for catalogs to be installed... " >&6; }
19878 NEW_LINGUAS=
19879 for presentlang in $ALL_LINGUAS; do
19880 useit=no
19881 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
19882 desiredlanguages="$LINGUAS"
19883 else
19884 desiredlanguages="$ALL_LINGUAS"
19886 for desiredlang in $desiredlanguages; do
19887 # Use the presentlang catalog if desiredlang is
19888 # a. equal to presentlang, or
19889 # b. a variant of presentlang (because in this case,
19890 # presentlang can be used as a fallback for messages
19891 # which are not translated in the desiredlang catalog).
19892 case "$desiredlang" in
19893 "$presentlang"*) useit=yes;;
19894 esac
19895 done
19896 if test $useit = yes; then
19897 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
19899 done
19900 LINGUAS=$NEW_LINGUAS
19901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
19902 $as_echo "$LINGUAS" >&6; }
19905 if test -n "$LINGUAS"; then
19906 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
19910 MKINSTALLDIRS=
19911 if test -n "$ac_aux_dir"; then
19912 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
19914 if test -z "$MKINSTALLDIRS"; then
19915 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
19919 test -d po || mkdir po
19920 if test "x$srcdir" != "x."; then
19921 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
19922 posrcprefix="$srcdir/"
19923 else
19924 posrcprefix="../$srcdir/"
19926 else
19927 posrcprefix="../"
19929 rm -f po/POTFILES
19930 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
19931 < $srcdir/po/POTFILES.in > po/POTFILES
19933 transmissionlocaledir='${prefix}/${DATADIRNAME}/locale'
19941 have_darwin="no"
19942 have_msw="no"
19943 case $host_os in
19945 *mingw32*)
19946 have_msw="yes"
19947 CXXFLAGS="$CXXFLAGS -mms-bitfields -mwin32 -mwindows"
19948 CPPFLAGS="$CPPFLAGS -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN"
19949 LIBS="$LIBS -liphlpapi -lshell32 -lws2_32"
19950 transmissionlocaledir="locale"
19951 if test -z "$host_alias"; then
19952 hostaliaswindres=
19953 else
19954 hostaliaswindres="$host_alias-windres";
19956 if test -n "$ac_tool_prefix"; then
19957 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19958 set dummy ${ac_tool_prefix}windres; ac_word=$2
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19960 $as_echo_n "checking for $ac_word... " >&6; }
19961 if ${ac_cv_prog_WINDRES+:} false; then :
19962 $as_echo_n "(cached) " >&6
19963 else
19964 if test -n "$WINDRES"; then
19965 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19966 else
19967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19968 for as_dir in $PATH
19970 IFS=$as_save_IFS
19971 test -z "$as_dir" && as_dir=.
19972 for ac_exec_ext in '' $ac_executable_extensions; do
19973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19974 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19976 break 2
19978 done
19979 done
19980 IFS=$as_save_IFS
19984 WINDRES=$ac_cv_prog_WINDRES
19985 if test -n "$WINDRES"; then
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19987 $as_echo "$WINDRES" >&6; }
19988 else
19989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19990 $as_echo "no" >&6; }
19995 if test -z "$ac_cv_prog_WINDRES"; then
19996 ac_ct_WINDRES=$WINDRES
19997 # Extract the first word of "windres", so it can be a program name with args.
19998 set dummy windres; ac_word=$2
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20000 $as_echo_n "checking for $ac_word... " >&6; }
20001 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
20002 $as_echo_n "(cached) " >&6
20003 else
20004 if test -n "$ac_ct_WINDRES"; then
20005 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
20006 else
20007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20008 for as_dir in $PATH
20010 IFS=$as_save_IFS
20011 test -z "$as_dir" && as_dir=.
20012 for ac_exec_ext in '' $ac_executable_extensions; do
20013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20014 ac_cv_prog_ac_ct_WINDRES="windres"
20015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20016 break 2
20018 done
20019 done
20020 IFS=$as_save_IFS
20024 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
20025 if test -n "$ac_ct_WINDRES"; then
20026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
20027 $as_echo "$ac_ct_WINDRES" >&6; }
20028 else
20029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20030 $as_echo "no" >&6; }
20033 if test "x$ac_ct_WINDRES" = x; then
20034 WINDRES=""
20035 else
20036 case $cross_compiling:$ac_tool_warned in
20037 yes:)
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20040 ac_tool_warned=yes ;;
20041 esac
20042 WINDRES=$ac_ct_WINDRES
20044 else
20045 WINDRES="$ac_cv_prog_WINDRES"
20050 *darwin*)
20051 have_darwin="yes"
20052 CFLAGS="-DMACOSX $CFLAGS"
20055 esac
20057 # Check whether --enable-lightweight was given.
20058 if test "${enable_lightweight+set}" = set; then :
20059 enableval=$enable_lightweight; enable_lightweight=${enableval}
20060 else
20061 enable_lightweight="no"
20064 if test "x$enable_lightweight" = "xyes" ; then
20066 $as_echo "#define TR_LIGHTWEIGHT 1" >>confdefs.h
20070 # Check whether --enable-cli was given.
20071 if test "${enable_cli+set}" = set; then :
20072 enableval=$enable_cli; build_cli=${enableval}
20073 else
20074 build_cli="yes"
20077 if test "x$build_cli" = "xyes"; then
20078 BUILD_CLI_TRUE=
20079 BUILD_CLI_FALSE='#'
20080 else
20081 BUILD_CLI_TRUE='#'
20082 BUILD_CLI_FALSE=
20086 # Check whether --enable-mac was given.
20087 if test "${enable_mac+set}" = set; then :
20088 enableval=$enable_mac; build_mac=${enableval}
20089 else
20090 build_mac=${have_darwin}
20093 if test "x$build_mac" = "xyes"; then
20094 BUILD_MAC_TRUE=
20095 BUILD_MAC_FALSE='#'
20096 else
20097 BUILD_MAC_TRUE='#'
20098 BUILD_MAC_FALSE=
20102 # Check whether --enable-daemon was given.
20103 if test "${enable_daemon+set}" = set; then :
20104 enableval=$enable_daemon; build_daemon=${enableval}
20105 else
20106 build_daemon="yes"
20109 if test "x$build_daemon" = "xyes"; then
20110 BUILD_DAEMON_TRUE=
20111 BUILD_DAEMON_FALSE='#'
20112 else
20113 BUILD_DAEMON_TRUE='#'
20114 BUILD_DAEMON_FALSE=
20119 if test "x$build_mac" = "xyes" ; then
20120 # Make sure the proper Mac SDK is installed
20121 if test ! -d /Developer/SDKs/MacOSX10.5.sdk; then
20122 cat << EOF
20123 You need to install the Mac OS X 10.5 SDK in order to build Transmission
20124 with --enable-mac:
20125 Get your Xcode CD or package
20126 Restart the install
20127 When it gets to "Installation Type", select "Customize"
20128 Select "Mac OS X 10.5 SDK" under "Cross Development"
20129 Finish the install.
20131 exit 1
20134 if test "x$have_darwin" = "xyes"; then
20135 $as_echo "#define HAVE_DARWIN 1" >>confdefs.h
20138 if test "x$have_msw" = "xyes"; then
20139 $as_echo "#define HAVE_MSW 1" >>confdefs.h
20142 if test "x$have_msw" = "xyes"; then
20143 WIN32_TRUE=
20144 WIN32_FALSE='#'
20145 else
20146 WIN32_TRUE='#'
20147 WIN32_FALSE=
20152 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"
20155 cat >confcache <<\_ACEOF
20156 # This file is a shell script that caches the results of configure
20157 # tests run on this system so they can be shared between configure
20158 # scripts and configure runs, see configure's option --config-cache.
20159 # It is not useful on other systems. If it contains results you don't
20160 # want to keep, you may remove or edit it.
20162 # config.status only pays attention to the cache file if you give it
20163 # the --recheck option to rerun configure.
20165 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20166 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20167 # following values.
20169 _ACEOF
20171 # The following way of writing the cache mishandles newlines in values,
20172 # but we know of no workaround that is simple, portable, and efficient.
20173 # So, we kill variables containing newlines.
20174 # Ultrix sh set writes to stderr and can't be redirected directly,
20175 # and sets the high bit in the cache file unless we assign to the vars.
20177 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20178 eval ac_val=\$$ac_var
20179 case $ac_val in #(
20180 *${as_nl}*)
20181 case $ac_var in #(
20182 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20183 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20184 esac
20185 case $ac_var in #(
20186 _ | IFS | as_nl) ;; #(
20187 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20188 *) { eval $ac_var=; unset $ac_var;} ;;
20189 esac ;;
20190 esac
20191 done
20193 (set) 2>&1 |
20194 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20195 *${as_nl}ac_space=\ *)
20196 # `set' does not quote correctly, so add quotes: double-quote
20197 # substitution turns \\\\ into \\, and sed turns \\ into \.
20198 sed -n \
20199 "s/'/'\\\\''/g;
20200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20201 ;; #(
20203 # `set' quotes correctly as required by POSIX, so do not add quotes.
20204 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20206 esac |
20207 sort
20209 sed '
20210 /^ac_cv_env_/b end
20211 t clear
20212 :clear
20213 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20214 t end
20215 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20216 :end' >>confcache
20217 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20218 if test -w "$cache_file"; then
20219 if test "x$cache_file" != "x/dev/null"; then
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20221 $as_echo "$as_me: updating cache $cache_file" >&6;}
20222 if test ! -f "$cache_file" || test -h "$cache_file"; then
20223 cat confcache >"$cache_file"
20224 else
20225 case $cache_file in #(
20226 */* | ?:*)
20227 mv -f confcache "$cache_file"$$ &&
20228 mv -f "$cache_file"$$ "$cache_file" ;; #(
20230 mv -f confcache "$cache_file" ;;
20231 esac
20234 else
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20236 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20239 rm -f confcache
20241 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20242 # Let make expand exec_prefix.
20243 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20245 # Transform confdefs.h into DEFS.
20246 # Protect against shell expansion while executing Makefile rules.
20247 # Protect against Makefile macro expansion.
20249 # If the first sed substitution is executed (which looks for macros that
20250 # take arguments), then branch to the quote section. Otherwise,
20251 # look for a macro that doesn't take arguments.
20252 ac_script='
20253 :mline
20254 /\\$/{
20256 s,\\\n,,
20257 b mline
20259 t clear
20260 :clear
20261 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20262 t quote
20263 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20264 t quote
20265 b any
20266 :quote
20267 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20268 s/\[/\\&/g
20269 s/\]/\\&/g
20270 s/\$/$$/g
20272 :any
20275 s/^\n//
20276 s/\n/ /g
20280 DEFS=`sed -n "$ac_script" confdefs.h`
20283 ac_libobjs=
20284 ac_ltlibobjs=
20286 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20287 # 1. Remove the extension, and $U if already installed.
20288 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20289 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20290 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20291 # will be set to the directory where LIBOBJS objects are built.
20292 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20293 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20294 done
20295 LIBOBJS=$ac_libobjs
20297 LTLIBOBJS=$ac_ltlibobjs
20300 if test -n "$EXEEXT"; then
20301 am__EXEEXT_TRUE=
20302 am__EXEEXT_FALSE='#'
20303 else
20304 am__EXEEXT_TRUE='#'
20305 am__EXEEXT_FALSE=
20308 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20309 as_fn_error $? "conditional \"AMDEP\" was never defined.
20310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20312 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20313 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20316 if test -z "${TR_UNSTABLE_TRUE}" && test -z "${TR_UNSTABLE_FALSE}"; then
20317 as_fn_error $? "conditional \"TR_UNSTABLE\" was never defined.
20318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20320 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20321 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20324 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20325 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20328 if test -z "${BUILD_UTP_TRUE}" && test -z "${BUILD_UTP_FALSE}"; then
20329 as_fn_error $? "conditional \"BUILD_UTP\" was never defined.
20330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20332 if test -z "${BUILD_MINIUPNP_TRUE}" && test -z "${BUILD_MINIUPNP_FALSE}"; then
20333 as_fn_error $? "conditional \"BUILD_MINIUPNP\" was never defined.
20334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20336 if test -z "${BUILD_NATPMP_TRUE}" && test -z "${BUILD_NATPMP_FALSE}"; then
20337 as_fn_error $? "conditional \"BUILD_NATPMP\" was never defined.
20338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20340 if test -z "${BUILD_GTK_TRUE}" && test -z "${BUILD_GTK_FALSE}"; then
20341 as_fn_error $? "conditional \"BUILD_GTK\" was never defined.
20342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20345 ac_config_commands="$ac_config_commands po/stamp-it"
20348 if test -z "${BUILD_CLI_TRUE}" && test -z "${BUILD_CLI_FALSE}"; then
20349 as_fn_error $? "conditional \"BUILD_CLI\" was never defined.
20350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20352 if test -z "${BUILD_MAC_TRUE}" && test -z "${BUILD_MAC_FALSE}"; then
20353 as_fn_error $? "conditional \"BUILD_MAC\" was never defined.
20354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20356 if test -z "${BUILD_DAEMON_TRUE}" && test -z "${BUILD_DAEMON_FALSE}"; then
20357 as_fn_error $? "conditional \"BUILD_DAEMON\" was never defined.
20358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20360 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
20361 as_fn_error $? "conditional \"WIN32\" was never defined.
20362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20365 : "${CONFIG_STATUS=./config.status}"
20366 ac_write_fail=0
20367 ac_clean_files_save=$ac_clean_files
20368 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20370 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20371 as_write_fail=0
20372 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20373 #! $SHELL
20374 # Generated by $as_me.
20375 # Run this file to recreate the current configuration.
20376 # Compiler output produced by configure, useful for debugging
20377 # configure, is in config.log if it exists.
20379 debug=false
20380 ac_cs_recheck=false
20381 ac_cs_silent=false
20383 SHELL=\${CONFIG_SHELL-$SHELL}
20384 export SHELL
20385 _ASEOF
20386 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20387 ## -------------------- ##
20388 ## M4sh Initialization. ##
20389 ## -------------------- ##
20391 # Be more Bourne compatible
20392 DUALCASE=1; export DUALCASE # for MKS sh
20393 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20394 emulate sh
20395 NULLCMD=:
20396 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20397 # is contrary to our usage. Disable this feature.
20398 alias -g '${1+"$@"}'='"$@"'
20399 setopt NO_GLOB_SUBST
20400 else
20401 case `(set -o) 2>/dev/null` in #(
20402 *posix*) :
20403 set -o posix ;; #(
20404 *) :
20406 esac
20410 as_nl='
20412 export as_nl
20413 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20414 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20415 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20416 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20417 # Prefer a ksh shell builtin over an external printf program on Solaris,
20418 # but without wasting forks for bash or zsh.
20419 if test -z "$BASH_VERSION$ZSH_VERSION" \
20420 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20421 as_echo='print -r --'
20422 as_echo_n='print -rn --'
20423 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20424 as_echo='printf %s\n'
20425 as_echo_n='printf %s'
20426 else
20427 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20428 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20429 as_echo_n='/usr/ucb/echo -n'
20430 else
20431 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20432 as_echo_n_body='eval
20433 arg=$1;
20434 case $arg in #(
20435 *"$as_nl"*)
20436 expr "X$arg" : "X\\(.*\\)$as_nl";
20437 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20438 esac;
20439 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20441 export as_echo_n_body
20442 as_echo_n='sh -c $as_echo_n_body as_echo'
20444 export as_echo_body
20445 as_echo='sh -c $as_echo_body as_echo'
20448 # The user is always right.
20449 if test "${PATH_SEPARATOR+set}" != set; then
20450 PATH_SEPARATOR=:
20451 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20452 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20453 PATH_SEPARATOR=';'
20458 # IFS
20459 # We need space, tab and new line, in precisely that order. Quoting is
20460 # there to prevent editors from complaining about space-tab.
20461 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20462 # splitting by setting IFS to empty value.)
20463 IFS=" "" $as_nl"
20465 # Find who we are. Look in the path if we contain no directory separator.
20466 as_myself=
20467 case $0 in #((
20468 *[\\/]* ) as_myself=$0 ;;
20469 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20470 for as_dir in $PATH
20472 IFS=$as_save_IFS
20473 test -z "$as_dir" && as_dir=.
20474 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20475 done
20476 IFS=$as_save_IFS
20479 esac
20480 # We did not find ourselves, most probably we were run as `sh COMMAND'
20481 # in which case we are not to be found in the path.
20482 if test "x$as_myself" = x; then
20483 as_myself=$0
20485 if test ! -f "$as_myself"; then
20486 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20487 exit 1
20490 # Unset variables that we do not need and which cause bugs (e.g. in
20491 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20492 # suppresses any "Segmentation fault" message there. '((' could
20493 # trigger a bug in pdksh 5.2.14.
20494 for as_var in BASH_ENV ENV MAIL MAILPATH
20495 do eval test x\${$as_var+set} = xset \
20496 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20497 done
20498 PS1='$ '
20499 PS2='> '
20500 PS4='+ '
20502 # NLS nuisances.
20503 LC_ALL=C
20504 export LC_ALL
20505 LANGUAGE=C
20506 export LANGUAGE
20508 # CDPATH.
20509 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20512 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20513 # ----------------------------------------
20514 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20515 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20516 # script with STATUS, using 1 if that was 0.
20517 as_fn_error ()
20519 as_status=$1; test $as_status -eq 0 && as_status=1
20520 if test "$4"; then
20521 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20522 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20524 $as_echo "$as_me: error: $2" >&2
20525 as_fn_exit $as_status
20526 } # as_fn_error
20529 # as_fn_set_status STATUS
20530 # -----------------------
20531 # Set $? to STATUS, without forking.
20532 as_fn_set_status ()
20534 return $1
20535 } # as_fn_set_status
20537 # as_fn_exit STATUS
20538 # -----------------
20539 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20540 as_fn_exit ()
20542 set +e
20543 as_fn_set_status $1
20544 exit $1
20545 } # as_fn_exit
20547 # as_fn_unset VAR
20548 # ---------------
20549 # Portably unset VAR.
20550 as_fn_unset ()
20552 { eval $1=; unset $1;}
20554 as_unset=as_fn_unset
20555 # as_fn_append VAR VALUE
20556 # ----------------------
20557 # Append the text in VALUE to the end of the definition contained in VAR. Take
20558 # advantage of any shell optimizations that allow amortized linear growth over
20559 # repeated appends, instead of the typical quadratic growth present in naive
20560 # implementations.
20561 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20562 eval 'as_fn_append ()
20564 eval $1+=\$2
20566 else
20567 as_fn_append ()
20569 eval $1=\$$1\$2
20571 fi # as_fn_append
20573 # as_fn_arith ARG...
20574 # ------------------
20575 # Perform arithmetic evaluation on the ARGs, and store the result in the
20576 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20577 # must be portable across $(()) and expr.
20578 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20579 eval 'as_fn_arith ()
20581 as_val=$(( $* ))
20583 else
20584 as_fn_arith ()
20586 as_val=`expr "$@" || test $? -eq 1`
20588 fi # as_fn_arith
20591 if expr a : '\(a\)' >/dev/null 2>&1 &&
20592 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20593 as_expr=expr
20594 else
20595 as_expr=false
20598 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20599 as_basename=basename
20600 else
20601 as_basename=false
20604 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20605 as_dirname=dirname
20606 else
20607 as_dirname=false
20610 as_me=`$as_basename -- "$0" ||
20611 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20612 X"$0" : 'X\(//\)$' \| \
20613 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20614 $as_echo X/"$0" |
20615 sed '/^.*\/\([^/][^/]*\)\/*$/{
20616 s//\1/
20619 /^X\/\(\/\/\)$/{
20620 s//\1/
20623 /^X\/\(\/\).*/{
20624 s//\1/
20627 s/.*/./; q'`
20629 # Avoid depending upon Character Ranges.
20630 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20631 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20632 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20633 as_cr_digits='0123456789'
20634 as_cr_alnum=$as_cr_Letters$as_cr_digits
20636 ECHO_C= ECHO_N= ECHO_T=
20637 case `echo -n x` in #(((((
20638 -n*)
20639 case `echo 'xy\c'` in
20640 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20641 xy) ECHO_C='\c';;
20642 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20643 ECHO_T=' ';;
20644 esac;;
20646 ECHO_N='-n';;
20647 esac
20649 rm -f conf$$ conf$$.exe conf$$.file
20650 if test -d conf$$.dir; then
20651 rm -f conf$$.dir/conf$$.file
20652 else
20653 rm -f conf$$.dir
20654 mkdir conf$$.dir 2>/dev/null
20656 if (echo >conf$$.file) 2>/dev/null; then
20657 if ln -s conf$$.file conf$$ 2>/dev/null; then
20658 as_ln_s='ln -s'
20659 # ... but there are two gotchas:
20660 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20661 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20662 # In both cases, we have to default to `cp -p'.
20663 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20664 as_ln_s='cp -p'
20665 elif ln conf$$.file conf$$ 2>/dev/null; then
20666 as_ln_s=ln
20667 else
20668 as_ln_s='cp -p'
20670 else
20671 as_ln_s='cp -p'
20673 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20674 rmdir conf$$.dir 2>/dev/null
20677 # as_fn_mkdir_p
20678 # -------------
20679 # Create "$as_dir" as a directory, including parents if necessary.
20680 as_fn_mkdir_p ()
20683 case $as_dir in #(
20684 -*) as_dir=./$as_dir;;
20685 esac
20686 test -d "$as_dir" || eval $as_mkdir_p || {
20687 as_dirs=
20688 while :; do
20689 case $as_dir in #(
20690 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20691 *) as_qdir=$as_dir;;
20692 esac
20693 as_dirs="'$as_qdir' $as_dirs"
20694 as_dir=`$as_dirname -- "$as_dir" ||
20695 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20696 X"$as_dir" : 'X\(//\)[^/]' \| \
20697 X"$as_dir" : 'X\(//\)$' \| \
20698 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20699 $as_echo X"$as_dir" |
20700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20701 s//\1/
20704 /^X\(\/\/\)[^/].*/{
20705 s//\1/
20708 /^X\(\/\/\)$/{
20709 s//\1/
20712 /^X\(\/\).*/{
20713 s//\1/
20716 s/.*/./; q'`
20717 test -d "$as_dir" && break
20718 done
20719 test -z "$as_dirs" || eval "mkdir $as_dirs"
20720 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20723 } # as_fn_mkdir_p
20724 if mkdir -p . 2>/dev/null; then
20725 as_mkdir_p='mkdir -p "$as_dir"'
20726 else
20727 test -d ./-p && rmdir ./-p
20728 as_mkdir_p=false
20731 if test -x / >/dev/null 2>&1; then
20732 as_test_x='test -x'
20733 else
20734 if ls -dL / >/dev/null 2>&1; then
20735 as_ls_L_option=L
20736 else
20737 as_ls_L_option=
20739 as_test_x='
20740 eval sh -c '\''
20741 if test -d "$1"; then
20742 test -d "$1/.";
20743 else
20744 case $1 in #(
20745 -*)set "./$1";;
20746 esac;
20747 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20748 ???[sx]*):;;*)false;;esac;fi
20749 '\'' sh
20752 as_executable_p=$as_test_x
20754 # Sed expression to map a string onto a valid CPP name.
20755 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20757 # Sed expression to map a string onto a valid variable name.
20758 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20761 exec 6>&1
20762 ## ----------------------------------- ##
20763 ## Main body of $CONFIG_STATUS script. ##
20764 ## ----------------------------------- ##
20765 _ASEOF
20766 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20769 # Save the log message, to keep $0 and so on meaningful, and to
20770 # report actual input values of CONFIG_FILES etc. instead of their
20771 # values after options handling.
20772 ac_log="
20773 This file was extended by transmission $as_me 2.51, which was
20774 generated by GNU Autoconf 2.68. Invocation command line was
20776 CONFIG_FILES = $CONFIG_FILES
20777 CONFIG_HEADERS = $CONFIG_HEADERS
20778 CONFIG_LINKS = $CONFIG_LINKS
20779 CONFIG_COMMANDS = $CONFIG_COMMANDS
20780 $ $0 $@
20782 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20785 _ACEOF
20787 case $ac_config_files in *"
20788 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20789 esac
20793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20794 # Files that config.status was made for.
20795 config_files="$ac_config_files"
20796 config_commands="$ac_config_commands"
20798 _ACEOF
20800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20801 ac_cs_usage="\
20802 \`$as_me' instantiates files and other configuration actions
20803 from templates according to the current configuration. Unless the files
20804 and actions are specified as TAGs, all are instantiated by default.
20806 Usage: $0 [OPTION]... [TAG]...
20808 -h, --help print this help, then exit
20809 -V, --version print version number and configuration settings, then exit
20810 --config print configuration, then exit
20811 -q, --quiet, --silent
20812 do not print progress messages
20813 -d, --debug don't remove temporary files
20814 --recheck update $as_me by reconfiguring in the same conditions
20815 --file=FILE[:TEMPLATE]
20816 instantiate the configuration file FILE
20818 Configuration files:
20819 $config_files
20821 Configuration commands:
20822 $config_commands
20824 Report bugs to <http://trac.transmissionbt.com/newticket>."
20826 _ACEOF
20827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20828 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20829 ac_cs_version="\\
20830 transmission config.status 2.51
20831 configured by $0, generated by GNU Autoconf 2.68,
20832 with options \\"\$ac_cs_config\\"
20834 Copyright (C) 2010 Free Software Foundation, Inc.
20835 This config.status script is free software; the Free Software Foundation
20836 gives unlimited permission to copy, distribute and modify it."
20838 ac_pwd='$ac_pwd'
20839 srcdir='$srcdir'
20840 INSTALL='$INSTALL'
20841 MKDIR_P='$MKDIR_P'
20842 AWK='$AWK'
20843 test -n "\$AWK" || AWK=awk
20844 _ACEOF
20846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20847 # The default lists apply if the user does not specify any file.
20848 ac_need_defaults=:
20849 while test $# != 0
20851 case $1 in
20852 --*=?*)
20853 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20854 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20855 ac_shift=:
20857 --*=)
20858 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20859 ac_optarg=
20860 ac_shift=:
20863 ac_option=$1
20864 ac_optarg=$2
20865 ac_shift=shift
20867 esac
20869 case $ac_option in
20870 # Handling of the options.
20871 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20872 ac_cs_recheck=: ;;
20873 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20874 $as_echo "$ac_cs_version"; exit ;;
20875 --config | --confi | --conf | --con | --co | --c )
20876 $as_echo "$ac_cs_config"; exit ;;
20877 --debug | --debu | --deb | --de | --d | -d )
20878 debug=: ;;
20879 --file | --fil | --fi | --f )
20880 $ac_shift
20881 case $ac_optarg in
20882 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20883 '') as_fn_error $? "missing file argument" ;;
20884 esac
20885 as_fn_append CONFIG_FILES " '$ac_optarg'"
20886 ac_need_defaults=false;;
20887 --he | --h | --help | --hel | -h )
20888 $as_echo "$ac_cs_usage"; exit ;;
20889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20890 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20891 ac_cs_silent=: ;;
20893 # This is an error.
20894 -*) as_fn_error $? "unrecognized option: \`$1'
20895 Try \`$0 --help' for more information." ;;
20897 *) as_fn_append ac_config_targets " $1"
20898 ac_need_defaults=false ;;
20900 esac
20901 shift
20902 done
20904 ac_configure_extra_args=
20906 if $ac_cs_silent; then
20907 exec 6>/dev/null
20908 ac_configure_extra_args="$ac_configure_extra_args --silent"
20911 _ACEOF
20912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20913 if \$ac_cs_recheck; then
20914 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20915 shift
20916 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20917 CONFIG_SHELL='$SHELL'
20918 export CONFIG_SHELL
20919 exec "\$@"
20922 _ACEOF
20923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20924 exec 5>>config.log
20926 echo
20927 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20928 ## Running $as_me. ##
20929 _ASBOX
20930 $as_echo "$ac_log"
20931 } >&5
20933 _ACEOF
20934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20936 # INIT-COMMANDS
20938 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20941 # The HP-UX ksh and POSIX shell print the target directory to stdout
20942 # if CDPATH is set.
20943 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20945 sed_quote_subst='$sed_quote_subst'
20946 double_quote_subst='$double_quote_subst'
20947 delay_variable_subst='$delay_variable_subst'
20948 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20949 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20950 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20951 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20952 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20953 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20954 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20955 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20956 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20957 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20958 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20959 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20960 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20961 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20962 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20963 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20964 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20965 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20966 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20967 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20968 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20969 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20970 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20971 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20972 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20973 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20974 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20975 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20976 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20977 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20978 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20979 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20980 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20981 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20982 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20983 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20984 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20985 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20986 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20987 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20988 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20989 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20990 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20991 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20992 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20993 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20994 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20995 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20996 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20997 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20998 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20999 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21000 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21001 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21002 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21003 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21004 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"`'
21005 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21006 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21007 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21008 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21009 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21010 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21011 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21012 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21013 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21014 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21015 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21016 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21017 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21018 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21019 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21020 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21021 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21022 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21023 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21024 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21025 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21026 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21027 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21028 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21029 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21030 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21031 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21032 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21033 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21034 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21035 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21036 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21037 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21038 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21039 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21040 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21041 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21042 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21043 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21044 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21045 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21046 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21047 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21048 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21049 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21050 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21051 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21052 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21053 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21054 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21055 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21056 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21057 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21058 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21059 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21060 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21061 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21062 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21063 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21064 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21065 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21066 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21067 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21068 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21069 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21070 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21071 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21072 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21073 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21074 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21075 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21076 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21077 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21078 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21079 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21080 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21081 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21082 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21083 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21084 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21085 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21086 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21087 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21088 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21089 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21090 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21091 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21092 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21093 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21094 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21095 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21096 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21097 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21098 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21099 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21100 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21101 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21102 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21103 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21104 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21105 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21106 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21107 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21108 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21109 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21110 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21111 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21112 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21113 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21114 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21115 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21116 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21117 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21118 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21119 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21120 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21121 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21122 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21123 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21124 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21125 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21126 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21127 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21128 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21129 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21130 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21131 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21133 LTCC='$LTCC'
21134 LTCFLAGS='$LTCFLAGS'
21135 compiler='$compiler_DEFAULT'
21137 # A function that is used when there is no print builtin or printf.
21138 func_fallback_echo ()
21140 eval 'cat <<_LTECHO_EOF
21142 _LTECHO_EOF'
21145 # Quote evaled strings.
21146 for var in SHELL \
21147 ECHO \
21148 PATH_SEPARATOR \
21149 SED \
21150 GREP \
21151 EGREP \
21152 FGREP \
21153 LD \
21154 NM \
21155 LN_S \
21156 lt_SP2NL \
21157 lt_NL2SP \
21158 reload_flag \
21159 OBJDUMP \
21160 deplibs_check_method \
21161 file_magic_cmd \
21162 file_magic_glob \
21163 want_nocaseglob \
21164 DLLTOOL \
21165 sharedlib_from_linklib_cmd \
21166 AR \
21167 AR_FLAGS \
21168 archiver_list_spec \
21169 STRIP \
21170 RANLIB \
21171 CC \
21172 CFLAGS \
21173 compiler \
21174 lt_cv_sys_global_symbol_pipe \
21175 lt_cv_sys_global_symbol_to_cdecl \
21176 lt_cv_sys_global_symbol_to_c_name_address \
21177 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21178 nm_file_list_spec \
21179 lt_prog_compiler_no_builtin_flag \
21180 lt_prog_compiler_pic \
21181 lt_prog_compiler_wl \
21182 lt_prog_compiler_static \
21183 lt_cv_prog_compiler_c_o \
21184 need_locks \
21185 MANIFEST_TOOL \
21186 DSYMUTIL \
21187 NMEDIT \
21188 LIPO \
21189 OTOOL \
21190 OTOOL64 \
21191 shrext_cmds \
21192 export_dynamic_flag_spec \
21193 whole_archive_flag_spec \
21194 compiler_needs_object \
21195 with_gnu_ld \
21196 allow_undefined_flag \
21197 no_undefined_flag \
21198 hardcode_libdir_flag_spec \
21199 hardcode_libdir_separator \
21200 exclude_expsyms \
21201 include_expsyms \
21202 file_list_spec \
21203 variables_saved_for_relink \
21204 libname_spec \
21205 library_names_spec \
21206 soname_spec \
21207 install_override_mode \
21208 finish_eval \
21209 old_striplib \
21210 striplib \
21211 compiler_lib_search_dirs \
21212 predep_objects \
21213 postdep_objects \
21214 predeps \
21215 postdeps \
21216 compiler_lib_search_path \
21217 LD_CXX \
21218 reload_flag_CXX \
21219 compiler_CXX \
21220 lt_prog_compiler_no_builtin_flag_CXX \
21221 lt_prog_compiler_pic_CXX \
21222 lt_prog_compiler_wl_CXX \
21223 lt_prog_compiler_static_CXX \
21224 lt_cv_prog_compiler_c_o_CXX \
21225 export_dynamic_flag_spec_CXX \
21226 whole_archive_flag_spec_CXX \
21227 compiler_needs_object_CXX \
21228 with_gnu_ld_CXX \
21229 allow_undefined_flag_CXX \
21230 no_undefined_flag_CXX \
21231 hardcode_libdir_flag_spec_CXX \
21232 hardcode_libdir_separator_CXX \
21233 exclude_expsyms_CXX \
21234 include_expsyms_CXX \
21235 file_list_spec_CXX \
21236 compiler_lib_search_dirs_CXX \
21237 predep_objects_CXX \
21238 postdep_objects_CXX \
21239 predeps_CXX \
21240 postdeps_CXX \
21241 compiler_lib_search_path_CXX; do
21242 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21243 *[\\\\\\\`\\"\\\$]*)
21244 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21247 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21249 esac
21250 done
21252 # Double-quote double-evaled strings.
21253 for var in reload_cmds \
21254 old_postinstall_cmds \
21255 old_postuninstall_cmds \
21256 old_archive_cmds \
21257 extract_expsyms_cmds \
21258 old_archive_from_new_cmds \
21259 old_archive_from_expsyms_cmds \
21260 archive_cmds \
21261 archive_expsym_cmds \
21262 module_cmds \
21263 module_expsym_cmds \
21264 export_symbols_cmds \
21265 prelink_cmds \
21266 postlink_cmds \
21267 postinstall_cmds \
21268 postuninstall_cmds \
21269 finish_cmds \
21270 sys_lib_search_path_spec \
21271 sys_lib_dlsearch_path_spec \
21272 reload_cmds_CXX \
21273 old_archive_cmds_CXX \
21274 old_archive_from_new_cmds_CXX \
21275 old_archive_from_expsyms_cmds_CXX \
21276 archive_cmds_CXX \
21277 archive_expsym_cmds_CXX \
21278 module_cmds_CXX \
21279 module_expsym_cmds_CXX \
21280 export_symbols_cmds_CXX \
21281 prelink_cmds_CXX \
21282 postlink_cmds_CXX; do
21283 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21284 *[\\\\\\\`\\"\\\$]*)
21285 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21288 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21290 esac
21291 done
21293 ac_aux_dir='$ac_aux_dir'
21294 xsi_shell='$xsi_shell'
21295 lt_shell_append='$lt_shell_append'
21297 # See if we are running on zsh, and set the options which allow our
21298 # commands through without removal of \ escapes INIT.
21299 if test -n "\${ZSH_VERSION+set}" ; then
21300 setopt NO_GLOB_SUBST
21304 PACKAGE='$PACKAGE'
21305 VERSION='$VERSION'
21306 TIMESTAMP='$TIMESTAMP'
21307 RM='$RM'
21308 ofile='$ofile'
21316 _ACEOF
21318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21320 # Handling of arguments.
21321 for ac_config_target in $ac_config_targets
21323 case $ac_config_target in
21324 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21325 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21326 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21327 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21328 "transmission-gtk.spec") CONFIG_FILES="$CONFIG_FILES transmission-gtk.spec" ;;
21329 "cli/Makefile") CONFIG_FILES="$CONFIG_FILES cli/Makefile" ;;
21330 "daemon/Makefile") CONFIG_FILES="$CONFIG_FILES daemon/Makefile" ;;
21331 "extras/Makefile") CONFIG_FILES="$CONFIG_FILES extras/Makefile" ;;
21332 "libtransmission/Makefile") CONFIG_FILES="$CONFIG_FILES libtransmission/Makefile" ;;
21333 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
21334 "third-party/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
21335 "third-party/dht/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/dht/Makefile" ;;
21336 "third-party/libutp/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/libutp/Makefile" ;;
21337 "third-party/libnatpmp/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/libnatpmp/Makefile" ;;
21338 "third-party/miniupnp/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/miniupnp/Makefile" ;;
21339 "macosx/Makefile") CONFIG_FILES="$CONFIG_FILES macosx/Makefile" ;;
21340 "gtk/Makefile") CONFIG_FILES="$CONFIG_FILES gtk/Makefile" ;;
21341 "gtk/icons/Makefile") CONFIG_FILES="$CONFIG_FILES gtk/icons/Makefile" ;;
21342 "qt/config.pri") CONFIG_FILES="$CONFIG_FILES qt/config.pri" ;;
21343 "web/Makefile") CONFIG_FILES="$CONFIG_FILES web/Makefile" ;;
21344 "web/images/Makefile") CONFIG_FILES="$CONFIG_FILES web/images/Makefile" ;;
21345 "web/style/Makefile") CONFIG_FILES="$CONFIG_FILES web/style/Makefile" ;;
21346 "web/style/jqueryui/Makefile") CONFIG_FILES="$CONFIG_FILES web/style/jqueryui/Makefile" ;;
21347 "web/style/jqueryui/images/Makefile") CONFIG_FILES="$CONFIG_FILES web/style/jqueryui/images/Makefile" ;;
21348 "web/style/transmission/Makefile") CONFIG_FILES="$CONFIG_FILES web/style/transmission/Makefile" ;;
21349 "web/style/transmission/images/Makefile") CONFIG_FILES="$CONFIG_FILES web/style/transmission/images/Makefile" ;;
21350 "web/style/transmission/images/buttons/Makefile") CONFIG_FILES="$CONFIG_FILES web/style/transmission/images/buttons/Makefile" ;;
21351 "web/javascript/Makefile") CONFIG_FILES="$CONFIG_FILES web/javascript/Makefile" ;;
21352 "web/javascript/jquery/Makefile") CONFIG_FILES="$CONFIG_FILES web/javascript/jquery/Makefile" ;;
21353 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21354 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
21356 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21357 esac
21358 done
21361 # If the user did not use the arguments to specify the items to instantiate,
21362 # then the envvar interface is used. Set only those that are not.
21363 # We use the long form for the default assignment because of an extremely
21364 # bizarre bug on SunOS 4.1.3.
21365 if $ac_need_defaults; then
21366 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21367 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21370 # Have a temporary directory for convenience. Make it in the build tree
21371 # simply because there is no reason against having it here, and in addition,
21372 # creating and moving files from /tmp can sometimes cause problems.
21373 # Hook for its removal unless debugging.
21374 # Note that there is a small window in which the directory will not be cleaned:
21375 # after its creation but before its name has been assigned to `$tmp'.
21376 $debug ||
21378 tmp= ac_tmp=
21379 trap 'exit_status=$?
21380 : "${ac_tmp:=$tmp}"
21381 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21383 trap 'as_fn_exit 1' 1 2 13 15
21385 # Create a (secure) tmp directory for tmp files.
21388 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21389 test -d "$tmp"
21390 } ||
21392 tmp=./conf$$-$RANDOM
21393 (umask 077 && mkdir "$tmp")
21394 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21395 ac_tmp=$tmp
21397 # Set up the scripts for CONFIG_FILES section.
21398 # No need to generate them if there are no CONFIG_FILES.
21399 # This happens for instance with `./config.status config.h'.
21400 if test -n "$CONFIG_FILES"; then
21403 ac_cr=`echo X | tr X '\015'`
21404 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21405 # But we know of no other shell where ac_cr would be empty at this
21406 # point, so we can use a bashism as a fallback.
21407 if test "x$ac_cr" = x; then
21408 eval ac_cr=\$\'\\r\'
21410 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21411 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21412 ac_cs_awk_cr='\\r'
21413 else
21414 ac_cs_awk_cr=$ac_cr
21417 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21418 _ACEOF
21422 echo "cat >conf$$subs.awk <<_ACEOF" &&
21423 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21424 echo "_ACEOF"
21425 } >conf$$subs.sh ||
21426 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21427 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21428 ac_delim='%!_!# '
21429 for ac_last_try in false false false false false :; do
21430 . ./conf$$subs.sh ||
21431 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21433 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21434 if test $ac_delim_n = $ac_delim_num; then
21435 break
21436 elif $ac_last_try; then
21437 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21438 else
21439 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21441 done
21442 rm -f conf$$subs.sh
21444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21445 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21446 _ACEOF
21447 sed -n '
21449 s/^/S["/; s/!.*/"]=/
21452 s/^[^!]*!//
21453 :repl
21454 t repl
21455 s/'"$ac_delim"'$//
21456 t delim
21459 s/\(.\{148\}\)..*/\1/
21460 t more1
21461 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21464 b repl
21465 :more1
21466 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21469 s/.\{148\}//
21470 t nl
21471 :delim
21473 s/\(.\{148\}\)..*/\1/
21474 t more2
21475 s/["\\]/\\&/g; s/^/"/; s/$/"/
21478 :more2
21479 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21482 s/.\{148\}//
21483 t delim
21484 ' <conf$$subs.awk | sed '
21485 /^[^""]/{
21487 s/\n//
21489 ' >>$CONFIG_STATUS || ac_write_fail=1
21490 rm -f conf$$subs.awk
21491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21492 _ACAWK
21493 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21494 for (key in S) S_is_set[key] = 1
21495 FS = "\a"
21499 line = $ 0
21500 nfields = split(line, field, "@")
21501 substed = 0
21502 len = length(field[1])
21503 for (i = 2; i < nfields; i++) {
21504 key = field[i]
21505 keylen = length(key)
21506 if (S_is_set[key]) {
21507 value = S[key]
21508 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21509 len += length(value) + length(field[++i])
21510 substed = 1
21511 } else
21512 len += 1 + keylen
21515 print line
21518 _ACAWK
21519 _ACEOF
21520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21521 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21522 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21523 else
21525 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21526 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21527 _ACEOF
21529 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21530 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21531 # trailing colons and then remove the whole line if VPATH becomes empty
21532 # (actually we leave an empty line to preserve line numbers).
21533 if test "x$srcdir" = x.; then
21534 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21536 s///
21537 s/^/:/
21538 s/[ ]*$/:/
21539 s/:\$(srcdir):/:/g
21540 s/:\${srcdir}:/:/g
21541 s/:@srcdir@:/:/g
21542 s/^:*//
21543 s/:*$//
21545 s/\(=[ ]*\).*/\1/
21547 s/\n//
21548 s/^[^=]*=[ ]*$//
21552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21553 fi # test -n "$CONFIG_FILES"
21556 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
21557 shift
21558 for ac_tag
21560 case $ac_tag in
21561 :[FHLC]) ac_mode=$ac_tag; continue;;
21562 esac
21563 case $ac_mode$ac_tag in
21564 :[FHL]*:*);;
21565 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21566 :[FH]-) ac_tag=-:-;;
21567 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21568 esac
21569 ac_save_IFS=$IFS
21570 IFS=:
21571 set x $ac_tag
21572 IFS=$ac_save_IFS
21573 shift
21574 ac_file=$1
21575 shift
21577 case $ac_mode in
21578 :L) ac_source=$1;;
21579 :[FH])
21580 ac_file_inputs=
21581 for ac_f
21583 case $ac_f in
21584 -) ac_f="$ac_tmp/stdin";;
21585 *) # Look for the file first in the build tree, then in the source tree
21586 # (if the path is not absolute). The absolute path cannot be DOS-style,
21587 # because $ac_f cannot contain `:'.
21588 test -f "$ac_f" ||
21589 case $ac_f in
21590 [\\/$]*) false;;
21591 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21592 esac ||
21593 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21594 esac
21595 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21596 as_fn_append ac_file_inputs " '$ac_f'"
21597 done
21599 # Let's still pretend it is `configure' which instantiates (i.e., don't
21600 # use $as_me), people would be surprised to read:
21601 # /* config.h. Generated by config.status. */
21602 configure_input='Generated from '`
21603 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21604 `' by configure.'
21605 if test x"$ac_file" != x-; then
21606 configure_input="$ac_file. $configure_input"
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21608 $as_echo "$as_me: creating $ac_file" >&6;}
21610 # Neutralize special characters interpreted by sed in replacement strings.
21611 case $configure_input in #(
21612 *\&* | *\|* | *\\* )
21613 ac_sed_conf_input=`$as_echo "$configure_input" |
21614 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21615 *) ac_sed_conf_input=$configure_input;;
21616 esac
21618 case $ac_tag in
21619 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21620 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21621 esac
21623 esac
21625 ac_dir=`$as_dirname -- "$ac_file" ||
21626 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21627 X"$ac_file" : 'X\(//\)[^/]' \| \
21628 X"$ac_file" : 'X\(//\)$' \| \
21629 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21630 $as_echo X"$ac_file" |
21631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21632 s//\1/
21635 /^X\(\/\/\)[^/].*/{
21636 s//\1/
21639 /^X\(\/\/\)$/{
21640 s//\1/
21643 /^X\(\/\).*/{
21644 s//\1/
21647 s/.*/./; q'`
21648 as_dir="$ac_dir"; as_fn_mkdir_p
21649 ac_builddir=.
21651 case "$ac_dir" in
21652 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21654 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21655 # A ".." for each directory in $ac_dir_suffix.
21656 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21657 case $ac_top_builddir_sub in
21658 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21659 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21660 esac ;;
21661 esac
21662 ac_abs_top_builddir=$ac_pwd
21663 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21664 # for backward compatibility:
21665 ac_top_builddir=$ac_top_build_prefix
21667 case $srcdir in
21668 .) # We are building in place.
21669 ac_srcdir=.
21670 ac_top_srcdir=$ac_top_builddir_sub
21671 ac_abs_top_srcdir=$ac_pwd ;;
21672 [\\/]* | ?:[\\/]* ) # Absolute name.
21673 ac_srcdir=$srcdir$ac_dir_suffix;
21674 ac_top_srcdir=$srcdir
21675 ac_abs_top_srcdir=$srcdir ;;
21676 *) # Relative name.
21677 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21678 ac_top_srcdir=$ac_top_build_prefix$srcdir
21679 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21680 esac
21681 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21684 case $ac_mode in
21687 # CONFIG_FILE
21690 case $INSTALL in
21691 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21692 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21693 esac
21694 ac_MKDIR_P=$MKDIR_P
21695 case $MKDIR_P in
21696 [\\/$]* | ?:[\\/]* ) ;;
21697 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21698 esac
21699 _ACEOF
21701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21702 # If the template does not know about datarootdir, expand it.
21703 # FIXME: This hack should be removed a few years after 2.60.
21704 ac_datarootdir_hack=; ac_datarootdir_seen=
21705 ac_sed_dataroot='
21706 /datarootdir/ {
21710 /@datadir@/p
21711 /@docdir@/p
21712 /@infodir@/p
21713 /@localedir@/p
21714 /@mandir@/p'
21715 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21716 *datarootdir*) ac_datarootdir_seen=yes;;
21717 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21719 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21720 _ACEOF
21721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21722 ac_datarootdir_hack='
21723 s&@datadir@&$datadir&g
21724 s&@docdir@&$docdir&g
21725 s&@infodir@&$infodir&g
21726 s&@localedir@&$localedir&g
21727 s&@mandir@&$mandir&g
21728 s&\\\${datarootdir}&$datarootdir&g' ;;
21729 esac
21730 _ACEOF
21732 # Neutralize VPATH when `$srcdir' = `.'.
21733 # Shell code in configure.ac might set extrasub.
21734 # FIXME: do we really want to maintain this feature?
21735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21736 ac_sed_extra="$ac_vpsub
21737 $extrasub
21738 _ACEOF
21739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21741 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21742 s|@configure_input@|$ac_sed_conf_input|;t t
21743 s&@top_builddir@&$ac_top_builddir_sub&;t t
21744 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21745 s&@srcdir@&$ac_srcdir&;t t
21746 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21747 s&@top_srcdir@&$ac_top_srcdir&;t t
21748 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21749 s&@builddir@&$ac_builddir&;t t
21750 s&@abs_builddir@&$ac_abs_builddir&;t t
21751 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21752 s&@INSTALL@&$ac_INSTALL&;t t
21753 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21754 $ac_datarootdir_hack
21756 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21757 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21759 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21760 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21761 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21762 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21764 which seems to be undefined. Please make sure it is defined" >&5
21765 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21766 which seems to be undefined. Please make sure it is defined" >&2;}
21768 rm -f "$ac_tmp/stdin"
21769 case $ac_file in
21770 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21771 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21772 esac \
21773 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21777 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21778 $as_echo "$as_me: executing $ac_file commands" >&6;}
21780 esac
21783 case $ac_file$ac_mode in
21784 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21785 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21786 # are listed without --file. Let's play safe and only enable the eval
21787 # if we detect the quoting.
21788 case $CONFIG_FILES in
21789 *\'*) eval set x "$CONFIG_FILES" ;;
21790 *) set x $CONFIG_FILES ;;
21791 esac
21792 shift
21793 for mf
21795 # Strip MF so we end up with the name of the file.
21796 mf=`echo "$mf" | sed -e 's/:.*$//'`
21797 # Check whether this is an Automake generated Makefile or not.
21798 # We used to match only the files named `Makefile.in', but
21799 # some people rename them; so instead we look at the file content.
21800 # Grep'ing the first line is not enough: some people post-process
21801 # each Makefile.in and add a new line on top of each file to say so.
21802 # Grep'ing the whole file is not good either: AIX grep has a line
21803 # limit of 2048, but all sed's we know have understand at least 4000.
21804 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21805 dirpart=`$as_dirname -- "$mf" ||
21806 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21807 X"$mf" : 'X\(//\)[^/]' \| \
21808 X"$mf" : 'X\(//\)$' \| \
21809 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21810 $as_echo X"$mf" |
21811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21812 s//\1/
21815 /^X\(\/\/\)[^/].*/{
21816 s//\1/
21819 /^X\(\/\/\)$/{
21820 s//\1/
21823 /^X\(\/\).*/{
21824 s//\1/
21827 s/.*/./; q'`
21828 else
21829 continue
21831 # Extract the definition of DEPDIR, am__include, and am__quote
21832 # from the Makefile without running `make'.
21833 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21834 test -z "$DEPDIR" && continue
21835 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21836 test -z "am__include" && continue
21837 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21838 # When using ansi2knr, U may be empty or an underscore; expand it
21839 U=`sed -n 's/^U = //p' < "$mf"`
21840 # Find all dependency output files, they are included files with
21841 # $(DEPDIR) in their names. We invoke sed twice because it is the
21842 # simplest approach to changing $(DEPDIR) to its actual value in the
21843 # expansion.
21844 for file in `sed -n "
21845 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21846 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21847 # Make sure the directory exists.
21848 test -f "$dirpart/$file" && continue
21849 fdir=`$as_dirname -- "$file" ||
21850 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21851 X"$file" : 'X\(//\)[^/]' \| \
21852 X"$file" : 'X\(//\)$' \| \
21853 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21854 $as_echo X"$file" |
21855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21856 s//\1/
21859 /^X\(\/\/\)[^/].*/{
21860 s//\1/
21863 /^X\(\/\/\)$/{
21864 s//\1/
21867 /^X\(\/\).*/{
21868 s//\1/
21871 s/.*/./; q'`
21872 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21873 # echo "creating $dirpart/$file"
21874 echo '# dummy' > "$dirpart/$file"
21875 done
21876 done
21879 "libtool":C)
21881 # See if we are running on zsh, and set the options which allow our
21882 # commands through without removal of \ escapes.
21883 if test -n "${ZSH_VERSION+set}" ; then
21884 setopt NO_GLOB_SUBST
21887 cfgfile="${ofile}T"
21888 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21889 $RM "$cfgfile"
21891 cat <<_LT_EOF >> "$cfgfile"
21892 #! $SHELL
21894 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21895 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21896 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21897 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21899 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21900 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21901 # Foundation, Inc.
21902 # Written by Gordon Matzigkeit, 1996
21904 # This file is part of GNU Libtool.
21906 # GNU Libtool is free software; you can redistribute it and/or
21907 # modify it under the terms of the GNU General Public License as
21908 # published by the Free Software Foundation; either version 2 of
21909 # the License, or (at your option) any later version.
21911 # As a special exception to the GNU General Public License,
21912 # if you distribute this file as part of a program or library that
21913 # is built using GNU Libtool, you may include this file under the
21914 # same distribution terms that you use for the rest of that program.
21916 # GNU Libtool is distributed in the hope that it will be useful,
21917 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21918 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21919 # GNU General Public License for more details.
21921 # You should have received a copy of the GNU General Public License
21922 # along with GNU Libtool; see the file COPYING. If not, a copy
21923 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21924 # obtained by writing to the Free Software Foundation, Inc.,
21925 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21928 # The names of the tagged configurations supported by this script.
21929 available_tags="CXX "
21931 # ### BEGIN LIBTOOL CONFIG
21933 # Which release of libtool.m4 was used?
21934 macro_version=$macro_version
21935 macro_revision=$macro_revision
21937 # Whether or not to build shared libraries.
21938 build_libtool_libs=$enable_shared
21940 # Whether or not to build static libraries.
21941 build_old_libs=$enable_static
21943 # What type of objects to build.
21944 pic_mode=$pic_mode
21946 # Whether or not to optimize for fast installation.
21947 fast_install=$enable_fast_install
21949 # Shell to use when invoking shell scripts.
21950 SHELL=$lt_SHELL
21952 # An echo program that protects backslashes.
21953 ECHO=$lt_ECHO
21955 # The PATH separator for the build system.
21956 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21958 # The host system.
21959 host_alias=$host_alias
21960 host=$host
21961 host_os=$host_os
21963 # The build system.
21964 build_alias=$build_alias
21965 build=$build
21966 build_os=$build_os
21968 # A sed program that does not truncate output.
21969 SED=$lt_SED
21971 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21972 Xsed="\$SED -e 1s/^X//"
21974 # A grep program that handles long lines.
21975 GREP=$lt_GREP
21977 # An ERE matcher.
21978 EGREP=$lt_EGREP
21980 # A literal string matcher.
21981 FGREP=$lt_FGREP
21983 # A BSD- or MS-compatible name lister.
21984 NM=$lt_NM
21986 # Whether we need soft or hard links.
21987 LN_S=$lt_LN_S
21989 # What is the maximum length of a command?
21990 max_cmd_len=$max_cmd_len
21992 # Object file suffix (normally "o").
21993 objext=$ac_objext
21995 # Executable file suffix (normally "").
21996 exeext=$exeext
21998 # whether the shell understands "unset".
21999 lt_unset=$lt_unset
22001 # turn spaces into newlines.
22002 SP2NL=$lt_lt_SP2NL
22004 # turn newlines into spaces.
22005 NL2SP=$lt_lt_NL2SP
22007 # convert \$build file names to \$host format.
22008 to_host_file_cmd=$lt_cv_to_host_file_cmd
22010 # convert \$build files to toolchain format.
22011 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22013 # An object symbol dumper.
22014 OBJDUMP=$lt_OBJDUMP
22016 # Method to check whether dependent libraries are shared objects.
22017 deplibs_check_method=$lt_deplibs_check_method
22019 # Command to use when deplibs_check_method = "file_magic".
22020 file_magic_cmd=$lt_file_magic_cmd
22022 # How to find potential files when deplibs_check_method = "file_magic".
22023 file_magic_glob=$lt_file_magic_glob
22025 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22026 want_nocaseglob=$lt_want_nocaseglob
22028 # DLL creation program.
22029 DLLTOOL=$lt_DLLTOOL
22031 # Command to associate shared and link libraries.
22032 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22034 # The archiver.
22035 AR=$lt_AR
22037 # Flags to create an archive.
22038 AR_FLAGS=$lt_AR_FLAGS
22040 # How to feed a file listing to the archiver.
22041 archiver_list_spec=$lt_archiver_list_spec
22043 # A symbol stripping program.
22044 STRIP=$lt_STRIP
22046 # Commands used to install an old-style archive.
22047 RANLIB=$lt_RANLIB
22048 old_postinstall_cmds=$lt_old_postinstall_cmds
22049 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22051 # Whether to use a lock for old archive extraction.
22052 lock_old_archive_extraction=$lock_old_archive_extraction
22054 # A C compiler.
22055 LTCC=$lt_CC
22057 # LTCC compiler flags.
22058 LTCFLAGS=$lt_CFLAGS
22060 # Take the output of nm and produce a listing of raw symbols and C names.
22061 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22063 # Transform the output of nm in a proper C declaration.
22064 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22066 # Transform the output of nm in a C name address pair.
22067 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22069 # Transform the output of nm in a C name address pair when lib prefix is needed.
22070 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22072 # Specify filename containing input files for \$NM.
22073 nm_file_list_spec=$lt_nm_file_list_spec
22075 # The root where to search for dependent libraries,and in which our libraries should be installed.
22076 lt_sysroot=$lt_sysroot
22078 # The name of the directory that contains temporary libtool files.
22079 objdir=$objdir
22081 # Used to examine libraries when file_magic_cmd begins with "file".
22082 MAGIC_CMD=$MAGIC_CMD
22084 # Must we lock files when doing compilation?
22085 need_locks=$lt_need_locks
22087 # Manifest tool.
22088 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22090 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22091 DSYMUTIL=$lt_DSYMUTIL
22093 # Tool to change global to local symbols on Mac OS X.
22094 NMEDIT=$lt_NMEDIT
22096 # Tool to manipulate fat objects and archives on Mac OS X.
22097 LIPO=$lt_LIPO
22099 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22100 OTOOL=$lt_OTOOL
22102 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22103 OTOOL64=$lt_OTOOL64
22105 # Old archive suffix (normally "a").
22106 libext=$libext
22108 # Shared library suffix (normally ".so").
22109 shrext_cmds=$lt_shrext_cmds
22111 # The commands to extract the exported symbol list from a shared archive.
22112 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22114 # Variables whose values should be saved in libtool wrapper scripts and
22115 # restored at link time.
22116 variables_saved_for_relink=$lt_variables_saved_for_relink
22118 # Do we need the "lib" prefix for modules?
22119 need_lib_prefix=$need_lib_prefix
22121 # Do we need a version for libraries?
22122 need_version=$need_version
22124 # Library versioning type.
22125 version_type=$version_type
22127 # Shared library runtime path variable.
22128 runpath_var=$runpath_var
22130 # Shared library path variable.
22131 shlibpath_var=$shlibpath_var
22133 # Is shlibpath searched before the hard-coded library search path?
22134 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22136 # Format of library name prefix.
22137 libname_spec=$lt_libname_spec
22139 # List of archive names. First name is the real one, the rest are links.
22140 # The last name is the one that the linker finds with -lNAME
22141 library_names_spec=$lt_library_names_spec
22143 # The coded name of the library, if different from the real name.
22144 soname_spec=$lt_soname_spec
22146 # Permission mode override for installation of shared libraries.
22147 install_override_mode=$lt_install_override_mode
22149 # Command to use after installation of a shared archive.
22150 postinstall_cmds=$lt_postinstall_cmds
22152 # Command to use after uninstallation of a shared archive.
22153 postuninstall_cmds=$lt_postuninstall_cmds
22155 # Commands used to finish a libtool library installation in a directory.
22156 finish_cmds=$lt_finish_cmds
22158 # As "finish_cmds", except a single script fragment to be evaled but
22159 # not shown.
22160 finish_eval=$lt_finish_eval
22162 # Whether we should hardcode library paths into libraries.
22163 hardcode_into_libs=$hardcode_into_libs
22165 # Compile-time system search path for libraries.
22166 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22168 # Run-time system search path for libraries.
22169 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22171 # Whether dlopen is supported.
22172 dlopen_support=$enable_dlopen
22174 # Whether dlopen of programs is supported.
22175 dlopen_self=$enable_dlopen_self
22177 # Whether dlopen of statically linked programs is supported.
22178 dlopen_self_static=$enable_dlopen_self_static
22180 # Commands to strip libraries.
22181 old_striplib=$lt_old_striplib
22182 striplib=$lt_striplib
22185 # The linker used to build libraries.
22186 LD=$lt_LD
22188 # How to create reloadable object files.
22189 reload_flag=$lt_reload_flag
22190 reload_cmds=$lt_reload_cmds
22192 # Commands used to build an old-style archive.
22193 old_archive_cmds=$lt_old_archive_cmds
22195 # A language specific compiler.
22196 CC=$lt_compiler
22198 # Is the compiler the GNU compiler?
22199 with_gcc=$GCC
22201 # Compiler flag to turn off builtin functions.
22202 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22204 # Additional compiler flags for building library objects.
22205 pic_flag=$lt_lt_prog_compiler_pic
22207 # How to pass a linker flag through the compiler.
22208 wl=$lt_lt_prog_compiler_wl
22210 # Compiler flag to prevent dynamic linking.
22211 link_static_flag=$lt_lt_prog_compiler_static
22213 # Does compiler simultaneously support -c and -o options?
22214 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22216 # Whether or not to add -lc for building shared libraries.
22217 build_libtool_need_lc=$archive_cmds_need_lc
22219 # Whether or not to disallow shared libs when runtime libs are static.
22220 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22222 # Compiler flag to allow reflexive dlopens.
22223 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22225 # Compiler flag to generate shared objects directly from archives.
22226 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22228 # Whether the compiler copes with passing no objects directly.
22229 compiler_needs_object=$lt_compiler_needs_object
22231 # Create an old-style archive from a shared archive.
22232 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22234 # Create a temporary old-style archive to link instead of a shared archive.
22235 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22237 # Commands used to build a shared archive.
22238 archive_cmds=$lt_archive_cmds
22239 archive_expsym_cmds=$lt_archive_expsym_cmds
22241 # Commands used to build a loadable module if different from building
22242 # a shared archive.
22243 module_cmds=$lt_module_cmds
22244 module_expsym_cmds=$lt_module_expsym_cmds
22246 # Whether we are building with GNU ld or not.
22247 with_gnu_ld=$lt_with_gnu_ld
22249 # Flag that allows shared libraries with undefined symbols to be built.
22250 allow_undefined_flag=$lt_allow_undefined_flag
22252 # Flag that enforces no undefined symbols.
22253 no_undefined_flag=$lt_no_undefined_flag
22255 # Flag to hardcode \$libdir into a binary during linking.
22256 # This must work even if \$libdir does not exist
22257 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22259 # Whether we need a single "-rpath" flag with a separated argument.
22260 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22262 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22263 # DIR into the resulting binary.
22264 hardcode_direct=$hardcode_direct
22266 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22267 # DIR into the resulting binary and the resulting library dependency is
22268 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22269 # library is relocated.
22270 hardcode_direct_absolute=$hardcode_direct_absolute
22272 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22273 # into the resulting binary.
22274 hardcode_minus_L=$hardcode_minus_L
22276 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22277 # into the resulting binary.
22278 hardcode_shlibpath_var=$hardcode_shlibpath_var
22280 # Set to "yes" if building a shared library automatically hardcodes DIR
22281 # into the library and all subsequent libraries and executables linked
22282 # against it.
22283 hardcode_automatic=$hardcode_automatic
22285 # Set to yes if linker adds runtime paths of dependent libraries
22286 # to runtime path list.
22287 inherit_rpath=$inherit_rpath
22289 # Whether libtool must link a program against all its dependency libraries.
22290 link_all_deplibs=$link_all_deplibs
22292 # Set to "yes" if exported symbols are required.
22293 always_export_symbols=$always_export_symbols
22295 # The commands to list exported symbols.
22296 export_symbols_cmds=$lt_export_symbols_cmds
22298 # Symbols that should not be listed in the preloaded symbols.
22299 exclude_expsyms=$lt_exclude_expsyms
22301 # Symbols that must always be exported.
22302 include_expsyms=$lt_include_expsyms
22304 # Commands necessary for linking programs (against libraries) with templates.
22305 prelink_cmds=$lt_prelink_cmds
22307 # Commands necessary for finishing linking programs.
22308 postlink_cmds=$lt_postlink_cmds
22310 # Specify filename containing input files.
22311 file_list_spec=$lt_file_list_spec
22313 # How to hardcode a shared library path into an executable.
22314 hardcode_action=$hardcode_action
22316 # The directories searched by this compiler when creating a shared library.
22317 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22319 # Dependencies to place before and after the objects being linked to
22320 # create a shared library.
22321 predep_objects=$lt_predep_objects
22322 postdep_objects=$lt_postdep_objects
22323 predeps=$lt_predeps
22324 postdeps=$lt_postdeps
22326 # The library search path used internally by the compiler when linking
22327 # a shared library.
22328 compiler_lib_search_path=$lt_compiler_lib_search_path
22330 # ### END LIBTOOL CONFIG
22332 _LT_EOF
22334 case $host_os in
22335 aix3*)
22336 cat <<\_LT_EOF >> "$cfgfile"
22337 # AIX sometimes has problems with the GCC collect2 program. For some
22338 # reason, if we set the COLLECT_NAMES environment variable, the problems
22339 # vanish in a puff of smoke.
22340 if test "X${COLLECT_NAMES+set}" != Xset; then
22341 COLLECT_NAMES=
22342 export COLLECT_NAMES
22344 _LT_EOF
22346 esac
22349 ltmain="$ac_aux_dir/ltmain.sh"
22352 # We use sed instead of cat because bash on DJGPP gets confused if
22353 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22354 # text mode, it properly converts lines to CR/LF. This bash problem
22355 # is reportedly fixed, but why not run on old versions too?
22356 sed '$q' "$ltmain" >> "$cfgfile" \
22357 || (rm -f "$cfgfile"; exit 1)
22359 if test x"$xsi_shell" = xyes; then
22360 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22361 func_dirname ()\
22363 \ case ${1} in\
22364 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22365 \ * ) func_dirname_result="${3}" ;;\
22366 \ esac\
22367 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22368 && mv -f "$cfgfile.tmp" "$cfgfile" \
22369 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22370 test 0 -eq $? || _lt_function_replace_fail=:
22373 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22374 func_basename ()\
22376 \ func_basename_result="${1##*/}"\
22377 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22378 && mv -f "$cfgfile.tmp" "$cfgfile" \
22379 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22380 test 0 -eq $? || _lt_function_replace_fail=:
22383 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22384 func_dirname_and_basename ()\
22386 \ case ${1} in\
22387 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22388 \ * ) func_dirname_result="${3}" ;;\
22389 \ esac\
22390 \ func_basename_result="${1##*/}"\
22391 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22392 && mv -f "$cfgfile.tmp" "$cfgfile" \
22393 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22394 test 0 -eq $? || _lt_function_replace_fail=:
22397 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22398 func_stripname ()\
22400 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22401 \ # positional parameters, so assign one to ordinary parameter first.\
22402 \ func_stripname_result=${3}\
22403 \ func_stripname_result=${func_stripname_result#"${1}"}\
22404 \ func_stripname_result=${func_stripname_result%"${2}"}\
22405 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22406 && mv -f "$cfgfile.tmp" "$cfgfile" \
22407 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22408 test 0 -eq $? || _lt_function_replace_fail=:
22411 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22412 func_split_long_opt ()\
22414 \ func_split_long_opt_name=${1%%=*}\
22415 \ func_split_long_opt_arg=${1#*=}\
22416 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22417 && mv -f "$cfgfile.tmp" "$cfgfile" \
22418 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22419 test 0 -eq $? || _lt_function_replace_fail=:
22422 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22423 func_split_short_opt ()\
22425 \ func_split_short_opt_arg=${1#??}\
22426 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22427 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22428 && mv -f "$cfgfile.tmp" "$cfgfile" \
22429 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22430 test 0 -eq $? || _lt_function_replace_fail=:
22433 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22434 func_lo2o ()\
22436 \ case ${1} in\
22437 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22438 \ *) func_lo2o_result=${1} ;;\
22439 \ esac\
22440 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22441 && mv -f "$cfgfile.tmp" "$cfgfile" \
22442 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22443 test 0 -eq $? || _lt_function_replace_fail=:
22446 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22447 func_xform ()\
22449 func_xform_result=${1%.*}.lo\
22450 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22451 && mv -f "$cfgfile.tmp" "$cfgfile" \
22452 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22453 test 0 -eq $? || _lt_function_replace_fail=:
22456 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22457 func_arith ()\
22459 func_arith_result=$(( $* ))\
22460 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22461 && mv -f "$cfgfile.tmp" "$cfgfile" \
22462 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22463 test 0 -eq $? || _lt_function_replace_fail=:
22466 sed -e '/^func_len ()$/,/^} # func_len /c\
22467 func_len ()\
22469 func_len_result=${#1}\
22470 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22471 && mv -f "$cfgfile.tmp" "$cfgfile" \
22472 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22473 test 0 -eq $? || _lt_function_replace_fail=:
22477 if test x"$lt_shell_append" = xyes; then
22478 sed -e '/^func_append ()$/,/^} # func_append /c\
22479 func_append ()\
22481 eval "${1}+=\\${2}"\
22482 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22483 && mv -f "$cfgfile.tmp" "$cfgfile" \
22484 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22485 test 0 -eq $? || _lt_function_replace_fail=:
22488 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22489 func_append_quoted ()\
22491 \ func_quote_for_eval "${2}"\
22492 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22493 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22494 && mv -f "$cfgfile.tmp" "$cfgfile" \
22495 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22496 test 0 -eq $? || _lt_function_replace_fail=:
22499 # Save a `func_append' function call where possible by direct use of '+='
22500 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22501 && mv -f "$cfgfile.tmp" "$cfgfile" \
22502 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22503 test 0 -eq $? || _lt_function_replace_fail=:
22504 else
22505 # Save a `func_append' function call even when '+=' is not available
22506 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22507 && mv -f "$cfgfile.tmp" "$cfgfile" \
22508 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22509 test 0 -eq $? || _lt_function_replace_fail=:
22512 if test x"$_lt_function_replace_fail" = x":"; then
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22514 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22518 mv -f "$cfgfile" "$ofile" ||
22519 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22520 chmod +x "$ofile"
22523 cat <<_LT_EOF >> "$ofile"
22525 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22527 # The linker used to build libraries.
22528 LD=$lt_LD_CXX
22530 # How to create reloadable object files.
22531 reload_flag=$lt_reload_flag_CXX
22532 reload_cmds=$lt_reload_cmds_CXX
22534 # Commands used to build an old-style archive.
22535 old_archive_cmds=$lt_old_archive_cmds_CXX
22537 # A language specific compiler.
22538 CC=$lt_compiler_CXX
22540 # Is the compiler the GNU compiler?
22541 with_gcc=$GCC_CXX
22543 # Compiler flag to turn off builtin functions.
22544 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22546 # Additional compiler flags for building library objects.
22547 pic_flag=$lt_lt_prog_compiler_pic_CXX
22549 # How to pass a linker flag through the compiler.
22550 wl=$lt_lt_prog_compiler_wl_CXX
22552 # Compiler flag to prevent dynamic linking.
22553 link_static_flag=$lt_lt_prog_compiler_static_CXX
22555 # Does compiler simultaneously support -c and -o options?
22556 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22558 # Whether or not to add -lc for building shared libraries.
22559 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22561 # Whether or not to disallow shared libs when runtime libs are static.
22562 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22564 # Compiler flag to allow reflexive dlopens.
22565 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22567 # Compiler flag to generate shared objects directly from archives.
22568 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22570 # Whether the compiler copes with passing no objects directly.
22571 compiler_needs_object=$lt_compiler_needs_object_CXX
22573 # Create an old-style archive from a shared archive.
22574 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22576 # Create a temporary old-style archive to link instead of a shared archive.
22577 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22579 # Commands used to build a shared archive.
22580 archive_cmds=$lt_archive_cmds_CXX
22581 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22583 # Commands used to build a loadable module if different from building
22584 # a shared archive.
22585 module_cmds=$lt_module_cmds_CXX
22586 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22588 # Whether we are building with GNU ld or not.
22589 with_gnu_ld=$lt_with_gnu_ld_CXX
22591 # Flag that allows shared libraries with undefined symbols to be built.
22592 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22594 # Flag that enforces no undefined symbols.
22595 no_undefined_flag=$lt_no_undefined_flag_CXX
22597 # Flag to hardcode \$libdir into a binary during linking.
22598 # This must work even if \$libdir does not exist
22599 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22601 # Whether we need a single "-rpath" flag with a separated argument.
22602 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22604 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22605 # DIR into the resulting binary.
22606 hardcode_direct=$hardcode_direct_CXX
22608 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22609 # DIR into the resulting binary and the resulting library dependency is
22610 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22611 # library is relocated.
22612 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22614 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22615 # into the resulting binary.
22616 hardcode_minus_L=$hardcode_minus_L_CXX
22618 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22619 # into the resulting binary.
22620 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22622 # Set to "yes" if building a shared library automatically hardcodes DIR
22623 # into the library and all subsequent libraries and executables linked
22624 # against it.
22625 hardcode_automatic=$hardcode_automatic_CXX
22627 # Set to yes if linker adds runtime paths of dependent libraries
22628 # to runtime path list.
22629 inherit_rpath=$inherit_rpath_CXX
22631 # Whether libtool must link a program against all its dependency libraries.
22632 link_all_deplibs=$link_all_deplibs_CXX
22634 # Set to "yes" if exported symbols are required.
22635 always_export_symbols=$always_export_symbols_CXX
22637 # The commands to list exported symbols.
22638 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22640 # Symbols that should not be listed in the preloaded symbols.
22641 exclude_expsyms=$lt_exclude_expsyms_CXX
22643 # Symbols that must always be exported.
22644 include_expsyms=$lt_include_expsyms_CXX
22646 # Commands necessary for linking programs (against libraries) with templates.
22647 prelink_cmds=$lt_prelink_cmds_CXX
22649 # Commands necessary for finishing linking programs.
22650 postlink_cmds=$lt_postlink_cmds_CXX
22652 # Specify filename containing input files.
22653 file_list_spec=$lt_file_list_spec_CXX
22655 # How to hardcode a shared library path into an executable.
22656 hardcode_action=$hardcode_action_CXX
22658 # The directories searched by this compiler when creating a shared library.
22659 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22661 # Dependencies to place before and after the objects being linked to
22662 # create a shared library.
22663 predep_objects=$lt_predep_objects_CXX
22664 postdep_objects=$lt_postdep_objects_CXX
22665 predeps=$lt_predeps_CXX
22666 postdeps=$lt_postdeps_CXX
22668 # The library search path used internally by the compiler when linking
22669 # a shared library.
22670 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22672 # ### END LIBTOOL TAG CONFIG: CXX
22673 _LT_EOF
22676 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
22677 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
22678 esac ;;
22679 "po/stamp-it":C)
22680 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
22681 as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
22683 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
22684 >"po/stamp-it.tmp"
22685 sed '/^#/d
22686 s/^[[].*] *//
22687 /^[ ]*$/d
22688 '"s|^| $ac_top_srcdir/|" \
22689 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
22691 sed '/^POTFILES =/,/[^\\]$/ {
22692 /^POTFILES =/!d
22693 r po/POTFILES
22695 ' "po/Makefile.in" >"po/Makefile"
22696 rm -f "po/Makefile.tmp"
22697 mv "po/stamp-it.tmp" "po/stamp-it"
22700 esac
22701 done # for ac_tag
22704 as_fn_exit 0
22705 _ACEOF
22706 ac_clean_files=$ac_clean_files_save
22708 test $ac_write_fail = 0 ||
22709 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22712 # configure is writing to config.log, and then calls config.status.
22713 # config.status does its own redirection, appending to config.log.
22714 # Unfortunately, on DOS this fails, as config.log is still kept open
22715 # by configure, so config.status won't be able to write to it; its
22716 # output is simply discarded. So we exec the FD to /dev/null,
22717 # effectively closing config.log, so it can be properly (re)opened and
22718 # appended to by config.status. When coming back to configure, we
22719 # need to make the FD available again.
22720 if test "$no_create" != yes; then
22721 ac_cs_success=:
22722 ac_config_status_args=
22723 test "$silent" = yes &&
22724 ac_config_status_args="$ac_config_status_args --quiet"
22725 exec 5>/dev/null
22726 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22727 exec 5>>config.log
22728 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22729 # would make configure fail if this is the last instruction.
22730 $ac_cs_success || as_fn_exit 1
22732 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22734 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22738 echo "
22740 Configuration:
22742 Source code location: ${srcdir}
22743 Compiler: ${CXX}
22745 Build libtransmission: yes
22746 * optimized for low-resource systems: ${enable_lightweight}
22747 * µTP enabled: ${build_utp}
22749 Build Command-Line client: ${build_cli}
22751 Build GTK+ client: ${with_gtk} (GTK+ $gtk_version)
22752 * libappindicator for an Ubuntu-style tray: ${use_libappindicator}
22754 Build Daemon: ${build_daemon}
22756 Build Mac client: ${build_mac}