2 # From configure.in Revision: 2.10 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.53.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
12 # Check that we are running under the correct shell.
13 SHELL
=${CONFIG_SHELL-/bin/sh}
17 # Remove one level of quotation (which was required for Make).
18 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
23 if test "X$1" = X--no-reexec
; then
24 # Discard the --no-reexec flag, and continue.
26 elif test "X$1" = X--fallback-echo
; then
27 # Avoid inline document here, it may be left over
29 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
30 # Yippee, $echo works!
33 # Restart under the correct shell.
34 exec $SHELL "$0" --no-reexec ${1+"$@"}
37 if test "X$1" = X--fallback-echo
; then
38 # used as fallback echo
46 # The HP-UX ksh and POSIX shell print the target directory to stdout
48 if test "X${CDPATH+set}" = Xset
; then CDPATH
=:; export CDPATH
; fi
50 if test -z "$ECHO"; then
51 if test "X${echo_test_string+set}" != Xset
; then
52 # find a string as large as possible, as long as the shell can cope with it
53 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
54 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
55 if (echo_test_string
="`eval $cmd`") 2>/dev
/null
&&
56 echo_test_string
="`eval $cmd`" &&
57 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
64 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
65 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
66 test "X$echo_testing_string" = "X$echo_test_string"; then
69 # The Solaris, AIX, and Digital Unix default echo programs unquote
70 # backslashes. This makes it impossible to quote backslashes using
71 # echo "$something" | sed 's/\\/\\\\/g'
73 # So, first we look for a working echo in the user's PATH.
75 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
76 for dir
in $PATH /usr
/ucb
; do
78 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
79 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
80 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
81 test "X$echo_testing_string" = "X$echo_test_string"; then
88 if test "X$echo" = Xecho
; then
89 # We didn't find a better echo, so look for alternatives.
90 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
91 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
92 test "X$echo_testing_string" = "X$echo_test_string"; then
93 # This shell has a builtin print -r that does the trick.
95 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
96 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
97 # If we have ksh, try running configure again with it.
98 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
99 export ORIGINAL_CONFIG_SHELL
100 CONFIG_SHELL
=/bin
/ksh
102 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
106 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
107 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
108 test "X$echo_testing_string" = "X$echo_test_string"; then
111 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
112 test "X$echo_testing_string" = 'X\t' &&
113 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
114 test "X$echo_testing_string" = "X$echo_test_string"; then
115 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
117 SHELL
="$CONFIG_SHELL"
119 echo="$CONFIG_SHELL $0 --fallback-echo"
120 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
121 test "X$echo_testing_string" = 'X\t' &&
122 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
123 test "X$echo_testing_string" = "X$echo_test_string"; then
124 echo="$CONFIG_SHELL $0 --fallback-echo"
126 # maybe with a smaller string...
129 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
130 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
137 if test "$prev" != 'sed 50q "$0"'; then
138 echo_test_string
=`eval $prev`
139 export echo_test_string
140 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
142 # Oops. We lost completely, so just stick with echo.
151 # Copy echo and quote the copy suitably for passing to libtool from
152 # the Makefile, instead of quoting the original, which is used later.
154 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
155 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
160 if expr a
: '\(a\)' >/dev
/null
2>&1; then
167 ## --------------------- ##
168 ## M4sh Initialization. ##
169 ## --------------------- ##
171 # Be Bourne compatible
172 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
175 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
180 # Support unset when possible.
181 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
187 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
188 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
189 { LANG
=C
; export LANG
; }
190 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
191 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
192 { LC_ALL
=C
; export LC_ALL
; }
193 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
194 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
195 { LC_TIME
=C
; export LC_TIME
; }
196 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
197 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
198 { LC_CTYPE
=C
; export LC_CTYPE
; }
199 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
200 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
201 { LANGUAGE
=C
; export LANGUAGE
; }
202 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
203 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
204 { LC_COLLATE
=C
; export LC_COLLATE
; }
205 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
206 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
207 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
208 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
209 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
210 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
213 # Name of the executable.
214 as_me
=`(basename "$0") 2>/dev/null ||
215 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
216 X"$0" : 'X\(//\)$' \| \
217 X"$0" : 'X\(/\)$' \| \
218 . : '\(.\)' 2>/dev/null ||
220 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
221 /^X\/\(\/\/\)$/{ s//\1/; q; }
222 /^X\/\(\/\).*/{ s//\1/; q; }
225 # PATH needs CR, and LINENO needs CR and PATH.
226 # Avoid depending upon Character Ranges.
227 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
228 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
229 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
230 as_cr_digits
='0123456789'
231 as_cr_alnum
=$as_cr_Letters$as_cr_digits
233 # The user is always right.
234 if test "${PATH_SEPARATOR+set}" != set; then
235 echo "#! /bin/sh" >conftest.sh
236 echo "exit 0" >>conftest.sh
238 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
249 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
250 test "x$as_lineno_1" != "x$as_lineno_2" &&
251 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
252 # Find who we are. Look in the path if we contain no path at all
255 *[\\/]* ) as_myself
=$0 ;;
256 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
260 test -z "$as_dir" && as_dir
=.
261 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
266 # We did not find ourselves, most probably we were run as `sh COMMAND'
267 # in which case we are not to be found in the path.
268 if test "x$as_myself" = x
; then
271 if test ! -f "$as_myself"; then
272 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
273 { (exit 1); exit 1; }; }
275 case $CONFIG_SHELL in
277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
278 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
281 test -z "$as_dir" && as_dir
=.
282 for as_base
in sh bash ksh sh5
; do
285 if ("$as_dir/$as_base" -c '
288 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
289 test "x$as_lineno_1" != "x$as_lineno_2" &&
290 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
291 CONFIG_SHELL
=$as_dir/$as_base
293 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
301 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
302 # uniformly replaced by the line number. The first 'sed' inserts a
303 # line-number line before each line; the second 'sed' does the real
304 # work. The second script uses 'N' to pair each line-number line
305 # with the numbered line, and appends trailing '-' during
306 # substitution so that $LINENO is not a special case at line end.
307 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
308 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
309 sed '=' <$as_myself |
314 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
317 s,^['$as_cr_digits']*\n,,
319 chmod +x
$as_me.lineno ||
320 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
321 { (exit 1); exit 1; }; }
323 # Don't try to exec as it changes $[0], causing all sort of problems
324 # (the dirname of $[0] is not the place where we might find the
325 # original and so on. Autoconf is especially sensible to this).
327 # Exit status is that of the last command.
332 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
333 *c
*,-n*) ECHO_N
= ECHO_C
='
335 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
336 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
339 if expr a
: '\(a\)' >/dev
/null
2>&1; then
345 rm -f conf$$ conf$$.exe conf$$.
file
347 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
348 # We could just check for DJGPP; but this test a) works b) is more generic
349 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
350 if test -f conf$$.exe
; then
351 # Don't use ln at all; we don't have any links
356 elif ln conf$$.
file conf$$
2>/dev
/null
; then
361 rm -f conf$$ conf$$.exe conf$$.
file
363 as_executable_p
="test -f"
365 # Sed expression to map a string onto a valid CPP name.
366 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
368 # Sed expression to map a string onto a valid variable name.
369 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
373 # We need space, tab and new line, in precisely that order.
379 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
383 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
384 # so uname gets run too.
385 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
392 ac_default_prefix
=/usr
/local
397 SHELL
=${CONFIG_SHELL-/bin/sh}
399 # Maximum number of lines to put in a shell here document.
400 # This variable seems obsolete. It should probably be removed, and
401 # only ac_max_sed_lines should be used.
402 : ${ac_max_here_lines=38}
404 # Identity of this package.
411 ac_unique_file
="Makefile.in"
412 ac_subdirs_all
="$ac_subdirs_all rsync"
413 # Factoring default headers for most tests.
414 ac_includes_default
="\
417 # include <sys/types.h>
420 # include <sys/stat.h>
431 # if !STDC_HEADERS && HAVE_MEMORY_H
437 # include <strings.h>
440 # include <inttypes.h>
450 ac_subdirs_all
="$ac_subdirs_all zlib"
451 ac_subdirs_all
="$ac_subdirs_all bz2lib"
452 ac_subdirs_all
="$ac_subdirs_all libgetopt++"
454 # Initialize some variables set by options.
456 ac_init_version
=false
457 # The variables have the same names as the options, with
458 # dashes changed to underlines.
466 program_transform_name
=s
,x
,x
,
474 # Installation directory options.
475 # These are left unexpanded so users can "make install exec_prefix=/foo"
476 # and all the variables that are supposed to be based on exec_prefix
477 # by default will actually change.
478 # Use braces instead of parens because sh, perl, etc. also accept them.
479 bindir
='${exec_prefix}/bin'
480 sbindir
='${exec_prefix}/sbin'
481 libexecdir
='${exec_prefix}/libexec'
482 datadir
='${prefix}/share'
483 sysconfdir
='${prefix}/etc'
484 sharedstatedir
='${prefix}/com'
485 localstatedir
='${prefix}/var'
486 libdir
='${exec_prefix}/lib'
487 includedir
='${prefix}/include'
488 oldincludedir
='/usr/include'
489 infodir
='${prefix}/info'
490 mandir
='${prefix}/man'
495 # If the previous option needs an argument, assign it.
496 if test -n "$ac_prev"; then
497 eval "$ac_prev=\$ac_option"
502 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
504 # Accept the important Cygnus configure options, so we can diagnose typos.
508 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
510 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
513 -build |
--build |
--buil |
--bui |
--bu)
514 ac_prev
=build_alias
;;
515 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
516 build_alias
=$ac_optarg ;;
518 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
519 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
520 ac_prev
=cache_file
;;
521 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
522 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
523 cache_file
=$ac_optarg ;;
526 cache_file
=config.cache
;;
528 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
530 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
532 datadir
=$ac_optarg ;;
534 -disable-* |
--disable-*)
535 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
536 # Reject names that are not valid shell variable names.
537 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
538 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
539 { (exit 1); exit 1; }; }
540 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
541 eval "enable_$ac_feature=no" ;;
543 -enable-* |
--enable-*)
544 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
545 # Reject names that are not valid shell variable names.
546 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
547 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
548 { (exit 1); exit 1; }; }
549 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
551 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
554 eval "enable_$ac_feature='$ac_optarg'" ;;
556 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
557 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
558 |
--exec |
--exe |
--ex)
559 ac_prev
=exec_prefix
;;
560 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
561 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
562 |
--exec=* |
--exe=* |
--ex=*)
563 exec_prefix
=$ac_optarg ;;
565 -gas |
--gas |
--ga |
--g)
566 # Obsolete; use --with-gas.
569 -help |
--help |
--hel |
--he |
-h)
571 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
572 ac_init_help
=recursive
;;
573 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
574 ac_init_help
=short
;;
576 -host |
--host |
--hos |
--ho)
577 ac_prev
=host_alias
;;
578 -host=* |
--host=* |
--hos=* |
--ho=*)
579 host_alias
=$ac_optarg ;;
581 -includedir |
--includedir |
--includedi |
--included |
--include \
582 |
--includ |
--inclu |
--incl |
--inc)
583 ac_prev
=includedir
;;
584 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
585 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
586 includedir
=$ac_optarg ;;
588 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
590 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
591 infodir
=$ac_optarg ;;
593 -libdir |
--libdir |
--libdi |
--libd)
595 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
598 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
599 |
--libexe |
--libex |
--libe)
600 ac_prev
=libexecdir
;;
601 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
602 |
--libexe=* |
--libex=* |
--libe=*)
603 libexecdir
=$ac_optarg ;;
605 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
606 |
--localstate |
--localstat |
--localsta |
--localst \
607 |
--locals |
--local |
--loca |
--loc |
--lo)
608 ac_prev
=localstatedir
;;
609 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
610 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
611 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
612 localstatedir
=$ac_optarg ;;
614 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
616 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
620 # Obsolete; use --without-fp.
623 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
624 |
--no-cr |
--no-c |
-n)
627 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
628 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
631 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
632 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
633 |
--oldin |
--oldi |
--old |
--ol |
--o)
634 ac_prev
=oldincludedir
;;
635 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
636 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
637 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
638 oldincludedir
=$ac_optarg ;;
640 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
642 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
645 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
646 |
--program-pre |
--program-pr |
--program-p)
647 ac_prev
=program_prefix
;;
648 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
649 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
650 program_prefix
=$ac_optarg ;;
652 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
653 |
--program-suf |
--program-su |
--program-s)
654 ac_prev
=program_suffix
;;
655 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
656 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
657 program_suffix
=$ac_optarg ;;
659 -program-transform-name |
--program-transform-name \
660 |
--program-transform-nam |
--program-transform-na \
661 |
--program-transform-n |
--program-transform- \
662 |
--program-transform |
--program-transfor \
663 |
--program-transfo |
--program-transf \
664 |
--program-trans |
--program-tran \
665 |
--progr-tra |
--program-tr |
--program-t)
666 ac_prev
=program_transform_name
;;
667 -program-transform-name=* |
--program-transform-name=* \
668 |
--program-transform-nam=* |
--program-transform-na=* \
669 |
--program-transform-n=* |
--program-transform-=* \
670 |
--program-transform=* |
--program-transfor=* \
671 |
--program-transfo=* |
--program-transf=* \
672 |
--program-trans=* |
--program-tran=* \
673 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
674 program_transform_name
=$ac_optarg ;;
676 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
677 |
-silent |
--silent |
--silen |
--sile |
--sil)
680 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
682 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
684 sbindir
=$ac_optarg ;;
686 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
687 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
688 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
690 ac_prev
=sharedstatedir
;;
691 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
692 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
693 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
695 sharedstatedir
=$ac_optarg ;;
697 -site |
--site |
--sit)
699 -site=* |
--site=* |
--sit=*)
702 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
704 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
707 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
708 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
709 ac_prev
=sysconfdir
;;
710 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
711 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
712 sysconfdir
=$ac_optarg ;;
714 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
715 ac_prev
=target_alias
;;
716 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
717 target_alias
=$ac_optarg ;;
719 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
722 -version |
--version |
--versio |
--versi |
--vers |
-V)
726 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
727 # Reject names that are not valid shell variable names.
728 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
729 { echo "$as_me: error: invalid package name: $ac_package" >&2
730 { (exit 1); exit 1; }; }
731 ac_package
=`echo $ac_package| sed 's/-/_/g'`
733 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
736 eval "with_$ac_package='$ac_optarg'" ;;
738 -without-* |
--without-*)
739 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
740 # Reject names that are not valid shell variable names.
741 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
742 { echo "$as_me: error: invalid package name: $ac_package" >&2
743 { (exit 1); exit 1; }; }
744 ac_package
=`echo $ac_package | sed 's/-/_/g'`
745 eval "with_$ac_package=no" ;;
748 # Obsolete; use --with-x.
751 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
752 |
--x-incl |
--x-inc |
--x-in |
--x-i)
753 ac_prev
=x_includes
;;
754 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
755 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
756 x_includes
=$ac_optarg ;;
758 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
759 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
760 ac_prev
=x_libraries
;;
761 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
762 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
763 x_libraries
=$ac_optarg ;;
765 -*) { echo "$as_me: error: unrecognized option: $ac_option
766 Try \`$0 --help' for more information." >&2
767 { (exit 1); exit 1; }; }
771 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
772 # Reject names that are not valid shell variable names.
773 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
774 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
775 { (exit 1); exit 1; }; }
776 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
777 eval "$ac_envvar='$ac_optarg'"
781 # FIXME: should be removed in autoconf 3.0.
782 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
783 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
784 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
785 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
791 if test -n "$ac_prev"; then
792 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
793 { echo "$as_me: error: missing argument to $ac_option" >&2
794 { (exit 1); exit 1; }; }
797 # Be sure to have absolute paths.
798 for ac_var
in exec_prefix prefix
800 eval ac_val
=$
`echo $ac_var`
802 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
803 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
804 { (exit 1); exit 1; }; };;
808 # Be sure to have absolute paths.
809 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
810 localstatedir libdir includedir oldincludedir infodir mandir
812 eval ac_val
=$
`echo $ac_var`
814 [\\/$
]* | ?
:[\\/]* ) ;;
815 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
816 { (exit 1); exit 1; }; };;
820 # There might be people who depend on the old broken behavior: `$host'
821 # used to hold the argument of --host etc.
822 # FIXME: To remove some day.
827 # FIXME: To remove some day.
828 if test "x$host_alias" != x
; then
829 if test "x$build_alias" = x
; then
830 cross_compiling
=maybe
831 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
832 If a cross compiler is detected then cross compile mode will be used." >&2
833 elif test "x$build_alias" != "x$host_alias"; then
839 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
841 test "$silent" = yes && exec 6>/dev
/null
844 # Find the source files, if location was not specified.
845 if test -z "$srcdir"; then
846 ac_srcdir_defaulted
=yes
847 # Try the directory containing this script, then its parent.
848 ac_confdir
=`(dirname "$0") 2>/dev/null ||
849 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
850 X"$0" : 'X\(//\)[^/]' \| \
851 X"$0" : 'X\(//\)$' \| \
852 X"$0" : 'X\(/\)' \| \
853 . : '\(.\)' 2>/dev/null ||
855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
856 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
857 /^X\(\/\/\)$/{ s//\1/; q; }
858 /^X\(\/\).*/{ s//\1/; q; }
861 if test ! -r $srcdir/$ac_unique_file; then
865 ac_srcdir_defaulted
=no
867 if test ! -r $srcdir/$ac_unique_file; then
868 if test "$ac_srcdir_defaulted" = yes; then
869 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
870 { (exit 1); exit 1; }; }
872 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
873 { (exit 1); exit 1; }; }
876 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
877 ac_env_build_alias_set
=${build_alias+set}
878 ac_env_build_alias_value
=$build_alias
879 ac_cv_env_build_alias_set
=${build_alias+set}
880 ac_cv_env_build_alias_value
=$build_alias
881 ac_env_host_alias_set
=${host_alias+set}
882 ac_env_host_alias_value
=$host_alias
883 ac_cv_env_host_alias_set
=${host_alias+set}
884 ac_cv_env_host_alias_value
=$host_alias
885 ac_env_target_alias_set
=${target_alias+set}
886 ac_env_target_alias_value
=$target_alias
887 ac_cv_env_target_alias_set
=${target_alias+set}
888 ac_cv_env_target_alias_value
=$target_alias
889 ac_env_CXX_set
=${CXX+set}
890 ac_env_CXX_value
=$CXX
891 ac_cv_env_CXX_set
=${CXX+set}
892 ac_cv_env_CXX_value
=$CXX
893 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
894 ac_env_CXXFLAGS_value
=$CXXFLAGS
895 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
896 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
897 ac_env_LDFLAGS_set
=${LDFLAGS+set}
898 ac_env_LDFLAGS_value
=$LDFLAGS
899 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
900 ac_cv_env_LDFLAGS_value
=$LDFLAGS
901 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
902 ac_env_CPPFLAGS_value
=$CPPFLAGS
903 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
904 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
905 ac_env_CC_set
=${CC+set}
907 ac_cv_env_CC_set
=${CC+set}
908 ac_cv_env_CC_value
=$CC
909 ac_env_CFLAGS_set
=${CFLAGS+set}
910 ac_env_CFLAGS_value
=$CFLAGS
911 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
912 ac_cv_env_CFLAGS_value
=$CFLAGS
913 ac_env_CPP_set
=${CPP+set}
914 ac_env_CPP_value
=$CPP
915 ac_cv_env_CPP_set
=${CPP+set}
916 ac_cv_env_CPP_value
=$CPP
917 ac_env_CXXCPP_set
=${CXXCPP+set}
918 ac_env_CXXCPP_value
=$CXXCPP
919 ac_cv_env_CXXCPP_set
=${CXXCPP+set}
920 ac_cv_env_CXXCPP_value
=$CXXCPP
923 # Report the --help message.
925 if test "$ac_init_help" = "long"; then
926 # Omit some internal or obsolete options to make the list less imposing.
927 # This message is too long to be a string in the A/UX 3.1 sh.
929 \`configure' configures this package to adapt to many kinds of systems.
931 Usage: $0 [OPTION]... [VAR=VALUE]...
933 To assign environment variables (e.g., CC, CFLAGS...), specify them as
934 VAR=VALUE. See below for descriptions of some of the useful variables.
936 Defaults for the options are specified in brackets.
939 -h, --help display this help and exit
940 --help=short display options specific to this package
941 --help=recursive display the short help of all the included packages
942 -V, --version display version information and exit
943 -q, --quiet, --silent do not print \`checking...' messages
944 --cache-file=FILE cache test results in FILE [disabled]
945 -C, --config-cache alias for \`--cache-file=config.cache'
946 -n, --no-create do not create output files
947 --srcdir=DIR find the sources in DIR [configure dir or \`..']
952 Installation directories:
953 --prefix=PREFIX install architecture-independent files in PREFIX
955 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 By default, \`make install' will install all the files in
959 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
960 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
961 for instance \`--prefix=\$HOME'.
963 For better control, use the options below.
965 Fine tuning of the installation directories:
966 --bindir=DIR user executables [EPREFIX/bin]
967 --sbindir=DIR system admin executables [EPREFIX/sbin]
968 --libexecdir=DIR program executables [EPREFIX/libexec]
969 --datadir=DIR read-only architecture-independent data [PREFIX/share]
970 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
971 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
972 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
973 --libdir=DIR object code libraries [EPREFIX/lib]
974 --includedir=DIR C header files [PREFIX/include]
975 --oldincludedir=DIR C header files for non-gcc [/usr/include]
976 --infodir=DIR info documentation [PREFIX/info]
977 --mandir=DIR man documentation [PREFIX/man]
983 --program-prefix=PREFIX prepend PREFIX to installed program names
984 --program-suffix=SUFFIX append SUFFIX to installed program names
985 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
988 --build=BUILD configure
for building on BUILD
[guessed
]
989 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
993 if test -n "$ac_init_help"; then
998 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
999 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1000 --enable-maintainer-mode enable make rules and dependencies not useful
1001 (and sometimes confusing
) to the casual installer
1002 --enable-inilint Build the inilint tool
1003 --enable-rsync Compile
in rsync support
1004 --disable-dependency-tracking Speeds up one-time builds
1005 --enable-dependency-tracking Do not reject slow dependency extractors
1006 --enable-shared[=PKGS
]
1007 build shared libraries
[default
=yes]
1008 --enable-static[=PKGS
]
1009 build static libraries
[default
=yes]
1010 --enable-fast-install[=PKGS
]
1011 optimize
for fast installation
[default
=yes]
1012 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1015 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1016 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1017 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1018 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1020 --with-tags=TAGS include additional configurations
[CXX
,GCJ
]
1022 Some influential environment variables
:
1023 CXX C
++ compiler
command
1024 CXXFLAGS C
++ compiler flags
1025 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1026 nonstandard directory
<lib dir
>
1027 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1028 headers
in a nonstandard directory
<include dir
>
1029 CC C compiler
command
1030 CFLAGS C compiler flags
1032 CXXCPP C
++ preprocessor
1034 Use these variables to override the choices made by
`configure' or to help
1035 it to find libraries and programs with nonstandard names/locations.
1040 if test "$ac_init_help" = "recursive"; then
1041 # If there are subdirs, report their specific --help.
1043 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1044 test -d $ac_dir || continue
1047 if test "$ac_dir" != .; then
1048 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1049 # A "../" for each directory in $ac_dir_suffix.
1050 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1052 ac_dir_suffix= ac_top_builddir=
1056 .) # No --srcdir option. We are building in place.
1058 if test -z "$ac_top_builddir"; then
1061 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1063 [\\/]* | ?:[\\/]* ) # Absolute path.
1064 ac_srcdir=$srcdir$ac_dir_suffix;
1065 ac_top_srcdir=$srcdir ;;
1067 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1068 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1070 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1072 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1073 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1074 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1075 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1078 # Check for guested configure; otherwise get Cygnus style configure.
1079 if test -f $ac_srcdir/configure.gnu; then
1081 $SHELL $ac_srcdir/configure.gnu --help=recursive
1082 elif test -f $ac_srcdir/configure; then
1084 $SHELL $ac_srcdir/configure --help=recursive
1085 elif test -f $ac_srcdir/configure.ac ||
1086 test -f $ac_srcdir/configure.in; then
1088 $ac_configure --help
1090 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1096 test -n "$ac_init_help" && exit 0
1097 if $ac_init_version; then
1100 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1101 Free Software Foundation, Inc.
1102 This configure script is free software; the Free Software Foundation
1103 gives unlimited permission to copy, distribute and modify it.
1109 This file contains any messages produced by compilers while
1110 running configure, to aid debugging if configure makes a mistake.
1112 It was created by $as_me, which was
1113 generated by GNU Autoconf 2.53. Invocation command line was
1124 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1125 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1126 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1127 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1128 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1130 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1131 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1133 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1134 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1135 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1136 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1137 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1138 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1139 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1147 test -z "$as_dir" && as_dir=.
1148 echo "PATH: $as_dir"
1163 # Keep a trace of the command line.
1164 # Strip out --no-create and --no-recursion so they do not pile up.
1165 # Also quote any args containing shell meta-characters.
1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172 | --no-cr | --no-c | -n ) continue ;;
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1177 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1179 case " $ac_configure_args " in
1180 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1181 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1184 # Get rid of the leading space.
1187 # When interrupted or exit'd, cleanup temporary files, and complete
1188 # config.log. We remove comments because anyway the quotes in there
1189 # would cause problems or look ugly.
1190 # WARNING: Be sure not to use single quotes in there, as some shells,
1191 # such as our DU 5.0 friend, will then `close
' the trap.
1192 trap 'exit_status
=$?
1193 # Save into config.log some information that might help in debugging.
1197 ## ---------------- ##
1198 ## Cache variables. ##
1199 ## ---------------- ##
1202 # The following way of writing the cache mishandles newlines in values,
1205 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1208 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1209 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1213 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1218 if test -s confdefs.h
; then
1225 sed "/^$/d" confdefs.h
1228 test "$ac_signal" != 0 &&
1229 echo "$as_me: caught signal $ac_signal"
1230 echo "$as_me: exit $exit_status"
1232 rm -f core core.
* *.core
&&
1233 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1236 for ac_signal in 1 2 13 15; do
1237 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1241 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1242 rm -rf conftest* confdefs.h
1243 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1246 # Predefined preprocessor variables.
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_NAME "$PACKAGE_NAME"
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_STRING "$PACKAGE_STRING"
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1273 # Let the site file select an alternate cache file if it wants to.
1274 # Prefer explicitly selected file to automatically selected ones.
1275 if test -z "$CONFIG_SITE"; then
1276 if test "x$prefix" != xNONE; then
1277 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1279 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1282 for ac_site_file in $CONFIG_SITE; do
1283 if test -r "$ac_site_file"; then
1284 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1285 echo "$as_me: loading site script $ac_site_file" >&6;}
1286 sed 's
/^
/|
/' "$ac_site_file" >&5
1291 if test -r "$cache_file"; then
1292 # Some versions of bash will fail to source /dev/null (special
1293 # files actually), so we avoid doing that.
1294 if test -f "$cache_file"; then
1295 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1296 echo "$as_me: loading cache $cache_file" >&6;}
1298 [\\/]* | ?:[\\/]* ) . $cache_file;;
1299 *) . ./$cache_file;;
1303 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1304 echo "$as_me: creating cache $cache_file" >&6;}
1308 # Check that the precious variables saved in the cache have kept the same
1310 ac_cache_corrupted=false
1311 for ac_var in `(set) 2>&1 |
1312 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1313 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1314 eval ac_new_set=\$ac_env_${ac_var}_set
1315 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1316 eval ac_new_val="\$ac_env_${ac_var}_value"
1317 case $ac_old_set,$ac_new_set in
1319 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1321 ac_cache_corrupted=: ;;
1323 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1325 ac_cache_corrupted=: ;;
1328 if test "x$ac_old_val" != "x$ac_new_val"; then
1329 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1330 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1331 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1332 echo "$as_me: former value: $ac_old_val" >&2;}
1333 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1334 echo "$as_me: current value: $ac_new_val" >&2;}
1335 ac_cache_corrupted=:
1338 # Pass precious variables to config.status.
1339 if test "$ac_new_set" = set; then
1341 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1342 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1343 *) ac_arg=$ac_var=$ac_new_val ;;
1345 case " $ac_configure_args " in
1346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1347 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1351 if $ac_cache_corrupted; then
1352 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1353 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1354 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1355 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1356 { (exit 1); exit 1; }; }
1360 ac_cpp='$CPP $CPPFLAGS'
1361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1362 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1384 for ac_dir in cfgaux $srcdir/cfgaux; do
1385 if test -f $ac_dir/install-sh; then
1387 ac_install_sh="$ac_aux_dir/install-sh -c"
1389 elif test -f $ac_dir/install.sh; then
1391 ac_install_sh="$ac_aux_dir/install.sh -c"
1393 elif test -f $ac_dir/shtool; then
1395 ac_install_sh="$ac_aux_dir/shtool install -c"
1399 if test -z "$ac_aux_dir"; then
1400 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cfgaux $srcdir/cfgaux" >&5
1401 echo "$as_me: error: cannot find install-sh or install.sh in cfgaux $srcdir/cfgaux" >&2;}
1402 { (exit 1); exit 1; }; }
1404 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1405 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1406 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1408 am__api_version="1.6"
1409 # Find a good install program. We prefer a C program (faster),
1410 # so one script is as good as another. But avoid the broken or
1411 # incompatible versions:
1412 # SysV /etc/install, /usr/sbin/install
1413 # SunOS /usr/etc/install
1414 # IRIX /sbin/install
1416 # AmigaOS /C/install, which installs bootblocks on floppy discs
1417 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1418 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1419 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1420 # ./install, which can be erroneously created by make from ./install.sh.
1421 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1422 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1423 if test -z "$INSTALL"; then
1424 if test "${ac_cv_path_install+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1431 test -z "$as_dir" && as_dir
=.
1432 # Account for people who put trailing slashes in PATH elements.
1434 .
/ | .
// |
/cC
/* | \
1435 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1438 # OSF1 and SCO ODT 3.0 have their own names for install.
1439 # Don't use installbsd from OSF since it installs stuff as root
1441 for ac_prog
in ginstall scoinst
install; do
1442 for ac_exec_ext
in '' $ac_executable_extensions; do
1443 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1444 if test $ac_prog = install &&
1445 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1446 # AIX install. It has an incompatible calling convention.
1448 elif test $ac_prog = install &&
1449 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1450 # program-specific install script used by HP pwplus--don't use.
1453 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1465 if test "${ac_cv_path_install+set}" = set; then
1466 INSTALL
=$ac_cv_path_install
1468 # As a last resort, use the slow shell script. We don't cache a
1469 # path for INSTALL within a source directory, because that will
1470 # break other packages using the cache if that directory is
1471 # removed, or if the path is relative.
1472 INSTALL
=$ac_install_sh
1475 echo "$as_me:$LINENO: result: $INSTALL" >&5
1476 echo "${ECHO_T}$INSTALL" >&6
1478 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1479 # It thinks the first close brace ends the variable substitution.
1480 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1482 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1484 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1486 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1487 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1490 echo timestamp
> conftest.
file
1491 # Do `set' in a subshell so we don't clobber the current shell's
1492 # arguments. Must try -L first in case configure is actually a
1493 # symlink; some systems play weird games with the mod time of symlinks
1494 # (eg FreeBSD returns the mod time of the symlink's containing
1497 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1498 if test "$*" = "X"; then
1500 set X
`ls -t $srcdir/configure conftest.file`
1503 if test "$*" != "X $srcdir/configure conftest.file" \
1504 && test "$*" != "X conftest.file $srcdir/configure"; then
1506 # If neither matched, then we have a broken ls. This can happen
1507 # if, for instance, CONFIG_SHELL is bash and it inherits a
1508 # broken ls alias from the environment. This has actually
1509 # happened. Such a system could not be considered "sane".
1510 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1511 alias in your environment" >&5
1512 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1513 alias in your environment" >&2;}
1514 { (exit 1); exit 1; }; }
1517 test "$2" = conftest.
file
1523 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1524 Check your system clock" >&5
1525 echo "$as_me: error: newly created file is older than distributed files!
1526 Check your system clock" >&2;}
1527 { (exit 1); exit 1; }; }
1529 echo "$as_me:$LINENO: result: yes" >&5
1530 echo "${ECHO_T}yes" >&6
1531 test "$program_prefix" != NONE
&&
1532 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1533 # Use a double $ so make ignores it.
1534 test "$program_suffix" != NONE
&&
1535 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1536 # Double any \ or $. echo might interpret backslashes.
1537 # By default was `s,x,x', remove it if useless.
1538 cat <<\_ACEOF
>conftest.
sed
1539 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1541 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1545 # expand $ac_aux_dir to an absolute path
1546 am_aux_dir
=`cd $ac_aux_dir && pwd`
1548 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1549 # Use eval to expand $SHELL
1550 if eval "$MISSING --run true"; then
1551 am_missing_run
="$MISSING --run "
1554 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1555 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1558 for ac_prog
in gawk mawk nawk
awk
1560 # Extract the first word of "$ac_prog", so it can be a program name with args.
1561 set dummy
$ac_prog; ac_word
=$2
1562 echo "$as_me:$LINENO: checking for $ac_word" >&5
1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564 if test "${ac_cv_prog_AWK+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1567 if test -n "$AWK"; then
1568 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1574 test -z "$as_dir" && as_dir
=.
1575 for ac_exec_ext
in '' $ac_executable_extensions; do
1576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1577 ac_cv_prog_AWK
="$ac_prog"
1578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587 if test -n "$AWK"; then
1588 echo "$as_me:$LINENO: result: $AWK" >&5
1589 echo "${ECHO_T}$AWK" >&6
1591 echo "$as_me:$LINENO: result: no" >&5
1592 echo "${ECHO_T}no" >&6
1595 test -n "$AWK" && break
1598 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1599 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1600 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1601 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 cat >conftest.
make <<\_ACEOF
1606 @
echo 'ac_maketemp="${MAKE}"'
1608 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1609 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1610 if test -n "$ac_maketemp"; then
1611 eval ac_cv_prog_make_
${ac_make}_set
=yes
1613 eval ac_cv_prog_make_
${ac_make}_set
=no
1617 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1618 echo "$as_me:$LINENO: result: yes" >&5
1619 echo "${ECHO_T}yes" >&6
1622 echo "$as_me:$LINENO: result: no" >&5
1623 echo "${ECHO_T}no" >&6
1624 SET_MAKE
="MAKE=${MAKE-make}"
1627 # test to see if srcdir already configured
1628 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1629 test -f $srcdir/config.status
; then
1630 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1631 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1632 { (exit 1); exit 1; }; }
1635 # Define the identity of the package.
1640 cat >>confdefs.h
<<_ACEOF
1641 #define PACKAGE "$PACKAGE"
1645 cat >>confdefs.h
<<_ACEOF
1646 #define VERSION "$VERSION"
1649 # Some tools Automake needs.
1651 ACLOCAL
=${ACLOCAL-"${am_missing_run}"aclocal-${am__api_version}""}
1654 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1657 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}"automake-${am__api_version}""}
1660 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1663 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1666 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1668 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1670 # Installed binaries are usually stripped using `strip' when the user
1671 # run `make install-strip'. However `strip' might not be the right
1672 # tool to use in cross-compilation environments, therefore Automake
1673 # will honor the `STRIP' environment variable to overrule this program.
1674 if test "$cross_compiling" != no
; then
1675 if test -n "$ac_tool_prefix"; then
1676 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1677 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1678 echo "$as_me:$LINENO: checking for $ac_word" >&5
1679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680 if test "${ac_cv_prog_STRIP+set}" = set; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 if test -n "$STRIP"; then
1684 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1690 test -z "$as_dir" && as_dir
=.
1691 for ac_exec_ext
in '' $ac_executable_extensions; do
1692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1693 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702 STRIP
=$ac_cv_prog_STRIP
1703 if test -n "$STRIP"; then
1704 echo "$as_me:$LINENO: result: $STRIP" >&5
1705 echo "${ECHO_T}$STRIP" >&6
1707 echo "$as_me:$LINENO: result: no" >&5
1708 echo "${ECHO_T}no" >&6
1712 if test -z "$ac_cv_prog_STRIP"; then
1714 # Extract the first word of "strip", so it can be a program name with args.
1715 set dummy strip
; ac_word
=$2
1716 echo "$as_me:$LINENO: checking for $ac_word" >&5
1717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1721 if test -n "$ac_ct_STRIP"; then
1722 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1724 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1728 test -z "$as_dir" && as_dir
=.
1729 for ac_exec_ext
in '' $ac_executable_extensions; do
1730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1731 ac_cv_prog_ac_ct_STRIP
="strip"
1732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1741 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1742 if test -n "$ac_ct_STRIP"; then
1743 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1744 echo "${ECHO_T}$ac_ct_STRIP" >&6
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1752 STRIP
="$ac_cv_prog_STRIP"
1756 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1758 # We need awk for the "check" target. The system "awk" is bad on
1763 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1764 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1765 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1766 if test "${enable_maintainer_mode+set}" = set; then
1767 enableval
="$enable_maintainer_mode"
1768 USE_MAINTAINER_MODE
=$enableval
1770 USE_MAINTAINER_MODE
=no
1772 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1773 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1776 if test $USE_MAINTAINER_MODE = yes; then
1777 MAINTAINER_MODE_TRUE
=
1778 MAINTAINER_MODE_FALSE
='#'
1780 MAINTAINER_MODE_TRUE
='#'
1781 MAINTAINER_MODE_FALSE
=
1784 MAINT
=$MAINTAINER_MODE_TRUE
1789 echo "$as_me:$LINENO: checking Whether to build inilint" >&5
1790 echo $ECHO_N "checking Whether to build inilint... $ECHO_C" >&6
1791 # Check whether --enable-inilint or --disable-inilint was given.
1792 if test "${enable_inilint+set}" = set; then
1793 enableval
="$enable_inilint"
1794 ac_cv_enable_inilint
=$enableval
1796 ac_cv_enable_inilint
=no
1798 echo "$as_me:$LINENO: result: $ac_cv_enable_inilint" >&5
1799 echo "${ECHO_T}$ac_cv_enable_inilint" >&6
1800 if test $ac_cv_enable_inilint = yes; then
1807 echo "$as_me:$LINENO: checking Whether to enable rsync support" >&5
1808 echo $ECHO_N "checking Whether to enable rsync support... $ECHO_C" >&6
1809 # Check whether --enable-rsync or --disable-rsync was given.
1810 if test "${enable_rsync+set}" = set; then
1811 enableval
="$enable_rsync"
1812 ac_cv_enable_rsync
=$enableval
1814 ac_cv_enable_rsync
=no
1816 echo "$as_me:$LINENO: result: $ac_cv_enable_rsync" >&5
1817 echo "${ECHO_T}$ac_cv_enable_rsync" >&6
1818 if test $ac_cv_enable_rsync = yes; then
1823 ENABLERSYNC_FALSE
='#'
1825 ENABLERSYNC_TRUE
='#'
1830 RSYNCLIB
=rsync
/librsync.la
1833 subdirs
="$subdirs rsync"
1840 ENABLERSYNC_FALSE
='#'
1842 ENABLERSYNC_TRUE
='#'
1853 ac_cpp
='$CXXCPP $CPPFLAGS'
1854 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1855 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1856 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
1859 ac_cpp
='$CXXCPP $CPPFLAGS'
1860 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1861 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1862 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
1863 if test -n "$ac_tool_prefix"; then
1864 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
1866 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1867 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1868 echo "$as_me:$LINENO: checking for $ac_word" >&5
1869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870 if test "${ac_cv_prog_CXX+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 if test -n "$CXX"; then
1874 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1880 test -z "$as_dir" && as_dir
=.
1881 for ac_exec_ext
in '' $ac_executable_extensions; do
1882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893 if test -n "$CXX"; then
1894 echo "$as_me:$LINENO: result: $CXX" >&5
1895 echo "${ECHO_T}$CXX" >&6
1897 echo "$as_me:$LINENO: result: no" >&5
1898 echo "${ECHO_T}no" >&6
1901 test -n "$CXX" && break
1904 if test -z "$CXX"; then
1906 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
1908 # Extract the first word of "$ac_prog", so it can be a program name with args.
1909 set dummy
$ac_prog; ac_word
=$2
1910 echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 if test -n "$ac_ct_CXX"; then
1916 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
1918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1922 test -z "$as_dir" && as_dir
=.
1923 for ac_exec_ext
in '' $ac_executable_extensions; do
1924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925 ac_cv_prog_ac_ct_CXX
="$ac_prog"
1926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
1935 if test -n "$ac_ct_CXX"; then
1936 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1937 echo "${ECHO_T}$ac_ct_CXX" >&6
1939 echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1943 test -n "$ac_ct_CXX" && break
1945 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
1951 # Provide some information about the compiler.
1952 echo "$as_me:$LINENO:" \
1953 "checking for C++ compiler version" >&5
1954 ac_compiler
=`set X $ac_compile; echo $2`
1955 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1956 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959 (exit $ac_status); }
1960 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1961 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }
1965 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1966 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }
1971 cat >conftest.
$ac_ext <<_ACEOF
1972 #line $LINENO "configure"
1973 #include "confdefs.h"
1975 #ifdef F77_DUMMY_MAIN
1979 int F77_DUMMY_MAIN() { return 1; }
1989 ac_clean_files_save
=$ac_clean_files
1990 ac_clean_files
="$ac_clean_files a.out a.exe"
1991 # Try to create an executable without -o first, disregard a.out.
1992 # It will help us diagnose broken compilers, and finding out an intuition
1994 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1995 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1996 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1997 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1998 (eval $ac_link_default) 2>&5
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }; then
2002 # Find the output, starting from the most likely. This scheme is
2003 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2006 # Be careful to initialize this variable, since it used to be cached.
2007 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2009 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2010 ls a.out conftest 2>/dev/null;
2011 ls a.* conftest.* 2>/dev/null`; do
2013 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM
) ;;
2014 a.out
) # We found the default executable, but exeext='' is most
2017 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2018 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2025 echo "$as_me: failed program was:" >&5
2026 cat conftest.
$ac_ext >&5
2027 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5
2028 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
2029 { (exit 77); exit 77; }; }
2032 ac_exeext
=$ac_cv_exeext
2033 echo "$as_me:$LINENO: result: $ac_file" >&5
2034 echo "${ECHO_T}$ac_file" >&6
2036 # Check the compiler produces executables we can run. If not, either
2037 # the compiler is broken, or we cross compile.
2038 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2039 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2040 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2041 # If not cross compiling, check that we can run a simple program.
2042 if test "$cross_compiling" != yes; then
2043 if { ac_try
='./$ac_file'
2044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; }; then
2051 if test "$cross_compiling" = maybe
; then
2054 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2055 If you meant to cross compile, use \`--host'." >&5
2056 echo "$as_me: error: cannot run C++ compiled programs.
2057 If you meant to cross compile, use \`--host'." >&2;}
2058 { (exit 1); exit 1; }; }
2062 echo "$as_me:$LINENO: result: yes" >&5
2063 echo "${ECHO_T}yes" >&6
2065 rm -f a.out a.exe conftest
$ac_cv_exeext
2066 ac_clean_files
=$ac_clean_files_save
2067 # Check the compiler produces executables we can run. If not, either
2068 # the compiler is broken, or we cross compile.
2069 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2070 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2071 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2072 echo "${ECHO_T}$cross_compiling" >&6
2074 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2075 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2077 (eval $ac_link) 2>&5
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }; then
2081 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2082 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2083 # work properly (i.e., refer to `conftest.exe'), while it won't with
2085 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2087 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2088 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2095 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2096 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2097 { (exit 1); exit 1; }; }
2100 rm -f conftest
$ac_cv_exeext
2101 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2102 echo "${ECHO_T}$ac_cv_exeext" >&6
2104 rm -f conftest.
$ac_ext
2105 EXEEXT
=$ac_cv_exeext
2107 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2108 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2109 if test "${ac_cv_objext+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 cat >conftest.
$ac_ext <<_ACEOF
2113 #line $LINENO "configure"
2114 #include "confdefs.h"
2116 #ifdef F77_DUMMY_MAIN
2120 int F77_DUMMY_MAIN() { return 1; }
2130 rm -f conftest.o conftest.obj
2131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2132 (eval $ac_compile) 2>&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }; then
2136 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2138 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2139 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2144 echo "$as_me: failed program was:" >&5
2145 cat conftest.
$ac_ext >&5
2146 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2147 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2148 { (exit 1); exit 1; }; }
2151 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2153 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2154 echo "${ECHO_T}$ac_cv_objext" >&6
2155 OBJEXT
=$ac_cv_objext
2157 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2158 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2159 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 cat >conftest.
$ac_ext <<_ACEOF
2163 #line $LINENO "configure"
2164 #include "confdefs.h"
2166 #ifdef F77_DUMMY_MAIN
2170 int F77_DUMMY_MAIN() { return 1; }
2183 rm -f conftest.
$ac_objext
2184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2185 (eval $ac_compile) 2>&5
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); } &&
2189 { ac_try
='test -s conftest.$ac_objext'
2190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; }; then
2197 echo "$as_me: failed program was:" >&5
2198 cat conftest.
$ac_ext >&5
2201 rm -f conftest.
$ac_objext conftest.
$ac_ext
2202 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2205 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2206 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2207 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2208 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2209 ac_save_CXXFLAGS
=$CXXFLAGS
2211 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2212 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2213 if test "${ac_cv_prog_cxx_g+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 cat >conftest.
$ac_ext <<_ACEOF
2217 #line $LINENO "configure"
2218 #include "confdefs.h"
2220 #ifdef F77_DUMMY_MAIN
2224 int F77_DUMMY_MAIN() { return 1; }
2234 rm -f conftest.
$ac_objext
2235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2236 (eval $ac_compile) 2>&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); } &&
2240 { ac_try
='test -s conftest.$ac_objext'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; }; then
2246 ac_cv_prog_cxx_g
=yes
2248 echo "$as_me: failed program was:" >&5
2249 cat conftest.
$ac_ext >&5
2252 rm -f conftest.
$ac_objext conftest.
$ac_ext
2254 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2255 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2256 if test "$ac_test_CXXFLAGS" = set; then
2257 CXXFLAGS
=$ac_save_CXXFLAGS
2258 elif test $ac_cv_prog_cxx_g = yes; then
2259 if test "$GXX" = yes; then
2265 if test "$GXX" = yes; then
2271 for ac_declaration
in \
2273 '#include <stdlib.h>' \
2274 'extern "C" void std::exit (int) throw (); using std::exit;' \
2275 'extern "C" void std::exit (int); using std::exit;' \
2276 'extern "C" void exit (int) throw ();' \
2277 'extern "C" void exit (int);' \
2280 cat >conftest.
$ac_ext <<_ACEOF
2281 #line $LINENO "configure"
2282 #include "confdefs.h"
2285 #ifdef F77_DUMMY_MAIN
2289 int F77_DUMMY_MAIN() { return 1; }
2299 rm -f conftest.
$ac_objext
2300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2301 (eval $ac_compile) 2>&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); } &&
2305 { ac_try
='test -s conftest.$ac_objext'
2306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; }; then
2313 echo "$as_me: failed program was:" >&5
2314 cat conftest.
$ac_ext >&5
2317 rm -f conftest.
$ac_objext conftest.
$ac_ext
2318 cat >conftest.
$ac_ext <<_ACEOF
2319 #line $LINENO "configure"
2320 #include "confdefs.h"
2322 #ifdef F77_DUMMY_MAIN
2326 int F77_DUMMY_MAIN() { return 1; }
2336 rm -f conftest.
$ac_objext
2337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338 (eval $ac_compile) 2>&5
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); } &&
2342 { ac_try
='test -s conftest.$ac_objext'
2343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }; }; then
2350 echo "$as_me: failed program was:" >&5
2351 cat conftest.
$ac_ext >&5
2353 rm -f conftest.
$ac_objext conftest.
$ac_ext
2356 if test -n "$ac_declaration"; then
2357 echo '#ifdef __cplusplus' >>confdefs.h
2358 echo $ac_declaration >>confdefs.h
2359 echo '#endif' >>confdefs.h
2363 ac_cpp
='$CXXCPP $CPPFLAGS'
2364 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2367 rm -f .deps
2>/dev
/null
2368 mkdir .deps
2>/dev
/null
2369 if test -d .deps
; then
2372 # MS-DOS does not allow filenames that begin with a dot.
2375 rmdir .deps
2>/dev
/null
2378 ac_config_commands
="$ac_config_commands depfiles"
2381 am_make
=${MAKE-make}
2382 cat > confinc
<< 'END'
2386 # If we don't find an include directive, just comment out the code.
2387 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2388 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2392 # First try GNU make style include.
2393 echo "include confinc" > confmf
2394 # We grep out `Entering directory' and `Leaving directory'
2395 # messages which can occur if `w' ends up in MAKEFLAGS.
2396 # In particular we don't look at `^make:' because GNU make might
2397 # be invoked under some other name (usually "gmake"), in which
2398 # case it prints its new name instead of `make'.
2399 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2404 # Now try BSD make style include.
2405 if test "$am__include" = "#"; then
2406 echo '.include "confinc"' > confmf
2407 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2408 am__include
=.include
2415 echo "$as_me:$LINENO: result: $_am_result" >&5
2416 echo "${ECHO_T}$_am_result" >&6
2417 rm -f confinc confmf
2419 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2420 if test "${enable_dependency_tracking+set}" = set; then
2421 enableval
="$enable_dependency_tracking"
2424 if test "x$enable_dependency_tracking" != xno
; then
2425 am_depcomp
="$ac_aux_dir/depcomp"
2430 if test "x$enable_dependency_tracking" != xno; then
2441 depcc
="$CXX" am_compiler_list
=
2443 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2444 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2445 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2449 # We make a subdir and do the tests there. Otherwise we can end up
2450 # making bogus files that we don't know about and never remove. For
2451 # instance it was reported that on HP-UX the gcc test will end up
2452 # making a dummy file named `D' -- because `-MD' means `put the output
2455 # Copy depcomp to subdir because otherwise we won't find it if we're
2456 # using a relative directory.
2457 cp "$am_depcomp" conftest.dir
2460 am_cv_CXX_dependencies_compiler_type
=none
2461 if test "$am_compiler_list" = ""; then
2462 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2464 for depmode
in $am_compiler_list; do
2465 # We need to recreate these files for each test, as the compiler may
2466 # overwrite some of them when testing with obscure command lines.
2467 # This happens at least with the AIX C compiler.
2468 echo '#include "conftest.h"' > conftest.c
2469 echo 'int i;' > conftest.h
2470 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2474 # after this tag, mechanisms are not by side-effect, so they'll
2475 # only be used when explicitly requested
2476 if test "x$enable_dependency_tracking" = xyes
; then
2484 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2485 # mode. It turns out that the SunPro C++ compiler does not properly
2486 # handle `-M -o', and we need to detect this.
2487 if depmode
=$depmode \
2488 source=conftest.c object
=conftest.o \
2489 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2490 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2491 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2492 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2493 am_cv_CXX_dependencies_compiler_type
=$depmode
2501 am_cv_CXX_dependencies_compiler_type
=none
2505 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2506 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2507 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
2511 ac_cpp
='$CPP $CPPFLAGS'
2512 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2513 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2514 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2515 if test -n "$ac_tool_prefix"; then
2516 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2517 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2518 echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2520 if test "${ac_cv_prog_CC+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 if test -n "$CC"; then
2524 ac_cv_prog_CC
="$CC" # Let the user override the test.
2526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2530 test -z "$as_dir" && as_dir
=.
2531 for ac_exec_ext
in '' $ac_executable_extensions; do
2532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2533 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 if test -n "$CC"; then
2544 echo "$as_me:$LINENO: result: $CC" >&5
2545 echo "${ECHO_T}$CC" >&6
2547 echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6
2552 if test -z "$ac_cv_prog_CC"; then
2554 # Extract the first word of "gcc", so it can be a program name with args.
2555 set dummy gcc
; ac_word
=$2
2556 echo "$as_me:$LINENO: checking for $ac_word" >&5
2557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 if test -n "$ac_ct_CC"; then
2562 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2568 test -z "$as_dir" && as_dir
=.
2569 for ac_exec_ext
in '' $ac_executable_extensions; do
2570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2571 ac_cv_prog_ac_ct_CC
="gcc"
2572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2581 if test -n "$ac_ct_CC"; then
2582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2583 echo "${ECHO_T}$ac_ct_CC" >&6
2585 echo "$as_me:$LINENO: result: no" >&5
2586 echo "${ECHO_T}no" >&6
2594 if test -z "$CC"; then
2595 if test -n "$ac_tool_prefix"; then
2596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2597 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2598 echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2600 if test "${ac_cv_prog_CC+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 if test -n "$CC"; then
2604 ac_cv_prog_CC
="$CC" # Let the user override the test.
2606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2610 test -z "$as_dir" && as_dir
=.
2611 for ac_exec_ext
in '' $ac_executable_extensions; do
2612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2613 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 if test -n "$CC"; then
2624 echo "$as_me:$LINENO: result: $CC" >&5
2625 echo "${ECHO_T}$CC" >&6
2627 echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6
2632 if test -z "$ac_cv_prog_CC"; then
2634 # Extract the first word of "cc", so it can be a program name with args.
2635 set dummy cc
; ac_word
=$2
2636 echo "$as_me:$LINENO: checking for $ac_word" >&5
2637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2638 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 if test -n "$ac_ct_CC"; then
2642 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2648 test -z "$as_dir" && as_dir
=.
2649 for ac_exec_ext
in '' $ac_executable_extensions; do
2650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651 ac_cv_prog_ac_ct_CC
="cc"
2652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2661 if test -n "$ac_ct_CC"; then
2662 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663 echo "${ECHO_T}$ac_ct_CC" >&6
2665 echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6
2675 if test -z "$CC"; then
2676 # Extract the first word of "cc", so it can be a program name with args.
2677 set dummy cc
; ac_word
=$2
2678 echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2680 if test "${ac_cv_prog_CC+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 if test -n "$CC"; then
2684 ac_cv_prog_CC
="$CC" # Let the user override the test.
2687 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2691 test -z "$as_dir" && as_dir
=.
2692 for ac_exec_ext
in '' $ac_executable_extensions; do
2693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2695 ac_prog_rejected
=yes
2699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 if test $ac_prog_rejected = yes; then
2706 # We found a bogon in the path, so make sure we never use it.
2707 set dummy
$ac_cv_prog_CC
2709 if test $# != 0; then
2710 # We chose a different compiler from the bogus one.
2711 # However, it has the same basename, so the bogon will be chosen
2712 # first if we set CC to just the basename; use the full file name.
2714 set dummy
"$as_dir/$ac_word" ${1+"$@"}
2722 if test -n "$CC"; then
2723 echo "$as_me:$LINENO: result: $CC" >&5
2724 echo "${ECHO_T}$CC" >&6
2726 echo "$as_me:$LINENO: result: no" >&5
2727 echo "${ECHO_T}no" >&6
2731 if test -z "$CC"; then
2732 if test -n "$ac_tool_prefix"; then
2735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2736 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2737 echo "$as_me:$LINENO: checking for $ac_word" >&5
2738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2739 if test "${ac_cv_prog_CC+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2742 if test -n "$CC"; then
2743 ac_cv_prog_CC
="$CC" # Let the user override the test.
2745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2749 test -z "$as_dir" && as_dir
=.
2750 for ac_exec_ext
in '' $ac_executable_extensions; do
2751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2752 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 if test -n "$CC"; then
2763 echo "$as_me:$LINENO: result: $CC" >&5
2764 echo "${ECHO_T}$CC" >&6
2766 echo "$as_me:$LINENO: result: no" >&5
2767 echo "${ECHO_T}no" >&6
2770 test -n "$CC" && break
2773 if test -z "$CC"; then
2777 # Extract the first word of "$ac_prog", so it can be a program name with args.
2778 set dummy
$ac_prog; ac_word
=$2
2779 echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 if test -n "$ac_ct_CC"; then
2785 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2791 test -z "$as_dir" && as_dir
=.
2792 for ac_exec_ext
in '' $ac_executable_extensions; do
2793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794 ac_cv_prog_ac_ct_CC
="$ac_prog"
2795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2804 if test -n "$ac_ct_CC"; then
2805 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2806 echo "${ECHO_T}$ac_ct_CC" >&6
2808 echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6
2812 test -n "$ac_ct_CC" && break
2821 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2822 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2823 { (exit 1); exit 1; }; }
2825 # Provide some information about the compiler.
2826 echo "$as_me:$LINENO:" \
2827 "checking for C compiler version" >&5
2828 ac_compiler
=`set X $ac_compile; echo $2`
2829 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2830 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }
2834 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2835 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }
2839 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2840 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }
2845 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2846 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2847 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 cat >conftest.
$ac_ext <<_ACEOF
2851 #line $LINENO "configure"
2852 #include "confdefs.h"
2854 #ifdef F77_DUMMY_MAIN
2858 int F77_DUMMY_MAIN() { return 1; }
2871 rm -f conftest.
$ac_objext
2872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2873 (eval $ac_compile) 2>&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); } &&
2877 { ac_try
='test -s conftest.$ac_objext'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2885 echo "$as_me: failed program was:" >&5
2886 cat conftest.
$ac_ext >&5
2889 rm -f conftest.
$ac_objext conftest.
$ac_ext
2890 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2893 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2894 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2895 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2896 ac_test_CFLAGS
=${CFLAGS+set}
2897 ac_save_CFLAGS
=$CFLAGS
2899 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2900 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2901 if test "${ac_cv_prog_cc_g+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2904 cat >conftest.
$ac_ext <<_ACEOF
2905 #line $LINENO "configure"
2906 #include "confdefs.h"
2908 #ifdef F77_DUMMY_MAIN
2912 int F77_DUMMY_MAIN() { return 1; }
2922 rm -f conftest.
$ac_objext
2923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2924 (eval $ac_compile) 2>&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); } &&
2928 { ac_try
='test -s conftest.$ac_objext'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; }; then
2936 echo "$as_me: failed program was:" >&5
2937 cat conftest.
$ac_ext >&5
2940 rm -f conftest.
$ac_objext conftest.
$ac_ext
2942 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2943 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2944 if test "$ac_test_CFLAGS" = set; then
2945 CFLAGS
=$ac_save_CFLAGS
2946 elif test $ac_cv_prog_cc_g = yes; then
2947 if test "$GCC" = yes; then
2953 if test "$GCC" = yes; then
2959 # Some people use a C++ compiler to compile C. Since we use `exit',
2960 # in C++ we need to declare it. In case someone uses the same compiler
2961 # for both compiling C and C++ we need to have the C++ compiler decide
2962 # the declaration of exit, since it's the most demanding environment.
2963 cat >conftest.
$ac_ext <<_ACEOF
2968 rm -f conftest.
$ac_objext
2969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2970 (eval $ac_compile) 2>&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
2974 { ac_try
='test -s conftest.$ac_objext'
2975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2980 for ac_declaration
in \
2982 '#include <stdlib.h>' \
2983 'extern "C" void std::exit (int) throw (); using std::exit;' \
2984 'extern "C" void std::exit (int); using std::exit;' \
2985 'extern "C" void exit (int) throw ();' \
2986 'extern "C" void exit (int);' \
2989 cat >conftest.
$ac_ext <<_ACEOF
2990 #line $LINENO "configure"
2991 #include "confdefs.h"
2994 #ifdef F77_DUMMY_MAIN
2998 int F77_DUMMY_MAIN() { return 1; }
3008 rm -f conftest.
$ac_objext
3009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3010 (eval $ac_compile) 2>&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } &&
3014 { ac_try
='test -s conftest.$ac_objext'
3015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; }; then
3022 echo "$as_me: failed program was:" >&5
3023 cat conftest.
$ac_ext >&5
3026 rm -f conftest.
$ac_objext conftest.
$ac_ext
3027 cat >conftest.
$ac_ext <<_ACEOF
3028 #line $LINENO "configure"
3029 #include "confdefs.h"
3031 #ifdef F77_DUMMY_MAIN
3035 int F77_DUMMY_MAIN() { return 1; }
3045 rm -f conftest.
$ac_objext
3046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3047 (eval $ac_compile) 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try
='test -s conftest.$ac_objext'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3059 echo "$as_me: failed program was:" >&5
3060 cat conftest.
$ac_ext >&5
3062 rm -f conftest.
$ac_objext conftest.
$ac_ext
3065 if test -n "$ac_declaration"; then
3066 echo '#ifdef __cplusplus' >>confdefs.h
3067 echo $ac_declaration >>confdefs.h
3068 echo '#endif' >>confdefs.h
3072 echo "$as_me: failed program was:" >&5
3073 cat conftest.
$ac_ext >&5
3075 rm -f conftest.
$ac_objext conftest.
$ac_ext
3077 ac_cpp
='$CXXCPP $CPPFLAGS'
3078 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3082 depcc
="$CC" am_compiler_list
=
3084 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3085 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3086 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3090 # We make a subdir and do the tests there. Otherwise we can end up
3091 # making bogus files that we don't know about and never remove. For
3092 # instance it was reported that on HP-UX the gcc test will end up
3093 # making a dummy file named `D' -- because `-MD' means `put the output
3096 # Copy depcomp to subdir because otherwise we won't find it if we're
3097 # using a relative directory.
3098 cp "$am_depcomp" conftest.dir
3101 am_cv_CC_dependencies_compiler_type
=none
3102 if test "$am_compiler_list" = ""; then
3103 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3105 for depmode
in $am_compiler_list; do
3106 # We need to recreate these files for each test, as the compiler may
3107 # overwrite some of them when testing with obscure command lines.
3108 # This happens at least with the AIX C compiler.
3109 echo '#include "conftest.h"' > conftest.c
3110 echo 'int i;' > conftest.h
3111 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3115 # after this tag, mechanisms are not by side-effect, so they'll
3116 # only be used when explicitly requested
3117 if test "x$enable_dependency_tracking" = xyes
; then
3125 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3126 # mode. It turns out that the SunPro C++ compiler does not properly
3127 # handle `-M -o', and we need to detect this.
3128 if depmode
=$depmode \
3129 source=conftest.c object
=conftest.o \
3130 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
3131 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
3132 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
3133 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3134 am_cv_CC_dependencies_compiler_type
=$depmode
3142 am_cv_CC_dependencies_compiler_type
=none
3146 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3147 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3148 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3151 if test "x$CC" != xcc
; then
3152 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3153 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3155 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3156 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3158 set dummy
$CC; ac_cc
=`echo $2 |
3159 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3160 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 cat >conftest.
$ac_ext <<_ACEOF
3164 #line $LINENO "configure"
3165 #include "confdefs.h"
3167 #ifdef F77_DUMMY_MAIN
3171 int F77_DUMMY_MAIN() { return 1; }
3181 # Make sure it works both with $CC and with simple cc.
3182 # We do the test twice because some compilers refuse to overwrite an
3183 # existing .o file with -o, though they will create one.
3184 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3185 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } &&
3190 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); };
3196 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
3197 if test "x$CC" != xcc
; then
3198 # Test first that cc exists at all.
3199 if { ac_try
='cc -c conftest.$ac_ext >&5'
3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; }; then
3205 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3206 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } &&
3211 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); };
3220 # cc exists but doesn't like -o.
3221 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3226 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3231 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3232 echo "$as_me:$LINENO: result: yes" >&5
3233 echo "${ECHO_T}yes" >&6
3235 echo "$as_me:$LINENO: result: no" >&5
3236 echo "${ECHO_T}no" >&6
3238 cat >>confdefs.h
<<\_ACEOF
3239 #define NO_MINUS_C_MINUS_O 1
3244 # FIXME: we rely on the cache variable name because
3245 # there is no other way.
3247 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3248 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3249 # Losing compiler, so override with the script.
3250 # FIXME: It is wrong to rewrite CC.
3251 # But if we don't then we get into trouble of one sort or another.
3252 # A longer-term fix would be to have automake use am__CC in this case,
3253 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3254 CC
="$am_aux_dir/compile $CC"
3258 for ac_prog
in flex
lex
3260 # Extract the first word of "$ac_prog", so it can be a program name with args.
3261 set dummy
$ac_prog; ac_word
=$2
3262 echo "$as_me:$LINENO: checking for $ac_word" >&5
3263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3264 if test "${ac_cv_prog_LEX+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 if test -n "$LEX"; then
3268 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3274 test -z "$as_dir" && as_dir
=.
3275 for ac_exec_ext
in '' $ac_executable_extensions; do
3276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277 ac_cv_prog_LEX
="$ac_prog"
3278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 if test -n "$LEX"; then
3288 echo "$as_me:$LINENO: result: $LEX" >&5
3289 echo "${ECHO_T}$LEX" >&6
3291 echo "$as_me:$LINENO: result: no" >&5
3292 echo "${ECHO_T}no" >&6
3295 test -n "$LEX" && break
3297 test -n "$LEX" || LEX
=":"
3299 if test -z "$LEXLIB"
3301 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3302 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3303 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 ac_check_lib_save_LIBS
=$LIBS
3308 cat >conftest.
$ac_ext <<_ACEOF
3309 #line $LINENO "configure"
3310 #include "confdefs.h"
3312 /* Override any gcc2 internal prototype to avoid an error. */
3316 /* We use char because int might match the return type of a gcc2
3317 builtin and then its argument prototype would still apply. */
3319 #ifdef F77_DUMMY_MAIN
3323 int F77_DUMMY_MAIN() { return 1; }
3333 rm -f conftest.
$ac_objext conftest
$ac_exeext
3334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3335 (eval $ac_link) 2>&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } &&
3339 { ac_try
='test -s conftest$ac_exeext'
3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; }; then
3345 ac_cv_lib_fl_yywrap
=yes
3347 echo "$as_me: failed program was:" >&5
3348 cat conftest.
$ac_ext >&5
3349 ac_cv_lib_fl_yywrap
=no
3351 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3352 LIBS
=$ac_check_lib_save_LIBS
3354 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3355 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3356 if test $ac_cv_lib_fl_yywrap = yes; then
3359 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3360 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3361 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 ac_check_lib_save_LIBS
=$LIBS
3366 cat >conftest.
$ac_ext <<_ACEOF
3367 #line $LINENO "configure"
3368 #include "confdefs.h"
3370 /* Override any gcc2 internal prototype to avoid an error. */
3374 /* We use char because int might match the return type of a gcc2
3375 builtin and then its argument prototype would still apply. */
3377 #ifdef F77_DUMMY_MAIN
3381 int F77_DUMMY_MAIN() { return 1; }
3391 rm -f conftest.
$ac_objext conftest
$ac_exeext
3392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3393 (eval $ac_link) 2>&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } &&
3397 { ac_try
='test -s conftest$ac_exeext'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3403 ac_cv_lib_l_yywrap
=yes
3405 echo "$as_me: failed program was:" >&5
3406 cat conftest.
$ac_ext >&5
3407 ac_cv_lib_l_yywrap
=no
3409 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3410 LIBS
=$ac_check_lib_save_LIBS
3412 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3413 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3414 if test $ac_cv_lib_l_yywrap = yes; then
3422 if test "x$LEX" != "x:"; then
3423 echo "$as_me:$LINENO: checking lex output file root" >&5
3424 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3425 if test "${ac_cv_prog_lex_root+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 # The minimal lex program is just a single line: %%. But some broken lexes
3429 # (Solaris, I think it was) want two %% lines, so accommodate them.
3430 cat >conftest.l
<<_ACEOF
3434 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3435 (eval $LEX conftest.l
) 2>&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }
3439 if test -f lex.yy.c
; then
3440 ac_cv_prog_lex_root
=lex.yy
3441 elif test -f lexyy.c
; then
3442 ac_cv_prog_lex_root
=lexyy
3444 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3445 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3446 { (exit 1); exit 1; }; }
3449 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3450 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3452 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
3454 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3455 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3456 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 # POSIX says lex can declare yytext either as a pointer or an array; the
3460 # default is implementation-dependent. Figure out which it is, since
3461 # not all implementations provide the %pointer and %array declarations.
3462 ac_cv_prog_lex_yytext_pointer
=no
3463 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3465 LIBS
="$LIBS $LEXLIB"
3466 cat >conftest.
$ac_ext <<_ACEOF
3467 `cat $LEX_OUTPUT_ROOT.c`
3469 rm -f conftest.
$ac_objext conftest
$ac_exeext
3470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3471 (eval $ac_link) 2>&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } &&
3475 { ac_try
='test -s conftest$ac_exeext'
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; }; then
3481 ac_cv_prog_lex_yytext_pointer
=yes
3483 echo "$as_me: failed program was:" >&5
3484 cat conftest.
$ac_ext >&5
3486 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3488 rm -f "${LEX_OUTPUT_ROOT}.c"
3491 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3492 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3493 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3495 cat >>confdefs.h
<<\_ACEOF
3496 #define YYTEXT_POINTER 1
3502 if test "$LEX" = :; then
3503 LEX
=${am_missing_run}flex
3505 for ac_prog
in 'bison -y' byacc
3507 # Extract the first word of "$ac_prog", so it can be a program name with args.
3508 set dummy
$ac_prog; ac_word
=$2
3509 echo "$as_me:$LINENO: checking for $ac_word" >&5
3510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3511 if test "${ac_cv_prog_YACC+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 if test -n "$YACC"; then
3515 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3521 test -z "$as_dir" && as_dir
=.
3522 for ac_exec_ext
in '' $ac_executable_extensions; do
3523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524 ac_cv_prog_YACC
="$ac_prog"
3525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3533 YACC
=$ac_cv_prog_YACC
3534 if test -n "$YACC"; then
3535 echo "$as_me:$LINENO: result: $YACC" >&5
3536 echo "${ECHO_T}$YACC" >&6
3538 echo "$as_me:$LINENO: result: no" >&5
3539 echo "${ECHO_T}no" >&6
3542 test -n "$YACC" && break
3544 test -n "$YACC" || YACC
="yacc"
3546 # Make sure we can run config.sub.
3547 $ac_config_sub sun4
>/dev
/null
2>&1 ||
3548 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3549 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3550 { (exit 1); exit 1; }; }
3552 echo "$as_me:$LINENO: checking build system type" >&5
3553 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3554 if test "${ac_cv_build+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 ac_cv_build_alias
=$build_alias
3558 test -z "$ac_cv_build_alias" &&
3559 ac_cv_build_alias
=`$ac_config_guess`
3560 test -z "$ac_cv_build_alias" &&
3561 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3562 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3563 { (exit 1); exit 1; }; }
3564 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
3565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3566 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3567 { (exit 1); exit 1; }; }
3570 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3571 echo "${ECHO_T}$ac_cv_build" >&6
3573 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3574 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3575 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3578 echo "$as_me:$LINENO: checking host system type" >&5
3579 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3580 if test "${ac_cv_host+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 ac_cv_host_alias
=$host_alias
3584 test -z "$ac_cv_host_alias" &&
3585 ac_cv_host_alias
=$ac_cv_build_alias
3586 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
3587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3588 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3589 { (exit 1); exit 1; }; }
3592 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3593 echo "${ECHO_T}$ac_cv_host" >&6
3595 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3596 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3597 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3600 # Check whether --enable-shared or --disable-shared was given.
3601 if test "${enable_shared+set}" = set; then
3602 enableval
="$enable_shared"
3603 p
=${PACKAGE-default}
3605 yes) enable_shared
=yes ;;
3606 no
) enable_shared
=no
;;
3609 # Look at the argument we got. We use all the common list separators.
3610 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3611 for pkg
in $enableval; do
3613 if test "X$pkg" = "X$p"; then
3624 # Check whether --enable-static or --disable-static was given.
3625 if test "${enable_static+set}" = set; then
3626 enableval
="$enable_static"
3627 p
=${PACKAGE-default}
3629 yes) enable_static
=yes ;;
3630 no
) enable_static
=no
;;
3633 # Look at the argument we got. We use all the common list separators.
3634 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3635 for pkg
in $enableval; do
3637 if test "X$pkg" = "X$p"; then
3648 # Check whether --enable-fast-install or --disable-fast-install was given.
3649 if test "${enable_fast_install+set}" = set; then
3650 enableval
="$enable_fast_install"
3651 p
=${PACKAGE-default}
3653 yes) enable_fast_install
=yes ;;
3654 no
) enable_fast_install
=no
;;
3656 enable_fast_install
=no
3657 # Look at the argument we got. We use all the common list separators.
3658 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3659 for pkg
in $enableval; do
3661 if test "X$pkg" = "X$p"; then
3662 enable_fast_install
=yes
3669 enable_fast_install
=yes
3673 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3674 if test "${with_gnu_ld+set}" = set; then
3675 withval
="$with_gnu_ld"
3676 test "$withval" = no || with_gnu_ld
=yes
3681 if test "$GCC" = yes; then
3682 # Check if gcc -print-prog-name=ld gives a path.
3683 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3684 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3687 # gcc leaves a trailing carriage return which upsets mingw
3688 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3690 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
3693 # Accept absolute paths.
3695 re_direlt
='/[^/][^/]*/\.\./'
3696 # Canonicalize the path of ld
3697 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
3698 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
3699 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
3701 test -z "$LD" && LD
="$ac_prog"
3704 # If it fails, then pretend we aren't using GCC.
3708 # If it is relative, then search for the first ld in PATH.
3712 elif test "$with_gnu_ld" = yes; then
3713 echo "$as_me:$LINENO: checking for GNU ld" >&5
3714 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3716 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3717 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3719 if test "${lt_cv_path_LD+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 if test -z "$LD"; then
3723 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3724 for ac_dir
in $PATH; do
3726 test -z "$ac_dir" && ac_dir
=.
3727 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
3728 lt_cv_path_LD
="$ac_dir/$ac_prog"
3729 # Check to see if the program is GNU ld. I'd rather use --version,
3730 # but apparently some GNU ld's only accept -v.
3731 # Break only if it was the GNU/non-GNU ld that we prefer.
3732 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
3733 test "$with_gnu_ld" != no
&& break
3735 test "$with_gnu_ld" != yes && break
3741 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
3746 if test -n "$LD"; then
3747 echo "$as_me:$LINENO: result: $LD" >&5
3748 echo "${ECHO_T}$LD" >&6
3750 echo "$as_me:$LINENO: result: no" >&5
3751 echo "${ECHO_T}no" >&6
3753 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3754 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3755 { (exit 1); exit 1; }; }
3756 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3757 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3758 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3762 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
3763 lt_cv_prog_gnu_ld
=yes
3765 lt_cv_prog_gnu_ld
=no
3768 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3769 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3770 with_gnu_ld
=$lt_cv_prog_gnu_ld
3773 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3774 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3775 if test "${lt_cv_ld_reload_flag+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 lt_cv_ld_reload_flag
='-r'
3780 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3781 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3782 reload_flag
=$lt_cv_ld_reload_flag
3783 case $reload_flag in
3785 *) reload_flag
=" $reload_flag" ;;
3787 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
3789 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3790 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3791 if test "${lt_cv_path_NM+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 if test -n "$NM"; then
3795 # Let the user override the test.
3798 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3799 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
3801 test -z "$ac_dir" && ac_dir
=.
3802 tmp_nm
="$ac_dir/${ac_tool_prefix}nm"
3803 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
3804 # Check to see if the nm accepts a BSD-compat flag.
3805 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3806 # nm: unknown option "B" ignored
3807 # Tru64's nm complains that /dev/null is an invalid object file
3808 if ("$tmp_nm" -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
3809 lt_cv_path_NM
="$tmp_nm -B"
3811 elif ("$tmp_nm" -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
3812 lt_cv_path_NM
="$tmp_nm -p"
3815 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3816 continue # so that we can try to find one that supports BSD flags
3821 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
3824 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3825 echo "${ECHO_T}$lt_cv_path_NM" >&6
3828 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3829 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3830 if test "${lt_cv_path_SED+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 # Loop through the user's path and test for sed and gsed.
3834 # Then use that list of sed's as ones to test for truncation.
3835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3839 test -z "$as_dir" && as_dir
=.
3840 for ac_prog
in sed gsed
; do
3841 for ac_exec_ext
in '' $ac_executable_extensions; do
3842 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3843 _sed_list
="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3849 # Create a temporary directory, and hook for its removal unless debugging.
3852 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3853 trap '{ (exit 1); exit 1; }' 1 2 13 15
3856 # Create a (secure) tmp directory for tmp files.
3859 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3860 test -n "$tmp" && test -d "$tmp"
3863 tmp
=$TMPDIR/sed$$
-$RANDOM
3864 (umask 077 && mkdir
$tmp)
3867 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3868 { (exit 1); exit 1; }
3872 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3873 # along with /bin/sed that truncates output.
3874 for _sed
in $_sed_list /usr
/xpg
4/bin
/sed; do
3875 test ! -f ${_sed} && break
3876 cat /dev
/null
> "$tmp/sed.in"
3878 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/sed.in"
3879 # Check for GNU sed and select it if it is found.
3880 if "${_sed}" --version 2>&1 < /dev
/null |
egrep '(GNU)' > /dev
/null
; then
3881 lt_cv_path_SED
=${_sed}
3885 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3886 mv "$tmp/sed.tmp" "$tmp/sed.in"
3887 cp "$tmp/sed.in" "$tmp/sed.nl"
3888 echo >>"$tmp/sed.nl"
3889 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" ||
break
3890 cmp -s "$tmp/sed.out" "$tmp/sed.nl" ||
break
3891 # 10000 chars as input seems more than enough
3892 test $_count -gt 10 && break
3893 _count
=`expr $_count + 1`
3894 if test $_count -gt $_max; then
3896 lt_cv_path_SED
=$_sed
3904 echo "$as_me:$LINENO: result: $SED" >&5
3905 echo "${ECHO_T}$SED" >&6
3907 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3908 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3910 if test "$LN_S" = "ln -s"; then
3911 echo "$as_me:$LINENO: result: yes" >&5
3912 echo "${ECHO_T}yes" >&6
3914 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3915 echo "${ECHO_T}no, using $LN_S" >&6
3918 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3919 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3920 if test "${lt_cv_deplibs_check_method+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 lt_cv_file_magic_cmd
='$MAGIC_CMD'
3924 lt_cv_file_magic_test_file
=
3925 lt_cv_deplibs_check_method
='unknown'
3926 # Need to set the preceding variable on all platforms that support
3927 # interlibrary dependencies.
3928 # 'none' -- dependencies not supported.
3929 # `unknown' -- same as none, but documents that we really don't know.
3930 # 'pass_all' -- all dependencies passed with no checks.
3931 # 'test_compile' -- check by making test program.
3932 # 'file_magic [[regex]]' -- check by looking for files in library path
3933 # which responds to the $file_magic_cmd with a given egrep regex.
3934 # If you have `file' or equivalent on your system and you're not sure
3935 # whether `pass_all' will *always* work, you probably want this one.
3939 lt_cv_deplibs_check_method
=pass_all
3943 lt_cv_deplibs_check_method
=pass_all
3947 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3948 lt_cv_file_magic_cmd
='/usr/bin/file -L'
3949 lt_cv_file_magic_test_file
=/shlib
/libc.so
3952 cygwin
* | mingw
* | pw32
*)
3953 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
3954 lt_cv_file_magic_cmd
='$OBJDUMP -f'
3957 darwin
* | rhapsody
*)
3958 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
3959 lt_cv_file_magic_cmd
='/usr/bin/file -L'
3961 rhapsody
* | darwin1.
[012])
3962 lt_cv_file_magic_test_file
=`/System/Library/Frameworks/System.framework/System`
3965 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
3971 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3974 # Not sure whether the presence of OpenBSD here was a mistake.
3975 # Let's accept both of them until this is cleared up.
3976 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3977 lt_cv_file_magic_cmd
=/usr
/bin
/file
3978 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
3982 lt_cv_deplibs_check_method
=pass_all
3987 lt_cv_deplibs_check_method
=pass_all
3990 hpux10.20
* | hpux11
*)
3991 lt_cv_file_magic_cmd
=/usr
/bin
/file
3992 if test "$host_cpu" = ia64
; then
3993 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3994 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
3996 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3997 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
4001 irix5
* | irix6
* | nonstopux
*)
4003 irix5
* | nonstopux
*)
4004 # this will be overridden with pass_all, but let us keep it just in case
4005 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4009 *-32|
*"-32 ") libmagic
=32-bit;;
4010 *-n32|
*"-n32 ") libmagic
=N32
;;
4011 *-64|
*"-64 ") libmagic
=64-bit;;
4012 *) libmagic
=never-match
;;
4014 # this will be overridden with pass_all, but let us keep it just in case
4015 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4018 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
4019 lt_cv_deplibs_check_method
=pass_all
4022 # This must be Linux ELF.
4025 alpha
* | hppa
* | i
*86 | ia64
* | m68
* | mips | mipsel | powerpc
* | sparc
* | s390
* | sh
*)
4026 lt_cv_deplibs_check_method
=pass_all
;;
4028 # glibc up to 2.1.1 does not perform some relocations on ARM
4029 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4031 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
4035 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4036 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4038 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
4043 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4044 lt_cv_file_magic_cmd
=/usr
/bin
/file
4045 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
4049 lt_cv_deplibs_check_method
=unknown
4053 lt_cv_file_magic_cmd
=/usr
/bin
/file
4054 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
4055 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4056 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4058 lt_cv_deplibs_check_method
='file_magic OpenBSD.* shared library'
4062 osf3
* | osf4
* | osf5
*)
4063 # this will be overridden with pass_all, but let us keep it just in case
4064 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
4065 lt_cv_file_magic_test_file
=/shlib
/libc.so
4066 lt_cv_deplibs_check_method
=pass_all
4070 lt_cv_deplibs_check_method
=pass_all
4074 lt_cv_deplibs_check_method
=pass_all
4075 lt_cv_file_magic_test_file
=/lib
/libc.so
4078 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
4079 case $host_vendor in
4081 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]'
4082 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
4085 lt_cv_deplibs_check_method
=pass_all
4088 lt_cv_file_magic_cmd
='/bin/file'
4089 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4092 lt_cv_file_magic_cmd
='/bin/file'
4093 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4094 lt_cv_file_magic_test_file
=/lib
/libc.so
4099 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
* | sysv4
*uw2
*)
4100 lt_cv_deplibs_check_method
=pass_all
4105 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4106 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4107 file_magic_cmd
=$lt_cv_file_magic_cmd
4108 deplibs_check_method
=$lt_cv_deplibs_check_method
4109 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
4114 # If no C compiler was specified, use CC.
4117 # Allow CC to be a program name with arguments.
4122 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4123 if test "${enable_libtool_lock+set}" = set; then
4124 enableval
="$enable_libtool_lock"
4127 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
4129 # Some flags need to be propagated to the compiler or linker for good
4133 # Find out which ABI we are using.
4134 echo 'int i;' > conftest.
$ac_ext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; then
4140 case `/usr/bin/file conftest.$ac_objext` in
4152 # Find out which ABI we are using.
4153 echo '#line 4153 "configure"' > conftest.
$ac_ext
4154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4155 (eval $ac_compile) 2>&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; then
4159 case `/usr/bin/file conftest.$ac_objext` in
4175 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4176 SAVE_CFLAGS
="$CFLAGS"
4177 CFLAGS
="$CFLAGS -belf"
4178 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4179 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4180 if test "${lt_cv_cc_needs_belf+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 ac_cpp
='$CPP $CPPFLAGS'
4185 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4189 cat >conftest.
$ac_ext <<_ACEOF
4190 #line $LINENO "configure"
4191 #include "confdefs.h"
4193 #ifdef F77_DUMMY_MAIN
4197 int F77_DUMMY_MAIN() { return 1; }
4207 rm -f conftest.
$ac_objext conftest
$ac_exeext
4208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4209 (eval $ac_link) 2>&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } &&
4213 { ac_try
='test -s conftest$ac_exeext'
4214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; }; then
4219 lt_cv_cc_needs_belf
=yes
4221 echo "$as_me: failed program was:" >&5
4222 cat conftest.
$ac_ext >&5
4223 lt_cv_cc_needs_belf
=no
4225 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4227 ac_cpp
='$CPP $CPPFLAGS'
4228 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4229 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4230 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4233 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4234 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4235 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
4236 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4237 CFLAGS
="$SAVE_CFLAGS"
4243 need_locks
="$enable_libtool_lock"
4247 ac_cpp
='$CPP $CPPFLAGS'
4248 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4251 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4252 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4253 # On Suns, sometimes $CPP names a directory.
4254 if test -n "$CPP" && test -d "$CPP"; then
4257 if test -z "$CPP"; then
4258 if test "${ac_cv_prog_CPP+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 # Double quotes because CPP needs to be expanded
4262 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4265 for ac_c_preproc_warn_flag
in '' yes
4267 # Use a header file that comes with gcc, so configuring glibc
4268 # with a fresh cross-compiler works.
4269 # On the NeXT, cc -E runs the code through the compiler's parser,
4270 # not just through cpp. "Syntax error" is here to catch this case.
4271 cat >conftest.
$ac_ext <<_ACEOF
4272 #line $LINENO "configure"
4273 #include "confdefs.h"
4277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4278 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4280 egrep -v '^ *\+' conftest.er1
>conftest.err
4282 cat conftest.err
>&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } >/dev
/null
; then
4285 if test -s conftest.err
; then
4286 ac_cpp_err
=$ac_c_preproc_warn_flag
4293 if test -z "$ac_cpp_err"; then
4296 echo "$as_me: failed program was:" >&5
4297 cat conftest.
$ac_ext >&5
4298 # Broken: fails on valid input.
4301 rm -f conftest.err conftest.
$ac_ext
4303 # OK, works on sane cases. Now check whether non-existent headers
4304 # can be detected and how.
4305 cat >conftest.
$ac_ext <<_ACEOF
4306 #line $LINENO "configure"
4307 #include "confdefs.h"
4308 #include <ac_nonexistent.h>
4310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4311 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4313 egrep -v '^ *\+' conftest.er1
>conftest.err
4315 cat conftest.err
>&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } >/dev
/null
; then
4318 if test -s conftest.err
; then
4319 ac_cpp_err
=$ac_c_preproc_warn_flag
4326 if test -z "$ac_cpp_err"; then
4327 # Broken: success on invalid input.
4330 echo "$as_me: failed program was:" >&5
4331 cat conftest.
$ac_ext >&5
4332 # Passes both tests.
4336 rm -f conftest.err conftest.
$ac_ext
4339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4340 rm -f conftest.err conftest.
$ac_ext
4341 if $ac_preproc_ok; then
4353 echo "$as_me:$LINENO: result: $CPP" >&5
4354 echo "${ECHO_T}$CPP" >&6
4356 for ac_c_preproc_warn_flag
in '' yes
4358 # Use a header file that comes with gcc, so configuring glibc
4359 # with a fresh cross-compiler works.
4360 # On the NeXT, cc -E runs the code through the compiler's parser,
4361 # not just through cpp. "Syntax error" is here to catch this case.
4362 cat >conftest.
$ac_ext <<_ACEOF
4363 #line $LINENO "configure"
4364 #include "confdefs.h"
4368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4369 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4371 egrep -v '^ *\+' conftest.er1
>conftest.err
4373 cat conftest.err
>&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } >/dev
/null
; then
4376 if test -s conftest.err
; then
4377 ac_cpp_err
=$ac_c_preproc_warn_flag
4384 if test -z "$ac_cpp_err"; then
4387 echo "$as_me: failed program was:" >&5
4388 cat conftest.
$ac_ext >&5
4389 # Broken: fails on valid input.
4392 rm -f conftest.err conftest.
$ac_ext
4394 # OK, works on sane cases. Now check whether non-existent headers
4395 # can be detected and how.
4396 cat >conftest.
$ac_ext <<_ACEOF
4397 #line $LINENO "configure"
4398 #include "confdefs.h"
4399 #include <ac_nonexistent.h>
4401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4402 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4404 egrep -v '^ *\+' conftest.er1
>conftest.err
4406 cat conftest.err
>&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } >/dev
/null
; then
4409 if test -s conftest.err
; then
4410 ac_cpp_err
=$ac_c_preproc_warn_flag
4417 if test -z "$ac_cpp_err"; then
4418 # Broken: success on invalid input.
4421 echo "$as_me: failed program was:" >&5
4422 cat conftest.
$ac_ext >&5
4423 # Passes both tests.
4427 rm -f conftest.err conftest.
$ac_ext
4430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4431 rm -f conftest.err conftest.
$ac_ext
4432 if $ac_preproc_ok; then
4435 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
4436 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
4437 { (exit 1); exit 1; }; }
4441 ac_cpp
='$CPP $CPPFLAGS'
4442 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4443 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4444 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4447 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4448 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4449 if test "${ac_cv_header_stdc+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 cat >conftest.
$ac_ext <<_ACEOF
4453 #line $LINENO "configure"
4454 #include "confdefs.h"
4461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4462 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4464 egrep -v '^ *\+' conftest.er1
>conftest.err
4466 cat conftest.err
>&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } >/dev
/null
; then
4469 if test -s conftest.err
; then
4470 ac_cpp_err
=$ac_c_preproc_warn_flag
4477 if test -z "$ac_cpp_err"; then
4478 ac_cv_header_stdc
=yes
4480 echo "$as_me: failed program was:" >&5
4481 cat conftest.
$ac_ext >&5
4482 ac_cv_header_stdc
=no
4484 rm -f conftest.err conftest.
$ac_ext
4486 if test $ac_cv_header_stdc = yes; then
4487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4488 cat >conftest.
$ac_ext <<_ACEOF
4489 #line $LINENO "configure"
4490 #include "confdefs.h"
4494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4495 egrep "memchr" >/dev
/null
2>&1; then
4498 ac_cv_header_stdc
=no
4504 if test $ac_cv_header_stdc = yes; then
4505 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4506 cat >conftest.
$ac_ext <<_ACEOF
4507 #line $LINENO "configure"
4508 #include "confdefs.h"
4512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4513 egrep "free" >/dev
/null
2>&1; then
4516 ac_cv_header_stdc
=no
4522 if test $ac_cv_header_stdc = yes; then
4523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4524 if test "$cross_compiling" = yes; then
4527 cat >conftest.
$ac_ext <<_ACEOF
4528 #line $LINENO "configure"
4529 #include "confdefs.h"
4531 #if ((' ' & 0x0FF) == 0x020)
4532 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4533 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4535 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4536 || ('j' <= (c) && (c) <= 'r') \
4537 || ('s' <= (c) && (c) <= 'z'))
4538 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4541 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4546 for (i = 0; i < 256; i++)
4547 if (XOR (islower (i), ISLOWER (i))
4548 || toupper (i) != TOUPPER (i))
4553 rm -f conftest
$ac_exeext
4554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4555 (eval $ac_link) 2>&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4566 echo "$as_me: program exited with status $ac_status" >&5
4567 echo "$as_me: failed program was:" >&5
4568 cat conftest.
$ac_ext >&5
4570 ac_cv_header_stdc
=no
4572 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4576 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4577 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4578 if test $ac_cv_header_stdc = yes; then
4580 cat >>confdefs.h
<<\_ACEOF
4581 #define STDC_HEADERS 1
4586 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4596 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4597 inttypes.h stdint.h unistd.h
4599 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4600 echo "$as_me:$LINENO: checking for $ac_header" >&5
4601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 cat >conftest.
$ac_ext <<_ACEOF
4606 #line $LINENO "configure"
4607 #include "confdefs.h"
4608 $ac_includes_default
4610 #include <$ac_header>
4612 rm -f conftest.
$ac_objext
4613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4614 (eval $ac_compile) 2>&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try
='test -s conftest.$ac_objext'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 eval "$as_ac_Header=yes"
4626 echo "$as_me: failed program was:" >&5
4627 cat conftest.
$ac_ext >&5
4628 eval "$as_ac_Header=no"
4630 rm -f conftest.
$ac_objext conftest.
$ac_ext
4632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4635 cat >>confdefs.h
<<_ACEOF
4636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4645 for ac_header
in dlfcn.h
4647 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4649 echo "$as_me:$LINENO: checking for $ac_header" >&5
4650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4657 # Is the header compilable?
4658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4660 cat >conftest.
$ac_ext <<_ACEOF
4661 #line $LINENO "configure"
4662 #include "confdefs.h"
4663 $ac_includes_default
4664 #include <$ac_header>
4666 rm -f conftest.
$ac_objext
4667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4668 (eval $ac_compile) 2>&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } &&
4672 { ac_try
='test -s conftest.$ac_objext'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; }; then
4678 ac_header_compiler
=yes
4680 echo "$as_me: failed program was:" >&5
4681 cat conftest.
$ac_ext >&5
4682 ac_header_compiler
=no
4684 rm -f conftest.
$ac_objext conftest.
$ac_ext
4685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4686 echo "${ECHO_T}$ac_header_compiler" >&6
4688 # Is the header present?
4689 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4691 cat >conftest.
$ac_ext <<_ACEOF
4692 #line $LINENO "configure"
4693 #include "confdefs.h"
4694 #include <$ac_header>
4696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4697 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4699 egrep -v '^ *\+' conftest.er1
>conftest.err
4701 cat conftest.err
>&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } >/dev
/null
; then
4704 if test -s conftest.err
; then
4705 ac_cpp_err
=$ac_c_preproc_warn_flag
4712 if test -z "$ac_cpp_err"; then
4713 ac_header_preproc
=yes
4715 echo "$as_me: failed program was:" >&5
4716 cat conftest.
$ac_ext >&5
4717 ac_header_preproc
=no
4719 rm -f conftest.err conftest.
$ac_ext
4720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4721 echo "${ECHO_T}$ac_header_preproc" >&6
4723 # So? What about this header?
4724 case $ac_header_compiler:$ac_header_preproc in
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4738 echo "$as_me:$LINENO: checking for $ac_header" >&5
4739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 eval "$as_ac_Header=$ac_header_preproc"
4745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4750 cat >>confdefs.h
<<_ACEOF
4751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4759 ac_cpp
='$CXXCPP $CPPFLAGS'
4760 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4761 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4762 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4763 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4764 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4765 if test -z "$CXXCPP"; then
4766 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 # Double quotes because CXXCPP needs to be expanded
4770 for CXXCPP
in "$CXX -E" "/lib/cpp"
4773 for ac_cxx_preproc_warn_flag
in '' yes
4775 # Use a header file that comes with gcc, so configuring glibc
4776 # with a fresh cross-compiler works.
4777 # On the NeXT, cc -E runs the code through the compiler's parser,
4778 # not just through cpp. "Syntax error" is here to catch this case.
4779 cat >conftest.
$ac_ext <<_ACEOF
4780 #line $LINENO "configure"
4781 #include "confdefs.h"
4785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4786 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4788 egrep -v '^ *\+' conftest.er1
>conftest.err
4790 cat conftest.err
>&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } >/dev
/null
; then
4793 if test -s conftest.err
; then
4794 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4801 if test -z "$ac_cpp_err"; then
4804 echo "$as_me: failed program was:" >&5
4805 cat conftest.
$ac_ext >&5
4806 # Broken: fails on valid input.
4809 rm -f conftest.err conftest.
$ac_ext
4811 # OK, works on sane cases. Now check whether non-existent headers
4812 # can be detected and how.
4813 cat >conftest.
$ac_ext <<_ACEOF
4814 #line $LINENO "configure"
4815 #include "confdefs.h"
4816 #include <ac_nonexistent.h>
4818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4819 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4821 egrep -v '^ *\+' conftest.er1
>conftest.err
4823 cat conftest.err
>&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); } >/dev
/null
; then
4826 if test -s conftest.err
; then
4827 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4834 if test -z "$ac_cpp_err"; then
4835 # Broken: success on invalid input.
4838 echo "$as_me: failed program was:" >&5
4839 cat conftest.
$ac_ext >&5
4840 # Passes both tests.
4844 rm -f conftest.err conftest.
$ac_ext
4847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4848 rm -f conftest.err conftest.
$ac_ext
4849 if $ac_preproc_ok; then
4854 ac_cv_prog_CXXCPP
=$CXXCPP
4857 CXXCPP
=$ac_cv_prog_CXXCPP
4859 ac_cv_prog_CXXCPP
=$CXXCPP
4861 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4862 echo "${ECHO_T}$CXXCPP" >&6
4864 for ac_cxx_preproc_warn_flag
in '' yes
4866 # Use a header file that comes with gcc, so configuring glibc
4867 # with a fresh cross-compiler works.
4868 # On the NeXT, cc -E runs the code through the compiler's parser,
4869 # not just through cpp. "Syntax error" is here to catch this case.
4870 cat >conftest.
$ac_ext <<_ACEOF
4871 #line $LINENO "configure"
4872 #include "confdefs.h"
4876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4877 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4879 egrep -v '^ *\+' conftest.er1
>conftest.err
4881 cat conftest.err
>&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } >/dev
/null
; then
4884 if test -s conftest.err
; then
4885 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4892 if test -z "$ac_cpp_err"; then
4895 echo "$as_me: failed program was:" >&5
4896 cat conftest.
$ac_ext >&5
4897 # Broken: fails on valid input.
4900 rm -f conftest.err conftest.
$ac_ext
4902 # OK, works on sane cases. Now check whether non-existent headers
4903 # can be detected and how.
4904 cat >conftest.
$ac_ext <<_ACEOF
4905 #line $LINENO "configure"
4906 #include "confdefs.h"
4907 #include <ac_nonexistent.h>
4909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4910 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4912 egrep -v '^ *\+' conftest.er1
>conftest.err
4914 cat conftest.err
>&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } >/dev
/null
; then
4917 if test -s conftest.err
; then
4918 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4925 if test -z "$ac_cpp_err"; then
4926 # Broken: success on invalid input.
4929 echo "$as_me: failed program was:" >&5
4930 cat conftest.
$ac_ext >&5
4931 # Passes both tests.
4935 rm -f conftest.err conftest.
$ac_ext
4938 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4939 rm -f conftest.err conftest.
$ac_ext
4940 if $ac_preproc_ok; then
4943 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4944 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4945 { (exit 1); exit 1; }; }
4949 ac_cpp
='$CXXCPP $CPPFLAGS'
4950 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4951 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4952 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4955 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4957 # find the maximum length of command line arguments
4958 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4959 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4960 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 # On DJGPP, this test can blow up pretty badly due to problems in libc
4969 # (any single argument exceeding 2000 bytes causes a buffer overrun
4970 # during glob expansion). Even if it were fixed, the result of this
4971 # check would be larger than it should be.
4972 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4976 # Under GNU Hurd, this test is not required because there is
4977 # no limit to the length of command line arguments.
4978 # Libtool will interpret -1 as no limit whatsoever
4979 lt_cv_sys_max_cmd_len
=-1;
4983 # If test is not a shell built-in, we'll probably end up computing a
4984 # maximum length that is only half of the actual maximum length, but
4986 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4987 = "XX$testring") >/dev
/null
2>&1 &&
4988 new_result
=`expr "X$testring" : ".*" 2>&1` &&
4989 lt_cv_sys_max_cmd_len
=$new_result &&
4990 test $i != 17 # 1/2 MB should be enough
4993 testring
=$testring$testring
4996 # Add a significant safety factor because C++ compilers can tack on massive
4997 # amounts of additional arguments before passing them to the linker.
4998 # It appears as though 1/2 is a usable value.
4999 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5005 if test -n $lt_cv_sys_max_cmd_len ; then
5006 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5007 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5009 echo "$as_me:$LINENO: result: none" >&5
5010 echo "${ECHO_T}none" >&6
5016 # Check for command to grab the raw symbol name followed by C symbol from nm.
5017 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5018 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5019 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 # These are sane defaults that work on at least a few old systems.
5024 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5026 # Character class describing NM global symbol codes.
5027 symcode
='[BCDEGRST]'
5029 # Regexp to match symbols that can be accessed directly from C.
5030 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
5032 # Transform the above into a raw symbol and a C symbol.
5033 symxfrm
='\1 \2\3 \3'
5035 # Transform an extracted symbol line into a proper C declaration
5036 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5038 # Transform an extracted symbol line into symbol name and symbol address
5039 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5041 # Define system-specific variables.
5046 cygwin
* | mingw
* | pw32
*)
5047 symcode
='[ABCDGISTW]'
5049 hpux
*) # Its linker distinguishes data from code symbols
5050 if test "$host_cpu" = ia64
; then
5051 symcode
='[ABCDEGRST]'
5053 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5054 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5057 symcode
='[BCDEGRST]'
5067 # Handle CRLF in mingw tool chain
5071 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5075 # If we're using GNU nm, then use its standard symbol codes.
5076 if $NM -V 2>&1 |
egrep '(GNU|with BFD)' > /dev
/null
; then
5077 symcode
='[ABCDGISTW]'
5080 # Try without a prefix undercore, then with it.
5081 for ac_symprfx
in "" "_"; do
5083 # Write the raw and C identifiers.
5084 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5086 # Check to see that the pipe works correctly.
5090 cat > conftest.
$ac_ext <<EOF
5095 void nm_test_func(){}
5099 int main(){nm_test_var='a';nm_test_func();return(0);}
5102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5103 (eval $ac_compile) 2>&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; then
5107 # Now try to grab the symbols.
5109 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5110 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } && test -s "$nlist"; then
5114 # Try sorting and uniquifying the output.
5115 if sort "$nlist" |
uniq > "$nlist"T
; then
5116 mv -f "$nlist"T
"$nlist"
5121 # Make sure that we snagged all the symbols we need.
5122 if egrep ' nm_test_var$' "$nlist" >/dev
/null
; then
5123 if egrep ' nm_test_func$' "$nlist" >/dev
/null
; then
5124 cat <<EOF > conftest.$ac_ext
5130 # Now generate the symbol file.
5131 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5133 cat <<EOF >> conftest.$ac_ext
5134 #if defined (__STDC__) && __STDC__
5135 # define lt_ptr_t void *
5137 # define lt_ptr_t char *
5141 /* The mapping between symbol names and symbols. */
5146 lt_preloaded_symbols[] =
5149 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
5150 cat <<\EOF
>> conftest.
$ac_ext
5158 # Now try linking the two files.
5159 mv conftest.
$ac_objext conftstm.
$ac_objext
5160 lt_save_LIBS
="$LIBS"
5161 lt_save_CFLAGS
="$CFLAGS"
5162 LIBS
="conftstm.$ac_objext"
5163 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5165 (eval $ac_link) 2>&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
5171 LIBS
="$lt_save_LIBS"
5172 CFLAGS
="$lt_save_CFLAGS"
5174 echo "cannot find nm_test_func in $nlist" >&5
5177 echo "cannot find nm_test_var in $nlist" >&5
5180 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5183 echo "$progname: failed program was:" >&5
5184 cat conftest.
$ac_ext >&5
5186 rm -f conftest
* conftst
*
5188 # Do not use the global_symbol_pipe unless it works.
5189 if test "$pipe_works" = yes; then
5192 lt_cv_sys_global_symbol_pipe
=
5198 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5199 lt_cv_sys_global_symbol_to_cdecl
=
5201 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5202 echo "$as_me:$LINENO: result: failed" >&5
5203 echo "${ECHO_T}failed" >&6
5205 echo "$as_me:$LINENO: result: ok" >&5
5206 echo "${ECHO_T}ok" >&6
5209 echo "$as_me:$LINENO: checking for objdir" >&5
5210 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5211 if test "${lt_cv_objdir+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 rm -f .libs
2>/dev
/null
5215 mkdir .libs
2>/dev
/null
5216 if test -d .libs
; then
5219 # MS-DOS does not allow filenames that begin with a dot.
5222 rmdir .libs
2>/dev
/null
5224 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5225 echo "${ECHO_T}$lt_cv_objdir" >&6
5226 objdir
=$lt_cv_objdir
5234 # AIX sometimes has problems with the GCC collect2 program. For some
5235 # reason, if we set the COLLECT_NAMES environment variable, the problems
5236 # vanish in a puff of smoke.
5237 if test "X${COLLECT_NAMES+set}" != Xset
; then
5239 export COLLECT_NAMES
5244 # Sed substitution that helps us do robust quoting. It backslashifies
5245 # metacharacters that are still active within double-quoted strings.
5246 Xsed
='sed -e s/^X//'
5247 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
5249 # Same as above, but do not quote variable references.
5250 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
5252 # Sed substitution to delay expansion of an escaped shell variable in a
5253 # double_quote_subst'ed string.
5254 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5256 # Sed substitution to avoid accidental globbing in evaled expressions
5257 no_glob_subst
='s/\*/\\\*/g'
5263 default_ofile
=libtool
5264 can_build_shared
=yes
5266 # All known linkers require a `.a' archive for static linking (except M$VC,
5267 # which needs '.lib').
5269 ltmain
="$ac_aux_dir/ltmain.sh"
5270 ofile
="$default_ofile"
5271 with_gnu_ld
="$lt_cv_prog_gnu_ld"
5273 if test -n "$ac_tool_prefix"; then
5274 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5275 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5276 echo "$as_me:$LINENO: checking for $ac_word" >&5
5277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5278 if test "${ac_cv_prog_RANLIB+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 if test -n "$RANLIB"; then
5282 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5288 test -z "$as_dir" && as_dir
=.
5289 for ac_exec_ext
in '' $ac_executable_extensions; do
5290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5291 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 RANLIB
=$ac_cv_prog_RANLIB
5301 if test -n "$RANLIB"; then
5302 echo "$as_me:$LINENO: result: $RANLIB" >&5
5303 echo "${ECHO_T}$RANLIB" >&6
5305 echo "$as_me:$LINENO: result: no" >&5
5306 echo "${ECHO_T}no" >&6
5310 if test -z "$ac_cv_prog_RANLIB"; then
5311 ac_ct_RANLIB
=$RANLIB
5312 # Extract the first word of "ranlib", so it can be a program name with args.
5313 set dummy ranlib
; ac_word
=$2
5314 echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5316 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 if test -n "$ac_ct_RANLIB"; then
5320 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5326 test -z "$as_dir" && as_dir
=.
5327 for ac_exec_ext
in '' $ac_executable_extensions; do
5328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5329 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
5339 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5340 if test -n "$ac_ct_RANLIB"; then
5341 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5342 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5344 echo "$as_me:$LINENO: result: no" >&5
5345 echo "${ECHO_T}no" >&6
5348 RANLIB
=$ac_ct_RANLIB
5350 RANLIB
="$ac_cv_prog_RANLIB"
5353 if test -n "$ac_tool_prefix"; then
5354 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5355 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5356 echo "$as_me:$LINENO: checking for $ac_word" >&5
5357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5358 if test "${ac_cv_prog_STRIP+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 if test -n "$STRIP"; then
5362 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5368 test -z "$as_dir" && as_dir
=.
5369 for ac_exec_ext
in '' $ac_executable_extensions; do
5370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5371 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 STRIP
=$ac_cv_prog_STRIP
5381 if test -n "$STRIP"; then
5382 echo "$as_me:$LINENO: result: $STRIP" >&5
5383 echo "${ECHO_T}$STRIP" >&6
5385 echo "$as_me:$LINENO: result: no" >&5
5386 echo "${ECHO_T}no" >&6
5390 if test -z "$ac_cv_prog_STRIP"; then
5392 # Extract the first word of "strip", so it can be a program name with args.
5393 set dummy strip
; ac_word
=$2
5394 echo "$as_me:$LINENO: checking for $ac_word" >&5
5395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5396 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 if test -n "$ac_ct_STRIP"; then
5400 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5406 test -z "$as_dir" && as_dir
=.
5407 for ac_exec_ext
in '' $ac_executable_extensions; do
5408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409 ac_cv_prog_ac_ct_STRIP
="strip"
5410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
5419 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5420 if test -n "$ac_ct_STRIP"; then
5421 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5422 echo "${ECHO_T}$ac_ct_STRIP" >&6
5424 echo "$as_me:$LINENO: result: no" >&5
5425 echo "${ECHO_T}no" >&6
5430 STRIP
="$ac_cv_prog_STRIP"
5435 old_CFLAGS
="$CFLAGS"
5437 # Set sane defaults for various variables
5438 test -z "$AR" && AR
=ar
5439 test -z "$AR_FLAGS" && AR_FLAGS
=cru
5440 test -z "$AS" && AS
=as
5441 test -z "$CC" && CC
=cc
5442 test -z "$LTCC" && LTCC
=$CC
5443 test -z "$DLLTOOL" && DLLTOOL
=dlltool
5444 test -z "$LD" && LD
=ld
5445 test -z "$LN_S" && LN_S
="ln -s"
5446 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
5447 test -z "$NM" && NM
=nm
5448 test -z "$SED" && SED
=sed
5449 test -z "$OBJDUMP" && OBJDUMP
=objdump
5450 test -z "$RANLIB" && RANLIB
=:
5451 test -z "$STRIP" && STRIP
=:
5452 test -z "$ac_objext" && ac_objext
=o
5454 # Determine commands to create old-style static archives.
5455 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5456 old_postinstall_cmds
='chmod 644 $oldlib'
5457 old_postuninstall_cmds
=
5459 if test -n "$RANLIB"; then
5462 old_postinstall_cmds
="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5465 old_postinstall_cmds
="\$RANLIB \$oldlib~$old_postinstall_cmds"
5468 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
5471 # Only perform the check for file, if the check method requires it
5472 case $deplibs_check_method in
5474 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5475 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5476 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5477 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
5485 lt_save_MAGIC_CMD
="$MAGIC_CMD"
5486 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5487 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
5488 for ac_dir
in $ac_dummy; do
5490 test -z "$ac_dir" && ac_dir
=.
5491 if test -f $ac_dir/${ac_tool_prefix}file; then
5492 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
5493 if test -n "$file_magic_test_file"; then
5494 case $deplibs_check_method in
5496 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5497 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
5498 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
5499 egrep "$file_magic_regex" > /dev
/null
; then
5504 *** Warning: the command libtool uses to detect shared libraries,
5505 *** $file_magic_cmd, produces output that libtool cannot recognize.
5506 *** The result is that libtool may fail to recognize shared libraries
5507 *** as such. This will affect the creation of libtool libraries that
5508 *** depend on shared libraries, but programs linked with such libtool
5509 *** libraries will work regardless of this problem. Nevertheless, you
5510 *** may want to report the problem to your system manager and/or to
5511 *** bug-libtool@gnu.org
5521 MAGIC_CMD
="$lt_save_MAGIC_CMD"
5526 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
5527 if test -n "$MAGIC_CMD"; then
5528 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5529 echo "${ECHO_T}$MAGIC_CMD" >&6
5531 echo "$as_me:$LINENO: result: no" >&5
5532 echo "${ECHO_T}no" >&6
5535 if test -z "$lt_cv_path_MAGIC_CMD"; then
5536 if test -n "$ac_tool_prefix"; then
5537 echo "$as_me:$LINENO: checking for file" >&5
5538 echo $ECHO_N "checking for file... $ECHO_C" >&6
5539 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
5547 lt_save_MAGIC_CMD
="$MAGIC_CMD"
5548 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5549 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
5550 for ac_dir
in $ac_dummy; do
5552 test -z "$ac_dir" && ac_dir
=.
5553 if test -f $ac_dir/file; then
5554 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
5555 if test -n "$file_magic_test_file"; then
5556 case $deplibs_check_method in
5558 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5559 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
5560 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
5561 egrep "$file_magic_regex" > /dev
/null
; then
5566 *** Warning: the command libtool uses to detect shared libraries,
5567 *** $file_magic_cmd, produces output that libtool cannot recognize.
5568 *** The result is that libtool may fail to recognize shared libraries
5569 *** as such. This will affect the creation of libtool libraries that
5570 *** depend on shared libraries, but programs linked with such libtool
5571 *** libraries will work regardless of this problem. Nevertheless, you
5572 *** may want to report the problem to your system manager and/or to
5573 *** bug-libtool@gnu.org
5583 MAGIC_CMD
="$lt_save_MAGIC_CMD"
5588 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
5589 if test -n "$MAGIC_CMD"; then
5590 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5591 echo "${ECHO_T}$MAGIC_CMD" >&6
5593 echo "$as_me:$LINENO: result: no" >&5
5594 echo "${ECHO_T}no" >&6
5609 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5610 if test "${enable_libtool_lock+set}" = set; then
5611 enableval
="$enable_libtool_lock"
5614 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
5617 # Check whether --with-pic or --without-pic was given.
5618 if test "${with_pic+set}" = set; then
5624 test -z "$pic_mode" && pic_mode
=default
5626 # Use C for the default configuration in the libtool script
5630 ac_cpp
='$CPP $CPPFLAGS'
5631 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5636 # Source file extension for C test sources.
5639 # Object file extension for compiled C test sources.
5643 # Code to be used in simple compile tests
5644 lt_simple_compile_test_code
="int some_variable = 0;"
5646 # Code to be used in simple link tests
5647 lt_simple_link_test_code
='main(){return(0);}'
5650 # If no C compiler was specified, use CC.
5653 # Allow CC to be a program name with arguments.
5659 # Check for any special shared library compilation flags.
5662 if test "$GCC" = no
; then
5665 lt_prog_cc_shlib
='-belf'
5669 if test -n "$lt_prog_cc_shlib"; then
5670 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5671 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5672 if echo "$old_CC $old_CFLAGS " |
egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev
/null
; then :
5674 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5675 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5676 lt_cv_prog_cc_can_build_shared
=no
5682 # Check to make sure the static flag actually works.
5684 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5685 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5686 if test "${lt_prog_compiler_static_works+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 lt_prog_compiler_static_works
=no
5690 save_LDFLAGS
="$LDFLAGS"
5691 LDFLAGS
="$LDFLAGS $lt_prog_compiler_static"
5692 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
5693 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
5694 # The compiler can only warn and ignore the option if not recognized
5695 # So say no if there are warnings
5696 if test -s conftest.err
; then
5697 # Append any errors to the config.log.
5698 cat conftest.err
1>&5
5700 lt_prog_compiler_static_works
=yes
5704 LDFLAGS
="$save_LDFLAGS"
5707 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5708 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5710 if test x
"$lt_prog_compiler_static_works" = xyes
; then
5713 lt_prog_compiler_static
=
5719 lt_prog_compiler_no_builtin_flag
=
5721 if test "$GCC" = yes; then
5722 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
5724 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5725 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5726 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 lt_cv_prog_compiler_rtti_exceptions
=no
5730 ac_outfile
=conftest.
$ac_objext
5731 save_CFLAGS
="$CFLAGS"
5732 CFLAGS
="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5733 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
5734 if (eval $ac_compile 2>conftest.err
) && test -s $ac_outfile; then
5735 # The compiler can only warn and ignore the option if not recognized
5736 # So say no if there are warnings
5737 if test -s conftest.err
; then
5738 # Append any errors to the config.log.
5739 cat conftest.err
1>&5
5741 lt_cv_prog_compiler_rtti_exceptions
=yes
5745 CFLAGS
="$save_CFLAGS"
5748 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5749 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5751 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
5752 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5759 lt_prog_compiler_wl
=
5760 lt_prog_compiler_pic
=
5761 lt_prog_compiler_static
=
5763 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5764 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5766 if test "$GCC" = yes; then
5767 lt_prog_compiler_wl
='-Wl,'
5768 lt_prog_compiler_static
='-static'
5772 # All AIX code is PIC.
5773 if test "$host_cpu" = ia64
; then
5774 # AIX 5 now supports IA64 processor
5775 lt_prog_compiler_static
='-Bstatic'
5780 # FIXME: we need at least 68020 code to build shared libraries, but
5781 # adding the `-m68020' flag to GCC prevents building anything better,
5783 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
5786 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
5787 # PIC is the default for these OSes.
5790 mingw
* | pw32
* | os2
*)
5791 # This hack is so that the source file can tell whether it is being
5792 # built for inclusion in a dll (and should export symbols for example).
5793 lt_prog_compiler_pic
='-DDLL_EXPORT'
5796 darwin
* | rhapsody
*)
5797 # PIC is the default on this platform
5798 # Common symbols not allowed in MH_DYLIB files
5799 lt_prog_compiler_pic
='-fno-common'
5803 # Just because we use GCC doesn't mean we suddenly get shared libraries
5804 # on systems that don't support them.
5805 lt_prog_compiler_can_build_shared
=no
5810 if test -d /usr
/nec
; then
5811 lt_prog_compiler_pic
=-Kconform_pic
5816 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
5817 if test "$host_cpu" != ia64
; then
5818 lt_prog_compiler_pic
='-fPIC'
5823 lt_prog_compiler_pic
='-fPIC'
5827 # PORTME Check for flag to pass linker flags through the system compiler.
5830 lt_prog_compiler_wl
='-Wl,'
5831 if test "$host_cpu" = ia64
; then
5832 # AIX 5 now supports IA64 processor
5833 lt_prog_compiler_static
='-Bstatic'
5835 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
5839 mingw
* | pw32
* | os2
*)
5840 # This hack is so that the source file can tell whether it is being
5841 # built for inclusion in a dll (and should export symbols for example).
5842 lt_prog_compiler_pic
='-DDLL_EXPORT'
5845 hpux9
* | hpux10
* | hpux11
*)
5846 lt_prog_compiler_wl
='-Wl,'
5847 if test "$host_cpu" != ia64
; then
5848 lt_prog_compiler_pic
='+Z'
5850 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5851 lt_prog_compiler_static
='${wl}-a ${wl}archive'
5854 irix5
* | irix6
* | nonstopux
*)
5855 lt_prog_compiler_wl
='-Wl,'
5856 # PIC (with -KPIC) is the default.
5857 lt_prog_compiler_static
='-non_shared'
5861 lt_prog_compiler_pic
='-KPIC'
5862 lt_prog_compiler_static
='-Bstatic'
5865 osf3
* | osf4
* | osf5
*)
5866 lt_prog_compiler_wl
='-Wl,'
5867 # All OSF/1 code is PIC.
5868 lt_prog_compiler_static
='-non_shared'
5872 lt_prog_compiler_pic
='-Kpic'
5873 lt_prog_compiler_static
='-dn'
5877 lt_prog_compiler_wl
='-Wl,'
5878 lt_prog_compiler_pic
='-KPIC'
5879 lt_prog_compiler_static
='-Bstatic'
5883 lt_prog_compiler_wl
='-Qoption ld '
5884 lt_prog_compiler_pic
='-PIC'
5885 lt_prog_compiler_static
='-Bstatic'
5888 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
5889 if test "x$host_vendor" = xsni
; then
5890 lt_prog_compiler_wl
='-LD'
5892 lt_prog_compiler_wl
='-Wl,'
5894 lt_prog_compiler_pic
='-KPIC'
5895 lt_prog_compiler_static
='-Bstatic'
5899 if test -d /usr
/nec
;then
5900 lt_prog_compiler_pic
='-Kconform_pic'
5901 lt_prog_compiler_static
='-Bstatic'
5906 lt_prog_compiler_pic
='-pic'
5907 lt_prog_compiler_static
='-Bstatic'
5911 lt_prog_compiler_can_build_shared
=no
5916 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5917 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5920 # Check to make sure the PIC flag actually works.
5922 if test -n "$lt_prog_compiler_pic"; then
5923 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5924 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5925 if test "${lt_prog_compiler_pic_works+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 lt_prog_compiler_pic_works
=no
5929 ac_outfile
=conftest.
$ac_objext
5930 save_CFLAGS
="$CFLAGS"
5931 CFLAGS
="$CFLAGS $lt_prog_compiler_pic -DPIC"
5932 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
5933 if (eval $ac_compile 2>conftest.err
) && test -s $ac_outfile; then
5934 # The compiler can only warn and ignore the option if not recognized
5935 # So say no if there are warnings
5936 if test -s conftest.err
; then
5937 # Append any errors to the config.log.
5938 cat conftest.err
1>&5
5940 lt_prog_compiler_pic_works
=yes
5944 CFLAGS
="$save_CFLAGS"
5947 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5948 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5950 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
5951 case $lt_prog_compiler_pic in
5953 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
5956 lt_prog_compiler_pic
=
5957 lt_prog_compiler_can_build_shared
=no
5962 # For platforms which do not support PIC, -DPIC is meaningless:
5964 lt_prog_compiler_pic
=
5967 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
5971 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5972 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5973 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 lt_cv_prog_compiler_c_o
=no
5977 $rm -r conftest
2>/dev
/null
5981 save_CFLAGS
="$CFLAGS"
5982 CFLAGS
="$CFLAGS -o out/conftest2.$ac_objext"
5983 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
5985 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5986 # that will create temporary files in the current directory regardless of
5987 # the output directory. Thus, making CWD read-only will cause this test
5988 # to fail, enabling locking or at least warning the user not to do parallel
5992 if (eval $ac_compile 2>out
/conftest.err
) && test -s out
/conftest2.
$ac_objext
5994 # The compiler can only warn and ignore the option if not recognized
5995 # So say no if there are warnings
5996 if test -s out
/conftest.err
; then
5997 # Append any errors to the config.log.
5998 cat out
/conftest.err
1>&5
6000 lt_cv_prog_compiler_c_o
=yes
6003 CFLAGS
="$save_CFLAGS"
6012 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6013 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6016 hard_links
="nottested"
6017 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
6018 # do not overwrite the value of need_locks provided by the user
6019 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6020 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6023 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
6025 ln conftest.a conftest.b
2>&5 || hard_links
=no
6026 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
6027 echo "$as_me:$LINENO: result: $hard_links" >&5
6028 echo "${ECHO_T}$hard_links" >&6
6029 if test "$hard_links" = no
; then
6030 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6031 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6038 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6039 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6042 allow_undefined_flag
=
6045 archive_cmds_need_lc
=
6046 archive_expsym_cmds
=
6047 old_archive_From_new_cmds
=
6048 old_archive_from_expsyms_cmds
=
6049 export_dynamic_flag_spec
=
6050 whole_archive_flag_spec
=
6051 thread_safe_flag_spec
=
6052 hardcode_libdir_flag_spec
=
6053 hardcode_libdir_separator
=
6056 hardcode_shlibpath_var
=unsupported
6057 link_all_deplibs
=unknown
6058 always_export_symbols
=no
6059 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6060 # include_expsyms should be a list of space-separated symbols to be *always*
6061 # included in the symbol list
6063 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6064 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6065 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6066 # as well as any symbol that contains `d'.
6067 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
6068 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6069 # platforms (ab)use it in PIC code, but their linkers get confused if
6070 # the symbol is explicitly referenced. Since portable code cannot
6071 # rely on this symbol name, it's probably fine to never include it in
6072 # preloaded symbol tables.
6073 extract_expsyms_cmds
=
6076 cygwin
* | mingw
* | pw32
*)
6077 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6078 # When not using gcc, we currently assume that we are using
6079 # Microsoft Visual C++.
6080 if test "$GCC" != yes; then
6090 if test "$with_gnu_ld" = yes; then
6091 # If archive_cmds runs LD, not CC, wlarc should be empty
6094 # See if GNU ld supports shared libraries.
6096 aix3
* | aix4
* | aix5
*)
6097 # On AIX/PPC, the GNU linker is very broken
6098 if test "$host_cpu" != ia64
; then
6102 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6103 *** to be unable to reliably create shared libraries on AIX.
6104 *** Therefore, libtool is disabling shared libraries support. If you
6105 *** really care for shared libraries, you may want to modify your PATH
6106 *** so that a non-GNU linker is found, and then restart.
6113 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)'
6114 hardcode_libdir_flag_spec
='-L$libdir'
6115 hardcode_minus_L
=yes
6117 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6118 # that the semantics of dynamic libraries on AmigaOS, at least up
6119 # to version 4, is to share data among multiple programs linked
6120 # with the same dynamic library. Since this doesn't match the
6121 # behavior of shared libraries on other platforms, we can't use
6127 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
6128 allow_undefined_flag
=unsupported
6129 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6130 # support --undefined. This deserves some investigation. FIXME
6131 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6138 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6139 # as there is no search path for DLLs.
6140 hardcode_libdir_flag_spec
='-L$libdir'
6141 allow_undefined_flag
=
6142 always_export_symbols
=yes
6144 if $LD --help 2>&1 |
egrep 'auto-import' > /dev
/null
; then
6145 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6146 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-retain-symbols-file $wl$export_symbols ${wl}--out-implib,$lib'
6153 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
6154 # no search path for DLLs.
6155 hardcode_libdir_flag_spec
='-L$libdir'
6156 allow_undefined_flag
=unsupported
6157 always_export_symbols
=yes
6159 extract_expsyms_cmds
='test -f $output_objdir/impgen.c || \
6160 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6161 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6162 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6163 else $CC -o impgen impgen.c ; fi)~
6164 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6166 old_archive_from_expsyms_cmds
='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6168 # FIXME: what about values for MSVC?
6169 dll_entry
=__cygwin_dll_entry@
12
6173 dll_entry
=_DllMainCRTStartup@
12
6177 dll_exclude_symbols
=DllMain@
12,_cygwin_dll_entry@
12,_cygwin_noncygwin_dll_entry@
12,DllMainCRTStartup@
12,DllEntryPoint@
12
6179 # recent cygwin and mingw systems supply a stub DllMain which the user
6180 # can override, but on older systems we have to supply one (in ltdll.c)
6181 if test "x$lt_cv_need_dllmain" = "xyes"; then
6182 ltdll_obj
='$output_objdir/$soname-ltdll.'"$ac_objext "
6183 ltdll_cmds
='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6184 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6190 # Extract the symbol export list from an `--export-all' def file,
6191 # then regenerate the def file from the symbol export list, so that
6192 # the compiled dll only exports the symbol export list.
6193 # Be careful not to strip the DATA tag left by newer dlltools.
6194 export_symbols_cmds
="$ltdll_cmds"'
6195 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6196 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6198 # If the export-symbols file already is a .def file (1st line
6199 # is EXPORTS), use it as is.
6200 # If DATA tags from a recent dlltool are present, honour them!
6201 archive_expsym_cmds
='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6202 cp $export_symbols $output_objdir/$soname-def;
6204 echo EXPORTS > $output_objdir/$soname-def;
6206 cat $export_symbols | while read symbol; do
6209 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6210 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6212 _lt_hint=`expr 1 + \$_lt_hint`;
6216 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6217 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6218 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6219 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6220 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6224 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
6225 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6228 archive_cmds
='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6229 archive_expsym_cmds
='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6234 if $LD -v 2>&1 |
egrep 'BFD 2\.8' > /dev
/null
; then
6238 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6239 *** create shared libraries on Solaris systems. Therefore, libtool
6240 *** is disabling shared libraries support. We urge you to upgrade GNU
6241 *** binutils to release 2.9.1 or newer. Another option is to modify
6242 *** your PATH or compiler configuration so that the native linker is
6243 *** used, and then restart.
6246 elif $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
6247 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6248 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6255 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6258 hardcode_shlibpath_var
=no
6262 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
6263 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6264 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6271 if test "$ld_shlibs" = yes; then
6272 runpath_var
=LD_RUN_PATH
6273 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
6274 export_dynamic_flag_spec
='${wl}--export-dynamic'
6276 cygwin
* | mingw
* | pw32
*)
6277 # dlltool doesn't understand --whole-archive et. al.
6278 whole_archive_flag_spec
=
6281 # ancient GNU ld didn't support --whole-archive et. al.
6282 if $LD --help 2>&1 |
egrep 'no-whole-archive' > /dev
/null
; then
6283 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6285 whole_archive_flag_spec
=
6291 # PORTME fill in a description of your system's linker (not GNU ld)
6294 allow_undefined_flag
=unsupported
6295 always_export_symbols
=yes
6296 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'
6297 # Note: this linker hardcodes the directories in LIBPATH if there
6298 # are no directories specified by -L.
6299 hardcode_minus_L
=yes
6300 if test "$GCC" = yes && test -z "$link_static_flag"; then
6301 # Neither direct hardcoding nor static linking is supported with a
6303 hardcode_direct
=unsupported
6308 if test "$host_cpu" = ia64
; then
6309 # On IA64, the linker does run time linking by default, so we don't
6310 # have to do anything special.
6311 aix_use_runtimelinking
=no
6312 exp_sym_flag
='-Bexport'
6315 # If we're using GNU nm, then we don't want the "-C" option.
6316 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6317 if $NM -V 2>&1 |
egrep '(GNU)' > /dev
/null
; then
6318 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6320 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'
6322 aix_use_runtimelinking
=no
6324 # Test if we are trying to use run time linking or normal
6325 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6326 # need to do runtime linking.
6327 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
6328 for ld_flag
in $LDFLAGS; do
6329 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
6330 aix_use_runtimelinking
=yes
6336 exp_sym_flag
='-bexport'
6337 no_entry_flag
='-bnoentry'
6340 # When large executables or shared objects are built, AIX ld can
6341 # have problems creating the table of contents. If linking a library
6342 # or program results in "error TOC overflow" add -mminimal-toc to
6343 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6344 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6348 hardcode_libdir_separator
=':'
6349 link_all_deplibs
=yes
6351 if test "$GCC" = yes; then
6352 case $host_os in aix4.012|aix4.012.
*)
6353 # We only want to do this on AIX 4.2 and lower, the check
6354 # below for broken collect2 doesn't work under 4.3+
6355 collect2name
=`${CC} -print-prog-name=collect2`
6356 if test -f "$collect2name" && \
6357 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
6359 # We have reworked collect2
6362 # We have old collect2
6363 hardcode_direct
=unsupported
6364 # It fails to find uninstalled libraries when the uninstalled
6365 # path is not listed in the libpath. Setting hardcode_minus_L
6366 # to unsupported forces relinking
6367 hardcode_minus_L
=yes
6368 hardcode_libdir_flag_spec
='-L$libdir'
6369 hardcode_libdir_separator
=
6372 shared_flag
='-shared'
6375 if test "$host_cpu" = ia64
; then
6376 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6377 # chokes on -Wl,-G. The following line is correct:
6380 if test "$aix_use_runtimelinking" = yes; then
6381 shared_flag
='${wl}-G'
6383 shared_flag
='${wl}-bM:SRE'
6388 # It seems that -bexpall does not export symbols beginning with
6389 # underscore (_), so it is better to generate a list of symbols to export.
6390 always_export_symbols
=yes
6391 if test "$aix_use_runtimelinking" = yes; then
6392 # Warning - without using the other runtime loading flags (-brtl),
6393 # -berok will link without error, but may produce a broken library.
6394 allow_undefined_flag
='-berok'
6395 # Determine the default libpath from the value encoded in an empty executable.
6396 cat >conftest.
$ac_ext <<_ACEOF
6397 #line $LINENO "configure"
6398 #include "confdefs.h"
6400 #ifdef F77_DUMMY_MAIN
6404 int F77_DUMMY_MAIN() { return 1; }
6414 rm -f conftest.
$ac_objext conftest
$ac_exeext
6415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6416 (eval $ac_link) 2>&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try
='test -s conftest$ac_exeext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6427 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6429 # Check for a 64-bit object if we didn't find anything.
6430 if test -z "$aix_libpath"; then aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6433 echo "$as_me: failed program was:" >&5
6434 cat conftest.
$ac_ext >&5
6436 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6437 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
6439 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
6440 archive_expsym_cmds
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6442 if test "$host_cpu" = ia64; then
6443 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr
/lib
:/lib
'
6444 allow_undefined_flag="-z nodefs"
6445 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
6447 # Determine the default libpath from the value encoded in an empty executable.
6448 cat >conftest.$ac_ext <<_ACEOF
6449 #line $LINENO "configure
"
6450 #include "confdefs.h
"
6452 #ifdef F77_DUMMY_MAIN
6456 int F77_DUMMY_MAIN() { return 1; }
6466 rm -f conftest.$ac_objext conftest$ac_exeext
6467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6468 (eval $ac_link) 2>&5
6470 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6471 (exit $ac_status); } &&
6472 { ac_try='test -s conftest$ac_exeext'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6477 (exit $ac_status); }; }; then
6479 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6481 # Check for a 64-bit object if we didn't find anything.
6482 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6485 echo "$as_me: failed program was
:" >&5
6486 cat conftest.$ac_ext >&5
6488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6489 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
6491 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6492 # Warning - without using the other run time loading flags,
6493 # -berok will link without error, but may produce a broken library.
6494 no_undefined_flag=' ${wl}-bernotok'
6495 allow_undefined_flag=' ${wl}-berok'
6496 # -bexpall does not export symbols beginning with underscore (_)
6497 always_export_symbols=yes
6498 # Exported symbols can be pulled into shared objects from archives
6499 whole_archive_flag_spec=' '
6500 archive_cmds_need_lc=yes
6501 # This is similar to how AIX traditionally builds it's shared libraries.
6502 archive_expsym_cmds="\
$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6508 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)'
6509 hardcode_libdir_flag_spec
='-L$libdir'
6510 hardcode_minus_L
=yes
6511 # see comment about different semantics on the GNU ld section
6516 export_dynamic_flag_spec
=-rdynamic
6519 cygwin
* | mingw
* | pw32
*)
6520 # When not using gcc, we currently assume that we are using
6521 # Microsoft Visual C++.
6522 # hardcode_libdir_flag_spec is actually meaningless, as there is
6523 # no search path for DLLs.
6524 hardcode_libdir_flag_spec
=' '
6525 allow_undefined_flag
=unsupported
6526 # Tell ltmain to make .lib files, not .a files.
6528 # FIXME: Setting linknames here is a bad hack.
6529 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6530 # The linker will automatically build a .lib file if we build a DLL.
6531 old_archive_From_new_cmds
='true'
6532 # FIXME: Should let the user specify the lib program.
6533 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
6534 fix_srcfile_path
='`cygpath -w "$srcfile"`'
6537 darwin
* | rhapsody
*)
6539 rhapsody
* | darwin1.
[012])
6540 allow_undefined_flag
='-undefined suppress'
6543 allow_undefined_flag
='-flat_namespace -undefined suppress'
6547 # FIXME: Relying on posixy $() will cause problems for
6548 # cross-compilation, but unfortunately the echo tests do not
6549 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6550 # `"' quotes if we put them in here... so don't!
6551 archive_cmds
='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6552 # We need to add '_' to the symbols in $export_symbols first
6553 #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
6555 hardcode_shlibpath_var
=no
6556 whole_archive_flag_spec
='-all_load $convenience'
6560 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6561 hardcode_libdir_flag_spec
='-L$libdir'
6562 hardcode_shlibpath_var
=no
6569 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6570 # support. Future versions do this automatically, but an explicit c++rt0.o
6571 # does not break anything, and helps significantly (at the cost of a little
6574 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6575 hardcode_libdir_flag_spec
='-R$libdir'
6577 hardcode_shlibpath_var
=no
6580 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6582 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6584 hardcode_minus_L
=yes
6585 hardcode_shlibpath_var
=no
6588 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6590 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6591 hardcode_libdir_flag_spec
='-R$libdir'
6593 hardcode_shlibpath_var
=no
6596 hpux9
* | hpux10
* | hpux11
*)
6597 if test "$GCC" = yes; then
6600 archive_cmds
='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6603 if test "$host_cpu" = ia64
; then
6604 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6606 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6613 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'
6616 if test "$host_cpu" = ia64
; then
6617 archive_cmds
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6619 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6624 if test "$host_cpu" = ia64
; then
6625 hardcode_libdir_flag_spec
='-L$libdir'
6627 hardcode_shlibpath_var
=no
6629 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
6630 hardcode_libdir_separator
=:
6633 # hardcode_minus_L: Not really in the search PATH,
6634 # but as the default location of the library.
6635 hardcode_minus_L
=yes
6636 export_dynamic_flag_spec
='${wl}-E'
6639 irix5
* | irix6
* | nonstopux
*)
6640 if test "$GCC" = yes; then
6641 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6643 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6645 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
6646 hardcode_libdir_separator
=:
6647 link_all_deplibs
=yes
6651 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
6652 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6654 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6656 hardcode_libdir_flag_spec
='-R$libdir'
6658 hardcode_shlibpath_var
=no
6662 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6664 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
6665 hardcode_libdir_separator
=:
6666 hardcode_shlibpath_var
=no
6671 hardcode_shlibpath_var
=no
6673 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6674 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6675 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
6676 export_dynamic_flag_spec
='${wl}-E'
6679 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
6680 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6681 hardcode_libdir_flag_spec
='-R$libdir'
6684 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6685 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
6692 hardcode_libdir_flag_spec
='-L$libdir'
6693 hardcode_minus_L
=yes
6694 allow_undefined_flag
=unsupported
6695 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'
6696 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6700 if test "$GCC" = yes; then
6701 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
6702 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6704 allow_undefined_flag
=' -expect_unresolved \*'
6705 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6707 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
6708 hardcode_libdir_separator
=:
6711 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
6712 if test "$GCC" = yes; then
6713 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
6714 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6715 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
6717 allow_undefined_flag
=' -expect_unresolved \*'
6718 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6719 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6720 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6722 # Both c and cxx compiler support -rpath directly
6723 hardcode_libdir_flag_spec
='-rpath $libdir'
6725 hardcode_libdir_separator
=:
6729 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6730 hardcode_shlibpath_var
=no
6731 export_dynamic_flag_spec
='${wl}-Bexport'
6732 runpath_var
=LD_RUN_PATH
6733 hardcode_runpath_var
=yes
6737 no_undefined_flag
=' -z text'
6738 if test "$GCC" = yes; then
6739 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6740 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6741 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6743 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6744 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6745 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6747 hardcode_libdir_flag_spec
='-R$libdir'
6748 hardcode_shlibpath_var
=no
6750 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
6751 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6752 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
6754 link_all_deplibs
=yes
6758 if test "x$host_vendor" = xsequent
; then
6759 # Use $CC to link under sequent, because it throws in some extra .o
6760 # files that make .init and .fini sections work.
6761 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6763 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6765 hardcode_libdir_flag_spec
='-L$libdir'
6767 hardcode_minus_L
=yes
6768 hardcode_shlibpath_var
=no
6772 if test "x$host_vendor" = xsni
; then
6773 archive_cmds
='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6774 hardcode_direct
=yes # is this really true???
6776 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6777 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
6779 runpath_var
='LD_RUN_PATH'
6780 hardcode_shlibpath_var
=no
6784 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6785 hardcode_shlibpath_var
=no
6786 export_dynamic_flag_spec
='-Bexport'
6790 if test -d /usr
/nec
; then
6791 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6792 hardcode_shlibpath_var
=no
6793 runpath_var
=LD_RUN_PATH
6794 hardcode_runpath_var
=yes
6800 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6803 hardcode_shlibpath_var
=no
6804 hardcode_runpath_var
=yes
6805 runpath_var
=LD_RUN_PATH
6808 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
6809 no_undefined_flag
='${wl}-z ${wl}text'
6810 if test "$GCC" = yes; then
6811 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6813 archive_cmds
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6815 runpath_var
='LD_RUN_PATH'
6816 hardcode_shlibpath_var
=no
6820 no_undefined_flag
=' -z text'
6821 # $CC -shared without GNU ld will not create a library from C++
6822 # object files and a static libstdc++, better avoid it by now
6823 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6824 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6825 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6826 hardcode_libdir_flag_spec
=
6827 hardcode_shlibpath_var
=no
6828 runpath_var
='LD_RUN_PATH'
6832 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6833 hardcode_libdir_flag_spec
='-L$libdir'
6834 hardcode_shlibpath_var
=no
6843 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6844 echo "${ECHO_T}$ld_shlibs" >&6
6845 test "$ld_shlibs" = no
&& can_build_shared
=no
6847 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
6848 if test "$GCC" = yes; then
6849 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6853 # Do we need to explicitly link libc?
6855 archive_cmds_need_lc
=yes
6856 if test "$enable_shared" = yes && test "$GCC" = yes; then
6857 case $archive_cmds in
6859 # FIXME: we may have to deal with multi-command sequences.
6862 # Test whether the compiler implicitly links with -lc since on some
6863 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6864 # to ld, don't add -lc before -lgcc.
6865 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6866 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6868 echo 'static int dummy;' > conftest.
$ac_ext
6870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6871 (eval $ac_compile) 2>&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); } 2>conftest.err
; then
6877 libobjs
=conftest.
$ac_objext
6879 wl
=$lt_prog_compiler_wl
6885 lt_save_allow_undefined_flag
=$allow_undefined_flag
6886 allow_undefined_flag
=
6887 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6888 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }
6893 archive_cmds_need_lc
=no
6895 archive_cmds_need_lc
=yes
6897 allow_undefined_flag
=$lt_save_allow_undefined_flag
6899 cat conftest.err
1>&5
6902 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6903 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6908 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6909 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6911 if test -n "$hardcode_libdir_flag_spec" || \
6912 test -n "$runpath_var "; then
6914 # We can hardcode non-existant directories.
6915 if test "$hardcode_direct" != no
&&
6916 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6917 # have to relink, otherwise we might link with an installed library
6918 # when we should be linking with a yet-to-be-installed one
6919 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
6920 test "$hardcode_minus_L" != no
; then
6921 # Linking always hardcodes the temporary library directory.
6922 hardcode_action
=relink
6924 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6925 hardcode_action
=immediate
6928 # We cannot hardcode anything, or else we can only hardcode existing
6930 hardcode_action
=unsupported
6932 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6933 echo "${ECHO_T}$hardcode_action" >&6
6935 if test "$hardcode_action" = relink
; then
6936 # Fast installation is not supported
6937 enable_fast_install
=no
6938 elif test "$shlibpath_overrides_runpath" = yes ||
6939 test "$enable_shared" = no
; then
6940 # Fast installation is not necessary
6941 enable_fast_install
=needless
6946 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6947 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6948 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
6949 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
6950 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
6951 echo "$as_me:$LINENO: result: yes" >&5
6952 echo "${ECHO_T}yes" >&6
6954 echo "$as_me:$LINENO: result: no" >&5
6955 echo "${ECHO_T}no" >&6
6958 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6959 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6961 libname_spec
='lib$name'
6968 shlibpath_overrides_runpath
=unknown
6970 dynamic_linker
="$host_os ld.so"
6971 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
6972 if test "$GCC" = yes; then
6973 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
6974 if echo "$sys_lib_search_path_spec" |
egrep ';' >/dev
/null
; then
6975 # if the path contains ";" then we assume it to be the separator
6976 # otherwise default to the standard path separator (i.e. ":") - it is
6977 # assumed that no part of a normal pathname contains ";" but that should
6978 # okay in the real world where ";" in dirpaths is itself problematic.
6979 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6981 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6984 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
6986 need_lib_prefix
=unknown
6987 hardcode_into_libs
=no
6989 # when you set need_version to no, make sure it does not cause -set_version
6990 # flags to be left without arguments
6991 need_version
=unknown
6996 library_names_spec
='${libname}${release}.so$versuffix $libname.a'
6997 shlibpath_var
=LIBPATH
6999 # AIX 3 has no versioning support, so we append a major version to the name.
7000 soname_spec
='${libname}${release}.so$major'
7005 if test "$host_cpu" = ia64
; then
7006 # AIX 5 supports IA64
7007 library_names_spec
='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7008 shlibpath_var
=LD_LIBRARY_PATH
7010 # With GCC up to 2.95.x, collect2 would create an import file
7011 # for dependence libraries. The import file would start with
7012 # the line `#! .'. This would cause the generated library to
7013 # depend on `.', always an invalid library. This was fixed in
7014 # development snapshots of GCC prior to 3.0.
7016 aix4 | aix4.
[01] | aix4.
[01].
*)
7017 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7019 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
7026 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7027 # soname into executable. Probably we can add versioning support to
7028 # collect2, so additional links can be useful in future.
7029 if test "$aix_use_runtimelinking" = yes; then
7030 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7031 # instead of lib<name>.a to let people know that these are not
7032 # typical AIX shared libraries.
7033 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7035 # We preserve .a as extension for shared libraries through AIX4.2
7036 # and later when we are not doing run time linking.
7037 library_names_spec
='${libname}${release}.a $libname.a'
7038 soname_spec
='${libname}${release}.so$major'
7040 shlibpath_var
=LIBPATH
7045 library_names_spec
='$libname.ixlibrary $libname.a'
7046 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7047 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
7051 library_names_spec
='${libname}.so'
7052 dynamic_linker
="$host_os ld.so"
7053 shlibpath_var
=LIBRARY_PATH
7059 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7060 soname_spec
='${libname}${release}.so$major'
7061 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
7062 shlibpath_var
=LD_LIBRARY_PATH
7063 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7064 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
7065 # the default ld.so.conf also contains /usr/contrib/lib and
7066 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7067 # libtool to hard-code these into programs
7070 cygwin
* | mingw
* | pw32
*)
7071 version_type
=windows
7074 case $GCC,$host_os in
7076 library_names_spec
='$libname.dll.a'
7077 sys_lib_search_path_spec
="/lib /lib/w32api /usr/lib /usr/local/lib"
7078 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7079 postinstall_cmds
='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7080 dldir=$destdir/`dirname \$dlpath`~
7081 test -d \$dldir || mkdir -p \$dldir~
7082 $install_prog .libs/$dlname \$dldir/$dlname'
7083 postuninstall_cmds
='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7084 dlpath=$dir/\$dldll~
7086 shlibpath_overrides_runpath
=yes
7089 library_names_spec
='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7090 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
7091 if echo "$sys_lib_search_path_spec" |
egrep ';[C-Z]:/' >/dev
/null
; then
7092 # It is most probably a Windows format PATH printed by
7093 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7094 # path with ; separators, and with drive letters. We can handle the
7095 # drive letters (cygwin fileutils understands them), so leave them,
7096 # especially as we might pass files found there to a mingw objdump,
7097 # which wouldn't understand a cygwinified path. Ahh.
7098 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
7100 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
7104 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7107 library_names_spec
='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7110 dynamic_linker
='Win32 ld.exe'
7111 # FIXME: first we should search . and the directory the executable is in
7115 darwin
* | rhapsody
*)
7116 dynamic_linker
="$host_os dyld"
7120 # FIXME: Relying on posixy $() will cause problems for
7121 # cross-compilation, but unfortunately the echo tests do not
7122 # yet detect zsh echo's removal of \ escapes.
7123 library_names_spec
='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
7124 soname_spec
='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7125 shlibpath_overrides_runpath
=yes
7126 shlibpath_var
=DYLD_LIBRARY_PATH
7133 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7134 soname_spec
='${libname}${release}.so$major'
7135 shlibpath_var
=LD_LIBRARY_PATH
7143 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7144 version_type
=freebsd-
$objformat
7145 case $version_type in
7147 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7152 library_names_spec
='${libname}${release}.so$versuffix $libname.so$versuffix'
7156 shlibpath_var
=LD_LIBRARY_PATH
7159 shlibpath_overrides_runpath
=yes
7161 freebsd3.01
* | freebsdelf3.01
*)
7162 shlibpath_overrides_runpath
=yes
7163 hardcode_into_libs
=yes
7166 shlibpath_overrides_runpath
=no
7167 hardcode_into_libs
=yes
7176 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7177 soname_spec
='${libname}${release}.so$major'
7178 shlibpath_var
=LD_LIBRARY_PATH
7179 hardcode_into_libs
=yes
7182 hpux9
* | hpux10
* | hpux11
*)
7183 # Give a soname corresponding to the major version so that dld.sl refuses to
7184 # link against other versions.
7188 if test "$host_cpu" = ia64
; then
7189 hardcode_into_libs
=yes
7190 dynamic_linker
="$host_os dld.so"
7191 shlibpath_var
=LD_LIBRARY_PATH
7192 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
7193 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7194 soname_spec
='${libname}${release}.so$major'
7195 if test "X$HPUX_IA64_MODE" = X32
; then
7196 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7198 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
7200 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
7202 dynamic_linker
="$host_os dld.sl"
7203 shlibpath_var
=SHLIB_PATH
7204 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
7205 library_names_spec
='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7206 soname_spec
='${libname}${release}.sl$major'
7208 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7209 postinstall_cmds
='chmod 555 $lib'
7212 irix5
* | irix6
* | nonstopux
*)
7214 nonstopux
*) version_type
=nonstopux
;;
7215 *) version_type
=irix
;;
7219 soname_spec
='${libname}${release}.so$major'
7220 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7222 irix5
* | nonstopux
*)
7226 case $LD in # libtool.m4 will add one of these switches to LD
7227 *-32|
*"-32 ") libsuff
= shlibsuff
= libmagic
=32-bit;;
7228 *-n32|
*"-n32 ") libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
7229 *-64|
*"-64 ") libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
7230 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
7234 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
7235 shlibpath_overrides_runpath
=no
7236 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7237 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
7240 # No shared lib support for Linux oldld, aout, or coff.
7241 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
7245 # This must be Linux ELF.
7250 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7251 soname_spec
='${libname}${release}.so$major'
7252 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7253 shlibpath_var
=LD_LIBRARY_PATH
7254 shlibpath_overrides_runpath
=no
7255 # This implies no fast_install, which is unacceptable.
7256 # Some rework will be needed to allow for fast_install
7257 # before this can be enabled.
7258 hardcode_into_libs
=yes
7260 # We used to test for /lib/ld.so.1 and disable shared libraries on
7261 # powerpc, because MkLinux only supported shared libraries with the
7262 # GNU dynamic linker. Since this was broken with cross compilers,
7263 # most powerpc-linux boxes support dynamic linking these days and
7264 # people can always --disable-shared, the test was removed, and we
7265 # assume the GNU/Linux dynamic linker is in use.
7266 dynamic_linker
='GNU/Linux ld.so'
7273 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7274 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7275 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7276 dynamic_linker
='NetBSD (a.out) ld.so'
7278 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7279 soname_spec
='${libname}${release}.so$major'
7280 dynamic_linker
='NetBSD ld.elf_so'
7282 shlibpath_var
=LD_LIBRARY_PATH
7283 shlibpath_overrides_runpath
=yes
7284 hardcode_into_libs
=yes
7289 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7290 shlibpath_var
=LD_LIBRARY_PATH
7291 shlibpath_overrides_runpath
=yes
7298 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7299 soname_spec
='${libname}${release}.so$major'
7300 shlibpath_var
=LD_LIBRARY_PATH
7301 shlibpath_overrides_runpath
=yes
7308 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7309 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7310 shlibpath_var
=LD_LIBRARY_PATH
7311 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7313 openbsd2.
[89] | openbsd2.
[89].
*)
7314 shlibpath_overrides_runpath
=no
7317 shlibpath_overrides_runpath
=yes
7321 shlibpath_overrides_runpath
=yes
7326 libname_spec
='$name'
7328 library_names_spec
='$libname.dll $libname.a'
7329 dynamic_linker
='OS/2 ld.exe'
7330 shlibpath_var
=LIBPATH
7333 osf3
* | osf4
* | osf5
*)
7337 soname_spec
='${libname}${release}.so'
7338 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7339 shlibpath_var
=LD_LIBRARY_PATH
7340 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7341 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
7346 soname_spec
='${libname}${release}.so$major'
7347 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7348 shlibpath_var
=LD_LIBRARY_PATH
7355 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7356 soname_spec
='${libname}${release}.so$major'
7357 shlibpath_var
=LD_LIBRARY_PATH
7358 shlibpath_overrides_runpath
=yes
7359 hardcode_into_libs
=yes
7360 # ldd complains unless libraries are executable
7361 postinstall_cmds
='chmod +x $lib'
7366 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7367 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7368 shlibpath_var
=LD_LIBRARY_PATH
7369 shlibpath_overrides_runpath
=yes
7370 if test "$with_gnu_ld" = yes; then
7376 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
7378 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7379 soname_spec
='${libname}${release}.so$major'
7380 shlibpath_var
=LD_LIBRARY_PATH
7381 case $host_vendor in
7383 shlibpath_overrides_runpath
=no
7388 shlibpath_overrides_runpath
=no
7389 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
7395 if test -d /usr
/nec
;then
7397 library_names_spec
='$libname.so.$versuffix $libname.so.$major $libname.so'
7398 soname_spec
='$libname.so.$major'
7399 shlibpath_var
=LD_LIBRARY_PATH
7405 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7406 soname_spec
='${libname}${release}.so$major'
7407 shlibpath_var
=LD_LIBRARY_PATH
7414 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7415 echo "${ECHO_T}$dynamic_linker" >&6
7416 test "$dynamic_linker" = no
&& can_build_shared
=no
7418 if test "x$enable_dlopen" != xyes
; then
7419 enable_dlopen
=unknown
7420 enable_dlopen_self
=unknown
7421 enable_dlopen_self_static
=unknown
7428 lt_cv_dlopen
="load_add_on"
7430 lt_cv_dlopen_self
=yes
7433 cygwin
* | mingw
* | pw32
*)
7434 lt_cv_dlopen
="LoadLibrary"
7439 echo "$as_me:$LINENO: checking for shl_load" >&5
7440 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7441 if test "${ac_cv_func_shl_load+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 cat >conftest.
$ac_ext <<_ACEOF
7445 #line $LINENO "configure"
7446 #include "confdefs.h"
7447 /* System header to define __stub macros and hopefully few prototypes,
7448 which can conflict with char shl_load (); below. */
7450 /* Override any gcc2 internal prototype to avoid an error. */
7454 /* We use char because int might match the return type of a gcc2
7455 builtin and then its argument prototype would still apply. */
7459 #ifdef F77_DUMMY_MAIN
7463 int F77_DUMMY_MAIN() { return 1; }
7468 /* The GNU C library defines this for functions which it implements
7469 to always fail with ENOSYS. Some functions are actually named
7470 something starting with __ and the normal name is an alias. */
7471 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7481 rm -f conftest.
$ac_objext conftest
$ac_exeext
7482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7483 (eval $ac_link) 2>&5
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); } &&
7487 { ac_try
='test -s conftest$ac_exeext'
7488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); }; }; then
7493 ac_cv_func_shl_load
=yes
7495 echo "$as_me: failed program was:" >&5
7496 cat conftest.
$ac_ext >&5
7497 ac_cv_func_shl_load
=no
7499 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7501 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7502 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7503 if test $ac_cv_func_shl_load = yes; then
7504 lt_cv_dlopen
="shl_load"
7506 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7507 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7508 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 ac_check_lib_save_LIBS
=$LIBS
7513 cat >conftest.
$ac_ext <<_ACEOF
7514 #line $LINENO "configure"
7515 #include "confdefs.h"
7517 /* Override any gcc2 internal prototype to avoid an error. */
7521 /* We use char because int might match the return type of a gcc2
7522 builtin and then its argument prototype would still apply. */
7524 #ifdef F77_DUMMY_MAIN
7528 int F77_DUMMY_MAIN() { return 1; }
7538 rm -f conftest.
$ac_objext conftest
$ac_exeext
7539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7540 (eval $ac_link) 2>&5
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); } &&
7544 { ac_try
='test -s conftest$ac_exeext'
7545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); }; }; then
7550 ac_cv_lib_dld_shl_load
=yes
7552 echo "$as_me: failed program was:" >&5
7553 cat conftest.
$ac_ext >&5
7554 ac_cv_lib_dld_shl_load
=no
7556 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7557 LIBS
=$ac_check_lib_save_LIBS
7559 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7560 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7561 if test $ac_cv_lib_dld_shl_load = yes; then
7562 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
7564 echo "$as_me:$LINENO: checking for dlopen" >&5
7565 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7566 if test "${ac_cv_func_dlopen+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7569 cat >conftest.
$ac_ext <<_ACEOF
7570 #line $LINENO "configure"
7571 #include "confdefs.h"
7572 /* System header to define __stub macros and hopefully few prototypes,
7573 which can conflict with char dlopen (); below. */
7575 /* Override any gcc2 internal prototype to avoid an error. */
7579 /* We use char because int might match the return type of a gcc2
7580 builtin and then its argument prototype would still apply. */
7584 #ifdef F77_DUMMY_MAIN
7588 int F77_DUMMY_MAIN() { return 1; }
7593 /* The GNU C library defines this for functions which it implements
7594 to always fail with ENOSYS. Some functions are actually named
7595 something starting with __ and the normal name is an alias. */
7596 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7606 rm -f conftest.
$ac_objext conftest
$ac_exeext
7607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7608 (eval $ac_link) 2>&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } &&
7612 { ac_try
='test -s conftest$ac_exeext'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; }; then
7618 ac_cv_func_dlopen
=yes
7620 echo "$as_me: failed program was:" >&5
7621 cat conftest.
$ac_ext >&5
7622 ac_cv_func_dlopen
=no
7624 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7626 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7627 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7628 if test $ac_cv_func_dlopen = yes; then
7629 lt_cv_dlopen
="dlopen"
7631 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7632 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7633 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 ac_check_lib_save_LIBS
=$LIBS
7638 cat >conftest.
$ac_ext <<_ACEOF
7639 #line $LINENO "configure"
7640 #include "confdefs.h"
7642 /* Override any gcc2 internal prototype to avoid an error. */
7646 /* We use char because int might match the return type of a gcc2
7647 builtin and then its argument prototype would still apply. */
7649 #ifdef F77_DUMMY_MAIN
7653 int F77_DUMMY_MAIN() { return 1; }
7663 rm -f conftest.
$ac_objext conftest
$ac_exeext
7664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7665 (eval $ac_link) 2>&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } &&
7669 { ac_try
='test -s conftest$ac_exeext'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; }; then
7675 ac_cv_lib_dl_dlopen
=yes
7677 echo "$as_me: failed program was:" >&5
7678 cat conftest.
$ac_ext >&5
7679 ac_cv_lib_dl_dlopen
=no
7681 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7682 LIBS
=$ac_check_lib_save_LIBS
7684 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7685 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7686 if test $ac_cv_lib_dl_dlopen = yes; then
7687 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
7689 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7690 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7691 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7694 ac_check_lib_save_LIBS
=$LIBS
7696 cat >conftest.
$ac_ext <<_ACEOF
7697 #line $LINENO "configure"
7698 #include "confdefs.h"
7700 /* Override any gcc2 internal prototype to avoid an error. */
7704 /* We use char because int might match the return type of a gcc2
7705 builtin and then its argument prototype would still apply. */
7707 #ifdef F77_DUMMY_MAIN
7711 int F77_DUMMY_MAIN() { return 1; }
7721 rm -f conftest.
$ac_objext conftest
$ac_exeext
7722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7723 (eval $ac_link) 2>&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } &&
7727 { ac_try
='test -s conftest$ac_exeext'
7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; }; then
7733 ac_cv_lib_svld_dlopen
=yes
7735 echo "$as_me: failed program was:" >&5
7736 cat conftest.
$ac_ext >&5
7737 ac_cv_lib_svld_dlopen
=no
7739 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7740 LIBS
=$ac_check_lib_save_LIBS
7742 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7743 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7744 if test $ac_cv_lib_svld_dlopen = yes; then
7745 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
7747 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7748 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7749 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 ac_check_lib_save_LIBS
=$LIBS
7754 cat >conftest.
$ac_ext <<_ACEOF
7755 #line $LINENO "configure"
7756 #include "confdefs.h"
7758 /* Override any gcc2 internal prototype to avoid an error. */
7762 /* We use char because int might match the return type of a gcc2
7763 builtin and then its argument prototype would still apply. */
7765 #ifdef F77_DUMMY_MAIN
7769 int F77_DUMMY_MAIN() { return 1; }
7779 rm -f conftest.
$ac_objext conftest
$ac_exeext
7780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7781 (eval $ac_link) 2>&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } &&
7785 { ac_try
='test -s conftest$ac_exeext'
7786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; }; then
7791 ac_cv_lib_dld_dld_link
=yes
7793 echo "$as_me: failed program was:" >&5
7794 cat conftest.
$ac_ext >&5
7795 ac_cv_lib_dld_dld_link
=no
7797 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7798 LIBS
=$ac_check_lib_save_LIBS
7800 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7801 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7802 if test $ac_cv_lib_dld_dld_link = yes; then
7803 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
7824 if test "x$lt_cv_dlopen" != xno
; then
7830 case $lt_cv_dlopen in
7832 save_CPPFLAGS
="$CPPFLAGS"
7833 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
7835 save_LDFLAGS
="$LDFLAGS"
7836 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
7839 LIBS
="$lt_cv_dlopen_libs $LIBS"
7841 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7842 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7843 if test "${lt_cv_dlopen_self+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 if test "$cross_compiling" = yes; then :
7847 lt_cv_dlopen_self
=cross
7849 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
7850 lt_status
=$lt_dlunknown
7851 cat > conftest.
$ac_ext <<EOF
7852 #line 7852 "configure"
7853 #include "confdefs.h"
7862 # define LT_DLGLOBAL RTLD_GLOBAL
7865 # define LT_DLGLOBAL DL_GLOBAL
7867 # define LT_DLGLOBAL 0
7871 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7872 find out it does not work in some platform. */
7873 #ifndef LT_DLLAZY_OR_NOW
7875 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7878 # define LT_DLLAZY_OR_NOW DL_LAZY
7881 # define LT_DLLAZY_OR_NOW RTLD_NOW
7884 # define LT_DLLAZY_OR_NOW DL_NOW
7886 # define LT_DLLAZY_OR_NOW 0
7894 extern "C" void exit (int);
7897 void fnord() { int i=42;}
7900 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7901 int status = $lt_dlunknown;
7905 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7906 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7907 /* dlclose (self); */
7913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7914 (eval $ac_link) 2>&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
7918 (.
/conftest
; exit; ) 2>/dev
/null
7921 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
7922 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
7923 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
7926 # compilation failed
7927 lt_cv_dlopen_self
=no
7934 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7935 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7937 if test "x$lt_cv_dlopen_self" = xyes
; then
7938 LDFLAGS
="$LDFLAGS $link_static_flag"
7939 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7940 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7941 if test "${lt_cv_dlopen_self_static+set}" = set; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 if test "$cross_compiling" = yes; then :
7945 lt_cv_dlopen_self_static
=cross
7947 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
7948 lt_status
=$lt_dlunknown
7949 cat > conftest.
$ac_ext <<EOF
7950 #line 7950 "configure"
7951 #include "confdefs.h"
7960 # define LT_DLGLOBAL RTLD_GLOBAL
7963 # define LT_DLGLOBAL DL_GLOBAL
7965 # define LT_DLGLOBAL 0
7969 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7970 find out it does not work in some platform. */
7971 #ifndef LT_DLLAZY_OR_NOW
7973 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7976 # define LT_DLLAZY_OR_NOW DL_LAZY
7979 # define LT_DLLAZY_OR_NOW RTLD_NOW
7982 # define LT_DLLAZY_OR_NOW DL_NOW
7984 # define LT_DLLAZY_OR_NOW 0
7992 extern "C" void exit (int);
7995 void fnord() { int i=42;}
7998 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7999 int status = $lt_dlunknown;
8003 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8004 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8005 /* dlclose (self); */
8011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8012 (eval $ac_link) 2>&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
8016 (.
/conftest
; exit; ) 2>/dev
/null
8019 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
8020 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
8021 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
8024 # compilation failed
8025 lt_cv_dlopen_self_static
=no
8032 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8033 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8036 CPPFLAGS
="$save_CPPFLAGS"
8037 LDFLAGS
="$save_LDFLAGS"
8042 case $lt_cv_dlopen_self in
8043 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
8044 *) enable_dlopen_self
=unknown
;;
8047 case $lt_cv_dlopen_self_static in
8048 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
8049 *) enable_dlopen_self_static
=unknown
;;
8054 # Report which librarie types wil actually be built
8055 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8056 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8057 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8058 echo "${ECHO_T}$can_build_shared" >&6
8060 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8061 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8062 test "$can_build_shared" = "no" && enable_shared
=no
8064 # On AIX, shared libraries and static libraries use the same namespace, and
8065 # are all built from PIC.
8068 test "$enable_shared" = yes && enable_static
=no
8069 if test -n "$RANLIB"; then
8070 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
8071 postinstall_cmds
='$RANLIB $lib'
8076 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
8077 test "$enable_shared" = yes && enable_static
=no
8081 echo "$as_me:$LINENO: result: $enable_shared" >&5
8082 echo "${ECHO_T}$enable_shared" >&6
8084 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8085 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8086 # Make sure either enable_shared or enable_static is yes.
8087 test "$enable_shared" = yes || enable_static
=yes
8088 echo "$as_me:$LINENO: result: $enable_static" >&5
8089 echo "${ECHO_T}$enable_static" >&6
8091 # The else clause should only fire when bootstrapping the
8092 # libtool distribution, otherwise you forgot to ship ltmain.sh
8093 # with your package, and you will get complaints that there are
8094 # no rules to generate ltmain.sh.
8095 if test -f "$ltmain"; then
8096 # Now quote all the things that may contain metacharacters while being
8097 # careful not to overquote the AC_SUBSTed values. We take copies of the
8098 # variables and quote the copies for generation of the libtool script.
8099 for var
in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
8100 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8101 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8102 deplibs_check_method reload_flag reload_cmds need_locks \
8103 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8104 lt_cv_sys_global_symbol_to_c_name_address \
8105 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8106 old_postinstall_cmds old_postuninstall_cmds \
8110 lt_prog_compiler_wl \
8111 lt_prog_compiler_pic \
8112 lt_prog_compiler_static \
8113 lt_prog_compiler_no_builtin_flag \
8114 export_dynamic_flag_spec \
8115 thread_safe_flag_spec \
8116 whole_archive_flag_spec \
8118 old_archive_from_new_cmds \
8123 compiler_lib_search_path \
8125 archive_expsym_cmds \
8127 postuninstall_cmds \
8128 old_archive_from_expsyms_cmds \
8129 allow_undefined_flag \
8131 export_symbols_cmds \
8132 hardcode_libdir_flag_spec \
8133 hardcode_libdir_separator \
8134 lt_cv_prog_compiler_c_o \
8139 old_archive_cmds | \
8140 old_archive_from_new_cmds | \
8142 archive_expsym_cmds | \
8143 old_archive_from_expsyms_cmds | \
8144 export_symbols_cmds | \
8145 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8146 postinstall_cmds | postuninstall_cmds | \
8147 old_postinstall_cmds | old_postuninstall_cmds | \
8148 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
8149 # Double-quote double-evaled strings.
8150 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8153 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8159 *'\$0 --fallback-echo"')
8160 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8165 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8167 { echo "$as_me:$LINENO: creating $ofile" >&5
8168 echo "$as_me: creating $ofile" >&6;}
8170 cat <<__EOF__ >> "$cfgfile"
8173 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8174 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8175 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8177 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8178 # Free Software Foundation, Inc.
8180 # This file is part of GNU Libtool:
8181 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8183 # This program is free software; you can redistribute it and/or modify
8184 # it under the terms of the GNU General Public License as published by
8185 # the Free Software Foundation; either version 2 of the License, or
8186 # (at your option) any later version.
8188 # This program is distributed in the hope that it will be useful, but
8189 # WITHOUT ANY WARRANTY; without even the implied warranty of
8190 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8191 # General Public License for more details.
8193 # You should have received a copy of the GNU General Public License
8194 # along with this program; if not, write to the Free Software
8195 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8197 # As a special exception to the GNU General Public License, if you
8198 # distribute this file as part of a program that contains a
8199 # configuration script generated by Autoconf, you may include it under
8200 # the same distribution terms that you use for the rest of that program.
8202 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8203 Xsed="sed -e s/^X//"
8205 # The HP-UX ksh and POSIX shell print the target directory to stdout
8207 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8209 # The names of the tagged configurations supported by this script.
8212 # ### BEGIN LIBTOOL CONFIG
8214 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8216 # Shell to use when invoking shell scripts.
8219 # Whether or not to build shared libraries.
8220 build_libtool_libs=$enable_shared
8222 # Whether or not to build static libraries.
8223 build_old_libs=$enable_static
8225 # Whether or not to add -lc for building shared libraries.
8226 build_libtool_need_lc=$archive_cmds_need_lc
8228 # Whether or not to optimize for fast installation.
8229 fast_install=$enable_fast_install
8232 host_alias=$host_alias
8235 # An echo program that does not interpret backslashes.
8240 AR_FLAGS=$lt_AR_FLAGS
8245 # A language-specific compiler.
8248 # Is the compiler the GNU C compiler?
8251 # The linker used to build libraries.
8254 # Whether we need hard or soft links.
8257 # A BSD-compatible nm program.
8260 # A sed program that does not truncate output.
8263 # A symbol stripping program
8266 # Used to examine libraries when file_magic_cmd begins "file"
8267 MAGIC_CMD=$MAGIC_CMD
8269 # Used on cygwin: DLL creation program.
8272 # Used on cygwin: object dumper.
8275 # Used on cygwin: assembler.
8278 # The name of the directory that contains temporary libtool files.
8281 # How to create reloadable object files.
8282 reload_flag=$lt_reload_flag
8283 reload_cmds=$lt_reload_cmds
8285 # How to pass a linker flag through the compiler.
8286 wl=$lt_lt_prog_compiler_wl
8288 # Object file suffix (normally "o").
8291 # Old archive suffix (normally "a").
8294 # Executable file suffix (normally "").
8297 # Additional compiler flags for building library objects.
8298 pic_flag=$lt_lt_prog_compiler_pic
8301 # What is the maximum length of a command?
8302 max_cmd_len=$lt_cv_sys_max_cmd_len
8304 # Does compiler simultaneously support -c and -o options?
8305 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8307 # Must we lock files when doing compilation ?
8308 need_locks=$lt_need_locks
8310 # Do we need the lib prefix for modules?
8311 need_lib_prefix=$need_lib_prefix
8313 # Do we need a version for libraries?
8314 need_version=$need_version
8316 # Whether dlopen is supported.
8317 dlopen_support=$enable_dlopen
8319 # Whether dlopen of programs is supported.
8320 dlopen_self=$enable_dlopen_self
8322 # Whether dlopen of statically linked programs is supported.
8323 dlopen_self_static=$enable_dlopen_self_static
8325 # Compiler flag to prevent dynamic linking.
8326 link_static_flag=$lt_lt_prog_compiler_static
8328 # Compiler flag to turn off builtin functions.
8329 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8331 # Compiler flag to allow reflexive dlopens.
8332 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8334 # Compiler flag to generate shared objects directly from archives.
8335 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8337 # Compiler flag to generate thread-safe objects.
8338 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8340 # Library versioning type.
8341 version_type=$version_type
8343 # Format of library name prefix.
8344 libname_spec=$lt_libname_spec
8346 # List of archive names. First name is the real one, the rest are links.
8347 # The last name is the one that the linker finds with -lNAME.
8348 library_names_spec=$lt_library_names_spec
8350 # The coded name of the library, if different from the real name.
8351 soname_spec=$lt_soname_spec
8353 # Commands used to build and install an old-style archive.
8355 old_archive_cmds=$lt_old_archive_cmds
8356 old_postinstall_cmds=$lt_old_postinstall_cmds
8357 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8359 # Create an old-style archive from a shared archive.
8360 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8362 # Create a temporary old-style archive to link instead of a shared archive.
8363 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8365 # Commands used to build and install a shared archive.
8366 archive_cmds=$lt_archive_cmds
8367 archive_expsym_cmds=$lt_archive_expsym_cmds
8368 postinstall_cmds=$lt_postinstall_cmds
8369 postuninstall_cmds=$lt_postuninstall_cmds
8371 # Commands to strip libraries.
8372 old_striplib=$lt_old_striplib
8373 striplib=$lt_striplib
8375 # Dependencies to place before the objects being linked to create a
8377 predep_objects=$lt_predep_objects
8379 # Dependencies to place after the objects being linked to create a
8381 postdep_objects=$lt_postdep_objects
8383 # Dependencies to place before the objects being linked to create a
8387 # Dependencies to place after the objects being linked to create a
8389 postdeps=$lt_postdeps
8391 # The library search path used internally by the compiler when linking
8393 compiler_lib_search_path=$lt_compiler_lib_search_path
8395 # Method to check whether dependent libraries are shared objects.
8396 deplibs_check_method=$lt_deplibs_check_method
8398 # Command to use when deplibs_check_method == file_magic.
8399 file_magic_cmd=$lt_file_magic_cmd
8401 # Flag that allows shared libraries with undefined symbols to be built.
8402 allow_undefined_flag=$lt_allow_undefined_flag
8404 # Flag that forces no undefined symbols.
8405 no_undefined_flag=$lt_no_undefined_flag
8407 # Commands used to finish a libtool library installation in a directory.
8408 finish_cmds=$lt_finish_cmds
8410 # Same as above, but a single script fragment to be evaled but not shown.
8411 finish_eval=$lt_finish_eval
8413 # Take the output of nm and produce a listing of raw symbols and C names.
8414 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8416 # Transform the output of nm in a proper C declaration
8417 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8419 # Transform the output of nm in a C name address pair
8420 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8422 # This is the shared library runtime path variable.
8423 runpath_var=$runpath_var
8425 # This is the shared library path variable.
8426 shlibpath_var=$shlibpath_var
8428 # Is shlibpath searched before the hard-coded library search path?
8429 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8431 # How to hardcode a shared library path into an executable.
8432 hardcode_action=$hardcode_action
8434 # Whether we should hardcode library paths into libraries.
8435 hardcode_into_libs=$hardcode_into_libs
8437 # Flag to hardcode \$libdir into a binary during linking.
8438 # This must work even if \$libdir does not exist.
8439 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8441 # Whether we need a single -rpath flag with a separated argument.
8442 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8444 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8446 hardcode_direct=$hardcode_direct
8448 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8450 hardcode_minus_L=$hardcode_minus_L
8452 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8453 # the resulting binary.
8454 hardcode_shlibpath_var=$hardcode_shlibpath_var
8456 # Variables whose values should be saved in libtool wrapper scripts and
8457 # restored at relink time.
8458 variables_saved_for_relink="$variables_saved_for_relink"
8460 # Whether libtool must link a program against all its dependency libraries.
8461 link_all_deplibs=$link_all_deplibs
8463 # Compile-time system search path for libraries
8464 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8466 # Run-time system search path for libraries
8467 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8469 # Fix the shell variable \$srcfile for the compiler.
8470 fix_srcfile_path="$fix_srcfile_path"
8472 # Set to yes if exported symbols are required.
8473 always_export_symbols=$always_export_symbols
8475 # The commands to list exported symbols.
8476 export_symbols_cmds=$lt_export_symbols_cmds
8478 # The commands to extract the exported symbol list from a shared archive.
8479 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8481 # Symbols that should not be listed in the preloaded symbols.
8482 exclude_expsyms=$lt_exclude_expsyms
8484 # Symbols that must always be exported.
8485 include_expsyms=$lt_include_expsyms
8487 # ### END LIBTOOL CONFIG
8494 cat <<\EOF
>> "$cfgfile"
8496 # AIX sometimes has problems with the GCC collect2 program. For some
8497 # reason, if we set the COLLECT_NAMES environment variable, the problems
8498 # vanish in a puff of smoke.
8499 if test "X${COLLECT_NAMES+set}" != Xset
; then
8501 export COLLECT_NAMES
8506 cygwin
* | mingw
* | pw32
* | os2
*)
8507 cat <<'EOF' >> "$cfgfile"
8508 # This is a source program that is used to create dlls on Windows
8509 # Don't remove nor modify the starting and closing comments
8511 # /* ltdll.c starts here */
8512 # #define WIN32_LEAN_AND_MEAN
8513 # #include <windows.h>
8514 # #undef WIN32_LEAN_AND_MEAN
8515 # #include <stdio.h>
8517 # #ifndef __CYGWIN__
8518 # # ifdef __CYGWIN32__
8519 # # define __CYGWIN__ __CYGWIN32__
8523 # #ifdef __cplusplus
8526 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8527 # #ifdef __cplusplus
8532 # #include <cygwin/cygwin_dll.h>
8533 # DECLARE_CYGWIN_DLL( DllMain );
8535 # HINSTANCE __hDllInstance_base;
8538 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8540 # __hDllInstance_base = hInst;
8543 # /* ltdll.c ends here */
8545 # This is a source program that is used to create import libraries
8546 # on Windows for dlls which lack them. Don't remove nor modify the
8547 # starting and closing comments
8549 # /* impgen.c starts here */
8550 # /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
8552 # This file is part of GNU libtool.
8554 # This program is free software; you can redistribute it and/or modify
8555 # it under the terms of the GNU General Public License as published by
8556 # the Free Software Foundation; either version 2 of the License, or
8557 # (at your option) any later version.
8559 # This program is distributed in the hope that it will be useful,
8560 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8561 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8562 # GNU General Public License for more details.
8564 # You should have received a copy of the GNU General Public License
8565 # along with this program; if not, write to the Free Software
8566 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8569 # #include <stdio.h> /* for printf() */
8570 # #include <unistd.h> /* for open(), lseek(), read() */
8571 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8572 # #include <string.h> /* for strdup() */
8574 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8576 # #define O_BINARY 0
8579 # static unsigned int
8580 # pe_get16 (fd, offset)
8584 # unsigned char b[2];
8585 # lseek (fd, offset, SEEK_SET);
8587 # return b[0] + (b[1]<<8);
8590 # static unsigned int
8591 # pe_get32 (fd, offset)
8595 # unsigned char b[4];
8596 # lseek (fd, offset, SEEK_SET);
8598 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8601 # static unsigned int
8605 # unsigned char *b = ptr;
8606 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8615 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8616 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8617 # unsigned long name_rvas, nexp;
8618 # unsigned char *expdata, *erva;
8619 # char *filename, *dll_name;
8621 # filename = argv[1];
8623 # dll = open(filename, O_RDONLY|O_BINARY);
8627 # dll_name = filename;
8629 # for (i=0; filename[i]; i++)
8630 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8631 # dll_name = filename + i +1;
8633 # pe_header_offset = pe_get32 (dll, 0x3c);
8634 # opthdr_ofs = pe_header_offset + 4 + 20;
8635 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8637 # if (num_entries < 1) /* no exports */
8640 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8641 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8642 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8643 # secptr = (pe_header_offset + 4 + 20 +
8644 # pe_get16 (dll, pe_header_offset + 4 + 16));
8647 # for (i = 0; i < nsections; i++)
8650 # unsigned long secptr1 = secptr + 40 * i;
8651 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8652 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8653 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8654 # lseek(dll, secptr1, SEEK_SET);
8655 # read(dll, sname, 8);
8656 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8658 # expptr = fptr + (export_rva - vaddr);
8659 # if (export_rva + export_size > vaddr + vsize)
8660 # export_size = vsize - (export_rva - vaddr);
8665 # expdata = (unsigned char*)malloc(export_size);
8666 # lseek (dll, expptr, SEEK_SET);
8667 # read (dll, expdata, export_size);
8668 # erva = expdata - export_rva;
8670 # nexp = pe_as32 (expdata+24);
8671 # name_rvas = pe_as32 (expdata+32);
8673 # printf ("EXPORTS\n");
8674 # for (i = 0; i<nexp; i++)
8676 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8677 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8682 # /* impgen.c ends here */
8688 # We use sed instead of cat because bash on DJGPP gets confused if
8689 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8690 # text mode, it properly converts lines to CR/LF. This bash problem
8691 # is reportedly fixed, but why not run on old versions too?
8692 sed '$q' "$ltmain" >> "$cfgfile" ||
(rm -f "$cfgfile"; exit 1)
8694 mv -f "$cfgfile" "$ofile" || \
8695 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8699 # If there is no Makefile yet, we rely on a make rule to execute
8700 # `config.status --recheck' to rerun these tests and create the
8701 # libtool script then.
8702 test -f Makefile
&& make "$ltmain"
8707 ac_cpp
='$CXXCPP $CPPFLAGS'
8708 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8709 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8710 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8715 # Check whether --with-tags or --without-tags was given.
8716 if test "${with_tags+set}" = set; then
8717 withval
="$with_tags"
8722 mingw
*|cygwin
*) tagnames
="$tagnames,RC" ;;
8726 if test -f "$ltmain" && test -n "$tagnames"; then
8727 if test ! -f "${ofile}"; then
8728 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8729 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8732 if test -z "$LTCC"; then
8733 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8734 if test -z "$LTCC"; then
8735 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8736 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8738 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8739 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8743 # Extract list of available tagged configurations in $ofile.
8744 # Note that this assumes the entire list is on one line.
8745 available_tags
=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8747 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8748 for tagname
in $tagnames; do
8750 # Check whether tagname contains only valid characters
8751 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8753 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8754 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8755 { (exit 1); exit 1; }; }
8759 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev
/null
8761 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8762 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8763 { (exit 1); exit 1; }; }
8766 # Update the list of available tags.
8767 if test -n "$tagname"; then
8768 echo appending configuration tag
\"$tagname\" to
$ofile
8773 ac_cpp
='$CXXCPP $CPPFLAGS'
8774 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8775 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8776 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8781 archive_cmds_need_lc_CXX
=no
8782 allow_undefined_flag_CXX
=
8783 always_export_symbols_CXX
=no
8784 archive_expsym_cmds_CXX
=
8785 export_dynamic_flag_spec_CXX
=
8786 hardcode_direct_CXX
=no
8787 hardcode_libdir_flag_spec_CXX
=
8788 hardcode_libdir_separator_CXX
=
8789 hardcode_minus_L_CXX
=no
8790 link_all_deplibs_CXX
=unknown
8791 old_archive_cmds_CXX
=$old_archive_cmds
8792 no_undefined_flag_CXX
=
8793 whole_archive_flag_spec_CXX
=
8795 # Dependencies to place before and after the object being linked:
8797 postdep_objects_CXX
=
8800 compiler_lib_search_path_CXX
=
8802 # Source file extension for C test sources.
8805 # Object file extension for compiled C test sources.
8809 # Code to be used in simple compile tests
8810 lt_simple_compile_test_code
="int some_variable = 0;"
8812 # Code to be used in simple link tests
8813 lt_simple_link_test_code
='int main(int char *) { return(0); }'
8815 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8817 # If no C compiler was specified, use CC.
8820 # Allow CC to be a program name with arguments.
8825 # Allow CC to be a program name with arguments.
8831 cc_basename
=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8833 # We don't want -fno-exception wen compiling C++ code, so set the
8834 # no_builtin_flag separately
8835 if test "$GXX" = yes; then
8836 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
8838 lt_prog_compiler_no_builtin_flag_CXX
=
8841 if test "$GXX" = yes; then
8842 # Set up default GNU C++ configuration
8844 # Check if GNU C++ uses GNU ld as the underlying linker, since the
8845 # archiving commands below assume that GNU ld is being used.
8846 if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
8847 egrep 'GNU ld' > /dev
/null
; then
8850 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8851 archive_expsym_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8853 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
8854 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
8856 # If archive_cmds runs LD, not CC, wlarc should be empty
8857 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
8858 # investigate it a little bit more. (MM)
8861 # ancient GNU ld didn't support --whole-archive et. al.
8862 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
8863 egrep 'no-whole-archive' > /dev
/null
; then
8864 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8866 whole_archive_flag_spec_CXX
=
8872 # A generic and very simple default shared library creation
8873 # command for GNU C++ for the case where it uses the native
8874 # linker, instead of GNU ld. If possible, this setting should
8875 # overridden to take advantage of the native linker features on
8876 # the platform it is being used on.
8877 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8880 # Commands to make compiler produce verbose output that lists
8881 # what "hidden" libraries, object files and flags are used when
8882 # linking a shared library.
8883 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
8891 # PORTME: fill in a description of your system's C++ link characteristics
8892 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8893 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8897 # FIXME: insert proper C++ library support
8901 if test "$host_cpu" = ia64
; then
8902 # On IA64, the linker does run time linking by default, so we don't
8903 # have to do anything special.
8904 aix_use_runtimelinking
=no
8905 exp_sym_flag
='-Bexport'
8908 aix_use_runtimelinking
=no
8910 # Test if we are trying to use run time linking or normal
8911 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8912 # need to do runtime linking.
8913 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
8914 for ld_flag
in $LDFLAGS; do
8915 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8916 aix_use_runtimelinking
=yes
8922 exp_sym_flag
='-bexport'
8923 no_entry_flag
='-bnoentry'
8926 # When large executables or shared objects are built, AIX ld can
8927 # have problems creating the table of contents. If linking a library
8928 # or program results in "error TOC overflow" add -mminimal-toc to
8929 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8930 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8933 hardcode_direct_CXX
=yes
8934 hardcode_libdir_separator_CXX
=':'
8935 link_all_deplibs_CXX
=yes
8937 if test "$GXX" = yes; then
8938 case $host_os in aix4.012|aix4.012.
*)
8939 # We only want to do this on AIX 4.2 and lower, the check
8940 # below for broken collect2 doesn't work under 4.3+
8941 collect2name
=`${CC} -print-prog-name=collect2`
8942 if test -f "$collect2name" && \
8943 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
8945 # We have reworked collect2
8946 hardcode_direct_CXX
=yes
8948 # We have old collect2
8949 hardcode_direct_CXX
=unsupported
8950 # It fails to find uninstalled libraries when the uninstalled
8951 # path is not listed in the libpath. Setting hardcode_minus_L
8952 # to unsupported forces relinking
8953 hardcode_minus_L_CXX
=yes
8954 hardcode_libdir_flag_spec_CXX
='-L$libdir'
8955 hardcode_libdir_separator_CXX
=
8958 shared_flag
='-shared'
8961 if test "$host_cpu" = ia64
; then
8962 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8963 # chokes on -Wl,-G. The following line is correct:
8966 if test "$aix_use_runtimelinking" = yes; then
8967 shared_flag
='${wl}-G'
8969 shared_flag
='${wl}-bM:SRE'
8974 # It seems that -bexpall does not export symbols beginning with
8975 # underscore (_), so it is better to generate a list of symbols to export.
8976 always_export_symbols_CXX
=yes
8977 if test "$aix_use_runtimelinking" = yes; then
8978 # Warning - without using the other runtime loading flags (-brtl),
8979 # -berok will link without error, but may produce a broken library.
8980 allow_undefined_flag_CXX
='-berok'
8981 # Determine the default libpath from the value encoded in an empty executable.
8982 cat >conftest.
$ac_ext <<_ACEOF
8983 #line $LINENO "configure"
8984 #include "confdefs.h"
8986 #ifdef F77_DUMMY_MAIN
8990 int F77_DUMMY_MAIN() { return 1; }
9000 rm -f conftest.
$ac_objext conftest
$ac_exeext
9001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9002 (eval $ac_link) 2>&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } &&
9006 { ac_try
='test -s conftest$ac_exeext'
9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; }; then
9013 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9015 # Check for a 64-bit object if we didn't find anything.
9016 if test -z "$aix_libpath"; then aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9019 echo "$as_me: failed program was:" >&5
9020 cat conftest.
$ac_ext >&5
9022 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9023 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9025 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
9027 archive_expsym_cmds_CXX
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9029 if test "$host_cpu" = ia64; then
9030 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr
/lib
:/lib
'
9031 allow_undefined_flag_CXX="-z nodefs"
9032 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
9034 # Determine the default libpath from the value encoded in an empty executable.
9035 cat >conftest.$ac_ext <<_ACEOF
9036 #line $LINENO "configure
"
9037 #include "confdefs.h
"
9039 #ifdef F77_DUMMY_MAIN
9043 int F77_DUMMY_MAIN() { return 1; }
9053 rm -f conftest.$ac_objext conftest$ac_exeext
9054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9055 (eval $ac_link) 2>&5
9057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9058 (exit $ac_status); } &&
9059 { ac_try='test -s conftest$ac_exeext'
9060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9064 (exit $ac_status); }; }; then
9066 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9068 # Check for a 64-bit object if we didn't find anything.
9069 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9072 echo "$as_me: failed program was
:" >&5
9073 cat conftest.$ac_ext >&5
9075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9076 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
9078 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9079 # Warning - without using the other run time loading flags,
9080 # -berok will link without error, but may produce a broken library.
9081 no_undefined_flag_CXX=' ${wl}-bernotok'
9082 allow_undefined_flag_CXX=' ${wl}-berok'
9083 # -bexpall does not export symbols beginning with underscore (_)
9084 always_export_symbols_CXX=yes
9085 # Exported symbols can be pulled into shared objects from archives
9086 whole_archive_flag_spec_CXX=' '
9087 archive_cmds_need_lc_CXX=yes
9088 # This is similar to how AIX traditionally builds it's shared libraries.
9089 archive_expsym_cmds_CXX="\
$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9094 case $cc_basename in
9096 # FIXME: insert proper C++ library support
9103 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9104 # as there is no search path for DLLs.
9105 hardcode_libdir_flag_spec_CXX='-L$libdir'
9106 allow_undefined_flag_CXX=
9107 always_export_symbols_CXX=yes
9109 if $LD --help 2>&1 | egrep 'auto-import' > /dev/null; then
9110 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9111 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}-retain-symbols-file $wl$export_symbols ${wl}--out-implib,$lib'
9118 # FIXME: insert proper C++ library support
9123 case $cc_basename in
9125 # FIXME: insert proper C++ library support
9129 # Green Hills C++ Compiler
9130 # FIXME: insert proper C++ library support
9134 # FIXME: insert proper C++ library support
9140 # C++ shared libraries reported to be fairly broken before switch to ELF
9144 archive_cmds_need_lc_CXX=no
9147 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9154 if test $with_gnu_ld = no; then
9155 if test "$host_cpu" = ia64; then
9156 hardcode_libdir_flag_spec_CXX='-L$libdir'
9158 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9159 hardcode_libdir_separator_CXX=:
9160 export_dynamic_flag_spec_CXX='${wl}-E'
9163 if test "$host_cpu" = ia64; then
9164 hardcode_direct_CXX=no
9165 hardcode_shlibpath_var_CXX=no
9167 hardcode_direct_CXX=yes
9169 hardcode_minus_L_CXX=yes # Not in the search PATH,
9170 # but as the default
9171 # location of the library.
9173 case $cc_basename in
9175 # FIXME: insert proper C++ library support
9181 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'
9184 if test "$host_cpu" = ia64; then
9185 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9187 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9191 # Commands to make compiler produce verbose output that lists
9192 # what "hidden
" libraries, object files and flags are used when
9193 # linking a shared library.
9195 # There doesn't appear to be a way to prevent this compiler from
9196 # explicitly linking system object files so we need to strip them
9197 # from the output so that they don't get included in the library
9199 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; echo $list'
9202 if test "$GXX" = yes; then
9203 if test $with_gnu_ld = no; then
9206 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9209 if test "$host_cpu" = ia64; then
9210 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9212 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9218 # FIXME: insert proper C++ library support
9225 case $cc_basename in
9228 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9230 # Archives containing C++ object files must be created using
9231 # "CC
-ar", where "CC
" is the IRIX C++ compiler. This is
9232 # necessary to make sure instantiated templates are included
9234 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9237 if test "$GXX" = yes; then
9238 if test "$with_gnu_ld" = no; then
9239 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9241 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
9244 link_all_deplibs_CXX=yes
9247 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9248 hardcode_libdir_separator_CXX=:
9251 case $cc_basename in
9253 # Kuck and Associates, Inc. (KAI) C++ Compiler
9255 # KCC will only create a shared library if the output file
9256 # ends with ".so
" (or ".sl
" for HP-UX), so rename the library
9257 # to its proper name (with version) after linking.
9258 archive_cmds_CXX='templib=`echo $lib | sed -e "s
/\.so\..
*/\.so
/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9259 archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s
/\.so\..
*/\.so
/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
9261 # Commands to make compiler produce verbose output that lists
9262 # what "hidden
" libraries, object files and flags are used when
9263 # linking a shared library.
9265 # There doesn't appear to be a way to prevent this compiler from
9266 # explicitly linking system object files so we need to strip them
9267 # from the output so that they don't get included in the library
9269 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld
"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9271 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9272 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9274 # Archives containing C++ object files must be created using
9275 # "CC
-Bstatic", where "CC
" is the KAI C++ compiler.
9276 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9280 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9281 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'
9283 runpath_var=LD_RUN_PATH
9284 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9285 hardcode_libdir_separator_CXX=:
9287 # Commands to make compiler produce verbose output that lists
9288 # what "hidden
" libraries, object files and flags are used when
9289 # linking a shared library.
9291 # There doesn't appear to be a way to prevent this compiler from
9292 # explicitly linking system object files so we need to strip them
9293 # from the output so that they don't get included in the library
9295 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld
"`; templist=`echo $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; echo $list'
9300 # FIXME: insert proper C++ library support
9304 # FIXME: insert proper C++ library support
9308 case $cc_basename in
9310 # FIXME: insert proper C++ library support
9314 # FIXME: insert proper C++ library support
9320 # NetBSD uses g++ - do we need to do anything?
9323 case $cc_basename in
9325 # Kuck and Associates, Inc. (KAI) C++ Compiler
9327 # KCC will only create a shared library if the output file
9328 # ends with ".so
" (or ".sl
" for HP-UX), so rename the library
9329 # to its proper name (with version) after linking.
9330 archive_cmds_CXX='templib=`echo $lib | sed -e "s
/\.so\..
*/\.so
/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9332 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9333 hardcode_libdir_separator_CXX=:
9335 # Archives containing C++ object files must be created using
9336 # "CC
-Bstatic", where "CC
" is the KAI C++ compiler.
9337 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9341 # Rational C++ 2.4.1
9342 # FIXME: insert proper C++ library support
9346 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9347 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9349 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9350 hardcode_libdir_separator_CXX=:
9352 # Commands to make compiler produce verbose output that lists
9353 # what "hidden
" libraries, object files and flags are used when
9354 # linking a shared library.
9356 # There doesn't appear to be a way to prevent this compiler from
9357 # explicitly linking system object files so we need to strip them
9358 # from the output so that they don't get included in the library
9360 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld
" | grep -v "ld
:"`; templist=`echo $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; echo $list'
9363 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9364 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9365 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9367 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9368 hardcode_libdir_separator_CXX=:
9370 # Commands to make compiler produce verbose output that lists
9371 # what "hidden
" libraries, object files and flags are used when
9372 # linking a shared library.
9373 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\
-L"'
9376 # FIXME: insert proper C++ library support
9383 case $cc_basename in
9385 # Kuck and Associates, Inc. (KAI) C++ Compiler
9387 # KCC will only create a shared library if the output file
9388 # ends with ".so
" (or ".sl
" for HP-UX), so rename the library
9389 # to its proper name (with version) after linking.
9390 archive_cmds_CXX='templib=`echo $lib | sed -e "s
/\.so\..
*/\.so
/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9392 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9393 hardcode_libdir_separator_CXX=:
9395 # Archives containing C++ object files must be created using
9396 # the KAI C++ compiler.
9397 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9400 # Rational C++ 2.4.1
9401 # FIXME: insert proper C++ library support
9405 allow_undefined_flag_CXX=' -expect_unresolved \*'
9406 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9407 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\
$i" >> $lib.exp; done~
9408 echo "-hidden">> $lib.exp~
9409 $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 $objdir/so_locations -o $lib~
9412 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9413 hardcode_libdir_separator_CXX=:
9415 # Commands to make compiler produce verbose output that lists
9416 # what "hidden
" libraries, object files and flags are used when
9417 # linking a shared library.
9419 # There doesn't appear to be a way to prevent this compiler from
9420 # explicitly linking system object files so we need to strip them
9421 # from the output so that they don't get included in the library
9423 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld
" | grep -v "ld
:"`; templist=`echo $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; echo $list'
9426 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9427 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9428 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9430 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9431 hardcode_libdir_separator_CXX=:
9433 # Commands to make compiler produce verbose output that lists
9434 # what "hidden
" libraries, object files and flags are used when
9435 # linking a shared library.
9436 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\
-L"'
9439 # FIXME: insert proper C++ library support
9446 # FIXME: insert proper C++ library support
9450 archive_cmds_need_lc_CXX=no
9451 case $cc_basename in
9453 # FIXME: insert proper C++ library support
9457 # FIXME: insert proper C++ library support
9463 case $cc_basename in
9466 # FIXME: insert proper C++ library support
9471 # FIXME: insert proper C++ library support
9475 # FIXME: insert proper C++ library support
9481 case $cc_basename in
9483 # Sun C++ 4.2, 5.x and Centerline C++
9484 no_undefined_flag_CXX=' -zdefs'
9485 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9486 archive_expsym_cmds_CXX='$echo "{ global
:" > $lib.exp~cat $export_symbols | sed -e "s
/\
(.
*\
)/\
1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9487 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9489 hardcode_libdir_flag_spec_CXX='-R$libdir'
9490 hardcode_shlibpath_var_CXX=no
9492 solaris2.0-5 | solaris2.0-5.*) ;;
9494 # The C++ compiler is used as linker so we must use $wl
9495 # flag to pass the commands to the underlying system
9497 # Supported since Solaris 2.6 (maybe 2.5.1?)
9498 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9501 link_all_deplibs_CXX=yes
9503 # Commands to make compiler produce verbose output that lists
9504 # what "hidden
" libraries, object files and flags are used when
9505 # linking a shared library.
9507 # There doesn't appear to be a way to prevent this compiler from
9508 # explicitly linking system object files so we need to strip them
9509 # from the output so that they don't get included in the library
9511 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\
-R|\
-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9513 # Archives containing C++ object files must be created using
9514 # "CC
-xar", where "CC
" is the Sun C++ compiler. This is
9515 # necessary to make sure instantiated templates are included
9517 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9520 # Green Hills C++ Compiler
9521 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9523 # The C++ compiler must be used to create the archive.
9524 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9527 # GNU C++ compiler with Solaris linker
9528 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9529 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9530 if $CC --version | egrep -v '^2\.7' > /dev/null; then
9531 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
9532 archive_expsym_cmds_CXX='$echo "{ global
:" > $lib.exp~cat $export_symbols | sed -e "s
/\
(.
*\
)/\
1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9533 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
9535 # Commands to make compiler produce verbose output that lists
9536 # what "hidden
" libraries, object files and flags are used when
9537 # linking a shared library.
9538 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.
$objext 2>&1 |
egrep \"\
-L\""
9540 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9542 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
9543 archive_expsym_cmds_CXX='$echo "{ global
:" > $lib.exp~cat $export_symbols | sed -e "s
/\
(.
*\
)/\
1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9544 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
9546 # Commands to make compiler produce verbose output that lists
9547 # what "hidden
" libraries, object files and flags are used when
9548 # linking a shared library.
9549 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.
$objext 2>&1 |
egrep \"\
-L\""
9552 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9557 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9558 archive_cmds_need_lc_CXX=no
9561 case $cc_basename in
9563 # NonStop-UX NCC 3.20
9564 # FIXME: insert proper C++ library support
9568 # FIXME: insert proper C++ library support
9574 # FIXME: insert proper C++ library support
9578 # FIXME: insert proper C++ library support
9582 echo "$as_me:$LINENO: result
: $ld_shlibs_CXX" >&5
9583 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9584 test "$ld_shlibs_CXX" = no && can_build_shared=no
9586 # Figure out "hidden
" C++ library dependencies from verbose
9587 # compiler output whening linking a shared library.
9588 cat > conftest.$ac_ext <<EOF
9592 Foo (void) { a = 0; }
9599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9600 (eval $ac_compile) 2>&5
9602 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9603 (exit $ac_status); }; then
9604 # Parse the compiler output and extract the necessary
9605 # objects, libraries and library flags.
9607 # Sentinel used to keep track of whether or not we are before
9608 # the conftest object file.
9609 pre_test_object_deps_done=no
9611 # The `*' in the case matches for architectures that use `case' in
9612 # $output_verbose_cmd can trigger glob expansion during the loop
9613 # eval without this substitution.
9614 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9616 for p in `eval $output_verbose_link_cmd`; do
9620 # Some compilers place space between "-{L
,R
}" and the path.
9623 || test $p = "-R"; then
9630 if test "$pre_test_object_deps_done" = no; then
9633 # Internal compiler library paths should come after those
9634 # provided the user. The postdeps already come after the
9635 # user supplied libs so there is no need to process them.
9636 if test -z "$compiler_lib_search_path_CXX"; then
9637 compiler_lib_search_path_CXX="${prev}${p}"
9639 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9642 # The "-l" case would never come before the object being
9643 # linked, so don't bother handling this case.
9646 if test -z "$postdeps_CXX"; then
9647 postdeps_CXX="${prev}${p}"
9649 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9655 # This assumes that the test object file only shows up
9656 # once in the compiler output.
9657 if test "$p" = "conftest.
$objext"; then
9658 pre_test_object_deps_done=yes
9662 if test "$pre_test_object_deps_done" = no; then
9663 if test -z "$predep_objects_CXX"; then
9664 predep_objects_CXX="$p"
9666 predep_objects_CXX="$predep_objects_CXX $p"
9669 if test -z "$postdep_objects_CXX"; then
9670 postdep_objects_CXX="$p"
9672 postdep_objects_CXX="$postdep_objects_CXX $p"
9677 *) ;; # Ignore the rest.
9685 echo "libtool.
m4: error
: problem compiling C
++ test program
"
9688 $rm -f confest.$objext
9690 case " $postdeps_CXX " in
9691 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
9692 *) archive_cmds_need_lc_CXX=yes ;;
9698 lt_prog_compiler_wl_CXX=
9699 lt_prog_compiler_pic_CXX=
9700 lt_prog_compiler_static_CXX=
9702 echo "$as_me:$LINENO: checking
for $compiler option to produce PIC
" >&5
9703 echo $ECHO_N "checking
for $compiler option to produce PIC...
$ECHO_C" >&6
9705 # C++ specific cases for pic, static, wl, etc.
9706 if test "$GXX" = yes; then
9707 lt_prog_compiler_wl_CXX='-Wl,'
9708 lt_prog_compiler_static_CXX='-static'
9712 # All AIX code is PIC.
9713 if test "$host_cpu" = ia64; then
9714 # AIX 5 now supports IA64 processor
9715 lt_prog_compiler_static_CXX='-Bstatic'
9719 # FIXME: we need at least 68020 code to build shared libraries, but
9720 # adding the `-m68020' flag to GCC prevents building anything better,
9722 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
9724 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9725 # PIC is the default for these OSes.
9728 # This hack is so that the source file can tell whether it is being
9729 # built for inclusion in a dll (and should export symbols for example).
9730 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9732 darwin* | rhapsody*)
9733 # PIC is the default on this platform
9734 # Common symbols not allowed in MH_DYLIB files
9735 lt_prog_compiler_pic_CXX='-fno-common'
9738 # DJGPP does not support shared libraries at all
9739 lt_prog_compiler_pic_CXX=
9742 if test -d /usr/nec; then
9743 lt_prog_compiler_pic_CXX=-Kconform_pic
9747 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
9748 if test "$host_cpu" != ia64; then
9749 lt_prog_compiler_pic_CXX='-fPIC'
9753 lt_prog_compiler_pic_CXX='-fPIC'
9759 # All AIX code is PIC.
9760 if test "$host_cpu" = ia64; then
9761 # AIX 5 now supports IA64 processor
9762 lt_prog_compiler_static_CXX='-Bstatic'
9764 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
9768 case $cc_basename in
9770 # Green Hills C++ Compiler
9771 # _LT_AC_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
"
9776 case $cc_basename in
9778 lt_prog_compiler_pic_CXX='-KPIC'
9781 # Green Hills C++ Compiler
9782 lt_prog_compiler_pic_CXX='-pic'
9789 # FreeBSD uses GNU C++
9791 hpux9* | hpux10* | hpux11*)
9792 case $cc_basename in
9794 lt_prog_compiler_wl_CXX='-Wl,'
9795 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive
"
9796 if test "$host_cpu" != ia64; then
9797 lt_prog_compiler_pic_CXX='+Z'
9801 lt_prog_compiler_wl_CXX='-Wl,'
9802 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive
"
9803 if test "$host_cpu" != ia64; then
9804 lt_prog_compiler_pic_CXX='+Z'
9811 irix5* | irix6* | nonstopux*)
9812 case $cc_basename in
9814 lt_prog_compiler_wl_CXX='-Wl,'
9815 lt_prog_compiler_static_CXX='-non_shared'
9816 # CC pic flag -KPIC is the default.
9823 case $cc_basename in
9826 lt_prog_compiler_wl_CXX='--backend -Wl,'
9827 lt_prog_compiler_pic_CXX='-fPIC'
9831 # Make sure the PIC flag is empty. It appears that all Alpha
9832 # Linux and Compaq Tru64 Unix objects are PIC.
9833 lt_prog_compiler_pic_CXX=
9834 lt_prog_compiler_static_CXX='-non_shared'
9845 case $cc_basename in
9847 lt_prog_compiler_pic_CXX='-W c,exportall'
9855 osf3* | osf4* | osf5*)
9856 case $cc_basename in
9858 lt_prog_compiler_wl_CXX='--backend -Wl,'
9861 # Rational C++ 2.4.1
9862 lt_prog_compiler_pic_CXX='-pic'
9865 # Digital/Compaq C++
9866 lt_prog_compiler_wl_CXX='-Wl,'
9867 # Make sure the PIC flag is empty. It appears that all Alpha
9868 # Linux and Compaq Tru64 Unix objects are PIC.
9869 lt_prog_compiler_pic_CXX=
9870 lt_prog_compiler_static_CXX='-non_shared'
9879 case $cc_basename in
9881 lt_prog_compiler_pic_CXX='-fPIC'
9888 case $cc_basename in
9890 # Sun C++ 4.2, 5.x and Centerline C++
9891 lt_prog_compiler_pic_CXX='-KPIC'
9892 lt_prog_compiler_static_CXX='-Bstatic'
9893 lt_prog_compiler_wl_CXX='-Qoption ld '
9896 # Green Hills C++ Compiler
9897 lt_prog_compiler_pic_CXX='-PIC'
9904 case $cc_basename in
9907 lt_prog_compiler_pic_CXX='-pic'
9908 lt_prog_compiler_static_CXX='-Bstatic'
9912 lt_prog_compiler_pic_CXX='-pic'
9919 case $cc_basename in
9921 # NonStop-UX NCC 3.20
9922 lt_prog_compiler_pic_CXX='-KPIC'
9933 lt_prog_compiler_can_build_shared_CXX=no
9938 echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic_CXX" >&5
9939 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
9942 # Check to make sure the PIC flag actually works.
9944 if test -n "$lt_prog_compiler_pic_CXX"; then
9945 echo "$as_me:$LINENO: checking
if $compiler PIC flag
$lt_prog_compiler_pic_CXX works
" >&5
9946 echo $ECHO_N "checking
if $compiler PIC flag
$lt_prog_compiler_pic_CXX works...
$ECHO_C" >&6
9947 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
9948 echo $ECHO_N "(cached
) $ECHO_C" >&6
9950 lt_prog_compiler_pic_works_CXX=no
9951 ac_outfile=conftest.$ac_objext
9952 save_CFLAGS="$CFLAGS"
9953 CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
9954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9955 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
9956 # The compiler can only warn and ignore the option if not recognized
9957 # So say no if there are warnings
9958 if test -s conftest.err; then
9959 # Append any errors to the config.log.
9960 cat conftest.err 1>&5
9962 lt_prog_compiler_pic_works_CXX=yes
9966 CFLAGS="$save_CFLAGS"
9969 echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic_works_CXX" >&5
9970 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
9972 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
9973 case $lt_prog_compiler_pic_CXX in
9975 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
9978 lt_prog_compiler_pic_CXX=
9979 lt_prog_compiler_can_build_shared_CXX=no
9984 # For platforms which do not support PIC, -DPIC is meaningless:
9986 lt_prog_compiler_pic_CXX=
9989 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
9993 echo "$as_me:$LINENO: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9994 echo $ECHO_N "checking
if $compiler supports
-c -o file.
$ac_objext...
$ECHO_C" >&6
9995 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
9996 echo $ECHO_N "(cached
) $ECHO_C" >&6
9998 lt_cv_prog_compiler_c_o_CXX=no
9999 $rm -r conftest 2>/dev/null
10003 save_CXXFLAGS="$CXXFLAGS"
10004 CXXFLAGS="$CXXFLAGS -o out
/conftest2.
$ac_objext"
10005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10007 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10008 # that will create temporary files in the current directory regardless of
10009 # the output directory. Thus, making CWD read-only will cause this test
10010 # to fail, enabling locking or at least warning the user not to do parallel
10014 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
10016 # The compiler can only warn and ignore the option if not recognized
10017 # So say no if there are warnings
10018 if test -s out/conftest.err; then
10019 # Append any errors to the config.log.
10020 cat out/conftest.err 1>&5
10022 lt_cv_prog_compiler_c_o_CXX=yes
10025 CXXFLAGS="$save_CXXFLAGS"
10027 $rm conftest* out/*
10034 echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_c_o_CXX" >&5
10035 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10038 hard_links="nottested
"
10039 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10040 # do not overwrite the value of need_locks provided by the user
10041 echo "$as_me:$LINENO: checking
if we can lock with hard links
" >&5
10042 echo $ECHO_N "checking
if we can lock with hard links...
$ECHO_C" >&6
10045 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10047 ln conftest.a conftest.b 2>&5 || hard_links=no
10048 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10049 echo "$as_me:$LINENO: result
: $hard_links" >&5
10050 echo "${ECHO_T}$hard_links" >&6
10051 if test "$hard_links" = no; then
10052 { echo "$as_me:$LINENO: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
10053 echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
10060 echo "$as_me:$LINENO: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
10061 echo $ECHO_N "checking whether the
$compiler linker
($LD) supports shared libraries...
$ECHO_C" >&6
10063 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10066 # If we're using GNU nm, then we don't want the "-C" option.
10067 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10068 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
10069 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T
") || (\$2 == "D
") || (\$2 == "B
")) && (substr(\$3,1,1) != ".
")) { print \$3 } }'\'' | sort -u > $export_symbols'
10071 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'
10075 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10078 export_symbols_cmds_CXX="$ltdll_cmds"
10081 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10085 echo "$as_me:$LINENO: result
: $ld_shlibs_CXX" >&5
10086 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10087 test "$ld_shlibs_CXX" = no && can_build_shared=no
10089 variables_saved_for_relink="PATH
$shlibpath_var $runpath_var"
10090 if test "$GCC" = yes; then
10091 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH
"
10095 # Do we need to explicitly link libc?
10097 archive_cmds_need_lc_CXX=yes
10098 if test "$enable_shared" = yes && test "$GCC" = yes; then
10099 case $archive_cmds_CXX in
10101 # FIXME: we may have to deal with multi-command sequences.
10104 # Test whether the compiler implicitly links with -lc since on some
10105 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10106 # to ld, don't add -lc before -lgcc.
10107 echo "$as_me:$LINENO: checking whether
-lc should be explicitly linked
in" >&5
10108 echo $ECHO_N "checking whether
-lc should be explicitly linked
in...
$ECHO_C" >&6
10110 echo 'static int dummy;' > conftest.$ac_ext
10112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10113 (eval $ac_compile) 2>&5
10115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10116 (exit $ac_status); } 2>conftest.err; then
10119 libobjs=conftest.$ac_objext
10121 wl=$lt_prog_compiler_wl_CXX
10127 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10128 allow_undefined_flag_CXX=
10129 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1\"") >&5
10130 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10132 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10133 (exit $ac_status); }
10135 archive_cmds_need_lc_CXX=no
10137 archive_cmds_need_lc_CXX=yes
10139 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10141 cat conftest.err 1>&5
10144 echo "$as_me:$LINENO: result
: $archive_cmds_need_lc_CXX" >&5
10145 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10150 echo "$as_me:$LINENO: checking how to hardcode library paths into programs
" >&5
10151 echo $ECHO_N "checking how to hardcode library paths into programs...
$ECHO_C" >&6
10152 hardcode_action_CXX=
10153 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10154 test -n "$runpath_var CXX
"; then
10156 # We can hardcode non-existant directories.
10157 if test "$hardcode_direct_CXX" != no &&
10158 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10159 # have to relink, otherwise we might link with an installed library
10160 # when we should be linking with a yet-to-be-installed one
10161 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var
, CXX
)" != no &&
10162 test "$hardcode_minus_L_CXX" != no; then
10163 # Linking always hardcodes the temporary library directory.
10164 hardcode_action_CXX=relink
10166 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10167 hardcode_action_CXX=immediate
10170 # We cannot hardcode anything, or else we can only hardcode existing
10172 hardcode_action_CXX=unsupported
10174 echo "$as_me:$LINENO: result
: $hardcode_action_CXX" >&5
10175 echo "${ECHO_T}$hardcode_action_CXX" >&6
10177 if test "$hardcode_action_CXX" = relink; then
10178 # Fast installation is not supported
10179 enable_fast_install=no
10180 elif test "$shlibpath_overrides_runpath" = yes ||
10181 test "$enable_shared" = no; then
10182 # Fast installation is not necessary
10183 enable_fast_install=needless
10188 echo "$as_me:$LINENO: checking whether stripping libraries is possible
" >&5
10189 echo $ECHO_N "checking whether stripping libraries is possible...
$ECHO_C" >&6
10190 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip
" >/dev/null; then
10191 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10192 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10193 echo "$as_me:$LINENO: result
: yes" >&5
10194 echo "${ECHO_T}yes" >&6
10196 echo "$as_me:$LINENO: result
: no
" >&5
10197 echo "${ECHO_T}no
" >&6
10200 echo "$as_me:$LINENO: checking dynamic linker characteristics
" >&5
10201 echo $ECHO_N "checking dynamic linker characteristics...
$ECHO_C" >&6
10202 library_names_spec=
10203 libname_spec='lib$name'
10206 postuninstall_cmds=
10210 shlibpath_overrides_runpath=unknown
10212 dynamic_linker="$host_os ld.so
"
10213 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
"
10214 if test "$GCC" = yes; then
10215 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | sed -e "s
/^libraries
://"`
10216 if echo "$sys_lib_search_path_spec" | egrep ';' >/dev/null ; then
10217 # if the path contains ";" then we assume it to be the separator
10218 # otherwise default to the standard path separator (i.e. ":") - it is
10219 # assumed that no part of a normal pathname contains ";" but that should
10220 # okay in the real world where ";" in dirpaths is itself problematic.
10221 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
10223 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s
/$PATH_SEPARATOR/ /g
"`
10226 sys_lib_search_path_spec="/lib
/usr
/lib
/usr
/local
/lib
"
10228 need_lib_prefix=unknown
10229 hardcode_into_libs=no
10231 # when you set need_version to no, make sure it does not cause -set_version
10232 # flags to be left without arguments
10233 need_version=unknown
10238 library_names_spec='${libname}${release}.so$versuffix $libname.a'
10239 shlibpath_var=LIBPATH
10241 # AIX 3 has no versioning support, so we append a major version to the name.
10242 soname_spec='${libname}${release}.so$major'
10247 if test "$host_cpu" = ia64; then
10248 # AIX 5 supports IA64
10249 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
10250 shlibpath_var=LD_LIBRARY_PATH
10252 # With GCC up to 2.95.x, collect2 would create an import file
10253 # for dependence libraries. The import file would start with
10254 # the line `#! .'. This would cause the generated library to
10255 # depend on `.', always an invalid library. This was fixed in
10256 # development snapshots of GCC prior to 3.0.
10258 aix4 | aix4.[01] | aix4.[01].*)
10259 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10261 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10264 can_build_shared=no
10268 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10269 # soname into executable. Probably we can add versioning support to
10270 # collect2, so additional links can be useful in future.
10271 if test "$aix_use_runtimelinking" = yes; then
10272 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10273 # instead of lib<name>.a to let people know that these are not
10274 # typical AIX shared libraries.
10275 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10277 # We preserve .a as extension for shared libraries through AIX4.2
10278 # and later when we are not doing run time linking.
10279 library_names_spec='${libname}${release}.a $libname.a'
10280 soname_spec='${libname}${release}.so$major'
10282 shlibpath_var=LIBPATH
10287 library_names_spec='$libname.ixlibrary $libname.a'
10288 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10289 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X
$lib" | $Xsed -e '\''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'
10293 library_names_spec='${libname}.so'
10294 dynamic_linker="$host_os ld.so
"
10295 shlibpath_var=LIBRARY_PATH
10301 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10302 soname_spec='${libname}${release}.so$major'
10303 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig $libdir'
10304 shlibpath_var=LD_LIBRARY_PATH
10305 sys_lib_search_path_spec="/shlib
/usr
/lib
/usr
/X11
/lib
/usr
/contrib
/lib
/lib
/usr
/local
/lib
"
10306 sys_lib_dlsearch_path_spec="/shlib
/usr
/lib
/usr
/local
/lib
"
10307 # the default ld.so.conf also contains /usr/contrib/lib and
10308 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10309 # libtool to hard-code these into programs
10312 cygwin* | mingw* | pw32*)
10313 version_type=windows
10316 case $GCC,$host_os in
10318 library_names_spec='$libname.dll.a'
10319 sys_lib_search_path_spec="/lib
/lib
/w32api
/usr
/lib
/usr
/local
/lib
"
10320 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
10321 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
10322 dldir=$destdir/`dirname \$dlpath`~
10323 test -d \$dldir || mkdir -p \$dldir~
10324 $install_prog .libs/$dlname \$dldir/$dlname'
10325 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
10326 dlpath=$dir/\$dldll~
10328 shlibpath_overrides_runpath=yes
10331 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
10332 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | sed -e "s
/^libraries
://"`
10333 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
10334 # It is most probably a Windows format PATH printed by
10335 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10336 # path with ; separators, and with drive letters. We can handle the
10337 # drive letters (cygwin fileutils understands them), so leave them,
10338 # especially as we might pass files found there to a mingw objdump,
10339 # which wouldn't understand a cygwinified path. Ahh.
10340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
10342 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s
/$PATH_SEPARATOR/ /g
"`
10346 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
10349 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
10352 dynamic_linker='Win32 ld.exe'
10353 # FIXME: first we should search . and the directory the executable is in
10357 darwin* | rhapsody*)
10358 dynamic_linker="$host_os dyld
"
10359 version_type=darwin
10362 # FIXME: Relying on posixy $() will cause problems for
10363 # cross-compilation, but unfortunately the echo tests do not
10364 # yet detect zsh echo's removal of \ escapes.
10365 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
10366 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
10367 shlibpath_overrides_runpath=yes
10368 shlibpath_var=DYLD_LIBRARY_PATH
10375 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10376 soname_spec='${libname}${release}.so$major'
10377 shlibpath_var=LD_LIBRARY_PATH
10385 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10386 version_type=freebsd-$objformat
10387 case $version_type in
10389 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
10394 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
10398 shlibpath_var=LD_LIBRARY_PATH
10401 shlibpath_overrides_runpath=yes
10403 freebsd3.01* | freebsdelf3.01*)
10404 shlibpath_overrides_runpath=yes
10405 hardcode_into_libs=yes
10408 shlibpath_overrides_runpath=no
10409 hardcode_into_libs=yes
10418 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
10419 soname_spec='${libname}${release}.so$major'
10420 shlibpath_var=LD_LIBRARY_PATH
10421 hardcode_into_libs=yes
10424 hpux9* | hpux10* | hpux11*)
10425 # Give a soname corresponding to the major version so that dld.sl refuses to
10426 # link against other versions.
10430 if test "$host_cpu" = ia64; then
10431 hardcode_into_libs=yes
10432 dynamic_linker="$host_os dld.so
"
10433 shlibpath_var=LD_LIBRARY_PATH
10434 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10435 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10436 soname_spec='${libname}${release}.so$major'
10437 if test "X
$HPUX_IA64_MODE" = X32; then
10438 sys_lib_search_path_spec="/usr
/lib
/hpux32
/usr
/local
/lib
/hpux32
/usr
/local
/lib
"
10440 sys_lib_search_path_spec="/usr
/lib
/hpux64
/usr
/local
/lib
/hpux64
"
10442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10444 dynamic_linker="$host_os dld.sl
"
10445 shlibpath_var=SHLIB_PATH
10446 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10447 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
10448 soname_spec='${libname}${release}.sl$major'
10450 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10451 postinstall_cmds='chmod 555 $lib'
10454 irix5* | irix6* | nonstopux*)
10456 nonstopux*) version_type=nonstopux ;;
10457 *) version_type=irix ;;
10461 soname_spec='${libname}${release}.so$major'
10462 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
10464 irix5* | nonstopux*)
10465 libsuff= shlibsuff=
10468 case $LD in # libtool.m4 will add one of these switches to LD
10469 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
10470 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
10471 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
10472 *) libsuff= shlibsuff= libmagic=never-match;;
10476 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10477 shlibpath_overrides_runpath=no
10478 sys_lib_search_path_spec="/usr
/lib
${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10479 sys_lib_dlsearch_path_spec="/usr
/lib
${libsuff} /lib
${libsuff}"
10482 # No shared lib support for Linux oldld, aout, or coff.
10483 linux*oldld* | linux*aout* | linux*coff*)
10487 # This must be Linux ELF.
10492 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10493 soname_spec='${libname}${release}.so$major'
10494 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -n $libdir'
10495 shlibpath_var=LD_LIBRARY_PATH
10496 shlibpath_overrides_runpath=no
10497 # This implies no fast_install, which is unacceptable.
10498 # Some rework will be needed to allow for fast_install
10499 # before this can be enabled.
10500 hardcode_into_libs=yes
10502 # We used to test for /lib/ld.so.1 and disable shared libraries on
10503 # powerpc, because MkLinux only supported shared libraries with the
10504 # GNU dynamic linker. Since this was broken with cross compilers,
10505 # most powerpc-linux boxes support dynamic linking these days and
10506 # people can always --disable-shared, the test was removed, and we
10507 # assume the GNU/Linux dynamic linker is in use.
10508 dynamic_linker='GNU/Linux ld.so'
10515 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10516 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10517 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
10518 dynamic_linker='NetBSD (a.out) ld.so'
10520 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
10521 soname_spec='${libname}${release}.so$major'
10522 dynamic_linker='NetBSD ld.elf_so'
10524 shlibpath_var=LD_LIBRARY_PATH
10525 shlibpath_overrides_runpath=yes
10526 hardcode_into_libs=yes
10531 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10532 shlibpath_var=LD_LIBRARY_PATH
10533 shlibpath_overrides_runpath=yes
10540 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10541 soname_spec='${libname}${release}.so$major'
10542 shlibpath_var=LD_LIBRARY_PATH
10543 shlibpath_overrides_runpath=yes
10550 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10551 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
10552 shlibpath_var=LD_LIBRARY_PATH
10553 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
10555 openbsd2.[89] | openbsd2.[89].*)
10556 shlibpath_overrides_runpath=no
10559 shlibpath_overrides_runpath=yes
10563 shlibpath_overrides_runpath=yes
10568 libname_spec='$name'
10570 library_names_spec='$libname.dll $libname.a'
10571 dynamic_linker='OS/2 ld.exe'
10572 shlibpath_var=LIBPATH
10575 osf3* | osf4* | osf5*)
10579 soname_spec='${libname}${release}.so'
10580 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
10581 shlibpath_var=LD_LIBRARY_PATH
10582 sys_lib_search_path_spec="/usr
/shlib
/usr
/ccs
/lib
/usr
/lib
/cmplrs
/cc
/usr
/lib
/usr
/local
/lib
/var
/shlib
"
10583 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10588 soname_spec='${libname}${release}.so$major'
10589 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10590 shlibpath_var=LD_LIBRARY_PATH
10597 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10598 soname_spec='${libname}${release}.so$major'
10599 shlibpath_var=LD_LIBRARY_PATH
10600 shlibpath_overrides_runpath=yes
10601 hardcode_into_libs=yes
10602 # ldd complains unless libraries are executable
10603 postinstall_cmds='chmod +x $lib'
10608 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10609 finish_cmds='PATH="\
$PATH:/usr
/etc
" ldconfig $libdir'
10610 shlibpath_var=LD_LIBRARY_PATH
10611 shlibpath_overrides_runpath=yes
10612 if test "$with_gnu_ld" = yes; then
10618 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10620 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10621 soname_spec='${libname}${release}.so$major'
10622 shlibpath_var=LD_LIBRARY_PATH
10623 case $host_vendor in
10625 shlibpath_overrides_runpath=no
10630 shlibpath_overrides_runpath=no
10631 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10637 if test -d /usr/nec ;then
10639 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
10640 soname_spec='$libname.so.$major'
10641 shlibpath_var=LD_LIBRARY_PATH
10647 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10648 soname_spec='${libname}${release}.so$major'
10649 shlibpath_var=LD_LIBRARY_PATH
10656 echo "$as_me:$LINENO: result
: $dynamic_linker" >&5
10657 echo "${ECHO_T}$dynamic_linker" >&6
10658 test "$dynamic_linker" = no && can_build_shared=no
10660 if test "x
$enable_dlopen" != xyes; then
10661 enable_dlopen=unknown
10662 enable_dlopen_self=unknown
10663 enable_dlopen_self_static=unknown
10670 lt_cv_dlopen="load_add_on
"
10672 lt_cv_dlopen_self=yes
10675 cygwin* | mingw* | pw32*)
10676 lt_cv_dlopen="LoadLibrary
"
10681 echo "$as_me:$LINENO: checking
for shl_load
" >&5
10682 echo $ECHO_N "checking
for shl_load...
$ECHO_C" >&6
10683 if test "${ac_cv_func_shl_load+set}" = set; then
10684 echo $ECHO_N "(cached
) $ECHO_C" >&6
10686 cat >conftest.$ac_ext <<_ACEOF
10687 #line $LINENO "configure
"
10688 #include "confdefs.h
"
10689 /* System header to define __stub macros and hopefully few prototypes,
10690 which can conflict with char shl_load (); below. */
10691 #include <assert.h>
10692 /* Override any gcc2 internal prototype to avoid an error. */
10696 /* We use char because int might match the return type of a gcc2
10697 builtin and then its argument prototype would still apply. */
10701 #ifdef F77_DUMMY_MAIN
10702 # ifdef __cplusplus
10705 int F77_DUMMY_MAIN() { return 1; }
10710 /* The GNU C library defines this for functions which it implements
10711 to always fail with ENOSYS. Some functions are actually named
10712 something starting with __ and the normal name is an alias. */
10713 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10723 rm -f conftest.$ac_objext conftest$ac_exeext
10724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10725 (eval $ac_link) 2>&5
10727 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10728 (exit $ac_status); } &&
10729 { ac_try='test -s conftest$ac_exeext'
10730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10731 (eval $ac_try) 2>&5
10733 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10734 (exit $ac_status); }; }; then
10735 ac_cv_func_shl_load=yes
10737 echo "$as_me: failed program was
:" >&5
10738 cat conftest.$ac_ext >&5
10739 ac_cv_func_shl_load=no
10741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10743 echo "$as_me:$LINENO: result
: $ac_cv_func_shl_load" >&5
10744 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10745 if test $ac_cv_func_shl_load = yes; then
10746 lt_cv_dlopen="shl_load
"
10748 echo "$as_me:$LINENO: checking
for shl_load
in -ldld" >&5
10749 echo $ECHO_N "checking
for shl_load
in -ldld...
$ECHO_C" >&6
10750 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10751 echo $ECHO_N "(cached
) $ECHO_C" >&6
10753 ac_check_lib_save_LIBS=$LIBS
10755 cat >conftest.$ac_ext <<_ACEOF
10756 #line $LINENO "configure
"
10757 #include "confdefs.h
"
10759 /* Override any gcc2 internal prototype to avoid an error. */
10763 /* We use char because int might match the return type of a gcc2
10764 builtin and then its argument prototype would still apply. */
10766 #ifdef F77_DUMMY_MAIN
10767 # ifdef __cplusplus
10770 int F77_DUMMY_MAIN() { return 1; }
10780 rm -f conftest.$ac_objext conftest$ac_exeext
10781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10782 (eval $ac_link) 2>&5
10784 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10785 (exit $ac_status); } &&
10786 { ac_try='test -s conftest$ac_exeext'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10790 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10791 (exit $ac_status); }; }; then
10792 ac_cv_lib_dld_shl_load=yes
10794 echo "$as_me: failed program was
:" >&5
10795 cat conftest.$ac_ext >&5
10796 ac_cv_lib_dld_shl_load=no
10798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10799 LIBS=$ac_check_lib_save_LIBS
10801 echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_shl_load" >&5
10802 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10803 if test $ac_cv_lib_dld_shl_load = yes; then
10804 lt_cv_dlopen="shl_load
" lt_cv_dlopen_libs="-dld"
10806 echo "$as_me:$LINENO: checking
for dlopen
" >&5
10807 echo $ECHO_N "checking
for dlopen...
$ECHO_C" >&6
10808 if test "${ac_cv_func_dlopen+set}" = set; then
10809 echo $ECHO_N "(cached
) $ECHO_C" >&6
10811 cat >conftest.$ac_ext <<_ACEOF
10812 #line $LINENO "configure
"
10813 #include "confdefs.h
"
10814 /* System header to define __stub macros and hopefully few prototypes,
10815 which can conflict with char dlopen (); below. */
10816 #include <assert.h>
10817 /* Override any gcc2 internal prototype to avoid an error. */
10821 /* We use char because int might match the return type of a gcc2
10822 builtin and then its argument prototype would still apply. */
10826 #ifdef F77_DUMMY_MAIN
10827 # ifdef __cplusplus
10830 int F77_DUMMY_MAIN() { return 1; }
10835 /* The GNU C library defines this for functions which it implements
10836 to always fail with ENOSYS. Some functions are actually named
10837 something starting with __ and the normal name is an alias. */
10838 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10848 rm -f conftest.$ac_objext conftest$ac_exeext
10849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10850 (eval $ac_link) 2>&5
10852 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10853 (exit $ac_status); } &&
10854 { ac_try='test -s conftest$ac_exeext'
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10858 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10859 (exit $ac_status); }; }; then
10860 ac_cv_func_dlopen=yes
10862 echo "$as_me: failed program was
:" >&5
10863 cat conftest.$ac_ext >&5
10864 ac_cv_func_dlopen=no
10866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10868 echo "$as_me:$LINENO: result
: $ac_cv_func_dlopen" >&5
10869 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10870 if test $ac_cv_func_dlopen = yes; then
10871 lt_cv_dlopen="dlopen
"
10873 echo "$as_me:$LINENO: checking
for dlopen
in -ldl" >&5
10874 echo $ECHO_N "checking
for dlopen
in -ldl...
$ECHO_C" >&6
10875 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10876 echo $ECHO_N "(cached
) $ECHO_C" >&6
10878 ac_check_lib_save_LIBS=$LIBS
10880 cat >conftest.$ac_ext <<_ACEOF
10881 #line $LINENO "configure
"
10882 #include "confdefs.h
"
10884 /* Override any gcc2 internal prototype to avoid an error. */
10888 /* We use char because int might match the return type of a gcc2
10889 builtin and then its argument prototype would still apply. */
10891 #ifdef F77_DUMMY_MAIN
10892 # ifdef __cplusplus
10895 int F77_DUMMY_MAIN() { return 1; }
10905 rm -f conftest.$ac_objext conftest$ac_exeext
10906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10907 (eval $ac_link) 2>&5
10909 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10910 (exit $ac_status); } &&
10911 { ac_try='test -s conftest$ac_exeext'
10912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913 (eval $ac_try) 2>&5
10915 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10916 (exit $ac_status); }; }; then
10917 ac_cv_lib_dl_dlopen=yes
10919 echo "$as_me: failed program was
:" >&5
10920 cat conftest.$ac_ext >&5
10921 ac_cv_lib_dl_dlopen=no
10923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10924 LIBS=$ac_check_lib_save_LIBS
10926 echo "$as_me:$LINENO: result
: $ac_cv_lib_dl_dlopen" >&5
10927 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10928 if test $ac_cv_lib_dl_dlopen = yes; then
10929 lt_cv_dlopen="dlopen
" lt_cv_dlopen_libs="-ldl"
10931 echo "$as_me:$LINENO: checking
for dlopen
in -lsvld" >&5
10932 echo $ECHO_N "checking
for dlopen
in -lsvld...
$ECHO_C" >&6
10933 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10934 echo $ECHO_N "(cached
) $ECHO_C" >&6
10936 ac_check_lib_save_LIBS=$LIBS
10937 LIBS="-lsvld $LIBS"
10938 cat >conftest.$ac_ext <<_ACEOF
10939 #line $LINENO "configure
"
10940 #include "confdefs.h
"
10942 /* Override any gcc2 internal prototype to avoid an error. */
10946 /* We use char because int might match the return type of a gcc2
10947 builtin and then its argument prototype would still apply. */
10949 #ifdef F77_DUMMY_MAIN
10950 # ifdef __cplusplus
10953 int F77_DUMMY_MAIN() { return 1; }
10963 rm -f conftest.$ac_objext conftest$ac_exeext
10964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10965 (eval $ac_link) 2>&5
10967 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10968 (exit $ac_status); } &&
10969 { ac_try='test -s conftest$ac_exeext'
10970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971 (eval $ac_try) 2>&5
10973 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10974 (exit $ac_status); }; }; then
10975 ac_cv_lib_svld_dlopen=yes
10977 echo "$as_me: failed program was
:" >&5
10978 cat conftest.$ac_ext >&5
10979 ac_cv_lib_svld_dlopen=no
10981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10982 LIBS=$ac_check_lib_save_LIBS
10984 echo "$as_me:$LINENO: result
: $ac_cv_lib_svld_dlopen" >&5
10985 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10986 if test $ac_cv_lib_svld_dlopen = yes; then
10987 lt_cv_dlopen="dlopen
" lt_cv_dlopen_libs="-lsvld"
10989 echo "$as_me:$LINENO: checking
for dld_link
in -ldld" >&5
10990 echo $ECHO_N "checking
for dld_link
in -ldld...
$ECHO_C" >&6
10991 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10992 echo $ECHO_N "(cached
) $ECHO_C" >&6
10994 ac_check_lib_save_LIBS=$LIBS
10996 cat >conftest.$ac_ext <<_ACEOF
10997 #line $LINENO "configure
"
10998 #include "confdefs.h
"
11000 /* Override any gcc2 internal prototype to avoid an error. */
11004 /* We use char because int might match the return type of a gcc2
11005 builtin and then its argument prototype would still apply. */
11007 #ifdef F77_DUMMY_MAIN
11008 # ifdef __cplusplus
11011 int F77_DUMMY_MAIN() { return 1; }
11021 rm -f conftest.$ac_objext conftest$ac_exeext
11022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11023 (eval $ac_link) 2>&5
11025 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11026 (exit $ac_status); } &&
11027 { ac_try='test -s conftest$ac_exeext'
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11031 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 ac_cv_lib_dld_dld_link=yes
11035 echo "$as_me: failed program was
:" >&5
11036 cat conftest.$ac_ext >&5
11037 ac_cv_lib_dld_dld_link=no
11039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11040 LIBS=$ac_check_lib_save_LIBS
11042 echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_dld_link" >&5
11043 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11044 if test $ac_cv_lib_dld_dld_link = yes; then
11045 lt_cv_dlopen="dld_link
" lt_cv_dlopen_libs="-dld"
11066 if test "x
$lt_cv_dlopen" != xno; then
11072 case $lt_cv_dlopen in
11074 save_CPPFLAGS="$CPPFLAGS"
11075 test "x
$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11077 save_LDFLAGS="$LDFLAGS"
11078 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11081 LIBS="$lt_cv_dlopen_libs $LIBS"
11083 echo "$as_me:$LINENO: checking whether a program can dlopen itself
" >&5
11084 echo $ECHO_N "checking whether a program can dlopen itself...
$ECHO_C" >&6
11085 if test "${lt_cv_dlopen_self+set}" = set; then
11086 echo $ECHO_N "(cached
) $ECHO_C" >&6
11088 if test "$cross_compiling" = yes; then :
11089 lt_cv_dlopen_self=cross
11091 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11092 lt_status=$lt_dlunknown
11093 cat > conftest.$ac_ext <<EOF
11094 #line 11094 "configure
"
11095 #include "confdefs.h
"
11104 # define LT_DLGLOBAL RTLD_GLOBAL
11107 # define LT_DLGLOBAL DL_GLOBAL
11109 # define LT_DLGLOBAL 0
11113 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11114 find out it does not work in some platform. */
11115 #ifndef LT_DLLAZY_OR_NOW
11117 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11120 # define LT_DLLAZY_OR_NOW DL_LAZY
11123 # define LT_DLLAZY_OR_NOW RTLD_NOW
11126 # define LT_DLLAZY_OR_NOW DL_NOW
11128 # define LT_DLLAZY_OR_NOW 0
11136 extern "C
" void exit (int);
11139 void fnord() { int i=42;}
11142 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11143 int status = $lt_dlunknown;
11147 if (dlsym (self,"fnord
")) status = $lt_dlno_uscore;
11148 else if (dlsym( self,"_fnord
")) status = $lt_dlneed_uscore;
11149 /* dlclose (self); */
11155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11156 (eval $ac_link) 2>&5
11158 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11159 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11160 (./conftest; exit; ) 2>/dev/null
11162 case x$lt_status in
11163 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11164 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11165 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11168 # compilation failed
11169 lt_cv_dlopen_self=no
11176 echo "$as_me:$LINENO: result
: $lt_cv_dlopen_self" >&5
11177 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11179 if test "x
$lt_cv_dlopen_self" = xyes; then
11180 LDFLAGS="$LDFLAGS $link_static_flag"
11181 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself
" >&5
11182 echo $ECHO_N "checking whether a statically linked program can dlopen itself...
$ECHO_C" >&6
11183 if test "${lt_cv_dlopen_self_static+set}" = set; then
11184 echo $ECHO_N "(cached
) $ECHO_C" >&6
11186 if test "$cross_compiling" = yes; then :
11187 lt_cv_dlopen_self_static=cross
11189 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11190 lt_status=$lt_dlunknown
11191 cat > conftest.$ac_ext <<EOF
11192 #line 11192 "configure
"
11193 #include "confdefs.h
"
11202 # define LT_DLGLOBAL RTLD_GLOBAL
11205 # define LT_DLGLOBAL DL_GLOBAL
11207 # define LT_DLGLOBAL 0
11211 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11212 find out it does not work in some platform. */
11213 #ifndef LT_DLLAZY_OR_NOW
11215 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11218 # define LT_DLLAZY_OR_NOW DL_LAZY
11221 # define LT_DLLAZY_OR_NOW RTLD_NOW
11224 # define LT_DLLAZY_OR_NOW DL_NOW
11226 # define LT_DLLAZY_OR_NOW 0
11234 extern "C
" void exit (int);
11237 void fnord() { int i=42;}
11240 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11241 int status = $lt_dlunknown;
11245 if (dlsym (self,"fnord
")) status = $lt_dlno_uscore;
11246 else if (dlsym( self,"_fnord
")) status = $lt_dlneed_uscore;
11247 /* dlclose (self); */
11253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11254 (eval $ac_link) 2>&5
11256 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11257 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11258 (./conftest; exit; ) 2>/dev/null
11260 case x$lt_status in
11261 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11262 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11263 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11266 # compilation failed
11267 lt_cv_dlopen_self_static=no
11274 echo "$as_me:$LINENO: result
: $lt_cv_dlopen_self_static" >&5
11275 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11278 CPPFLAGS="$save_CPPFLAGS"
11279 LDFLAGS="$save_LDFLAGS"
11284 case $lt_cv_dlopen_self in
11285 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11286 *) enable_dlopen_self=unknown ;;
11289 case $lt_cv_dlopen_self_static in
11290 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11291 *) enable_dlopen_self_static=unknown ;;
11296 # The else clause should only fire when bootstrapping the
11297 # libtool distribution, otherwise you forgot to ship ltmain.sh
11298 # with your package, and you will get complaints that there are
11299 # no rules to generate ltmain.sh.
11300 if test -f "$ltmain"; then
11301 # Now quote all the things that may contain metacharacters while being
11302 # careful not to overquote the AC_SUBSTed values. We take copies of the
11303 # variables and quote the copies for generation of the libtool script.
11304 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
11305 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11306 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11307 deplibs_check_method reload_flag reload_cmds need_locks \
11308 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11309 lt_cv_sys_global_symbol_to_c_name_address \
11310 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11311 old_postinstall_cmds old_postuninstall_cmds \
11315 lt_prog_compiler_wl_CXX \
11316 lt_prog_compiler_pic_CXX \
11317 lt_prog_compiler_static_CXX \
11318 lt_prog_compiler_no_builtin_flag_CXX \
11319 export_dynamic_flag_spec_CXX \
11320 thread_safe_flag_spec_CXX \
11321 whole_archive_flag_spec_CXX \
11322 old_archive_cmds_CXX \
11323 old_archive_from_new_cmds_CXX \
11324 predep_objects_CXX \
11325 postdep_objects_CXX \
11328 compiler_lib_search_path_CXX \
11330 archive_expsym_cmds_CXX \
11331 postinstall_cmds_CXX \
11332 postuninstall_cmds_CXX \
11333 old_archive_from_expsyms_cmds_CXX \
11334 allow_undefined_flag_CXX \
11335 no_undefined_flag_CXX \
11336 export_symbols_cmds_CXX \
11337 hardcode_libdir_flag_spec_CXX \
11338 hardcode_libdir_separator_CXX \
11339 lt_cv_prog_compiler_c_o_CXX \
11340 exclude_expsyms_CXX \
11341 include_expsyms_CXX; do
11344 old_archive_cmds_CXX | \
11345 old_archive_from_new_cmds_CXX | \
11346 archive_cmds_CXX | \
11347 archive_expsym_cmds_CXX | \
11348 old_archive_from_expsyms_cmds_CXX | \
11349 export_symbols_cmds_CXX | \
11350 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11351 postinstall_cmds | postuninstall_cmds | \
11352 old_postinstall_cmds | old_postuninstall_cmds | \
11353 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11354 # Double-quote double-evaled strings.
11355 eval "lt_
$var=\\\"\
`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11358 eval "lt_
$var=\\\"\
`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11364 *'\$0 --fallback-echo"')
11365 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's
/\\\\\\\
$0 --fallback-echo"$/$0 --fallback-echo"/'`
11371 cat <<__EOF__ >> "$cfgfile"
11372 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11374 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11376 # Shell to use when invoking shell scripts.
11379 # Whether or not to build shared libraries.
11380 build_libtool_libs=$enable_shared
11382 # Whether or not to build static libraries.
11383 build_old_libs=$enable_static
11385 # Whether or not to add -lc for building shared libraries.
11386 build_libtool_need_lc=$archive_cmds_need_lc_CXX
11388 # Whether or not to optimize for fast installation.
11389 fast_install=$enable_fast_install
11392 host_alias=$host_alias
11395 # An echo program that does not interpret backslashes.
11400 AR_FLAGS=$lt_AR_FLAGS
11405 # A language-specific compiler.
11406 CC=$lt_compiler_CXX
11408 # Is the compiler the GNU C compiler?
11411 # The linker used to build libraries.
11414 # Whether we need hard or soft links.
11417 # A BSD-compatible nm program.
11420 # A sed program that does not truncate output.
11423 # A symbol stripping program
11426 # Used to examine libraries when file_magic_cmd begins "file"
11427 MAGIC_CMD=$MAGIC_CMD
11429 # Used on cygwin: DLL creation program.
11432 # Used on cygwin: object dumper.
11435 # Used on cygwin: assembler.
11438 # The name of the directory that contains temporary libtool files.
11441 # How to create reloadable object files.
11442 reload_flag=$lt_reload_flag
11443 reload_cmds=$lt_reload_cmds
11445 # How to pass a linker flag through the compiler.
11446 wl=$lt_lt_prog_compiler_wl_CXX
11448 # Object file suffix (normally "o").
11449 objext="$ac_objext"
11451 # Old archive suffix (normally "a").
11454 # Executable file suffix (normally "").
11457 # Additional compiler flags for building library objects.
11458 pic_flag=$lt_lt_prog_compiler_pic_CXX
11461 # What is the maximum length of a command?
11462 max_cmd_len=$lt_cv_sys_max_cmd_len
11464 # Does compiler simultaneously support -c and -o options?
11465 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11467 # Must we lock files when doing compilation ?
11468 need_locks=$lt_need_locks
11470 # Do we need the lib prefix for modules?
11471 need_lib_prefix=$need_lib_prefix
11473 # Do we need a version for libraries?
11474 need_version=$need_version
11476 # Whether dlopen is supported.
11477 dlopen_support=$enable_dlopen
11479 # Whether dlopen of programs is supported.
11480 dlopen_self=$enable_dlopen_self
11482 # Whether dlopen of statically linked programs is supported.
11483 dlopen_self_static=$enable_dlopen_self_static
11485 # Compiler flag to prevent dynamic linking.
11486 link_static_flag=$lt_lt_prog_compiler_static_CXX
11488 # Compiler flag to turn off builtin functions.
11489 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
11491 # Compiler flag to allow reflexive dlopens.
11492 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
11494 # Compiler flag to generate shared objects directly from archives.
11495 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
11497 # Compiler flag to generate thread-safe objects.
11498 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
11500 # Library versioning type.
11501 version_type=$version_type
11503 # Format of library name prefix.
11504 libname_spec=$lt_libname_spec
11506 # List of archive names. First name is the real one, the rest are links.
11507 # The last name is the one that the linker finds with -lNAME.
11508 library_names_spec=$lt_library_names_spec
11510 # The coded name of the library, if different from the real name.
11511 soname_spec=$lt_soname_spec
11513 # Commands used to build and install an old-style archive.
11515 old_archive_cmds=$lt_old_archive_cmds_CXX
11516 old_postinstall_cmds=$lt_old_postinstall_cmds
11517 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11519 # Create an old-style archive from a shared archive.
11520 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
11522 # Create a temporary old-style archive to link instead of a shared archive.
11523 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
11525 # Commands used to build and install a shared archive.
11526 archive_cmds=$lt_archive_cmds_CXX
11527 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
11528 postinstall_cmds=$lt_postinstall_cmds
11529 postuninstall_cmds=$lt_postuninstall_cmds
11531 # Commands to strip libraries.
11532 old_striplib=$lt_old_striplib
11533 striplib=$lt_striplib
11535 # Dependencies to place before the objects being linked to create a
11537 predep_objects=$lt_predep_objects_CXX
11539 # Dependencies to place after the objects being linked to create a
11541 postdep_objects=$lt_postdep_objects_CXX
11543 # Dependencies to place before the objects being linked to create a
11545 predeps=$lt_predeps_CXX
11547 # Dependencies to place after the objects being linked to create a
11549 postdeps=$lt_postdeps_CXX
11551 # The library search path used internally by the compiler when linking
11552 # a shared library.
11553 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
11555 # Method to check whether dependent libraries are shared objects.
11556 deplibs_check_method=$lt_deplibs_check_method
11558 # Command to use when deplibs_check_method == file_magic.
11559 file_magic_cmd=$lt_file_magic_cmd
11561 # Flag that allows shared libraries with undefined symbols to be built.
11562 allow_undefined_flag=$lt_allow_undefined_flag_CXX
11564 # Flag that forces no undefined symbols.
11565 no_undefined_flag=$lt_no_undefined_flag_CXX
11567 # Commands used to finish a libtool library installation in a directory.
11568 finish_cmds=$lt_finish_cmds
11570 # Same as above, but a single script fragment to be evaled but not shown.
11571 finish_eval=$lt_finish_eval
11573 # Take the output of nm and produce a listing of raw symbols and C names.
11574 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11576 # Transform the output of nm in a proper C declaration
11577 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11579 # Transform the output of nm in a C name address pair
11580 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11582 # This is the shared library runtime path variable.
11583 runpath_var=$runpath_var
11585 # This is the shared library path variable.
11586 shlibpath_var=$shlibpath_var
11588 # Is shlibpath searched before the hard-coded library search path?
11589 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11591 # How to hardcode a shared library path into an executable.
11592 hardcode_action=$hardcode_action_CXX
11594 # Whether we should hardcode library paths into libraries.
11595 hardcode_into_libs=$hardcode_into_libs
11597 # Flag to hardcode \$libdir into a binary during linking.
11598 # This must work even if \$libdir does not exist.
11599 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
11601 # Whether we need a single -rpath flag with a separated argument.
11602 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
11604 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
11605 # resulting binary.
11606 hardcode_direct=$hardcode_direct_CXX
11608 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11609 # resulting binary.
11610 hardcode_minus_L=$hardcode_minus_L_CXX
11612 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11613 # the resulting binary.
11614 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
11616 # Variables whose values should be saved in libtool wrapper scripts and
11617 # restored at relink time.
11618 variables_saved_for_relink="$variables_saved_for_relink"
11620 # Whether libtool must link a program against all its dependency libraries.
11621 link_all_deplibs=$link_all_deplibs_CXX
11623 # Compile-time system search path for libraries
11624 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11626 # Run-time system search path for libraries
11627 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11629 # Fix the shell variable \$srcfile for the compiler.
11630 fix_srcfile_path="$fix_srcfile_path_CXX"
11632 # Set to yes if exported symbols are required.
11633 always_export_symbols=$always_export_symbols_CXX
11635 # The commands to list exported symbols.
11636 export_symbols_cmds=$lt_export_symbols_cmds_CXX
11638 # The commands to extract the exported symbol list from a shared archive.
11639 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11641 # Symbols that should not be listed in the preloaded symbols.
11642 exclude_expsyms=$lt_exclude_expsyms_CXX
11644 # Symbols that must always be exported.
11645 include_expsyms=$lt_include_expsyms_CXX
11647 # ### END LIBTOOL TAG CONFIG: $tagname
11653 # If there is no Makefile yet, we rely on a make rule to execute
11654 # `config.status --recheck' to rerun these tests and create the
11655 # libtool script then.
11656 test -f Makefile
&& make "$ltmain"
11661 ac_cpp
='$CXXCPP $CPPFLAGS'
11662 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11663 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11664 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11674 # Source file extension for C test sources.
11677 # Object file extension for compiled C test sources.
11681 # Code to be used in simple compile tests
11682 lt_simple_compile_test_code
="class foo {};"
11684 # Code to be used in simple link tests
11685 lt_simple_link_test_code
='public class conftest { public static void main(String argv) {}; }'
11687 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11689 # If no C compiler was specified, use CC.
11692 # Allow CC to be a program name with arguments.
11697 # Allow CC to be a program name with arguments.
11704 # GCJ did not exist at the time GCC didn't implicitly link libc in.
11705 archive_cmds_need_lc_GCJ
=no
11708 lt_prog_compiler_no_builtin_flag_GCJ
=
11710 if test "$GCC" = yes; then
11711 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
11713 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11714 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11715 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11718 lt_cv_prog_compiler_rtti_exceptions
=no
11719 ac_outfile
=conftest.
$ac_objext
11720 save_CFLAGS
="$CFLAGS"
11721 CFLAGS
="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
11722 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11723 if (eval $ac_compile 2>conftest.err
) && test -s $ac_outfile; then
11724 # The compiler can only warn and ignore the option if not recognized
11725 # So say no if there are warnings
11726 if test -s conftest.err
; then
11727 # Append any errors to the config.log.
11728 cat conftest.err
1>&5
11730 lt_cv_prog_compiler_rtti_exceptions
=yes
11734 CFLAGS
="$save_CFLAGS"
11737 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11738 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11740 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
11741 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
11748 lt_prog_compiler_wl_GCJ
=
11749 lt_prog_compiler_pic_GCJ
=
11750 lt_prog_compiler_static_GCJ
=
11752 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11753 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11755 if test "$GCC" = yes; then
11756 lt_prog_compiler_wl_GCJ
='-Wl,'
11757 lt_prog_compiler_static_GCJ
='-static'
11761 # All AIX code is PIC.
11762 if test "$host_cpu" = ia64
; then
11763 # AIX 5 now supports IA64 processor
11764 lt_prog_compiler_static_GCJ
='-Bstatic'
11769 # FIXME: we need at least 68020 code to build shared libraries, but
11770 # adding the `-m68020' flag to GCC prevents building anything better,
11772 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
11775 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
11776 # PIC is the default for these OSes.
11779 mingw
* | pw32
* | os2
*)
11780 # This hack is so that the source file can tell whether it is being
11781 # built for inclusion in a dll (and should export symbols for example).
11782 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
11785 darwin
* | rhapsody
*)
11786 # PIC is the default on this platform
11787 # Common symbols not allowed in MH_DYLIB files
11788 lt_prog_compiler_pic_GCJ
='-fno-common'
11792 # Just because we use GCC doesn't mean we suddenly get shared libraries
11793 # on systems that don't support them.
11794 lt_prog_compiler_can_build_shared_GCJ
=no
11799 if test -d /usr
/nec
; then
11800 lt_prog_compiler_pic_GCJ
=-Kconform_pic
11805 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
11806 if test "$host_cpu" != ia64
; then
11807 lt_prog_compiler_pic_GCJ
='-fPIC'
11812 lt_prog_compiler_pic_GCJ
='-fPIC'
11816 # PORTME Check for flag to pass linker flags through the system compiler.
11819 lt_prog_compiler_wl_GCJ
='-Wl,'
11820 if test "$host_cpu" = ia64
; then
11821 # AIX 5 now supports IA64 processor
11822 lt_prog_compiler_static_GCJ
='-Bstatic'
11824 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
11828 mingw
* | pw32
* | os2
*)
11829 # This hack is so that the source file can tell whether it is being
11830 # built for inclusion in a dll (and should export symbols for example).
11831 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
11834 hpux9
* | hpux10
* | hpux11
*)
11835 lt_prog_compiler_wl_GCJ
='-Wl,'
11836 if test "$host_cpu" != ia64
; then
11837 lt_prog_compiler_pic_GCJ
='+Z'
11839 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11840 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
11843 irix5
* | irix6
* | nonstopux
*)
11844 lt_prog_compiler_wl_GCJ
='-Wl,'
11845 # PIC (with -KPIC) is the default.
11846 lt_prog_compiler_static_GCJ
='-non_shared'
11850 lt_prog_compiler_pic_GCJ
='-KPIC'
11851 lt_prog_compiler_static_GCJ
='-Bstatic'
11854 osf3
* | osf4
* | osf5
*)
11855 lt_prog_compiler_wl_GCJ
='-Wl,'
11856 # All OSF/1 code is PIC.
11857 lt_prog_compiler_static_GCJ
='-non_shared'
11861 lt_prog_compiler_pic_GCJ
='-Kpic'
11862 lt_prog_compiler_static_GCJ
='-dn'
11866 lt_prog_compiler_wl_GCJ
='-Wl,'
11867 lt_prog_compiler_pic_GCJ
='-KPIC'
11868 lt_prog_compiler_static_GCJ
='-Bstatic'
11872 lt_prog_compiler_wl_GCJ
='-Qoption ld '
11873 lt_prog_compiler_pic_GCJ
='-PIC'
11874 lt_prog_compiler_static_GCJ
='-Bstatic'
11877 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
11878 if test "x$host_vendor" = xsni
; then
11879 lt_prog_compiler_wl_GCJ
='-LD'
11881 lt_prog_compiler_wl_GCJ
='-Wl,'
11883 lt_prog_compiler_pic_GCJ
='-KPIC'
11884 lt_prog_compiler_static_GCJ
='-Bstatic'
11888 if test -d /usr
/nec
;then
11889 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
11890 lt_prog_compiler_static_GCJ
='-Bstatic'
11895 lt_prog_compiler_pic_GCJ
='-pic'
11896 lt_prog_compiler_static_GCJ
='-Bstatic'
11900 lt_prog_compiler_can_build_shared_GCJ
=no
11905 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
11906 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
11909 # Check to make sure the PIC flag actually works.
11911 if test -n "$lt_prog_compiler_pic_GCJ"; then
11912 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
11913 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
11914 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11917 lt_prog_compiler_pic_works_GCJ
=no
11918 ac_outfile
=conftest.
$ac_objext
11919 save_CFLAGS
="$CFLAGS"
11920 CFLAGS
="$CFLAGS $lt_prog_compiler_pic_GCJ"
11921 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11922 if (eval $ac_compile 2>conftest.err
) && test -s $ac_outfile; then
11923 # The compiler can only warn and ignore the option if not recognized
11924 # So say no if there are warnings
11925 if test -s conftest.err
; then
11926 # Append any errors to the config.log.
11927 cat conftest.err
1>&5
11929 lt_prog_compiler_pic_works_GCJ
=yes
11933 CFLAGS
="$save_CFLAGS"
11936 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
11937 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
11939 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
11940 case $lt_prog_compiler_pic_GCJ in
11942 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
11945 lt_prog_compiler_pic_GCJ
=
11946 lt_prog_compiler_can_build_shared_GCJ
=no
11951 # For platforms which do not support PIC, -DPIC is meaningless:
11953 lt_prog_compiler_pic_GCJ
=
11956 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
11960 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11961 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11962 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
11963 echo $ECHO_N "(cached) $ECHO_C" >&6
11965 lt_cv_prog_compiler_c_o_GCJ
=no
11966 $rm -r conftest
2>/dev
/null
11970 save_GCJFLAGS
="$CFLAGS"
11971 CFLAGS
="$GCJFLAGS -o out/conftest2.$ac_objext"
11972 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11974 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11975 # that will create temporary files in the current directory regardless of
11976 # the output directory. Thus, making CWD read-only will cause this test
11977 # to fail, enabling locking or at least warning the user not to do parallel
11981 if (eval $ac_compile 2>out
/conftest.err
) && test -s out
/conftest2.
$ac_objext
11983 # The compiler can only warn and ignore the option if not recognized
11984 # So say no if there are warnings
11985 if test -s out
/conftest.err
; then
11986 # Append any errors to the config.log.
11987 cat out
/conftest.err
1>&5
11989 lt_cv_prog_compiler_c_o_GCJ
=yes
11992 CFLAGS
="$save_CFLAGS"
11994 $rm conftest
* out
/*
12001 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
12002 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
12005 hard_links
="nottested"
12006 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
12007 # do not overwrite the value of need_locks provided by the user
12008 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12009 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12012 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12014 ln conftest.a conftest.b
2>&5 || hard_links
=no
12015 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12016 echo "$as_me:$LINENO: result: $hard_links" >&5
12017 echo "${ECHO_T}$hard_links" >&6
12018 if test "$hard_links" = no
; then
12019 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12020 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12027 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12028 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12031 allow_undefined_flag_GCJ
=
12034 archive_cmds_need_lc_GCJ
=
12035 archive_expsym_cmds_GCJ
=
12036 old_archive_From_new_cmds_GCJ
=
12037 old_archive_from_expsyms_cmds_GCJ
=
12038 export_dynamic_flag_spec_GCJ
=
12039 whole_archive_flag_spec_GCJ
=
12040 thread_safe_flag_spec_GCJ
=
12041 hardcode_libdir_flag_spec_GCJ
=
12042 hardcode_libdir_separator_GCJ
=
12043 hardcode_direct_GCJ
=no
12044 hardcode_minus_L_GCJ
=no
12045 hardcode_shlibpath_var_GCJ
=unsupported
12046 link_all_deplibs_GCJ
=unknown
12047 always_export_symbols_GCJ
=no
12048 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
12049 # include_expsyms should be a list of space-separated symbols to be *always*
12050 # included in the symbol list
12051 include_expsyms_GCJ
=
12052 # exclude_expsyms can be an egrep regular expression of symbols to exclude
12053 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12054 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12055 # as well as any symbol that contains `d'.
12056 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
12057 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12058 # platforms (ab)use it in PIC code, but their linkers get confused if
12059 # the symbol is explicitly referenced. Since portable code cannot
12060 # rely on this symbol name, it's probably fine to never include it in
12061 # preloaded symbol tables.
12062 extract_expsyms_cmds
=
12065 cygwin
* | mingw
* | pw32
*)
12066 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12067 # When not using gcc, we currently assume that we are using
12068 # Microsoft Visual C++.
12069 if test "$GCC" != yes; then
12079 if test "$with_gnu_ld" = yes; then
12080 # If archive_cmds runs LD, not CC, wlarc should be empty
12083 # See if GNU ld supports shared libraries.
12085 aix3
* | aix4
* | aix5
*)
12086 # On AIX/PPC, the GNU linker is very broken
12087 if test "$host_cpu" != ia64
; then
12091 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12092 *** to be unable to reliably create shared libraries on AIX.
12093 *** Therefore, libtool is disabling shared libraries support. If you
12094 *** really care for shared libraries, you may want to modify your PATH
12095 *** so that a non-GNU linker is found, and then restart.
12102 archive_cmds_GCJ
='$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)'
12103 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
12104 hardcode_minus_L_GCJ
=yes
12106 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12107 # that the semantics of dynamic libraries on AmigaOS, at least up
12108 # to version 4, is to share data among multiple programs linked
12109 # with the same dynamic library. Since this doesn't match the
12110 # behavior of shared libraries on other platforms, we can't use
12116 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
12117 allow_undefined_flag_GCJ
=unsupported
12118 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12119 # support --undefined. This deserves some investigation. FIXME
12120 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12127 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
12128 # as there is no search path for DLLs.
12129 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
12130 allow_undefined_flag_GCJ
=
12131 always_export_symbols_GCJ
=yes
12133 if $LD --help 2>&1 |
egrep 'auto-import' > /dev
/null
; then
12134 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12135 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-retain-symbols-file $wl$export_symbols ${wl}--out-implib,$lib'
12142 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
12143 # no search path for DLLs.
12144 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
12145 allow_undefined_flag_GCJ
=unsupported
12146 always_export_symbols_GCJ
=yes
12148 extract_expsyms_cmds
='test -f $output_objdir/impgen.c || \
12149 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
12150 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
12151 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
12152 else $CC -o impgen impgen.c ; fi)~
12153 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
12155 old_archive_from_expsyms_cmds_GCJ
='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
12157 # FIXME: what about values for MSVC?
12158 dll_entry
=__cygwin_dll_entry@
12
12162 dll_entry
=_DllMainCRTStartup@
12
12166 dll_exclude_symbols
=DllMain@
12,_cygwin_dll_entry@
12,_cygwin_noncygwin_dll_entry@
12,DllMainCRTStartup@
12,DllEntryPoint@
12
12168 # recent cygwin and mingw systems supply a stub DllMain which the user
12169 # can override, but on older systems we have to supply one (in ltdll.c)
12170 if test "x$lt_cv_need_dllmain" = "xyes"; then
12171 ltdll_obj
='$output_objdir/$soname-ltdll.'"$ac_objext "
12172 ltdll_cmds
='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
12173 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
12179 # Extract the symbol export list from an `--export-all' def file,
12180 # then regenerate the def file from the symbol export list, so that
12181 # the compiled dll only exports the symbol export list.
12182 # Be careful not to strip the DATA tag left by newer dlltools.
12183 export_symbols_cmds_GCJ
="$ltdll_cmds"'
12184 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
12185 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
12187 # If the export-symbols file already is a .def file (1st line
12188 # is EXPORTS), use it as is.
12189 # If DATA tags from a recent dlltool are present, honour them!
12190 archive_expsym_cmds_GCJ
='if test "x`head -1 $export_symbols`" = xEXPORTS; then
12191 cp $export_symbols $output_objdir/$soname-def;
12193 echo EXPORTS > $output_objdir/$soname-def;
12195 cat $export_symbols | while read symbol; do
12196 set dummy \$symbol;
12198 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
12199 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
12201 _lt_hint=`expr 1 + \$_lt_hint`;
12205 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
12206 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
12207 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
12208 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
12209 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
12213 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12214 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12217 archive_cmds_GCJ
='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12218 archive_expsym_cmds_GCJ
='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12223 if $LD -v 2>&1 |
egrep 'BFD 2\.8' > /dev
/null
; then
12227 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12228 *** create shared libraries on Solaris systems. Therefore, libtool
12229 *** is disabling shared libraries support. We urge you to upgrade GNU
12230 *** binutils to release 2.9.1 or newer. Another option is to modify
12231 *** your PATH or compiler configuration so that the native linker is
12232 *** used, and then restart.
12235 elif $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
12236 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12237 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12244 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12246 hardcode_direct_GCJ
=yes
12247 hardcode_shlibpath_var_GCJ
=no
12251 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
12252 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12253 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12260 if test "$ld_shlibs_GCJ" = yes; then
12261 runpath_var
=LD_RUN_PATH
12262 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
12263 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
12265 cygwin
* | mingw
* | pw32
*)
12266 # dlltool doesn't understand --whole-archive et. al.
12267 whole_archive_flag_spec_GCJ
=
12270 # ancient GNU ld didn't support --whole-archive et. al.
12271 if $LD --help 2>&1 |
egrep 'no-whole-archive' > /dev
/null
; then
12272 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12274 whole_archive_flag_spec_GCJ
=
12280 # PORTME fill in a description of your system's linker (not GNU ld)
12283 allow_undefined_flag_GCJ
=unsupported
12284 always_export_symbols_GCJ
=yes
12285 archive_expsym_cmds_GCJ
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12286 # Note: this linker hardcodes the directories in LIBPATH if there
12287 # are no directories specified by -L.
12288 hardcode_minus_L_GCJ
=yes
12289 if test "$GCC" = yes && test -z "$link_static_flag"; then
12290 # Neither direct hardcoding nor static linking is supported with a
12292 hardcode_direct_GCJ
=unsupported
12297 if test "$host_cpu" = ia64
; then
12298 # On IA64, the linker does run time linking by default, so we don't
12299 # have to do anything special.
12300 aix_use_runtimelinking
=no
12301 exp_sym_flag
='-Bexport'
12304 # If we're using GNU nm, then we don't want the "-C" option.
12305 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12306 if $NM -V 2>&1 |
egrep '(GNU)' > /dev
/null
; then
12307 export_symbols_cmds_GCJ
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12309 export_symbols_cmds_GCJ
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12311 aix_use_runtimelinking
=no
12313 # Test if we are trying to use run time linking or normal
12314 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12315 # need to do runtime linking.
12316 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
12317 for ld_flag
in $LDFLAGS; do
12318 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
12319 aix_use_runtimelinking
=yes
12325 exp_sym_flag
='-bexport'
12326 no_entry_flag
='-bnoentry'
12329 # When large executables or shared objects are built, AIX ld can
12330 # have problems creating the table of contents. If linking a library
12331 # or program results in "error TOC overflow" add -mminimal-toc to
12332 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12333 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12335 archive_cmds_GCJ
=''
12336 hardcode_direct_GCJ
=yes
12337 hardcode_libdir_separator_GCJ
=':'
12338 link_all_deplibs_GCJ
=yes
12340 if test "$GCC" = yes; then
12341 case $host_os in aix4.012|aix4.012.
*)
12342 # We only want to do this on AIX 4.2 and lower, the check
12343 # below for broken collect2 doesn't work under 4.3+
12344 collect2name
=`${CC} -print-prog-name=collect2`
12345 if test -f "$collect2name" && \
12346 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
12348 # We have reworked collect2
12349 hardcode_direct_GCJ
=yes
12351 # We have old collect2
12352 hardcode_direct_GCJ
=unsupported
12353 # It fails to find uninstalled libraries when the uninstalled
12354 # path is not listed in the libpath. Setting hardcode_minus_L
12355 # to unsupported forces relinking
12356 hardcode_minus_L_GCJ
=yes
12357 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
12358 hardcode_libdir_separator_GCJ
=
12361 shared_flag
='-shared'
12364 if test "$host_cpu" = ia64
; then
12365 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12366 # chokes on -Wl,-G. The following line is correct:
12369 if test "$aix_use_runtimelinking" = yes; then
12370 shared_flag
='${wl}-G'
12372 shared_flag
='${wl}-bM:SRE'
12377 # It seems that -bexpall does not export symbols beginning with
12378 # underscore (_), so it is better to generate a list of symbols to export.
12379 always_export_symbols_GCJ
=yes
12380 if test "$aix_use_runtimelinking" = yes; then
12381 # Warning - without using the other runtime loading flags (-brtl),
12382 # -berok will link without error, but may produce a broken library.
12383 allow_undefined_flag_GCJ
='-berok'
12384 # Determine the default libpath from the value encoded in an empty executable.
12385 cat >conftest.
$ac_ext <<_ACEOF
12386 #line $LINENO "configure"
12387 #include "confdefs.h"
12389 #ifdef F77_DUMMY_MAIN
12390 # ifdef __cplusplus
12393 int F77_DUMMY_MAIN() { return 1; }
12403 rm -f conftest.
$ac_objext conftest
$ac_exeext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12405 (eval $ac_link) 2>&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try
='test -s conftest$ac_exeext'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; }; then
12416 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12418 # Check for a 64-bit object if we didn't find anything.
12419 if test -z "$aix_libpath"; then aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12422 echo "$as_me: failed program was:" >&5
12423 cat conftest.
$ac_ext >&5
12425 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12426 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12428 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
12429 archive_expsym_cmds_GCJ
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12431 if test "$host_cpu" = ia64; then
12432 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr
/lib
:/lib
'
12433 allow_undefined_flag_GCJ="-z nodefs"
12434 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
12436 # Determine the default libpath from the value encoded in an empty executable.
12437 cat >conftest.$ac_ext <<_ACEOF
12438 #line $LINENO "configure
"
12439 #include "confdefs.h
"
12441 #ifdef F77_DUMMY_MAIN
12442 # ifdef __cplusplus
12445 int F77_DUMMY_MAIN() { return 1; }
12455 rm -f conftest.$ac_objext conftest$ac_exeext
12456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12457 (eval $ac_link) 2>&5
12459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12460 (exit $ac_status); } &&
12461 { ac_try='test -s conftest$ac_exeext'
12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12465 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12466 (exit $ac_status); }; }; then
12468 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12470 # Check for a 64-bit object if we didn't find anything.
12471 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12474 echo "$as_me: failed program was
:" >&5
12475 cat conftest.$ac_ext >&5
12477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12478 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
12480 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
12481 # Warning - without using the other run time loading flags,
12482 # -berok will link without error, but may produce a broken library.
12483 no_undefined_flag_GCJ=' ${wl}-bernotok'
12484 allow_undefined_flag_GCJ=' ${wl}-berok'
12485 # -bexpall does not export symbols beginning with underscore (_)
12486 always_export_symbols_GCJ=yes
12487 # Exported symbols can be pulled into shared objects from archives
12488 whole_archive_flag_spec_GCJ=' '
12489 archive_cmds_need_lc_GCJ=yes
12490 # This is similar to how AIX traditionally builds it's shared libraries.
12491 archive_expsym_cmds_GCJ="\
$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12497 archive_cmds_GCJ='$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)'
12498 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
12499 hardcode_minus_L_GCJ
=yes
12500 # see comment about different semantics on the GNU ld section
12505 export_dynamic_flag_spec_GCJ
=-rdynamic
12508 cygwin
* | mingw
* | pw32
*)
12509 # When not using gcc, we currently assume that we are using
12510 # Microsoft Visual C++.
12511 # hardcode_libdir_flag_spec is actually meaningless, as there is
12512 # no search path for DLLs.
12513 hardcode_libdir_flag_spec_GCJ
=' '
12514 allow_undefined_flag_GCJ
=unsupported
12515 # Tell ltmain to make .lib files, not .a files.
12517 # FIXME: Setting linknames here is a bad hack.
12518 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12519 # The linker will automatically build a .lib file if we build a DLL.
12520 old_archive_From_new_cmds_GCJ
='true'
12521 # FIXME: Should let the user specify the lib program.
12522 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
12523 fix_srcfile_path
='`cygpath -w "$srcfile"`'
12526 darwin
* | rhapsody
*)
12528 rhapsody
* | darwin1.
[012])
12529 allow_undefined_flag_GCJ
='-undefined suppress'
12532 allow_undefined_flag_GCJ
='-flat_namespace -undefined suppress'
12536 # FIXME: Relying on posixy $() will cause problems for
12537 # cross-compilation, but unfortunately the echo tests do not
12538 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
12539 # `"' quotes if we put them in here... so don't!
12540 archive_cmds_GCJ
='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
12541 # We need to add '_' to the symbols in $export_symbols first
12542 #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
12543 hardcode_direct_GCJ
=yes
12544 hardcode_shlibpath_var_GCJ
=no
12545 whole_archive_flag_spec_GCJ
='-all_load $convenience'
12549 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12550 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
12551 hardcode_shlibpath_var_GCJ
=no
12558 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12559 # support. Future versions do this automatically, but an explicit c++rt0.o
12560 # does not break anything, and helps significantly (at the cost of a little
12563 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12564 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
12565 hardcode_direct_GCJ
=yes
12566 hardcode_shlibpath_var_GCJ
=no
12569 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12571 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12572 hardcode_direct_GCJ
=yes
12573 hardcode_minus_L_GCJ
=yes
12574 hardcode_shlibpath_var_GCJ
=no
12577 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12579 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12580 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
12581 hardcode_direct_GCJ
=yes
12582 hardcode_shlibpath_var_GCJ
=no
12585 hpux9
* | hpux10
* | hpux11
*)
12586 if test "$GCC" = yes; then
12589 archive_cmds_GCJ
='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12592 if test "$host_cpu" = ia64
; then
12593 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12595 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12602 archive_cmds_GCJ
='$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'
12605 if test "$host_cpu" = ia64
; then
12606 archive_cmds_GCJ
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12608 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12613 if test "$host_cpu" = ia64
; then
12614 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
12615 hardcode_direct_GCJ
=no
12616 hardcode_shlibpath_var_GCJ
=no
12618 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
12619 hardcode_libdir_separator_GCJ
=:
12620 hardcode_direct_GCJ
=yes
12622 # hardcode_minus_L: Not really in the search PATH,
12623 # but as the default location of the library.
12624 hardcode_minus_L_GCJ
=yes
12625 export_dynamic_flag_spec_GCJ
='${wl}-E'
12628 irix5
* | irix6
* | nonstopux
*)
12629 if test "$GCC" = yes; then
12630 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12632 archive_cmds_GCJ
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12634 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
12635 hardcode_libdir_separator_GCJ
=:
12636 link_all_deplibs_GCJ
=yes
12640 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12641 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12643 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12645 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
12646 hardcode_direct_GCJ
=yes
12647 hardcode_shlibpath_var_GCJ
=no
12651 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12652 hardcode_direct_GCJ
=yes
12653 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
12654 hardcode_libdir_separator_GCJ
=:
12655 hardcode_shlibpath_var_GCJ
=no
12659 hardcode_direct_GCJ
=yes
12660 hardcode_shlibpath_var_GCJ
=no
12662 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12663 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
12664 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
12665 export_dynamic_flag_spec_GCJ
='${wl}-E'
12668 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
12669 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12670 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
12673 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
12674 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
12681 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
12682 hardcode_minus_L_GCJ
=yes
12683 allow_undefined_flag_GCJ
=unsupported
12684 archive_cmds_GCJ
='$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'
12685 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12689 if test "$GCC" = yes; then
12690 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
12691 archive_cmds_GCJ
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12693 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
12694 archive_cmds_GCJ
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12696 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
12697 hardcode_libdir_separator_GCJ
=:
12700 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
12701 if test "$GCC" = yes; then
12702 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
12703 archive_cmds_GCJ
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12704 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
12706 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
12707 archive_cmds_GCJ
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12708 archive_expsym_cmds_GCJ
='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12709 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
12711 # Both c and cxx compiler support -rpath directly
12712 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
12714 hardcode_libdir_separator_GCJ
=:
12718 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12719 hardcode_shlibpath_var_GCJ
=no
12720 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
12721 runpath_var
=LD_RUN_PATH
12722 hardcode_runpath_var
=yes
12726 no_undefined_flag_GCJ
=' -z text'
12727 if test "$GCC" = yes; then
12728 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12729 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12730 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12732 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12733 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12734 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12736 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
12737 hardcode_shlibpath_var_GCJ
=no
12739 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12740 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12741 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
12743 link_all_deplibs_GCJ
=yes
12747 if test "x$host_vendor" = xsequent
; then
12748 # Use $CC to link under sequent, because it throws in some extra .o
12749 # files that make .init and .fini sections work.
12750 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12752 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12754 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
12755 hardcode_direct_GCJ
=yes
12756 hardcode_minus_L_GCJ
=yes
12757 hardcode_shlibpath_var_GCJ
=no
12761 if test "x$host_vendor" = xsni
; then
12762 archive_cmds_GCJ
='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
12763 hardcode_direct_GCJ
=yes # is this really true???
12765 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12766 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
12768 runpath_var
='LD_RUN_PATH'
12769 hardcode_shlibpath_var_GCJ
=no
12773 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12774 hardcode_shlibpath_var_GCJ
=no
12775 export_dynamic_flag_spec_GCJ
='-Bexport'
12779 if test -d /usr
/nec
; then
12780 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12781 hardcode_shlibpath_var_GCJ
=no
12782 runpath_var
=LD_RUN_PATH
12783 hardcode_runpath_var
=yes
12789 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12790 hardcode_direct_GCJ
=yes
12791 hardcode_minus_L_GCJ
=no
12792 hardcode_shlibpath_var_GCJ
=no
12793 hardcode_runpath_var
=yes
12794 runpath_var
=LD_RUN_PATH
12797 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
12798 no_undefined_flag_GCJ
='${wl}-z ${wl}text'
12799 if test "$GCC" = yes; then
12800 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12802 archive_cmds_GCJ
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12804 runpath_var
='LD_RUN_PATH'
12805 hardcode_shlibpath_var_GCJ
=no
12809 no_undefined_flag_GCJ
=' -z text'
12810 # $CC -shared without GNU ld will not create a library from C++
12811 # object files and a static libstdc++, better avoid it by now
12812 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12813 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12814 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12815 hardcode_libdir_flag_spec_GCJ
=
12816 hardcode_shlibpath_var_GCJ
=no
12817 runpath_var
='LD_RUN_PATH'
12821 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12822 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
12823 hardcode_shlibpath_var_GCJ
=no
12832 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
12833 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
12834 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
12836 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
12837 if test "$GCC" = yes; then
12838 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12842 # Do we need to explicitly link libc?
12844 archive_cmds_need_lc_GCJ
=yes
12845 if test "$enable_shared" = yes && test "$GCC" = yes; then
12846 case $archive_cmds_GCJ in
12848 # FIXME: we may have to deal with multi-command sequences.
12851 # Test whether the compiler implicitly links with -lc since on some
12852 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12853 # to ld, don't add -lc before -lgcc.
12854 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12855 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12857 echo 'static int dummy;' > conftest.
$ac_ext
12859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12860 (eval $ac_compile) 2>&5
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); } 2>conftest.err
; then
12866 libobjs
=conftest.
$ac_objext
12868 wl
=$lt_prog_compiler_wl_GCJ
12874 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
12875 allow_undefined_flag_GCJ
=
12876 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12877 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }
12882 archive_cmds_need_lc_GCJ
=no
12884 archive_cmds_need_lc_GCJ
=yes
12886 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
12888 cat conftest.err
1>&5
12891 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
12892 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
12897 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12898 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12899 hardcode_action_GCJ
=
12900 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
12901 test -n "$runpath_var GCJ"; then
12903 # We can hardcode non-existant directories.
12904 if test "$hardcode_direct_GCJ" != no
&&
12905 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12906 # have to relink, otherwise we might link with an installed library
12907 # when we should be linking with a yet-to-be-installed one
12908 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
12909 test "$hardcode_minus_L_GCJ" != no
; then
12910 # Linking always hardcodes the temporary library directory.
12911 hardcode_action_GCJ
=relink
12913 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12914 hardcode_action_GCJ
=immediate
12917 # We cannot hardcode anything, or else we can only hardcode existing
12919 hardcode_action_GCJ
=unsupported
12921 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
12922 echo "${ECHO_T}$hardcode_action_GCJ" >&6
12924 if test "$hardcode_action_GCJ" = relink
; then
12925 # Fast installation is not supported
12926 enable_fast_install
=no
12927 elif test "$shlibpath_overrides_runpath" = yes ||
12928 test "$enable_shared" = no
; then
12929 # Fast installation is not necessary
12930 enable_fast_install
=needless
12935 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12936 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12937 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
12938 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12939 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12940 echo "$as_me:$LINENO: result: yes" >&5
12941 echo "${ECHO_T}yes" >&6
12943 echo "$as_me:$LINENO: result: no" >&5
12944 echo "${ECHO_T}no" >&6
12947 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12948 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12949 library_names_spec
=
12950 libname_spec
='lib$name'
12953 postuninstall_cmds
=
12957 shlibpath_overrides_runpath
=unknown
12959 dynamic_linker
="$host_os ld.so"
12960 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12961 if test "$GCC" = yes; then
12962 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
12963 if echo "$sys_lib_search_path_spec" |
egrep ';' >/dev
/null
; then
12964 # if the path contains ";" then we assume it to be the separator
12965 # otherwise default to the standard path separator (i.e. ":") - it is
12966 # assumed that no part of a normal pathname contains ";" but that should
12967 # okay in the real world where ";" in dirpaths is itself problematic.
12968 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
12970 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
12973 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
12975 need_lib_prefix
=unknown
12976 hardcode_into_libs
=no
12978 # when you set need_version to no, make sure it does not cause -set_version
12979 # flags to be left without arguments
12980 need_version
=unknown
12985 library_names_spec
='${libname}${release}.so$versuffix $libname.a'
12986 shlibpath_var
=LIBPATH
12988 # AIX 3 has no versioning support, so we append a major version to the name.
12989 soname_spec
='${libname}${release}.so$major'
12994 if test "$host_cpu" = ia64
; then
12995 # AIX 5 supports IA64
12996 library_names_spec
='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
12997 shlibpath_var
=LD_LIBRARY_PATH
12999 # With GCC up to 2.95.x, collect2 would create an import file
13000 # for dependence libraries. The import file would start with
13001 # the line `#! .'. This would cause the generated library to
13002 # depend on `.', always an invalid library. This was fixed in
13003 # development snapshots of GCC prior to 3.0.
13005 aix4 | aix4.
[01] | aix4.
[01].
*)
13006 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13008 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
13011 can_build_shared
=no
13015 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13016 # soname into executable. Probably we can add versioning support to
13017 # collect2, so additional links can be useful in future.
13018 if test "$aix_use_runtimelinking" = yes; then
13019 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13020 # instead of lib<name>.a to let people know that these are not
13021 # typical AIX shared libraries.
13022 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13024 # We preserve .a as extension for shared libraries through AIX4.2
13025 # and later when we are not doing run time linking.
13026 library_names_spec
='${libname}${release}.a $libname.a'
13027 soname_spec
='${libname}${release}.so$major'
13029 shlibpath_var
=LIBPATH
13034 library_names_spec
='$libname.ixlibrary $libname.a'
13035 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13036 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
13040 library_names_spec
='${libname}.so'
13041 dynamic_linker
="$host_os ld.so"
13042 shlibpath_var
=LIBRARY_PATH
13048 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13049 soname_spec
='${libname}${release}.so$major'
13050 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
13051 shlibpath_var
=LD_LIBRARY_PATH
13052 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13053 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
13054 # the default ld.so.conf also contains /usr/contrib/lib and
13055 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13056 # libtool to hard-code these into programs
13059 cygwin
* | mingw
* | pw32
*)
13060 version_type
=windows
13063 case $GCC,$host_os in
13065 library_names_spec
='$libname.dll.a'
13066 sys_lib_search_path_spec
="/lib /lib/w32api /usr/lib /usr/local/lib"
13067 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
13068 postinstall_cmds
='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
13069 dldir=$destdir/`dirname \$dlpath`~
13070 test -d \$dldir || mkdir -p \$dldir~
13071 $install_prog .libs/$dlname \$dldir/$dlname'
13072 postuninstall_cmds
='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
13073 dlpath=$dir/\$dldll~
13075 shlibpath_overrides_runpath
=yes
13078 library_names_spec
='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
13079 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
13080 if echo "$sys_lib_search_path_spec" |
egrep ';[C-Z]:/' >/dev
/null
; then
13081 # It is most probably a Windows format PATH printed by
13082 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13083 # path with ; separators, and with drive letters. We can handle the
13084 # drive letters (cygwin fileutils understands them), so leave them,
13085 # especially as we might pass files found there to a mingw objdump,
13086 # which wouldn't understand a cygwinified path. Ahh.
13087 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
13089 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
13093 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
13096 library_names_spec
='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
13099 dynamic_linker
='Win32 ld.exe'
13100 # FIXME: first we should search . and the directory the executable is in
13104 darwin
* | rhapsody
*)
13105 dynamic_linker
="$host_os dyld"
13106 version_type
=darwin
13109 # FIXME: Relying on posixy $() will cause problems for
13110 # cross-compilation, but unfortunately the echo tests do not
13111 # yet detect zsh echo's removal of \ escapes.
13112 library_names_spec
='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
13113 soname_spec
='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
13114 shlibpath_overrides_runpath
=yes
13115 shlibpath_var
=DYLD_LIBRARY_PATH
13122 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13123 soname_spec
='${libname}${release}.so$major'
13124 shlibpath_var
=LD_LIBRARY_PATH
13132 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13133 version_type
=freebsd-
$objformat
13134 case $version_type in
13136 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
13141 library_names_spec
='${libname}${release}.so$versuffix $libname.so$versuffix'
13145 shlibpath_var
=LD_LIBRARY_PATH
13148 shlibpath_overrides_runpath
=yes
13150 freebsd3.01
* | freebsdelf3.01
*)
13151 shlibpath_overrides_runpath
=yes
13152 hardcode_into_libs
=yes
13155 shlibpath_overrides_runpath
=no
13156 hardcode_into_libs
=yes
13165 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
13166 soname_spec
='${libname}${release}.so$major'
13167 shlibpath_var
=LD_LIBRARY_PATH
13168 hardcode_into_libs
=yes
13171 hpux9
* | hpux10
* | hpux11
*)
13172 # Give a soname corresponding to the major version so that dld.sl refuses to
13173 # link against other versions.
13177 if test "$host_cpu" = ia64
; then
13178 hardcode_into_libs
=yes
13179 dynamic_linker
="$host_os dld.so"
13180 shlibpath_var
=LD_LIBRARY_PATH
13181 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13182 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13183 soname_spec
='${libname}${release}.so$major'
13184 if test "X$HPUX_IA64_MODE" = X32
; then
13185 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13187 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
13189 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13191 dynamic_linker
="$host_os dld.sl"
13192 shlibpath_var
=SHLIB_PATH
13193 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
13194 library_names_spec
='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
13195 soname_spec
='${libname}${release}.sl$major'
13197 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13198 postinstall_cmds
='chmod 555 $lib'
13201 irix5
* | irix6
* | nonstopux
*)
13203 nonstopux
*) version_type
=nonstopux
;;
13204 *) version_type
=irix
;;
13208 soname_spec
='${libname}${release}.so$major'
13209 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
13211 irix5
* | nonstopux
*)
13212 libsuff
= shlibsuff
=
13215 case $LD in # libtool.m4 will add one of these switches to LD
13216 *-32|
*"-32 ") libsuff
= shlibsuff
= libmagic
=32-bit;;
13217 *-n32|
*"-n32 ") libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
13218 *-64|
*"-64 ") libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
13219 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
13223 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
13224 shlibpath_overrides_runpath
=no
13225 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13226 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
13229 # No shared lib support for Linux oldld, aout, or coff.
13230 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
13234 # This must be Linux ELF.
13239 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13240 soname_spec
='${libname}${release}.so$major'
13241 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13242 shlibpath_var
=LD_LIBRARY_PATH
13243 shlibpath_overrides_runpath
=no
13244 # This implies no fast_install, which is unacceptable.
13245 # Some rework will be needed to allow for fast_install
13246 # before this can be enabled.
13247 hardcode_into_libs
=yes
13249 # We used to test for /lib/ld.so.1 and disable shared libraries on
13250 # powerpc, because MkLinux only supported shared libraries with the
13251 # GNU dynamic linker. Since this was broken with cross compilers,
13252 # most powerpc-linux boxes support dynamic linking these days and
13253 # people can always --disable-shared, the test was removed, and we
13254 # assume the GNU/Linux dynamic linker is in use.
13255 dynamic_linker
='GNU/Linux ld.so'
13262 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13263 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13264 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13265 dynamic_linker
='NetBSD (a.out) ld.so'
13267 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
13268 soname_spec
='${libname}${release}.so$major'
13269 dynamic_linker
='NetBSD ld.elf_so'
13271 shlibpath_var
=LD_LIBRARY_PATH
13272 shlibpath_overrides_runpath
=yes
13273 hardcode_into_libs
=yes
13278 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13279 shlibpath_var
=LD_LIBRARY_PATH
13280 shlibpath_overrides_runpath
=yes
13287 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13288 soname_spec
='${libname}${release}.so$major'
13289 shlibpath_var
=LD_LIBRARY_PATH
13290 shlibpath_overrides_runpath
=yes
13297 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13298 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13299 shlibpath_var
=LD_LIBRARY_PATH
13300 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13302 openbsd2.
[89] | openbsd2.
[89].
*)
13303 shlibpath_overrides_runpath
=no
13306 shlibpath_overrides_runpath
=yes
13310 shlibpath_overrides_runpath
=yes
13315 libname_spec
='$name'
13317 library_names_spec
='$libname.dll $libname.a'
13318 dynamic_linker
='OS/2 ld.exe'
13319 shlibpath_var
=LIBPATH
13322 osf3
* | osf4
* | osf5
*)
13326 soname_spec
='${libname}${release}.so'
13327 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
13328 shlibpath_var
=LD_LIBRARY_PATH
13329 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13330 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
13335 soname_spec
='${libname}${release}.so$major'
13336 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13337 shlibpath_var
=LD_LIBRARY_PATH
13344 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13345 soname_spec
='${libname}${release}.so$major'
13346 shlibpath_var
=LD_LIBRARY_PATH
13347 shlibpath_overrides_runpath
=yes
13348 hardcode_into_libs
=yes
13349 # ldd complains unless libraries are executable
13350 postinstall_cmds
='chmod +x $lib'
13355 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13356 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13357 shlibpath_var
=LD_LIBRARY_PATH
13358 shlibpath_overrides_runpath
=yes
13359 if test "$with_gnu_ld" = yes; then
13365 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13367 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13368 soname_spec
='${libname}${release}.so$major'
13369 shlibpath_var
=LD_LIBRARY_PATH
13370 case $host_vendor in
13372 shlibpath_overrides_runpath
=no
13377 shlibpath_overrides_runpath
=no
13378 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
13384 if test -d /usr
/nec
;then
13386 library_names_spec
='$libname.so.$versuffix $libname.so.$major $libname.so'
13387 soname_spec
='$libname.so.$major'
13388 shlibpath_var
=LD_LIBRARY_PATH
13394 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13395 soname_spec
='${libname}${release}.so$major'
13396 shlibpath_var
=LD_LIBRARY_PATH
13403 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13404 echo "${ECHO_T}$dynamic_linker" >&6
13405 test "$dynamic_linker" = no
&& can_build_shared
=no
13407 if test "x$enable_dlopen" != xyes
; then
13408 enable_dlopen
=unknown
13409 enable_dlopen_self
=unknown
13410 enable_dlopen_self_static
=unknown
13417 lt_cv_dlopen
="load_add_on"
13419 lt_cv_dlopen_self
=yes
13422 cygwin
* | mingw
* | pw32
*)
13423 lt_cv_dlopen
="LoadLibrary"
13428 echo "$as_me:$LINENO: checking for shl_load" >&5
13429 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13430 if test "${ac_cv_func_shl_load+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 cat >conftest.
$ac_ext <<_ACEOF
13434 #line $LINENO "configure"
13435 #include "confdefs.h"
13436 /* System header to define __stub macros and hopefully few prototypes,
13437 which can conflict with char shl_load (); below. */
13438 #include <assert.h>
13439 /* Override any gcc2 internal prototype to avoid an error. */
13443 /* We use char because int might match the return type of a gcc2
13444 builtin and then its argument prototype would still apply. */
13448 #ifdef F77_DUMMY_MAIN
13449 # ifdef __cplusplus
13452 int F77_DUMMY_MAIN() { return 1; }
13457 /* The GNU C library defines this for functions which it implements
13458 to always fail with ENOSYS. Some functions are actually named
13459 something starting with __ and the normal name is an alias. */
13460 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13470 rm -f conftest.
$ac_objext conftest
$ac_exeext
13471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13472 (eval $ac_link) 2>&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); } &&
13476 { ac_try
='test -s conftest$ac_exeext'
13477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478 (eval $ac_try) 2>&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; }; then
13482 ac_cv_func_shl_load
=yes
13484 echo "$as_me: failed program was:" >&5
13485 cat conftest.
$ac_ext >&5
13486 ac_cv_func_shl_load
=no
13488 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13490 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13491 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13492 if test $ac_cv_func_shl_load = yes; then
13493 lt_cv_dlopen
="shl_load"
13495 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13496 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13497 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13500 ac_check_lib_save_LIBS
=$LIBS
13502 cat >conftest.
$ac_ext <<_ACEOF
13503 #line $LINENO "configure"
13504 #include "confdefs.h"
13506 /* Override any gcc2 internal prototype to avoid an error. */
13510 /* We use char because int might match the return type of a gcc2
13511 builtin and then its argument prototype would still apply. */
13513 #ifdef F77_DUMMY_MAIN
13514 # ifdef __cplusplus
13517 int F77_DUMMY_MAIN() { return 1; }
13527 rm -f conftest.
$ac_objext conftest
$ac_exeext
13528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13529 (eval $ac_link) 2>&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } &&
13533 { ac_try
='test -s conftest$ac_exeext'
13534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535 (eval $ac_try) 2>&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; }; then
13539 ac_cv_lib_dld_shl_load
=yes
13541 echo "$as_me: failed program was:" >&5
13542 cat conftest.
$ac_ext >&5
13543 ac_cv_lib_dld_shl_load
=no
13545 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13546 LIBS
=$ac_check_lib_save_LIBS
13548 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13549 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13550 if test $ac_cv_lib_dld_shl_load = yes; then
13551 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
13553 echo "$as_me:$LINENO: checking for dlopen" >&5
13554 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13555 if test "${ac_cv_func_dlopen+set}" = set; then
13556 echo $ECHO_N "(cached) $ECHO_C" >&6
13558 cat >conftest.
$ac_ext <<_ACEOF
13559 #line $LINENO "configure"
13560 #include "confdefs.h"
13561 /* System header to define __stub macros and hopefully few prototypes,
13562 which can conflict with char dlopen (); below. */
13563 #include <assert.h>
13564 /* Override any gcc2 internal prototype to avoid an error. */
13568 /* We use char because int might match the return type of a gcc2
13569 builtin and then its argument prototype would still apply. */
13573 #ifdef F77_DUMMY_MAIN
13574 # ifdef __cplusplus
13577 int F77_DUMMY_MAIN() { return 1; }
13582 /* The GNU C library defines this for functions which it implements
13583 to always fail with ENOSYS. Some functions are actually named
13584 something starting with __ and the normal name is an alias. */
13585 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13595 rm -f conftest.
$ac_objext conftest
$ac_exeext
13596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13597 (eval $ac_link) 2>&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } &&
13601 { ac_try
='test -s conftest$ac_exeext'
13602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603 (eval $ac_try) 2>&5
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; }; then
13607 ac_cv_func_dlopen
=yes
13609 echo "$as_me: failed program was:" >&5
13610 cat conftest.
$ac_ext >&5
13611 ac_cv_func_dlopen
=no
13613 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13615 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13616 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13617 if test $ac_cv_func_dlopen = yes; then
13618 lt_cv_dlopen
="dlopen"
13620 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13621 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13622 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13623 echo $ECHO_N "(cached) $ECHO_C" >&6
13625 ac_check_lib_save_LIBS
=$LIBS
13627 cat >conftest.
$ac_ext <<_ACEOF
13628 #line $LINENO "configure"
13629 #include "confdefs.h"
13631 /* Override any gcc2 internal prototype to avoid an error. */
13635 /* We use char because int might match the return type of a gcc2
13636 builtin and then its argument prototype would still apply. */
13638 #ifdef F77_DUMMY_MAIN
13639 # ifdef __cplusplus
13642 int F77_DUMMY_MAIN() { return 1; }
13652 rm -f conftest.
$ac_objext conftest
$ac_exeext
13653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13654 (eval $ac_link) 2>&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); } &&
13658 { ac_try
='test -s conftest$ac_exeext'
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13664 ac_cv_lib_dl_dlopen
=yes
13666 echo "$as_me: failed program was:" >&5
13667 cat conftest.
$ac_ext >&5
13668 ac_cv_lib_dl_dlopen
=no
13670 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13671 LIBS
=$ac_check_lib_save_LIBS
13673 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13674 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13675 if test $ac_cv_lib_dl_dlopen = yes; then
13676 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
13678 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13679 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13680 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
13683 ac_check_lib_save_LIBS
=$LIBS
13684 LIBS
="-lsvld $LIBS"
13685 cat >conftest.
$ac_ext <<_ACEOF
13686 #line $LINENO "configure"
13687 #include "confdefs.h"
13689 /* Override any gcc2 internal prototype to avoid an error. */
13693 /* We use char because int might match the return type of a gcc2
13694 builtin and then its argument prototype would still apply. */
13696 #ifdef F77_DUMMY_MAIN
13697 # ifdef __cplusplus
13700 int F77_DUMMY_MAIN() { return 1; }
13710 rm -f conftest.
$ac_objext conftest
$ac_exeext
13711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13712 (eval $ac_link) 2>&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } &&
13716 { ac_try
='test -s conftest$ac_exeext'
13717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718 (eval $ac_try) 2>&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }; }; then
13722 ac_cv_lib_svld_dlopen
=yes
13724 echo "$as_me: failed program was:" >&5
13725 cat conftest.
$ac_ext >&5
13726 ac_cv_lib_svld_dlopen
=no
13728 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13729 LIBS
=$ac_check_lib_save_LIBS
13731 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13732 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13733 if test $ac_cv_lib_svld_dlopen = yes; then
13734 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
13736 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13737 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13738 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13741 ac_check_lib_save_LIBS
=$LIBS
13743 cat >conftest.
$ac_ext <<_ACEOF
13744 #line $LINENO "configure"
13745 #include "confdefs.h"
13747 /* Override any gcc2 internal prototype to avoid an error. */
13751 /* We use char because int might match the return type of a gcc2
13752 builtin and then its argument prototype would still apply. */
13754 #ifdef F77_DUMMY_MAIN
13755 # ifdef __cplusplus
13758 int F77_DUMMY_MAIN() { return 1; }
13768 rm -f conftest.
$ac_objext conftest
$ac_exeext
13769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13770 (eval $ac_link) 2>&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); } &&
13774 { ac_try
='test -s conftest$ac_exeext'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13780 ac_cv_lib_dld_dld_link
=yes
13782 echo "$as_me: failed program was:" >&5
13783 cat conftest.
$ac_ext >&5
13784 ac_cv_lib_dld_dld_link
=no
13786 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13787 LIBS
=$ac_check_lib_save_LIBS
13789 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13790 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13791 if test $ac_cv_lib_dld_dld_link = yes; then
13792 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
13813 if test "x$lt_cv_dlopen" != xno
; then
13819 case $lt_cv_dlopen in
13821 save_CPPFLAGS
="$CPPFLAGS"
13822 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
13824 save_LDFLAGS
="$LDFLAGS"
13825 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
13828 LIBS
="$lt_cv_dlopen_libs $LIBS"
13830 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13831 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13832 if test "${lt_cv_dlopen_self+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13835 if test "$cross_compiling" = yes; then :
13836 lt_cv_dlopen_self
=cross
13838 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
13839 lt_status
=$lt_dlunknown
13840 cat > conftest.
$ac_ext <<EOF
13841 #line 13841 "configure"
13842 #include "confdefs.h"
13851 # define LT_DLGLOBAL RTLD_GLOBAL
13854 # define LT_DLGLOBAL DL_GLOBAL
13856 # define LT_DLGLOBAL 0
13860 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13861 find out it does not work in some platform. */
13862 #ifndef LT_DLLAZY_OR_NOW
13864 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13867 # define LT_DLLAZY_OR_NOW DL_LAZY
13870 # define LT_DLLAZY_OR_NOW RTLD_NOW
13873 # define LT_DLLAZY_OR_NOW DL_NOW
13875 # define LT_DLLAZY_OR_NOW 0
13883 extern "C" void exit (int);
13886 void fnord() { int i=42;}
13889 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13890 int status = $lt_dlunknown;
13894 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13895 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13896 /* dlclose (self); */
13902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13903 (eval $ac_link) 2>&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
13907 (.
/conftest
; exit; ) 2>/dev
/null
13909 case x
$lt_status in
13910 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
13911 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
13912 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
13915 # compilation failed
13916 lt_cv_dlopen_self
=no
13923 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13924 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13926 if test "x$lt_cv_dlopen_self" = xyes
; then
13927 LDFLAGS
="$LDFLAGS $link_static_flag"
13928 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13929 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13930 if test "${lt_cv_dlopen_self_static+set}" = set; then
13931 echo $ECHO_N "(cached) $ECHO_C" >&6
13933 if test "$cross_compiling" = yes; then :
13934 lt_cv_dlopen_self_static
=cross
13936 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
13937 lt_status
=$lt_dlunknown
13938 cat > conftest.
$ac_ext <<EOF
13939 #line 13939 "configure"
13940 #include "confdefs.h"
13949 # define LT_DLGLOBAL RTLD_GLOBAL
13952 # define LT_DLGLOBAL DL_GLOBAL
13954 # define LT_DLGLOBAL 0
13958 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13959 find out it does not work in some platform. */
13960 #ifndef LT_DLLAZY_OR_NOW
13962 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13965 # define LT_DLLAZY_OR_NOW DL_LAZY
13968 # define LT_DLLAZY_OR_NOW RTLD_NOW
13971 # define LT_DLLAZY_OR_NOW DL_NOW
13973 # define LT_DLLAZY_OR_NOW 0
13981 extern "C" void exit (int);
13984 void fnord() { int i=42;}
13987 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13988 int status = $lt_dlunknown;
13992 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13993 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13994 /* dlclose (self); */
14000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14001 (eval $ac_link) 2>&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
14005 (.
/conftest
; exit; ) 2>/dev
/null
14007 case x
$lt_status in
14008 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
14009 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
14010 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
14013 # compilation failed
14014 lt_cv_dlopen_self_static
=no
14021 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14022 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14025 CPPFLAGS
="$save_CPPFLAGS"
14026 LDFLAGS
="$save_LDFLAGS"
14031 case $lt_cv_dlopen_self in
14032 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
14033 *) enable_dlopen_self
=unknown
;;
14036 case $lt_cv_dlopen_self_static in
14037 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
14038 *) enable_dlopen_self_static
=unknown
;;
14043 # The else clause should only fire when bootstrapping the
14044 # libtool distribution, otherwise you forgot to ship ltmain.sh
14045 # with your package, and you will get complaints that there are
14046 # no rules to generate ltmain.sh.
14047 if test -f "$ltmain"; then
14048 # Now quote all the things that may contain metacharacters while being
14049 # careful not to overquote the AC_SUBSTed values. We take copies of the
14050 # variables and quote the copies for generation of the libtool script.
14051 for var
in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
14052 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14053 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14054 deplibs_check_method reload_flag reload_cmds need_locks \
14055 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14056 lt_cv_sys_global_symbol_to_c_name_address \
14057 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14058 old_postinstall_cmds old_postuninstall_cmds \
14062 lt_prog_compiler_wl_GCJ \
14063 lt_prog_compiler_pic_GCJ \
14064 lt_prog_compiler_static_GCJ \
14065 lt_prog_compiler_no_builtin_flag_GCJ \
14066 export_dynamic_flag_spec_GCJ \
14067 thread_safe_flag_spec_GCJ \
14068 whole_archive_flag_spec_GCJ \
14069 old_archive_cmds_GCJ \
14070 old_archive_from_new_cmds_GCJ \
14071 predep_objects_GCJ \
14072 postdep_objects_GCJ \
14075 compiler_lib_search_path_GCJ \
14077 archive_expsym_cmds_GCJ \
14078 postinstall_cmds_GCJ \
14079 postuninstall_cmds_GCJ \
14080 old_archive_from_expsyms_cmds_GCJ \
14081 allow_undefined_flag_GCJ \
14082 no_undefined_flag_GCJ \
14083 export_symbols_cmds_GCJ \
14084 hardcode_libdir_flag_spec_GCJ \
14085 hardcode_libdir_separator_GCJ \
14086 lt_cv_prog_compiler_c_o_GCJ \
14087 exclude_expsyms_GCJ \
14088 include_expsyms_GCJ
; do
14091 old_archive_cmds_GCJ | \
14092 old_archive_from_new_cmds_GCJ | \
14093 archive_cmds_GCJ | \
14094 archive_expsym_cmds_GCJ | \
14095 old_archive_from_expsyms_cmds_GCJ | \
14096 export_symbols_cmds_GCJ | \
14097 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14098 postinstall_cmds | postuninstall_cmds | \
14099 old_postinstall_cmds | old_postuninstall_cmds | \
14100 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
14101 # Double-quote double-evaled strings.
14102 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14105 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14111 *'\$0 --fallback-echo"')
14112 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14118 cat <<__EOF__ >> "$cfgfile"
14119 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14121 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14123 # Shell to use when invoking shell scripts.
14126 # Whether or not to build shared libraries.
14127 build_libtool_libs=$enable_shared
14129 # Whether or not to build static libraries.
14130 build_old_libs=$enable_static
14132 # Whether or not to add -lc for building shared libraries.
14133 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
14135 # Whether or not to optimize for fast installation.
14136 fast_install=$enable_fast_install
14139 host_alias=$host_alias
14142 # An echo program that does not interpret backslashes.
14147 AR_FLAGS=$lt_AR_FLAGS
14152 # A language-specific compiler.
14153 CC=$lt_compiler_GCJ
14155 # Is the compiler the GNU C compiler?
14158 # The linker used to build libraries.
14161 # Whether we need hard or soft links.
14164 # A BSD-compatible nm program.
14167 # A sed program that does not truncate output.
14170 # A symbol stripping program
14173 # Used to examine libraries when file_magic_cmd begins "file"
14174 MAGIC_CMD=$MAGIC_CMD
14176 # Used on cygwin: DLL creation program.
14179 # Used on cygwin: object dumper.
14182 # Used on cygwin: assembler.
14185 # The name of the directory that contains temporary libtool files.
14188 # How to create reloadable object files.
14189 reload_flag=$lt_reload_flag
14190 reload_cmds=$lt_reload_cmds
14192 # How to pass a linker flag through the compiler.
14193 wl=$lt_lt_prog_compiler_wl_GCJ
14195 # Object file suffix (normally "o").
14196 objext="$ac_objext"
14198 # Old archive suffix (normally "a").
14201 # Executable file suffix (normally "").
14204 # Additional compiler flags for building library objects.
14205 pic_flag=$lt_lt_prog_compiler_pic_GCJ
14208 # What is the maximum length of a command?
14209 max_cmd_len=$lt_cv_sys_max_cmd_len
14211 # Does compiler simultaneously support -c and -o options?
14212 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
14214 # Must we lock files when doing compilation ?
14215 need_locks=$lt_need_locks
14217 # Do we need the lib prefix for modules?
14218 need_lib_prefix=$need_lib_prefix
14220 # Do we need a version for libraries?
14221 need_version=$need_version
14223 # Whether dlopen is supported.
14224 dlopen_support=$enable_dlopen
14226 # Whether dlopen of programs is supported.
14227 dlopen_self=$enable_dlopen_self
14229 # Whether dlopen of statically linked programs is supported.
14230 dlopen_self_static=$enable_dlopen_self_static
14232 # Compiler flag to prevent dynamic linking.
14233 link_static_flag=$lt_lt_prog_compiler_static_GCJ
14235 # Compiler flag to turn off builtin functions.
14236 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
14238 # Compiler flag to allow reflexive dlopens.
14239 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
14241 # Compiler flag to generate shared objects directly from archives.
14242 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
14244 # Compiler flag to generate thread-safe objects.
14245 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
14247 # Library versioning type.
14248 version_type=$version_type
14250 # Format of library name prefix.
14251 libname_spec=$lt_libname_spec
14253 # List of archive names. First name is the real one, the rest are links.
14254 # The last name is the one that the linker finds with -lNAME.
14255 library_names_spec=$lt_library_names_spec
14257 # The coded name of the library, if different from the real name.
14258 soname_spec=$lt_soname_spec
14260 # Commands used to build and install an old-style archive.
14262 old_archive_cmds=$lt_old_archive_cmds_GCJ
14263 old_postinstall_cmds=$lt_old_postinstall_cmds
14264 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14266 # Create an old-style archive from a shared archive.
14267 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
14269 # Create a temporary old-style archive to link instead of a shared archive.
14270 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
14272 # Commands used to build and install a shared archive.
14273 archive_cmds=$lt_archive_cmds_GCJ
14274 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
14275 postinstall_cmds=$lt_postinstall_cmds
14276 postuninstall_cmds=$lt_postuninstall_cmds
14278 # Commands to strip libraries.
14279 old_striplib=$lt_old_striplib
14280 striplib=$lt_striplib
14282 # Dependencies to place before the objects being linked to create a
14284 predep_objects=$lt_predep_objects_GCJ
14286 # Dependencies to place after the objects being linked to create a
14288 postdep_objects=$lt_postdep_objects_GCJ
14290 # Dependencies to place before the objects being linked to create a
14292 predeps=$lt_predeps_GCJ
14294 # Dependencies to place after the objects being linked to create a
14296 postdeps=$lt_postdeps_GCJ
14298 # The library search path used internally by the compiler when linking
14299 # a shared library.
14300 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
14302 # Method to check whether dependent libraries are shared objects.
14303 deplibs_check_method=$lt_deplibs_check_method
14305 # Command to use when deplibs_check_method == file_magic.
14306 file_magic_cmd=$lt_file_magic_cmd
14308 # Flag that allows shared libraries with undefined symbols to be built.
14309 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
14311 # Flag that forces no undefined symbols.
14312 no_undefined_flag=$lt_no_undefined_flag_GCJ
14314 # Commands used to finish a libtool library installation in a directory.
14315 finish_cmds=$lt_finish_cmds
14317 # Same as above, but a single script fragment to be evaled but not shown.
14318 finish_eval=$lt_finish_eval
14320 # Take the output of nm and produce a listing of raw symbols and C names.
14321 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14323 # Transform the output of nm in a proper C declaration
14324 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14326 # Transform the output of nm in a C name address pair
14327 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14329 # This is the shared library runtime path variable.
14330 runpath_var=$runpath_var
14332 # This is the shared library path variable.
14333 shlibpath_var=$shlibpath_var
14335 # Is shlibpath searched before the hard-coded library search path?
14336 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14338 # How to hardcode a shared library path into an executable.
14339 hardcode_action=$hardcode_action_GCJ
14341 # Whether we should hardcode library paths into libraries.
14342 hardcode_into_libs=$hardcode_into_libs
14344 # Flag to hardcode \$libdir into a binary during linking.
14345 # This must work even if \$libdir does not exist.
14346 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
14348 # Whether we need a single -rpath flag with a separated argument.
14349 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
14351 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
14352 # resulting binary.
14353 hardcode_direct=$hardcode_direct_GCJ
14355 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14356 # resulting binary.
14357 hardcode_minus_L=$hardcode_minus_L_GCJ
14359 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14360 # the resulting binary.
14361 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
14363 # Variables whose values should be saved in libtool wrapper scripts and
14364 # restored at relink time.
14365 variables_saved_for_relink="$variables_saved_for_relink"
14367 # Whether libtool must link a program against all its dependency libraries.
14368 link_all_deplibs=$link_all_deplibs_GCJ
14370 # Compile-time system search path for libraries
14371 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14373 # Run-time system search path for libraries
14374 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14376 # Fix the shell variable \$srcfile for the compiler.
14377 fix_srcfile_path="$fix_srcfile_path_GCJ"
14379 # Set to yes if exported symbols are required.
14380 always_export_symbols=$always_export_symbols_GCJ
14382 # The commands to list exported symbols.
14383 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
14385 # The commands to extract the exported symbol list from a shared archive.
14386 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14388 # Symbols that should not be listed in the preloaded symbols.
14389 exclude_expsyms=$lt_exclude_expsyms_GCJ
14391 # Symbols that must always be exported.
14392 include_expsyms=$lt_include_expsyms_GCJ
14394 # ### END LIBTOOL TAG CONFIG: $tagname
14400 # If there is no Makefile yet, we rely on a make rule to execute
14401 # `config.status --recheck' to rerun these tests and create the
14402 # libtool script then.
14403 test -f Makefile
&& make "$ltmain"
14408 ac_cpp
='$CXXCPP $CPPFLAGS'
14409 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14410 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14411 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14421 # Source file extension for RC test sources.
14424 # Object file extension for compiled RC test sources.
14428 # Code to be used in simple compile tests
14429 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
14431 # Code to be used in simple link tests
14432 lt_simple_link_test_code
="$lt_simple_compile_test_code"
14434 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14436 # If no C compiler was specified, use CC.
14439 # Allow CC to be a program name with arguments.
14444 # Allow CC to be a program name with arguments.
14450 lt_cv_prog_compiler_c_o_RC
=yes
14452 # The else clause should only fire when bootstrapping the
14453 # libtool distribution, otherwise you forgot to ship ltmain.sh
14454 # with your package, and you will get complaints that there are
14455 # no rules to generate ltmain.sh.
14456 if test -f "$ltmain"; then
14457 # Now quote all the things that may contain metacharacters while being
14458 # careful not to overquote the AC_SUBSTed values. We take copies of the
14459 # variables and quote the copies for generation of the libtool script.
14460 for var
in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
14461 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14462 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14463 deplibs_check_method reload_flag reload_cmds need_locks \
14464 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14465 lt_cv_sys_global_symbol_to_c_name_address \
14466 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14467 old_postinstall_cmds old_postuninstall_cmds \
14471 lt_prog_compiler_wl_RC \
14472 lt_prog_compiler_pic_RC \
14473 lt_prog_compiler_static_RC \
14474 lt_prog_compiler_no_builtin_flag_RC \
14475 export_dynamic_flag_spec_RC \
14476 thread_safe_flag_spec_RC \
14477 whole_archive_flag_spec_RC \
14478 old_archive_cmds_RC \
14479 old_archive_from_new_cmds_RC \
14480 predep_objects_RC \
14481 postdep_objects_RC \
14484 compiler_lib_search_path_RC \
14486 archive_expsym_cmds_RC \
14487 postinstall_cmds_RC \
14488 postuninstall_cmds_RC \
14489 old_archive_from_expsyms_cmds_RC \
14490 allow_undefined_flag_RC \
14491 no_undefined_flag_RC \
14492 export_symbols_cmds_RC \
14493 hardcode_libdir_flag_spec_RC \
14494 hardcode_libdir_separator_RC \
14495 lt_cv_prog_compiler_c_o_RC \
14496 exclude_expsyms_RC \
14497 include_expsyms_RC
; do
14500 old_archive_cmds_RC | \
14501 old_archive_from_new_cmds_RC | \
14502 archive_cmds_RC | \
14503 archive_expsym_cmds_RC | \
14504 old_archive_from_expsyms_cmds_RC | \
14505 export_symbols_cmds_RC | \
14506 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14507 postinstall_cmds | postuninstall_cmds | \
14508 old_postinstall_cmds | old_postuninstall_cmds | \
14509 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
14510 # Double-quote double-evaled strings.
14511 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14514 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14520 *'\$0 --fallback-echo"')
14521 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14527 cat <<__EOF__ >> "$cfgfile"
14528 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14530 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14532 # Shell to use when invoking shell scripts.
14535 # Whether or not to build shared libraries.
14536 build_libtool_libs=$enable_shared
14538 # Whether or not to build static libraries.
14539 build_old_libs=$enable_static
14541 # Whether or not to add -lc for building shared libraries.
14542 build_libtool_need_lc=$archive_cmds_need_lc_RC
14544 # Whether or not to optimize for fast installation.
14545 fast_install=$enable_fast_install
14548 host_alias=$host_alias
14551 # An echo program that does not interpret backslashes.
14556 AR_FLAGS=$lt_AR_FLAGS
14561 # A language-specific compiler.
14564 # Is the compiler the GNU C compiler?
14567 # The linker used to build libraries.
14570 # Whether we need hard or soft links.
14573 # A BSD-compatible nm program.
14576 # A sed program that does not truncate output.
14579 # A symbol stripping program
14582 # Used to examine libraries when file_magic_cmd begins "file"
14583 MAGIC_CMD=$MAGIC_CMD
14585 # Used on cygwin: DLL creation program.
14588 # Used on cygwin: object dumper.
14591 # Used on cygwin: assembler.
14594 # The name of the directory that contains temporary libtool files.
14597 # How to create reloadable object files.
14598 reload_flag=$lt_reload_flag
14599 reload_cmds=$lt_reload_cmds
14601 # How to pass a linker flag through the compiler.
14602 wl=$lt_lt_prog_compiler_wl_RC
14604 # Object file suffix (normally "o").
14605 objext="$ac_objext"
14607 # Old archive suffix (normally "a").
14610 # Executable file suffix (normally "").
14613 # Additional compiler flags for building library objects.
14614 pic_flag=$lt_lt_prog_compiler_pic_RC
14617 # What is the maximum length of a command?
14618 max_cmd_len=$lt_cv_sys_max_cmd_len
14620 # Does compiler simultaneously support -c and -o options?
14621 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
14623 # Must we lock files when doing compilation ?
14624 need_locks=$lt_need_locks
14626 # Do we need the lib prefix for modules?
14627 need_lib_prefix=$need_lib_prefix
14629 # Do we need a version for libraries?
14630 need_version=$need_version
14632 # Whether dlopen is supported.
14633 dlopen_support=$enable_dlopen
14635 # Whether dlopen of programs is supported.
14636 dlopen_self=$enable_dlopen_self
14638 # Whether dlopen of statically linked programs is supported.
14639 dlopen_self_static=$enable_dlopen_self_static
14641 # Compiler flag to prevent dynamic linking.
14642 link_static_flag=$lt_lt_prog_compiler_static_RC
14644 # Compiler flag to turn off builtin functions.
14645 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
14647 # Compiler flag to allow reflexive dlopens.
14648 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
14650 # Compiler flag to generate shared objects directly from archives.
14651 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
14653 # Compiler flag to generate thread-safe objects.
14654 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
14656 # Library versioning type.
14657 version_type=$version_type
14659 # Format of library name prefix.
14660 libname_spec=$lt_libname_spec
14662 # List of archive names. First name is the real one, the rest are links.
14663 # The last name is the one that the linker finds with -lNAME.
14664 library_names_spec=$lt_library_names_spec
14666 # The coded name of the library, if different from the real name.
14667 soname_spec=$lt_soname_spec
14669 # Commands used to build and install an old-style archive.
14671 old_archive_cmds=$lt_old_archive_cmds_RC
14672 old_postinstall_cmds=$lt_old_postinstall_cmds
14673 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14675 # Create an old-style archive from a shared archive.
14676 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
14678 # Create a temporary old-style archive to link instead of a shared archive.
14679 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
14681 # Commands used to build and install a shared archive.
14682 archive_cmds=$lt_archive_cmds_RC
14683 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
14684 postinstall_cmds=$lt_postinstall_cmds
14685 postuninstall_cmds=$lt_postuninstall_cmds
14687 # Commands to strip libraries.
14688 old_striplib=$lt_old_striplib
14689 striplib=$lt_striplib
14691 # Dependencies to place before the objects being linked to create a
14693 predep_objects=$lt_predep_objects_RC
14695 # Dependencies to place after the objects being linked to create a
14697 postdep_objects=$lt_postdep_objects_RC
14699 # Dependencies to place before the objects being linked to create a
14701 predeps=$lt_predeps_RC
14703 # Dependencies to place after the objects being linked to create a
14705 postdeps=$lt_postdeps_RC
14707 # The library search path used internally by the compiler when linking
14708 # a shared library.
14709 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
14711 # Method to check whether dependent libraries are shared objects.
14712 deplibs_check_method=$lt_deplibs_check_method
14714 # Command to use when deplibs_check_method == file_magic.
14715 file_magic_cmd=$lt_file_magic_cmd
14717 # Flag that allows shared libraries with undefined symbols to be built.
14718 allow_undefined_flag=$lt_allow_undefined_flag_RC
14720 # Flag that forces no undefined symbols.
14721 no_undefined_flag=$lt_no_undefined_flag_RC
14723 # Commands used to finish a libtool library installation in a directory.
14724 finish_cmds=$lt_finish_cmds
14726 # Same as above, but a single script fragment to be evaled but not shown.
14727 finish_eval=$lt_finish_eval
14729 # Take the output of nm and produce a listing of raw symbols and C names.
14730 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14732 # Transform the output of nm in a proper C declaration
14733 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14735 # Transform the output of nm in a C name address pair
14736 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14738 # This is the shared library runtime path variable.
14739 runpath_var=$runpath_var
14741 # This is the shared library path variable.
14742 shlibpath_var=$shlibpath_var
14744 # Is shlibpath searched before the hard-coded library search path?
14745 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14747 # How to hardcode a shared library path into an executable.
14748 hardcode_action=$hardcode_action_RC
14750 # Whether we should hardcode library paths into libraries.
14751 hardcode_into_libs=$hardcode_into_libs
14753 # Flag to hardcode \$libdir into a binary during linking.
14754 # This must work even if \$libdir does not exist.
14755 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
14757 # Whether we need a single -rpath flag with a separated argument.
14758 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
14760 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
14761 # resulting binary.
14762 hardcode_direct=$hardcode_direct_RC
14764 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14765 # resulting binary.
14766 hardcode_minus_L=$hardcode_minus_L_RC
14768 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14769 # the resulting binary.
14770 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
14772 # Variables whose values should be saved in libtool wrapper scripts and
14773 # restored at relink time.
14774 variables_saved_for_relink="$variables_saved_for_relink"
14776 # Whether libtool must link a program against all its dependency libraries.
14777 link_all_deplibs=$link_all_deplibs_RC
14779 # Compile-time system search path for libraries
14780 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14782 # Run-time system search path for libraries
14783 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14785 # Fix the shell variable \$srcfile for the compiler.
14786 fix_srcfile_path="$fix_srcfile_path_RC"
14788 # Set to yes if exported symbols are required.
14789 always_export_symbols=$always_export_symbols_RC
14791 # The commands to list exported symbols.
14792 export_symbols_cmds=$lt_export_symbols_cmds_RC
14794 # The commands to extract the exported symbol list from a shared archive.
14795 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14797 # Symbols that should not be listed in the preloaded symbols.
14798 exclude_expsyms=$lt_exclude_expsyms_RC
14800 # Symbols that must always be exported.
14801 include_expsyms=$lt_include_expsyms_RC
14803 # ### END LIBTOOL TAG CONFIG: $tagname
14809 # If there is no Makefile yet, we rely on a make rule to execute
14810 # `config.status --recheck' to rerun these tests and create the
14811 # libtool script then.
14812 test -f Makefile
&& make "$ltmain"
14817 ac_cpp
='$CXXCPP $CPPFLAGS'
14818 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14819 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14820 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14827 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
14828 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
14829 { (exit 1); exit 1; }; }
14833 # Append the new tag name to the list of available tags.
14834 available_tags
="$available_tags $tagname"
14839 # Now substitute the updated list of available tags.
14840 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
14841 mv "${ofile}T" "$ofile"
14845 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
14846 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
14847 { (exit 1); exit 1; }; }
14853 # This can be used to rebuild libtool when needed
14854 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
14856 # Always use our own libtool.
14857 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
14859 # Prevent multiple expansion
14873 if test -n "$ac_tool_prefix"; then
14874 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14875 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
14876 echo "$as_me:$LINENO: checking for $ac_word" >&5
14877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14878 if test "${ac_cv_prog_WINDRES+set}" = set; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14881 if test -n "$WINDRES"; then
14882 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
14884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14885 for as_dir
in $PATH
14888 test -z "$as_dir" && as_dir
=.
14889 for ac_exec_ext
in '' $ac_executable_extensions; do
14890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14891 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
14892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14900 WINDRES
=$ac_cv_prog_WINDRES
14901 if test -n "$WINDRES"; then
14902 echo "$as_me:$LINENO: result: $WINDRES" >&5
14903 echo "${ECHO_T}$WINDRES" >&6
14905 echo "$as_me:$LINENO: result: no" >&5
14906 echo "${ECHO_T}no" >&6
14910 if test -z "$ac_cv_prog_WINDRES"; then
14911 ac_ct_WINDRES
=$WINDRES
14912 # Extract the first word of "windres", so it can be a program name with args.
14913 set dummy windres
; ac_word
=$2
14914 echo "$as_me:$LINENO: checking for $ac_word" >&5
14915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14916 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
14917 echo $ECHO_N "(cached) $ECHO_C" >&6
14919 if test -n "$ac_ct_WINDRES"; then
14920 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
14922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14923 for as_dir
in $PATH
14926 test -z "$as_dir" && as_dir
=.
14927 for ac_exec_ext
in '' $ac_executable_extensions; do
14928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14929 ac_cv_prog_ac_ct_WINDRES
="windres"
14930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14936 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES
="windres"
14939 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
14940 if test -n "$ac_ct_WINDRES"; then
14941 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14942 echo "${ECHO_T}$ac_ct_WINDRES" >&6
14944 echo "$as_me:$LINENO: result: no" >&5
14945 echo "${ECHO_T}no" >&6
14948 WINDRES
=$ac_ct_WINDRES
14950 WINDRES
="$ac_cv_prog_WINDRES"
14956 echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
14957 echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
14958 if test "${ac_cv_lib_mingw32_main+set}" = set; then
14959 echo $ECHO_N "(cached) $ECHO_C" >&6
14961 ac_check_lib_save_LIBS
=$LIBS
14962 LIBS
="-lmingw32 $LIBS"
14963 cat >conftest.
$ac_ext <<_ACEOF
14964 #line $LINENO "configure"
14965 #include "confdefs.h"
14968 #ifdef F77_DUMMY_MAIN
14969 # ifdef __cplusplus
14972 int F77_DUMMY_MAIN() { return 1; }
14982 rm -f conftest.
$ac_objext conftest
$ac_exeext
14983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14984 (eval $ac_link) 2>&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); } &&
14988 { ac_try
='test -s conftest$ac_exeext'
14989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14990 (eval $ac_try) 2>&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); }; }; then
14994 ac_cv_lib_mingw32_main
=yes
14996 echo "$as_me: failed program was:" >&5
14997 cat conftest.
$ac_ext >&5
14998 ac_cv_lib_mingw32_main
=no
15000 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15001 LIBS
=$ac_check_lib_save_LIBS
15003 echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
15004 echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
15005 if test $ac_cv_lib_mingw32_main = yes; then
15006 cat >>confdefs.h
<<_ACEOF
15007 #define HAVE_LIBMINGW32 1
15010 LIBS
="-lmingw32 $LIBS"
15020 for ac_header
in alloca.h \
15025 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15027 echo "$as_me:$LINENO: checking for $ac_header" >&5
15028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15030 echo $ECHO_N "(cached) $ECHO_C" >&6
15032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15035 # Is the header compilable?
15036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15038 cat >conftest.
$ac_ext <<_ACEOF
15039 #line $LINENO "configure"
15040 #include "confdefs.h"
15041 $ac_includes_default
15042 #include <$ac_header>
15044 rm -f conftest.
$ac_objext
15045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15046 (eval $ac_compile) 2>&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); } &&
15050 { ac_try
='test -s conftest.$ac_objext'
15051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052 (eval $ac_try) 2>&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; }; then
15056 ac_header_compiler
=yes
15058 echo "$as_me: failed program was:" >&5
15059 cat conftest.
$ac_ext >&5
15060 ac_header_compiler
=no
15062 rm -f conftest.
$ac_objext conftest.
$ac_ext
15063 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15064 echo "${ECHO_T}$ac_header_compiler" >&6
15066 # Is the header present?
15067 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15069 cat >conftest.
$ac_ext <<_ACEOF
15070 #line $LINENO "configure"
15071 #include "confdefs.h"
15072 #include <$ac_header>
15074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15075 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15077 egrep -v '^ *\+' conftest.er1
>conftest.err
15079 cat conftest.err
>&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } >/dev
/null
; then
15082 if test -s conftest.err
; then
15083 ac_cpp_err
=$ac_cxx_preproc_warn_flag
15090 if test -z "$ac_cpp_err"; then
15091 ac_header_preproc
=yes
15093 echo "$as_me: failed program was:" >&5
15094 cat conftest.
$ac_ext >&5
15095 ac_header_preproc
=no
15097 rm -f conftest.err conftest.
$ac_ext
15098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15099 echo "${ECHO_T}$ac_header_preproc" >&6
15101 # So? What about this header?
15102 case $ac_header_compiler:$ac_header_preproc in
15104 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15116 echo "$as_me:$LINENO: checking for $ac_header" >&5
15117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15119 echo $ECHO_N "(cached) $ECHO_C" >&6
15121 eval "$as_ac_Header=$ac_header_preproc"
15123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15128 cat >>confdefs.h
<<_ACEOF
15129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15139 subdirs
="$subdirs zlib"
15143 subdirs
="$subdirs bz2lib"
15147 subdirs
="$subdirs libgetopt++"
15156 MINGWTARGET_FALSE
='#'
15158 MINGWTARGET_TRUE
='#'
15168 MINGWTARGET_FALSE
='#'
15170 MINGWTARGET_TRUE
='#'
15177 ac_config_files
="$ac_config_files Makefile"
15179 cat >confcache
<<\_ACEOF
15180 # This file is a shell script that caches the results of configure
15181 # tests run on this system so they can be shared between configure
15182 # scripts and configure runs, see configure's option --config-cache.
15183 # It is not useful on other systems. If it contains results you don't
15184 # want to keep, you may remove or edit it.
15186 # config.status only pays attention to the cache file if you give it
15187 # the --recheck option to rerun configure.
15189 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15190 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15191 # following values.
15195 # The following way of writing the cache mishandles newlines in values,
15196 # but we know of no workaround that is simple, portable, and efficient.
15197 # So, don't put newlines in cache variables' values.
15198 # Ultrix sh set writes to stderr and can't be redirected directly,
15199 # and sets the high bit in the cache file unless we assign to the vars.
15202 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15204 # `set' does not quote correctly, so add quotes (double-quote
15205 # substitution turns \\\\ into \\, and sed turns \\ into \).
15208 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15211 # `set' quotes correctly as required by POSIX, so do not add quotes.
15213 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15220 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15222 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15224 if cmp -s $cache_file confcache
; then :; else
15225 if test -w $cache_file; then
15226 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15227 cat confcache
>$cache_file
15229 echo "not updating unwritable cache $cache_file"
15234 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15235 # Let make expand exec_prefix.
15236 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15238 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15239 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15240 # trailing colons and then remove the whole line if VPATH becomes empty
15241 # (actually we leave an empty line to preserve line numbers).
15242 if test "x$srcdir" = x.
; then
15243 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
15244 s/:*\$(srcdir):*/:/;
15245 s/:*\${srcdir}:*/:/;
15247 s/^\([^=]*=[ ]*\):*/\1/;
15253 # Transform confdefs.h into DEFS.
15254 # Protect against shell expansion while executing Makefile rules.
15255 # Protect against Makefile macro expansion.
15257 # If the first sed substitution is executed (which looks for macros that
15258 # take arguments), then we branch to the quote section. Otherwise,
15259 # look for a macro that doesn't take arguments.
15260 cat >confdef2opt.
sed <<\_ACEOF
15263 s
,^
[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
15265 s
,^
[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
15269 s
,[ `~#$^&*(){}\\|;'"<>?],\\&,g
15275 # We use echo to avoid assuming a particular line-breaking character.
15276 # The extra dot is to prevent the shell from consuming trailing
15277 # line-breaks from the sub-command output. A line-break within
15278 # single-quotes doesn't work because, if this script is created in a
15279 # platform that uses two characters for line-breaks (e.g., DOS), tr
15281 ac_LF_and_DOT=`echo; echo .
`
15282 DEFS=`sed -n -f confdef2opt.
sed confdefs.h |
tr "$ac_LF_and_DOT" ' .'`
15283 rm -f confdef2opt.sed
15286 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15287 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15288 Usually this means the macro was only invoked conditionally." >&5
15289 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15290 Usually this means the macro was only invoked conditionally." >&2;}
15291 { (exit 1); exit 1; }; }
15293 if test -z "${ENABLERSYNC_TRUE}" && test -z "${ENABLERSYNC_FALSE}"; then
15294 { { echo "$as_me:$LINENO: error: conditional \"ENABLERSYNC\" was never defined.
15295 Usually this means the macro was only invoked conditionally." >&5
15296 echo "$as_me: error: conditional \"ENABLERSYNC\" was never defined.
15297 Usually this means the macro was only invoked conditionally." >&2;}
15298 { (exit 1); exit 1; }; }
15300 if test -z "${ENABLERSYNC_TRUE}" && test -z "${ENABLERSYNC_FALSE}"; then
15301 { { echo "$as_me:$LINENO: error: conditional \"ENABLERSYNC\" was never defined.
15302 Usually this means the macro was only invoked conditionally." >&5
15303 echo "$as_me: error: conditional \"ENABLERSYNC\" was never defined.
15304 Usually this means the macro was only invoked conditionally." >&2;}
15305 { (exit 1); exit 1; }; }
15307 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15308 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15309 Usually this means the macro was only invoked conditionally." >&5
15310 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15311 Usually this means the macro was only invoked conditionally." >&2;}
15312 { (exit 1); exit 1; }; }
15314 if test -z "${MINGWTARGET_TRUE}" && test -z "${MINGWTARGET_FALSE}"; then
15315 { { echo "$as_me:$LINENO: error: conditional \"MINGWTARGET\" was never defined.
15316 Usually this means the macro was only invoked conditionally." >&5
15317 echo "$as_me: error: conditional \"MINGWTARGET\" was never defined.
15318 Usually this means the macro was only invoked conditionally." >&2;}
15319 { (exit 1); exit 1; }; }
15321 if test -z "${MINGWTARGET_TRUE}" && test -z "${MINGWTARGET_FALSE}"; then
15322 { { echo "$as_me:$LINENO: error: conditional \"MINGWTARGET\" was never defined.
15323 Usually this means the macro was only invoked conditionally." >&5
15324 echo "$as_me: error: conditional \"MINGWTARGET\" was never defined.
15325 Usually this means the macro was only invoked conditionally." >&2;}
15326 { (exit 1); exit 1; }; }
15329 : ${CONFIG_STATUS=./config.status}
15330 ac_clean_files_save=$ac_clean_files
15331 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15332 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15333 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15334 cat >$CONFIG_STATUS <<_ACEOF
15336 # Generated by $as_me.
15337 # Run this file to recreate the current configuration.
15338 # Compiler output produced by configure, useful for debugging
15339 # configure, is in config.log if it exists.
15342 SHELL=\${CONFIG_SHELL-$SHELL}
15345 cat >>$CONFIG_STATUS <<\_ACEOF
15347 ## --------------------- ##
15348 ## M4sh Initialization. ##
15349 ## --------------------- ##
15351 # Be Bourne compatible
15352 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15355 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15360 # Support unset when possible.
15361 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15367 (set +x; test -n "`(LANG
=C
; export LANG
) 2>&1`") &&
15368 { $as_unset LANG || test "${LANG+set}" != set; } ||
15369 { LANG=C; export LANG; }
15370 (set +x; test -n "`(LC_ALL
=C
; export LC_ALL
) 2>&1`") &&
15371 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
15372 { LC_ALL=C; export LC_ALL; }
15373 (set +x; test -n "`(LC_TIME
=C
; export LC_TIME
) 2>&1`") &&
15374 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
15375 { LC_TIME=C; export LC_TIME; }
15376 (set +x; test -n "`(LC_CTYPE
=C
; export LC_CTYPE
) 2>&1`") &&
15377 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
15378 { LC_CTYPE=C; export LC_CTYPE; }
15379 (set +x; test -n "`(LANGUAGE
=C
; export LANGUAGE
) 2>&1`") &&
15380 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
15381 { LANGUAGE=C; export LANGUAGE; }
15382 (set +x; test -n "`(LC_COLLATE
=C
; export LC_COLLATE
) 2>&1`") &&
15383 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
15384 { LC_COLLATE=C; export LC_COLLATE; }
15385 (set +x; test -n "`(LC_NUMERIC
=C
; export LC_NUMERIC
) 2>&1`") &&
15386 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
15387 { LC_NUMERIC=C; export LC_NUMERIC; }
15388 (set +x; test -n "`(LC_MESSAGES
=C
; export LC_MESSAGES
) 2>&1`") &&
15389 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
15390 { LC_MESSAGES=C; export LC_MESSAGES; }
15393 # Name of the executable.
15394 as_me=`(basename "$0") 2>/dev
/null ||
15395 $as_expr X
/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15396 X
"$0" : 'X\(//\)$' \| \
15397 X
"$0" : 'X\(/\)$' \| \
15398 .
: '\(.\)' 2>/dev
/null ||
15400 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15401 /^X\/\(\/\/\)$/{ s//\1/; q; }
15402 /^X\/\(\/\).*/{ s//\1/; q; }
15405 # PATH needs CR, and LINENO needs CR and PATH.
15406 # Avoid depending upon Character Ranges.
15407 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15408 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15409 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15410 as_cr_digits='0123456789'
15411 as_cr_alnum=$as_cr_Letters$as_cr_digits
15413 # The user is always right.
15414 if test "${PATH_SEPARATOR+set}" != set; then
15415 echo "#! /bin/sh" >conftest.sh
15416 echo "exit 0" >>conftest.sh
15417 chmod +x conftest.sh
15418 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
15427 as_lineno_1=$LINENO
15428 as_lineno_2=$LINENO
15429 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev
/null
`
15430 test "x$as_lineno_1" != "x$as_lineno_2" &&
15431 test "x$as_lineno_3" = "x$as_lineno_2" || {
15432 # Find who we are. Look in the path if we contain no path at all
15435 *[\\/]* ) as_myself=$0 ;;
15436 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15437 for as_dir in $PATH
15440 test -z "$as_dir" && as_dir=.
15441 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15446 # We did not find ourselves, most probably we were run as `sh COMMAND
'
15447 # in which case we are not to be found in the path.
15448 if test "x$as_myself" = x; then
15451 if test ! -f "$as_myself"; then
15452 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15453 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15454 { (exit 1); exit 1; }; }
15456 case $CONFIG_SHELL in
15458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15459 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15462 test -z "$as_dir" && as_dir=.
15463 for as_base in sh bash ksh sh5; do
15466 if ("$as_dir/$as_base" -c '
15467 as_lineno_1
=$LINENO
15468 as_lineno_2
=$LINENO
15469 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
15470 test "x$as_lineno_1" != "x$as_lineno_2" &&
15471 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15472 CONFIG_SHELL=$as_dir/$as_base
15473 export CONFIG_SHELL
15474 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15482 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15483 # uniformly replaced by the line number. The first 'sed' inserts a
15484 # line-number line before each line; the second 'sed' does the real
15485 # work. The second script uses 'N
' to pair each line-number line
15486 # with the numbered line, and appends trailing '-' during
15487 # substitution so that $LINENO is not a special case at line end.
15488 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15489 # second 'sed' script. Blame Lee E. McMahon for sed's syntax.
:-)
15490 sed '=' <$as_myself |
15495 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15498 s,^['$as_cr_digits']*\n,,
15499 ' >$as_me.lineno
&&
15500 chmod +x
$as_me.lineno ||
15501 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15502 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15503 { (exit 1); exit 1; }; }
15505 # Don't try to exec as it changes $[0], causing all sort of problems
15506 # (the dirname of $[0] is not the place where we might find the
15507 # original and so on. Autoconf is especially sensible to this).
15509 # Exit status is that of the last command.
15514 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15515 *c
*,-n*) ECHO_N
= ECHO_C
='
15517 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
15518 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
15521 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15527 rm -f conf$$ conf$$.exe conf$$.
file
15529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15530 # We could just check for DJGPP; but this test a) works b) is more generic
15531 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15532 if test -f conf$$.exe
; then
15533 # Don't use ln at all; we don't have any links
15538 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15543 rm -f conf$$ conf$$.exe conf$$.
file
15545 as_executable_p
="test -f"
15547 # Sed expression to map a string onto a valid CPP name.
15548 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15550 # Sed expression to map a string onto a valid variable name.
15551 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15555 # We need space, tab and new line, in precisely that order.
15561 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
15565 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15566 # report actual input values of CONFIG_FILES etc. instead of their
15567 # values after options handling. Logging --version etc. is OK.
15571 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15572 ## Running $as_me. ##
15577 This file was extended by $as_me, which was
15578 generated by GNU Autoconf 2.53. Invocation command line was
15580 CONFIG_FILES = $CONFIG_FILES
15581 CONFIG_HEADERS = $CONFIG_HEADERS
15582 CONFIG_LINKS = $CONFIG_LINKS
15583 CONFIG_COMMANDS = $CONFIG_COMMANDS
15587 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15591 # Files that config.status was made for.
15592 if test -n "$ac_config_files"; then
15593 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15596 if test -n "$ac_config_headers"; then
15597 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15600 if test -n "$ac_config_links"; then
15601 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15604 if test -n "$ac_config_commands"; then
15605 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15608 cat >>$CONFIG_STATUS <<\_ACEOF
15611 \`$as_me' instantiates files from templates according to the
15612 current configuration.
15614 Usage: $0 [OPTIONS] [FILE]...
15616 -h, --help print this help, then exit
15617 -V, --version print version number, then exit
15618 -d, --debug don't remove temporary files
15619 --recheck update $as_me by reconfiguring in the same conditions
15620 --file=FILE[:TEMPLATE]
15621 instantiate the configuration file FILE
15623 Configuration files:
15626 Configuration commands:
15629 Report bugs to <bug-autoconf@gnu.org>."
15632 cat >>$CONFIG_STATUS <<_ACEOF
15635 configured by $0, generated by GNU Autoconf 2.53,
15636 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15638 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15639 Free Software Foundation, Inc.
15640 This config.status script is free software; the Free Software Foundation
15641 gives unlimited permission to copy, distribute and modify it."
15646 cat >>$CONFIG_STATUS <<\_ACEOF
15647 # If no file are specified by the user, then we need to provide default
15648 # value. By we need to know if files were specified by the user.
15654 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
15655 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
15657 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
15661 *) # This is not an option, so the user has probably given explicit
15663 ac_need_defaults
=false
;;
15667 # Handling of the options.
15669 cat >>$CONFIG_STATUS <<_ACEOF
15670 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15671 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
15672 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
15674 cat >>$CONFIG_STATUS <<\_ACEOF
15675 --version |
--vers* |
-V )
15676 echo "$ac_cs_version"; exit 0 ;;
15678 # Conflict between --help and --header
15679 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15680 Try \`$0 --help' for more information." >&5
15681 echo "$as_me: error: ambiguous option: $1
15682 Try \`$0 --help' for more information." >&2;}
15683 { (exit 1); exit 1; }; };;
15684 --help |
--hel |
-h )
15685 echo "$ac_cs_usage"; exit 0 ;;
15686 --debug |
--d* |
-d )
15688 --file |
--fil |
--fi |
--f )
15690 CONFIG_FILES
="$CONFIG_FILES $1"
15691 ac_need_defaults
=false
;;
15692 --header |
--heade |
--head |
--hea )
15694 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
15695 ac_need_defaults
=false
;;
15697 # This is an error.
15698 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15699 Try \`$0 --help' for more information." >&5
15700 echo "$as_me: error: unrecognized option: $1
15701 Try \`$0 --help' for more information." >&2;}
15702 { (exit 1); exit 1; }; } ;;
15704 *) ac_config_targets
="$ac_config_targets $1" ;;
15712 cat >>$CONFIG_STATUS <<_ACEOF
15714 # INIT-COMMANDS section.
15717 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15723 cat >>$CONFIG_STATUS <<\_ACEOF
15724 for ac_config_target
in $ac_config_targets
15726 case "$ac_config_target" in
15727 # Handling of arguments.
15728 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15729 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
15730 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15731 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15732 { (exit 1); exit 1; }; };;
15736 # If the user did not use the arguments to specify the items to instantiate,
15737 # then the envvar interface is used. Set only those that are not.
15738 # We use the long form for the default assignment because of an extremely
15739 # bizarre bug on SunOS 4.1.3.
15740 if $ac_need_defaults; then
15741 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15742 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15745 # Create a temporary directory, and hook for its removal unless debugging.
15748 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15749 trap '{ (exit 1); exit 1; }' 1 2 13 15
15752 # Create a (secure) tmp directory for tmp files.
15755 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
15756 test -n "$tmp" && test -d "$tmp"
15759 tmp
=$TMPDIR/cs$$
-$RANDOM
15760 (umask 077 && mkdir
$tmp)
15763 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
15764 { (exit 1); exit 1; }
15769 cat >>$CONFIG_STATUS <<_ACEOF
15772 # CONFIG_FILES section.
15775 # No need to generate the scripts if there are no CONFIG_FILES.
15776 # This happens for instance when ./config.status config.h
15777 if test -n "\$CONFIG_FILES"; then
15778 # Protect against being on the right side of a sed subst in config.status.
15779 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15780 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15781 s,@SHELL@,$SHELL,;t t
15782 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15783 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15784 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15785 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15786 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15787 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15788 s,@exec_prefix@,$exec_prefix,;t t
15789 s,@prefix@,$prefix,;t t
15790 s,@program_transform_name@,$program_transform_name,;t t
15791 s,@bindir@,$bindir,;t t
15792 s,@sbindir@,$sbindir,;t t
15793 s,@libexecdir@,$libexecdir,;t t
15794 s,@datadir@,$datadir,;t t
15795 s,@sysconfdir@,$sysconfdir,;t t
15796 s,@sharedstatedir@,$sharedstatedir,;t t
15797 s,@localstatedir@,$localstatedir,;t t
15798 s,@libdir@,$libdir,;t t
15799 s,@includedir@,$includedir,;t t
15800 s,@oldincludedir@,$oldincludedir,;t t
15801 s,@infodir@,$infodir,;t t
15802 s,@mandir@,$mandir,;t t
15803 s,@build_alias@,$build_alias,;t t
15804 s,@host_alias@,$host_alias,;t t
15805 s,@target_alias@,$target_alias,;t t
15806 s,@DEFS@,$DEFS,;t t
15807 s,@ECHO_C@,$ECHO_C,;t t
15808 s,@ECHO_N@,$ECHO_N,;t t
15809 s,@ECHO_T@,$ECHO_T,;t t
15810 s,@LIBS@,$LIBS,;t t
15811 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15812 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15813 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15814 s,@PACKAGE@,$PACKAGE,;t t
15815 s,@VERSION@,$VERSION,;t t
15816 s,@ACLOCAL@,$ACLOCAL,;t t
15817 s,@AUTOCONF@,$AUTOCONF,;t t
15818 s,@AUTOMAKE@,$AUTOMAKE,;t t
15819 s,@AUTOHEADER@,$AUTOHEADER,;t t
15820 s,@MAKEINFO@,$MAKEINFO,;t t
15821 s,@AMTAR@,$AMTAR,;t t
15822 s,@install_sh@,$install_sh,;t t
15823 s,@STRIP@,$STRIP,;t t
15824 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15825 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15827 s,@SET_MAKE@,$SET_MAKE,;t t
15828 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15829 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15830 s,@MAINT@,$MAINT,;t t
15831 s,@INILINT@,$INILINT,;t t
15832 s,@ENABLERSYNC_TRUE@,$ENABLERSYNC_TRUE,;t t
15833 s,@ENABLERSYNC_FALSE@,$ENABLERSYNC_FALSE,;t t
15834 s,@subdirs@,$subdirs,;t t
15835 s,@RSYNC@,$RSYNC,;t t
15836 s,@RSYNCLIB@,$RSYNCLIB,;t t
15838 s,@CXXFLAGS@,$CXXFLAGS,;t t
15839 s,@LDFLAGS@,$LDFLAGS,;t t
15840 s,@CPPFLAGS@,$CPPFLAGS,;t t
15841 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
15842 s,@EXEEXT@,$EXEEXT,;t t
15843 s,@OBJEXT@,$OBJEXT,;t t
15844 s,@DEPDIR@,$DEPDIR,;t t
15845 s,@am__include@,$am__include,;t t
15846 s,@am__quote@,$am__quote,;t t
15847 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15848 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15849 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15850 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
15852 s,@CFLAGS@,$CFLAGS,;t t
15853 s,@ac_ct_CC@,$ac_ct_CC,;t t
15854 s,@CCDEPMODE@,$CCDEPMODE,;t t
15856 s,@LEXLIB@,$LEXLIB,;t t
15857 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
15858 s,@YACC@,$YACC,;t t
15859 s,@build@,$build,;t t
15860 s,@build_cpu@,$build_cpu,;t t
15861 s,@build_vendor@,$build_vendor,;t t
15862 s,@build_os@,$build_os,;t t
15863 s,@host@,$host,;t t
15864 s,@host_cpu@,$host_cpu,;t t
15865 s,@host_vendor@,$host_vendor,;t t
15866 s,@host_os@,$host_os,;t t
15867 s,@LN_S@,$LN_S,;t t
15868 s,@ECHO@,$ECHO,;t t
15869 s,@RANLIB@,$RANLIB,;t t
15870 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15872 s,@CXXCPP@,$CXXCPP,;t t
15873 s,@LIBTOOL@,$LIBTOOL,;t t
15874 s,@WINDRES@,$WINDRES,;t t
15875 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
15876 s,@MINGWTARGET_TRUE@,$MINGWTARGET_TRUE,;t t
15877 s,@MINGWTARGET_FALSE@,$MINGWTARGET_FALSE,;t t
15882 cat >>$CONFIG_STATUS <<\_ACEOF
15883 # Split the substitutions into bite-sized pieces for seds with
15884 # small command number limits, like on Digital OSF/1 and HP-UX.
15885 ac_max_sed_lines
=48
15886 ac_sed_frag
=1 # Number of current file.
15887 ac_beg
=1 # First line for current file.
15888 ac_end
=$ac_max_sed_lines # Line after last line for current file.
15891 while $ac_more_lines; do
15892 if test $ac_beg -gt 1; then
15893 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
15895 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
15897 if test ! -s $tmp/subs.frag
; then
15898 ac_more_lines
=false
15900 # The purpose of the label and of the branching condition is to
15901 # speed up the sed processing (if there are no `@' at all, there
15902 # is no need to browse any of the substitutions).
15903 # These are the two extra sed commands mentioned above.
15905 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
15906 if test -z "$ac_sed_cmds"; then
15907 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
15909 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15911 ac_sed_frag
=`expr $ac_sed_frag + 1`
15913 ac_end
=`expr $ac_end + $ac_max_sed_lines`
15916 if test -z "$ac_sed_cmds"; then
15919 fi # test -n "$CONFIG_FILES"
15922 cat >>$CONFIG_STATUS <<\_ACEOF
15923 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
15924 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15926 - |
*:- |
*:-:* ) # input from stdin
15928 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
15929 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
15930 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
15931 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
15932 * ) ac_file_in
=$ac_file.
in ;;
15935 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15936 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
15937 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15938 X"$ac_file" : 'X\(//\)[^/]' \| \
15939 X"$ac_file" : 'X\(//\)$' \| \
15940 X"$ac_file" : 'X\(/\)' \| \
15941 . : '\(.\)' 2>/dev/null ||
15943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15944 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15945 /^X\(\/\/\)$/{ s//\1/; q; }
15946 /^X\(\/\).*/{ s//\1/; q; }
15948 { case "$ac_dir" in
15949 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
15953 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15954 case $as_mkdir_dir in
15955 # Skip DOS drivespec
15956 ?
:) as_incr_dir
=$as_mkdir_dir ;;
15958 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
15959 test -d "$as_incr_dir" ||
15960 mkdir
"$as_incr_dir" ||
15961 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
15962 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
15963 { (exit 1); exit 1; }; }
15970 if test "$ac_dir" != .
; then
15971 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15972 # A "../" for each directory in $ac_dir_suffix.
15973 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15975 ac_dir_suffix
= ac_top_builddir
=
15979 .
) # No --srcdir option. We are building in place.
15981 if test -z "$ac_top_builddir"; then
15984 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
15986 [\\/]* | ?
:[\\/]* ) # Absolute path.
15987 ac_srcdir
=$srcdir$ac_dir_suffix;
15988 ac_top_srcdir
=$srcdir ;;
15989 *) # Relative path.
15990 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
15991 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
15993 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15995 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
15996 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
15997 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15998 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16002 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16003 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
16006 if test x
"$ac_file" != x-
; then
16007 { echo "$as_me:$LINENO: creating $ac_file" >&5
16008 echo "$as_me: creating $ac_file" >&6;}
16011 # Let's still pretend it is `configure' which instantiates (i.e., don't
16012 # use $as_me), people would be surprised to read:
16013 # /* config.h. Generated by config.status. */
16014 if test x
"$ac_file" = x-
; then
16017 configure_input
="$ac_file. "
16019 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16020 sed 's,.*/,,'` by configure."
16022 # First look for the input files in the build tree, otherwise in the
16024 ac_file_inputs
=`IFS=:
16025 for f in $ac_file_in; do
16027 -) echo $tmp/stdin ;;
16029 # Absolute (can't be DOS-style, as IFS=:)
16030 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16031 echo "$as_me: error: cannot find input file: $f" >&2;}
16032 { (exit 1); exit 1; }; }
16035 if test -f "$f"; then
16038 elif test -f "$srcdir/$f"; then
16043 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16044 echo "$as_me: error: cannot find input file: $f" >&2;}
16045 { (exit 1); exit 1; }; }
16048 done` ||
{ (exit 1); exit 1; }
16050 cat >>$CONFIG_STATUS <<_ACEOF
16054 cat >>$CONFIG_STATUS <<\_ACEOF
16056 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16057 s
,@configure_input@
,$configure_input,;t t
16058 s
,@srcdir@
,$ac_srcdir,;t t
16059 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16060 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16061 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16062 s
,@builddir@
,$ac_builddir,;t t
16063 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16064 s
,@top_builddir@
,$ac_top_builddir,;t t
16065 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16066 s
,@INSTALL@
,$ac_INSTALL,;t t
16067 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16069 if test x"$ac_file" != x-; then
16070 mv $tmp/out $ac_file
16078 cat >>$CONFIG_STATUS <<\_ACEOF
16081 # CONFIG_COMMANDS section.
16083 for ac_file in : $CONFIG_COMMANDS; do test "x
$ac_file" = x: && continue
16084 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16085 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16086 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16087 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16088 X"$ac_dest" : 'X\(//\)[^/]' \| \
16089 X"$ac_dest" : 'X\(//\)$' \| \
16090 X"$ac_dest" : 'X\(/\)' \| \
16091 . : '\(.\)' 2>/dev/null ||
16093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16095 /^X\(\/\/\)$/{ s//\1/; q; }
16096 /^X\(\/\).*/{ s//\1/; q; }
16100 if test "$ac_dir" != .; then
16101 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16102 # A "..
/" for each directory in $ac_dir_suffix.
16103 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16105 ac_dir_suffix= ac_top_builddir=
16109 .) # No --srcdir option. We are building in place.
16111 if test -z "$ac_top_builddir"; then
16114 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16116 [\\/]* | ?:[\\/]* ) # Absolute path.
16117 ac_srcdir=$srcdir$ac_dir_suffix;
16118 ac_top_srcdir=$srcdir ;;
16119 *) # Relative path.
16120 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16121 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16123 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16125 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16126 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16127 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16128 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16131 { echo "$as_me:$LINENO: executing
$ac_dest commands
" >&5
16132 echo "$as_me: executing
$ac_dest commands
" >&6;}
16134 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16135 # Strip MF so we end up with the name of the file.
16136 mf=`echo "$mf" | sed -e 's/:.*$//'`
16137 if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
16138 dirpart=`(dirname "$mf") 2>/dev/null ||
16139 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16140 X"$mf" : 'X\(//\)[^/]' \| \
16141 X"$mf" : 'X\(//\)$' \| \
16142 X"$mf" : 'X\(/\)' \| \
16143 . : '\(.\)' 2>/dev/null ||
16145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16147 /^X\(\/\/\)$/{ s//\1/; q; }
16148 /^X\(\/\).*/{ s//\1/; q; }
16153 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
16154 # Extract the definition of DEP_FILES from the Makefile without
16156 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
16157 test -z "$DEPDIR" && continue
16158 # When using ansi2knr, U may be empty or an underscore; expand it
16159 U=`sed -n -e '/^U = / s///p' < "$mf"`
16160 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
16161 # We invoke sed twice because it is the simplest approach to
16162 # changing $(DEPDIR) to its actual value in the expansion.
16163 for file in `sed -n -e '
16164 /^DEP_FILES = .*\\\\$/ {
16173 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
16174 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16175 # Make sure the directory exists.
16176 test -f "$dirpart/$file" && continue
16177 fdir=`(dirname "$file") 2>/dev/null ||
16178 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16179 X"$file" : 'X\(//\)[^/]' \| \
16180 X"$file" : 'X\(//\)$' \| \
16181 X"$file" : 'X\(/\)' \| \
16182 . : '\(.\)' 2>/dev/null ||
16184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16185 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16186 /^X\(\/\/\)$/{ s//\1/; q; }
16187 /^X\(\/\).*/{ s//\1/; q; }
16189 { case $dirpart/$fdir in
16190 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16193 as_dummy=$dirpart/$fdir
16194 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@
"`; do
16195 case $as_mkdir_dir in
16196 # Skip DOS drivespec
16197 ?:) as_incr_dir=$as_mkdir_dir ;;
16199 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16200 test -d "$as_incr_dir" ||
16201 mkdir "$as_incr_dir" ||
16202 { { echo "$as_me:$LINENO: error
: cannot create
$dirpart/$fdir" >&5
16203 echo "$as_me: error
: cannot create
$dirpart/$fdir" >&2;}
16204 { (exit 1); exit 1; }; }
16209 # echo "creating
$dirpart/$file"
16210 echo '# dummy' > "$dirpart/$file"
16218 cat >>$CONFIG_STATUS <<\_ACEOF
16220 { (exit 0); exit 0; }
16222 chmod +x $CONFIG_STATUS
16223 ac_clean_files=$ac_clean_files_save
16226 # configure is writing to config.log, and then calls config.status.
16227 # config.status does its own redirection, appending to config.log.
16228 # Unfortunately, on DOS this fails, as config.log is still kept open
16229 # by configure, so config.status won't be able to write to it; its
16230 # output is simply discarded. So we exec the FD to /dev/null,
16231 # effectively closing config.log, so it can be properly (re)opened and
16232 # appended to by config.status. When coming back to configure, we
16233 # need to make the FD available again.
16234 if test "$no_create" != yes; then
16237 $SHELL $CONFIG_STATUS || ac_cs_success=false
16239 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16240 # would make configure fail if this is the last instruction.
16241 $ac_cs_success || { (exit 1); exit 1; }
16245 # CONFIG_SUBDIRS section.
16247 if test "$no_recursion" != yes; then
16249 # Remove --cache-file and --srcdir arguments so they do not pile up.
16250 ac_sub_configure_args=
16252 for ac_arg in $ac_configure_args; do
16253 if test -n "$ac_prev"; then
16258 -cache-file | --cache-file | --cache-fil | --cache-fi \
16259 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16260 ac_prev=cache_file ;;
16261 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16262 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16265 --config-cache | -C)
16267 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16269 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16271 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16273 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16275 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
16279 # Always prepend --prefix to ensure using the same prefix
16280 # in subdir configurations.
16281 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
16284 for ac_dir in : $subdirs; do test "x
$ac_dir" = x: && continue
16286 # Do not complain, so a configure script can configure whichever
16287 # parts of a large source tree are present.
16288 test -d $srcdir/$ac_dir || continue
16290 { echo "$as_me:$LINENO: configuring
in $ac_dir" >&5
16291 echo "$as_me: configuring
in $ac_dir" >&6;}
16292 { case "$ac_dir" in
16293 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16297 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@
"`; do
16298 case $as_mkdir_dir in
16299 # Skip DOS drivespec
16300 ?:) as_incr_dir=$as_mkdir_dir ;;
16302 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16303 test -d "$as_incr_dir" ||
16304 mkdir "$as_incr_dir" ||
16305 { { echo "$as_me:$LINENO: error
: cannot create
\"$ac_dir\"" >&5
16306 echo "$as_me: error
: cannot create
\"$ac_dir\"" >&2;}
16307 { (exit 1); exit 1; }; }
16314 if test "$ac_dir" != .; then
16315 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16316 # A "..
/" for each directory in $ac_dir_suffix.
16317 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16319 ac_dir_suffix= ac_top_builddir=
16323 .) # No --srcdir option. We are building in place.
16325 if test -z "$ac_top_builddir"; then
16328 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16330 [\\/]* | ?:[\\/]* ) # Absolute path.
16331 ac_srcdir=$srcdir$ac_dir_suffix;
16332 ac_top_srcdir=$srcdir ;;
16333 *) # Relative path.
16334 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16335 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16337 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16339 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16340 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16341 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16342 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16347 # Check for guested configure; otherwise get Cygnus style configure.
16348 if test -f $ac_srcdir/configure.gnu; then
16349 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
16350 elif test -f $ac_srcdir/configure; then
16351 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
16352 elif test -f $ac_srcdir/configure.in; then
16353 ac_sub_configure=$ac_configure
16355 { echo "$as_me:$LINENO: WARNING
: no configuration information is
in $ac_dir" >&5
16356 echo "$as_me: WARNING
: no configuration information is
in $ac_dir" >&2;}
16360 # The recursion is here.
16361 if test -n "$ac_sub_configure"; then
16362 # Make the cache file name correct relative to the subdirectory.
16363 case $cache_file in
16364 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16365 *) # Relative path.
16366 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
16369 { echo "$as_me:$LINENO: running
$ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16370 echo "$as_me: running
$ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16371 # The eval makes quoting arguments work.
16372 eval $ac_sub_configure $ac_sub_configure_args \
16373 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
16374 { { echo "$as_me:$LINENO: error
: $ac_sub_configure failed
for $ac_dir" >&5
16375 echo "$as_me: error
: $ac_sub_configure failed
for $ac_dir" >&2;}
16376 { (exit 1); exit 1; }; }