2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for buffy 0.5.
5
# Report bugs to <enrico@debian.org>.
7
# Copyright (C) 2003 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.
10
## --------------------- ##
11
## M4sh Initialization. ##
12
## --------------------- ##
14
# Be Bourne compatible
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24
DUALCASE=1; export DUALCASE # for MKS sh
26
# Support unset when possible.
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34
# Work around bugs in pre-3.0 UWIN ksh.
35
$as_unset ENV MAIL MAILPATH
42
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
eval $as_var=C; export $as_var
53
# Required to use basename.
54
if expr a : '\(a\)' >/dev/null 2>&1; then
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67
# Name of the executable.
68
as_me=`$as_basename "$0" ||
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
X"$0" : 'X\(//\)$' \| \
71
X"$0" : 'X\(/\)$' \| \
72
. : '\(.\)' 2>/dev/null ||
74
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
/^X\/\(\/\/\)$/{ s//\1/; q; }
76
/^X\/\(\/\).*/{ s//\1/; q; }
80
# PATH needs CR, and LINENO needs CR and PATH.
81
# Avoid depending upon Character Ranges.
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
as_cr_digits='0123456789'
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
88
# The user is always right.
89
if test "${PATH_SEPARATOR+set}" != set; then
90
echo "#! /bin/sh" >conf$$.sh
91
echo "exit 0" >>conf$$.sh
93
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
test "x$as_lineno_1" != "x$as_lineno_2" &&
106
test "x$as_lineno_3" = "x$as_lineno_2" || {
107
# Find who we are. Look in the path if we contain no path at all
110
*[\\/]* ) as_myself=$0 ;;
111
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115
test -z "$as_dir" && as_dir=.
116
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121
# We did not find ourselves, most probably we were run as `sh COMMAND'
122
# in which case we are not to be found in the path.
123
if test "x$as_myself" = x; then
126
if test ! -f "$as_myself"; then
127
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
{ (exit 1); exit 1; }; }
130
case $CONFIG_SHELL in
132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136
test -z "$as_dir" && as_dir=.
137
for as_base in sh bash ksh sh5; do
140
if ("$as_dir/$as_base" -c '
143
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
test "x$as_lineno_1" != "x$as_lineno_2" &&
145
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
CONFIG_SHELL=$as_dir/$as_base
150
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
# uniformly replaced by the line number. The first 'sed' inserts a
160
# line-number line before each line; the second 'sed' does the real
161
# work. The second script uses 'N' to pair each line-number line
162
# with the numbered line, and appends trailing '-' during
163
# substitution so that $LINENO is not a special case at line end.
164
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166
sed '=' <$as_myself |
171
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174
s,^['$as_cr_digits']*\n,,
176
chmod +x $as_me.lineno ||
177
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
{ (exit 1); exit 1; }; }
180
# Don't try to exec as it changes $[0], causing all sort of problems
181
# (the dirname of $[0] is not the place where we might find the
182
# original and so on. Autoconf is especially sensible to this).
184
# Exit status is that of the last command.
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
*c*,-n*) ECHO_N= ECHO_C='
192
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196
if expr a : '\(a\)' >/dev/null 2>&1; then
202
rm -f conf$$ conf$$.exe conf$$.file
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
# We could just check for DJGPP; but this test a) works b) is more generic
206
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
if test -f conf$$.exe; then
208
# Don't use ln at all; we don't have any links
213
elif ln conf$$.file conf$$ 2>/dev/null; then
218
rm -f conf$$ conf$$.exe conf$$.file
220
if mkdir -p . 2>/dev/null; then
223
test -d ./-p && rmdir ./-p
227
as_executable_p="test -f"
229
# Sed expression to map a string onto a valid CPP name.
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
# Sed expression to map a string onto a valid variable name.
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237
# We need space, tab and new line, in precisely that order.
247
# Check that we are running under the correct shell.
248
SHELL=${CONFIG_SHELL-/bin/sh}
252
# Remove one level of quotation (which was required for Make).
253
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258
if test "X$1" = X--no-reexec; then
259
# Discard the --no-reexec flag, and continue.
261
elif test "X$1" = X--fallback-echo; then
262
# Avoid inline document here, it may be left over
264
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265
# Yippee, $echo works!
268
# Restart under the correct shell.
269
exec $SHELL "$0" --no-reexec ${1+"$@"}
272
if test "X$1" = X--fallback-echo; then
273
# used as fallback echo
281
# The HP-UX ksh and POSIX shell print the target directory to stdout
283
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285
if test -z "$ECHO"; then
286
if test "X${echo_test_string+set}" != Xset; then
287
# find a string as large as possible, as long as the shell can cope with it
288
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291
echo_test_string="`eval $cmd`" &&
292
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301
test "X$echo_testing_string" = "X$echo_test_string"; then
304
# The Solaris, AIX, and Digital Unix default echo programs unquote
305
# backslashes. This makes it impossible to quote backslashes using
306
# echo "$something" | sed 's/\\/\\\\/g'
308
# So, first we look for a working echo in the user's PATH.
310
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311
for dir in $PATH /usr/ucb; do
313
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316
test "X$echo_testing_string" = "X$echo_test_string"; then
323
if test "X$echo" = Xecho; then
324
# We didn't find a better echo, so look for alternatives.
325
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327
test "X$echo_testing_string" = "X$echo_test_string"; then
328
# This shell has a builtin print -r that does the trick.
330
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331
test "X$CONFIG_SHELL" != X/bin/ksh; then
332
# If we have ksh, try running configure again with it.
333
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334
export ORIGINAL_CONFIG_SHELL
335
CONFIG_SHELL=/bin/ksh
337
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343
test "X$echo_testing_string" = "X$echo_test_string"; then
346
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347
test "X$echo_testing_string" = 'X\t' &&
348
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349
test "X$echo_testing_string" = "X$echo_test_string"; then
350
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352
SHELL="$CONFIG_SHELL"
354
echo="$CONFIG_SHELL $0 --fallback-echo"
355
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356
test "X$echo_testing_string" = 'X\t' &&
357
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358
test "X$echo_testing_string" = "X$echo_test_string"; then
359
echo="$CONFIG_SHELL $0 --fallback-echo"
361
# maybe with a smaller string...
364
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372
if test "$prev" != 'sed 50q "$0"'; then
373
echo_test_string=`eval $prev`
374
export echo_test_string
375
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377
# Oops. We lost completely, so just stick with echo.
386
# Copy echo and quote the copy suitably for passing to libtool from
387
# the Makefile, instead of quoting the original, which is used later.
389
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396
tagnames=${tagnames+${tagnames},}CXX
398
tagnames=${tagnames+${tagnames},}F77
401
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402
# so uname gets run too.
403
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
ac_default_prefix=/usr/local
411
ac_config_libobj_dir=.
416
SHELL=${CONFIG_SHELL-/bin/sh}
418
# Maximum number of lines to put in a shell here document.
419
# This variable seems obsolete. It should probably be removed, and
420
# only ac_max_sed_lines should be used.
421
: ${ac_max_here_lines=38}
423
# Identity of this package.
425
PACKAGE_TARNAME='buffy'
426
PACKAGE_VERSION='0.5'
427
PACKAGE_STRING='buffy 0.5'
428
PACKAGE_BUGREPORT='enrico@debian.org'
430
ac_unique_file="configure.ac"
431
# Factoring default headers for most tests.
432
ac_includes_default="\
435
# include <sys/types.h>
438
# include <sys/stat.h>
449
# if !STDC_HEADERS && HAVE_MEMORY_H
455
# include <strings.h>
458
# include <inttypes.h>
468
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG GTKMM_CFLAGS GTKMM_LIBS XMLPP_CFLAGS XMLPP_LIBS LIBOBJS LTLIBOBJS'
471
# Initialize some variables set by options.
473
ac_init_version=false
474
# The variables have the same names as the options, with
475
# dashes changed to underlines.
483
program_transform_name=s,x,x,
491
# Installation directory options.
492
# These are left unexpanded so users can "make install exec_prefix=/foo"
493
# and all the variables that are supposed to be based on exec_prefix
494
# by default will actually change.
495
# Use braces instead of parens because sh, perl, etc. also accept them.
496
bindir='${exec_prefix}/bin'
497
sbindir='${exec_prefix}/sbin'
498
libexecdir='${exec_prefix}/libexec'
499
datadir='${prefix}/share'
500
sysconfdir='${prefix}/etc'
501
sharedstatedir='${prefix}/com'
502
localstatedir='${prefix}/var'
503
libdir='${exec_prefix}/lib'
504
includedir='${prefix}/include'
505
oldincludedir='/usr/include'
506
infodir='${prefix}/info'
507
mandir='${prefix}/man'
512
# If the previous option needs an argument, assign it.
513
if test -n "$ac_prev"; then
514
eval "$ac_prev=\$ac_option"
519
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
# Accept the important Cygnus configure options, so we can diagnose typos.
525
-bindir | --bindir | --bindi | --bind | --bin | --bi)
527
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530
-build | --build | --buil | --bui | --bu)
531
ac_prev=build_alias ;;
532
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
533
build_alias=$ac_optarg ;;
535
-cache-file | --cache-file | --cache-fil | --cache-fi \
536
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537
ac_prev=cache_file ;;
538
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540
cache_file=$ac_optarg ;;
543
cache_file=config.cache ;;
545
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549
datadir=$ac_optarg ;;
551
-disable-* | --disable-*)
552
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553
# Reject names that are not valid shell variable names.
554
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
556
{ (exit 1); exit 1; }; }
557
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558
eval "enable_$ac_feature=no" ;;
560
-enable-* | --enable-*)
561
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562
# Reject names that are not valid shell variable names.
563
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
565
{ (exit 1); exit 1; }; }
566
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571
eval "enable_$ac_feature='$ac_optarg'" ;;
573
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575
| --exec | --exe | --ex)
576
ac_prev=exec_prefix ;;
577
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579
| --exec=* | --exe=* | --ex=*)
580
exec_prefix=$ac_optarg ;;
582
-gas | --gas | --ga | --g)
583
# Obsolete; use --with-gas.
586
-help | --help | --hel | --he | -h)
588
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589
ac_init_help=recursive ;;
590
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591
ac_init_help=short ;;
593
-host | --host | --hos | --ho)
594
ac_prev=host_alias ;;
595
-host=* | --host=* | --hos=* | --ho=*)
596
host_alias=$ac_optarg ;;
598
-includedir | --includedir | --includedi | --included | --include \
599
| --includ | --inclu | --incl | --inc)
600
ac_prev=includedir ;;
601
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602
| --includ=* | --inclu=* | --incl=* | --inc=*)
603
includedir=$ac_optarg ;;
605
-infodir | --infodir | --infodi | --infod | --info | --inf)
607
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608
infodir=$ac_optarg ;;
610
-libdir | --libdir | --libdi | --libd)
612
-libdir=* | --libdir=* | --libdi=* | --libd=*)
615
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616
| --libexe | --libex | --libe)
617
ac_prev=libexecdir ;;
618
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619
| --libexe=* | --libex=* | --libe=*)
620
libexecdir=$ac_optarg ;;
622
-localstatedir | --localstatedir | --localstatedi | --localstated \
623
| --localstate | --localstat | --localsta | --localst \
624
| --locals | --local | --loca | --loc | --lo)
625
ac_prev=localstatedir ;;
626
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
628
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629
localstatedir=$ac_optarg ;;
631
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637
# Obsolete; use --without-fp.
640
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
641
| --no-cr | --no-c | -n)
644
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
645
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650
| --oldin | --oldi | --old | --ol | --o)
651
ac_prev=oldincludedir ;;
652
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655
oldincludedir=$ac_optarg ;;
657
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662
-program-prefix | --program-prefix | --program-prefi | --program-pref \
663
| --program-pre | --program-pr | --program-p)
664
ac_prev=program_prefix ;;
665
-program-prefix=* | --program-prefix=* | --program-prefi=* \
666
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667
program_prefix=$ac_optarg ;;
669
-program-suffix | --program-suffix | --program-suffi | --program-suff \
670
| --program-suf | --program-su | --program-s)
671
ac_prev=program_suffix ;;
672
-program-suffix=* | --program-suffix=* | --program-suffi=* \
673
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674
program_suffix=$ac_optarg ;;
676
-program-transform-name | --program-transform-name \
677
| --program-transform-nam | --program-transform-na \
678
| --program-transform-n | --program-transform- \
679
| --program-transform | --program-transfor \
680
| --program-transfo | --program-transf \
681
| --program-trans | --program-tran \
682
| --progr-tra | --program-tr | --program-t)
683
ac_prev=program_transform_name ;;
684
-program-transform-name=* | --program-transform-name=* \
685
| --program-transform-nam=* | --program-transform-na=* \
686
| --program-transform-n=* | --program-transform-=* \
687
| --program-transform=* | --program-transfor=* \
688
| --program-transfo=* | --program-transf=* \
689
| --program-trans=* | --program-tran=* \
690
| --progr-tra=* | --program-tr=* | --program-t=*)
691
program_transform_name=$ac_optarg ;;
693
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
694
| -silent | --silent | --silen | --sile | --sil)
697
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701
sbindir=$ac_optarg ;;
703
-sharedstatedir | --sharedstatedir | --sharedstatedi \
704
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705
| --sharedst | --shareds | --shared | --share | --shar \
707
ac_prev=sharedstatedir ;;
708
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712
sharedstatedir=$ac_optarg ;;
714
-site | --site | --sit)
716
-site=* | --site=* | --sit=*)
719
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725
| --syscon | --sysco | --sysc | --sys | --sy)
726
ac_prev=sysconfdir ;;
727
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729
sysconfdir=$ac_optarg ;;
731
-target | --target | --targe | --targ | --tar | --ta | --t)
732
ac_prev=target_alias ;;
733
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734
target_alias=$ac_optarg ;;
736
-v | -verbose | --verbose | --verbos | --verbo | --verb)
739
-version | --version | --versio | --versi | --vers | -V)
743
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744
# Reject names that are not valid shell variable names.
745
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746
{ echo "$as_me: error: invalid package name: $ac_package" >&2
747
{ (exit 1); exit 1; }; }
748
ac_package=`echo $ac_package| sed 's/-/_/g'`
750
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753
eval "with_$ac_package='$ac_optarg'" ;;
755
-without-* | --without-*)
756
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757
# Reject names that are not valid shell variable names.
758
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759
{ echo "$as_me: error: invalid package name: $ac_package" >&2
760
{ (exit 1); exit 1; }; }
761
ac_package=`echo $ac_package | sed 's/-/_/g'`
762
eval "with_$ac_package=no" ;;
765
# Obsolete; use --with-x.
768
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769
| --x-incl | --x-inc | --x-in | --x-i)
770
ac_prev=x_includes ;;
771
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773
x_includes=$ac_optarg ;;
775
-x-libraries | --x-libraries | --x-librarie | --x-librari \
776
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777
ac_prev=x_libraries ;;
778
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780
x_libraries=$ac_optarg ;;
782
-*) { echo "$as_me: error: unrecognized option: $ac_option
783
Try \`$0 --help' for more information." >&2
784
{ (exit 1); exit 1; }; }
788
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789
# Reject names that are not valid shell variable names.
790
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792
{ (exit 1); exit 1; }; }
793
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794
eval "$ac_envvar='$ac_optarg'"
798
# FIXME: should be removed in autoconf 3.0.
799
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808
if test -n "$ac_prev"; then
809
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810
{ echo "$as_me: error: missing argument to $ac_option" >&2
811
{ (exit 1); exit 1; }; }
814
# Be sure to have absolute paths.
815
for ac_var in exec_prefix prefix
817
eval ac_val=$`echo $ac_var`
819
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821
{ (exit 1); exit 1; }; };;
825
# Be sure to have absolute paths.
826
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827
localstatedir libdir includedir oldincludedir infodir mandir
829
eval ac_val=$`echo $ac_var`
831
[\\/$]* | ?:[\\/]* ) ;;
832
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833
{ (exit 1); exit 1; }; };;
837
# There might be people who depend on the old broken behavior: `$host'
838
# used to hold the argument of --host etc.
839
# FIXME: To remove some day.
844
# FIXME: To remove some day.
845
if test "x$host_alias" != x; then
846
if test "x$build_alias" = x; then
847
cross_compiling=maybe
848
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849
If a cross compiler is detected then cross compile mode will be used." >&2
850
elif test "x$build_alias" != "x$host_alias"; then
856
test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
test "$silent" = yes && exec 6>/dev/null
861
# Find the source files, if location was not specified.
862
if test -z "$srcdir"; then
863
ac_srcdir_defaulted=yes
864
# Try the directory containing this script, then its parent.
865
ac_confdir=`(dirname "$0") 2>/dev/null ||
866
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867
X"$0" : 'X\(//\)[^/]' \| \
868
X"$0" : 'X\(//\)$' \| \
869
X"$0" : 'X\(/\)' \| \
870
. : '\(.\)' 2>/dev/null ||
872
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
874
/^X\(\/\/\)$/{ s//\1/; q; }
875
/^X\(\/\).*/{ s//\1/; q; }
878
if test ! -r $srcdir/$ac_unique_file; then
882
ac_srcdir_defaulted=no
884
if test ! -r $srcdir/$ac_unique_file; then
885
if test "$ac_srcdir_defaulted" = yes; then
886
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887
{ (exit 1); exit 1; }; }
889
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890
{ (exit 1); exit 1; }; }
893
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895
{ (exit 1); exit 1; }; }
896
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897
ac_env_build_alias_set=${build_alias+set}
898
ac_env_build_alias_value=$build_alias
899
ac_cv_env_build_alias_set=${build_alias+set}
900
ac_cv_env_build_alias_value=$build_alias
901
ac_env_host_alias_set=${host_alias+set}
902
ac_env_host_alias_value=$host_alias
903
ac_cv_env_host_alias_set=${host_alias+set}
904
ac_cv_env_host_alias_value=$host_alias
905
ac_env_target_alias_set=${target_alias+set}
906
ac_env_target_alias_value=$target_alias
907
ac_cv_env_target_alias_set=${target_alias+set}
908
ac_cv_env_target_alias_value=$target_alias
909
ac_env_CXX_set=${CXX+set}
910
ac_env_CXX_value=$CXX
911
ac_cv_env_CXX_set=${CXX+set}
912
ac_cv_env_CXX_value=$CXX
913
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914
ac_env_CXXFLAGS_value=$CXXFLAGS
915
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917
ac_env_LDFLAGS_set=${LDFLAGS+set}
918
ac_env_LDFLAGS_value=$LDFLAGS
919
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920
ac_cv_env_LDFLAGS_value=$LDFLAGS
921
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922
ac_env_CPPFLAGS_value=$CPPFLAGS
923
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925
ac_env_CXXCPP_set=${CXXCPP+set}
926
ac_env_CXXCPP_value=$CXXCPP
927
ac_cv_env_CXXCPP_set=${CXXCPP+set}
928
ac_cv_env_CXXCPP_value=$CXXCPP
929
ac_env_CC_set=${CC+set}
931
ac_cv_env_CC_set=${CC+set}
932
ac_cv_env_CC_value=$CC
933
ac_env_CFLAGS_set=${CFLAGS+set}
934
ac_env_CFLAGS_value=$CFLAGS
935
ac_cv_env_CFLAGS_set=${CFLAGS+set}
936
ac_cv_env_CFLAGS_value=$CFLAGS
937
ac_env_CPP_set=${CPP+set}
938
ac_env_CPP_value=$CPP
939
ac_cv_env_CPP_set=${CPP+set}
940
ac_cv_env_CPP_value=$CPP
941
ac_env_F77_set=${F77+set}
942
ac_env_F77_value=$F77
943
ac_cv_env_F77_set=${F77+set}
944
ac_cv_env_F77_value=$F77
945
ac_env_FFLAGS_set=${FFLAGS+set}
946
ac_env_FFLAGS_value=$FFLAGS
947
ac_cv_env_FFLAGS_set=${FFLAGS+set}
948
ac_cv_env_FFLAGS_value=$FFLAGS
951
# Report the --help message.
953
if test "$ac_init_help" = "long"; then
954
# Omit some internal or obsolete options to make the list less imposing.
955
# This message is too long to be a string in the A/UX 3.1 sh.
957
\`configure' configures buffy 0.5 to adapt to many kinds of systems.
959
Usage: $0 [OPTION]... [VAR=VALUE]...
961
To assign environment variables (e.g., CC, CFLAGS...), specify them as
962
VAR=VALUE. See below for descriptions of some of the useful variables.
964
Defaults for the options are specified in brackets.
967
-h, --help display this help and exit
968
--help=short display options specific to this package
969
--help=recursive display the short help of all the included packages
970
-V, --version display version information and exit
971
-q, --quiet, --silent do not print \`checking...' messages
972
--cache-file=FILE cache test results in FILE [disabled]
973
-C, --config-cache alias for \`--cache-file=config.cache'
974
-n, --no-create do not create output files
975
--srcdir=DIR find the sources in DIR [configure dir or \`..']
980
Installation directories:
981
--prefix=PREFIX install architecture-independent files in PREFIX
983
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986
By default, \`make install' will install all the files in
987
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989
for instance \`--prefix=\$HOME'.
991
For better control, use the options below.
993
Fine tuning of the installation directories:
994
--bindir=DIR user executables [EPREFIX/bin]
995
--sbindir=DIR system admin executables [EPREFIX/sbin]
996
--libexecdir=DIR program executables [EPREFIX/libexec]
997
--datadir=DIR read-only architecture-independent data [PREFIX/share]
998
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001
--libdir=DIR object code libraries [EPREFIX/lib]
1002
--includedir=DIR C header files [PREFIX/include]
1003
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1004
--infodir=DIR info documentation [PREFIX/info]
1005
--mandir=DIR man documentation [PREFIX/man]
1011
--program-prefix=PREFIX prepend PREFIX to installed program names
1012
--program-suffix=SUFFIX append SUFFIX to installed program names
1013
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1016
--build=BUILD configure for building on BUILD [guessed]
1017
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1021
if test -n "$ac_init_help"; then
1022
case $ac_init_help in
1023
short | recursive ) echo "Configuration of buffy 0.5:";;
1028
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030
--disable-dependency-tracking speeds up one-time build
1031
--enable-dependency-tracking do not reject slow dependency extractors
1032
--enable-shared[=PKGS]
1033
build shared libraries [default=yes]
1034
--enable-static[=PKGS]
1035
build static libraries [default=yes]
1036
--enable-fast-install[=PKGS]
1037
optimize for fast installation [default=yes]
1038
--disable-libtool-lock avoid locking (might break parallel builds)
1041
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044
--with-pic try to use only PIC/non-PIC objects [default=use
1047
include additional configurations [automatic]
1049
Some influential environment variables:
1050
CXX C++ compiler command
1051
CXXFLAGS C++ compiler flags
1052
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1053
nonstandard directory <lib dir>
1054
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055
headers in a nonstandard directory <include dir>
1056
CXXCPP C++ preprocessor
1057
CC C compiler command
1058
CFLAGS C compiler flags
1060
F77 Fortran 77 compiler command
1061
FFLAGS Fortran 77 compiler flags
1063
Use these variables to override the choices made by `configure' or to help
1064
it to find libraries and programs with nonstandard names/locations.
1066
Report bugs to <enrico@debian.org>.
1070
if test "$ac_init_help" = "recursive"; then
1071
# If there are subdirs, report their specific --help.
1073
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074
test -d $ac_dir || continue
1077
if test "$ac_dir" != .; then
1078
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1079
# A "../" for each directory in $ac_dir_suffix.
1080
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082
ac_dir_suffix= ac_top_builddir=
1086
.) # No --srcdir option. We are building in place.
1088
if test -z "$ac_top_builddir"; then
1091
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093
[\\/]* | ?:[\\/]* ) # Absolute path.
1094
ac_srcdir=$srcdir$ac_dir_suffix;
1095
ac_top_srcdir=$srcdir ;;
1097
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101
# Do not use `cd foo && pwd` to compute absolute paths, because
1102
# the directories may not exist.
1104
.) ac_abs_builddir="$ac_dir";;
1107
.) ac_abs_builddir=`pwd`;;
1108
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1109
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1112
case $ac_abs_builddir in
1113
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1115
case ${ac_top_builddir}. in
1116
.) ac_abs_top_builddir=$ac_abs_builddir;;
1117
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1118
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1121
case $ac_abs_builddir in
1122
.) ac_abs_srcdir=$ac_srcdir;;
1125
.) ac_abs_srcdir=$ac_abs_builddir;;
1126
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1127
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1130
case $ac_abs_builddir in
1131
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1133
case $ac_top_srcdir in
1134
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1135
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1136
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1141
# Check for guested configure; otherwise get Cygnus style configure.
1142
if test -f $ac_srcdir/configure.gnu; then
1144
$SHELL $ac_srcdir/configure.gnu --help=recursive
1145
elif test -f $ac_srcdir/configure; then
1147
$SHELL $ac_srcdir/configure --help=recursive
1148
elif test -f $ac_srcdir/configure.ac ||
1149
test -f $ac_srcdir/configure.in; then
1151
$ac_configure --help
1153
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1159
test -n "$ac_init_help" && exit 0
1160
if $ac_init_version; then
1163
generated by GNU Autoconf 2.59
1165
Copyright (C) 2003 Free Software Foundation, Inc.
1166
This configure script is free software; the Free Software Foundation
1167
gives unlimited permission to copy, distribute and modify it.
1173
This file contains any messages produced by compilers while
1174
running configure, to aid debugging if configure makes a mistake.
1176
It was created by buffy $as_me 0.5, which was
1177
generated by GNU Autoconf 2.59. Invocation command line was
1188
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1189
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1190
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1191
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1192
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1194
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1195
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1197
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1198
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1199
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1200
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1201
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1202
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1203
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1207
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1211
test -z "$as_dir" && as_dir=.
1212
echo "PATH: $as_dir"
1227
# Keep a trace of the command line.
1228
# Strip out --no-create and --no-recursion so they do not pile up.
1229
# Strip out --silent because we don't want to record it for future runs.
1230
# Also quote any args containing shell meta-characters.
1231
# Make two passes to allow for proper duplicate-argument suppression.
1236
ac_must_keep_next=false
1242
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1243
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244
| -silent | --silent | --silen | --sile | --sil)
1246
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1250
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1252
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1253
if test $ac_must_keep_next = true; then
1254
ac_must_keep_next=false # Got value, back to normal.
1257
*=* | --config-cache | -C | -disable-* | --disable-* \
1258
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1259
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1260
| -with-* | --with-* | -without-* | --without-* | --x)
1261
case "$ac_configure_args0 " in
1262
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1265
-* ) ac_must_keep_next=true ;;
1268
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1269
# Get rid of the leading space.
1275
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1276
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1278
# When interrupted or exit'd, cleanup temporary files, and complete
1279
# config.log. We remove comments because anyway the quotes in there
1280
# would cause problems or look ugly.
1281
# WARNING: Be sure not to use single quotes in there, as some shells,
1282
# such as our DU 5.0 friend, will then `close' the trap.
1283
trap 'exit_status=$?
1284
# Save into config.log some information that might help in debugging.
1289
## ---------------- ##
1290
## Cache variables. ##
1291
## ---------------- ##
1294
# The following way of writing the cache mishandles newlines in values,
1297
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1300
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1301
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1305
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1312
## ----------------- ##
1313
## Output variables. ##
1314
## ----------------- ##
1317
for ac_var in $ac_subst_vars
1319
eval ac_val=$`echo $ac_var`
1320
echo "$ac_var='"'"'$ac_val'"'"'"
1324
if test -n "$ac_subst_files"; then
1331
for ac_var in $ac_subst_files
1333
eval ac_val=$`echo $ac_var`
1334
echo "$ac_var='"'"'$ac_val'"'"'"
1339
if test -s confdefs.h; then
1346
sed "/^$/d" confdefs.h | sort
1349
test "$ac_signal" != 0 &&
1350
echo "$as_me: caught signal $ac_signal"
1351
echo "$as_me: exit $exit_status"
1353
rm -f core *.core &&
1354
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1357
for ac_signal in 1 2 13 15; do
1358
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1362
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1363
rm -rf conftest* confdefs.h
1364
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1367
# Predefined preprocessor variables.
1369
cat >>confdefs.h <<_ACEOF
1370
#define PACKAGE_NAME "$PACKAGE_NAME"
1374
cat >>confdefs.h <<_ACEOF
1375
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1379
cat >>confdefs.h <<_ACEOF
1380
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1384
cat >>confdefs.h <<_ACEOF
1385
#define PACKAGE_STRING "$PACKAGE_STRING"
1389
cat >>confdefs.h <<_ACEOF
1390
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1394
# Let the site file select an alternate cache file if it wants to.
1395
# Prefer explicitly selected file to automatically selected ones.
1396
if test -z "$CONFIG_SITE"; then
1397
if test "x$prefix" != xNONE; then
1398
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1400
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1403
for ac_site_file in $CONFIG_SITE; do
1404
if test -r "$ac_site_file"; then
1405
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1406
echo "$as_me: loading site script $ac_site_file" >&6;}
1407
sed 's/^/| /' "$ac_site_file" >&5
1412
if test -r "$cache_file"; then
1413
# Some versions of bash will fail to source /dev/null (special
1414
# files actually), so we avoid doing that.
1415
if test -f "$cache_file"; then
1416
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1417
echo "$as_me: loading cache $cache_file" >&6;}
1419
[\\/]* | ?:[\\/]* ) . $cache_file;;
1420
*) . ./$cache_file;;
1424
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1425
echo "$as_me: creating cache $cache_file" >&6;}
1429
# Check that the precious variables saved in the cache have kept the same
1431
ac_cache_corrupted=false
1432
for ac_var in `(set) 2>&1 |
1433
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1434
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1435
eval ac_new_set=\$ac_env_${ac_var}_set
1436
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1437
eval ac_new_val="\$ac_env_${ac_var}_value"
1438
case $ac_old_set,$ac_new_set in
1440
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1441
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1442
ac_cache_corrupted=: ;;
1444
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1445
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1446
ac_cache_corrupted=: ;;
1449
if test "x$ac_old_val" != "x$ac_new_val"; then
1450
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1451
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1452
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1453
echo "$as_me: former value: $ac_old_val" >&2;}
1454
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1455
echo "$as_me: current value: $ac_new_val" >&2;}
1456
ac_cache_corrupted=:
1459
# Pass precious variables to config.status.
1460
if test "$ac_new_set" = set; then
1462
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1463
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1464
*) ac_arg=$ac_var=$ac_new_val ;;
1466
case " $ac_configure_args " in
1467
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1468
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1472
if $ac_cache_corrupted; then
1473
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1474
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1475
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1476
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1477
{ (exit 1); exit 1; }; }
1481
ac_cpp='$CPP $CPPFLAGS'
1482
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1483
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1484
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1513
ac_config_headers="$ac_config_headers config.h"
1515
am__api_version="1.8"
1517
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1518
if test -f $ac_dir/install-sh; then
1520
ac_install_sh="$ac_aux_dir/install-sh -c"
1522
elif test -f $ac_dir/install.sh; then
1524
ac_install_sh="$ac_aux_dir/install.sh -c"
1526
elif test -f $ac_dir/shtool; then
1528
ac_install_sh="$ac_aux_dir/shtool install -c"
1532
if test -z "$ac_aux_dir"; then
1533
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1534
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1535
{ (exit 1); exit 1; }; }
1537
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1538
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1539
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1541
# Find a good install program. We prefer a C program (faster),
1542
# so one script is as good as another. But avoid the broken or
1543
# incompatible versions:
1544
# SysV /etc/install, /usr/sbin/install
1545
# SunOS /usr/etc/install
1546
# IRIX /sbin/install
1548
# AmigaOS /C/install, which installs bootblocks on floppy discs
1549
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1550
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1551
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1552
# OS/2's system install, which has a completely different semantic
1553
# ./install, which can be erroneously created by make from ./install.sh.
1554
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1555
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1556
if test -z "$INSTALL"; then
1557
if test "${ac_cv_path_install+set}" = set; then
1558
echo $ECHO_N "(cached) $ECHO_C" >&6
1560
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564
test -z "$as_dir" && as_dir=.
1565
# Account for people who put trailing slashes in PATH elements.
1567
./ | .// | /cC/* | \
1568
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1569
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1572
# OSF1 and SCO ODT 3.0 have their own names for install.
1573
# Don't use installbsd from OSF since it installs stuff as root
1575
for ac_prog in ginstall scoinst install; do
1576
for ac_exec_ext in '' $ac_executable_extensions; do
1577
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1578
if test $ac_prog = install &&
1579
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1580
# AIX install. It has an incompatible calling convention.
1582
elif test $ac_prog = install &&
1583
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1584
# program-specific install script used by HP pwplus--don't use.
1587
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1599
if test "${ac_cv_path_install+set}" = set; then
1600
INSTALL=$ac_cv_path_install
1602
# As a last resort, use the slow shell script. We don't cache a
1603
# path for INSTALL within a source directory, because that will
1604
# break other packages using the cache if that directory is
1605
# removed, or if the path is relative.
1606
INSTALL=$ac_install_sh
1609
echo "$as_me:$LINENO: result: $INSTALL" >&5
1610
echo "${ECHO_T}$INSTALL" >&6
1612
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1613
# It thinks the first close brace ends the variable substitution.
1614
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1616
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1618
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1620
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1621
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1624
echo timestamp > conftest.file
1625
# Do `set' in a subshell so we don't clobber the current shell's
1626
# arguments. Must try -L first in case configure is actually a
1627
# symlink; some systems play weird games with the mod time of symlinks
1628
# (eg FreeBSD returns the mod time of the symlink's containing
1631
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1632
if test "$*" = "X"; then
1634
set X `ls -t $srcdir/configure conftest.file`
1637
if test "$*" != "X $srcdir/configure conftest.file" \
1638
&& test "$*" != "X conftest.file $srcdir/configure"; then
1640
# If neither matched, then we have a broken ls. This can happen
1641
# if, for instance, CONFIG_SHELL is bash and it inherits a
1642
# broken ls alias from the environment. This has actually
1643
# happened. Such a system could not be considered "sane".
1644
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1645
alias in your environment" >&5
1646
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1647
alias in your environment" >&2;}
1648
{ (exit 1); exit 1; }; }
1651
test "$2" = conftest.file
1657
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1658
Check your system clock" >&5
1659
echo "$as_me: error: newly created file is older than distributed files!
1660
Check your system clock" >&2;}
1661
{ (exit 1); exit 1; }; }
1663
echo "$as_me:$LINENO: result: yes" >&5
1664
echo "${ECHO_T}yes" >&6
1665
test "$program_prefix" != NONE &&
1666
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1667
# Use a double $ so make ignores it.
1668
test "$program_suffix" != NONE &&
1669
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1670
# Double any \ or $. echo might interpret backslashes.
1671
# By default was `s,x,x', remove it if useless.
1672
cat <<\_ACEOF >conftest.sed
1673
s/[\\$]/&&/g;s/;s,x,x,$//
1675
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1678
# expand $ac_aux_dir to an absolute path
1679
am_aux_dir=`cd $ac_aux_dir && pwd`
1681
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1682
# Use eval to expand $SHELL
1683
if eval "$MISSING --run true"; then
1684
am_missing_run="$MISSING --run "
1687
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1688
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1691
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1692
# Keeping the `.' argument allows $(mkdir_p) to be used without
1693
# argument. Indeed, we sometimes output rules like
1694
# $(mkdir_p) $(somedir)
1695
# where $(somedir) is conditionally defined.
1696
# (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1697
# expensive solution, as it forces Make to start a sub-shell.)
1698
mkdir_p='mkdir -p -- .'
1700
# On NextStep and OpenStep, the `mkdir' command does not
1701
# recognize any option. It will interpret all options as
1702
# directories to create, and then abort because `.' already
1704
for d in ./-p ./--version;
1706
test -d $d && rmdir $d
1708
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1709
if test -f "$ac_aux_dir/mkinstalldirs"; then
1710
mkdir_p='$(mkinstalldirs)'
1712
mkdir_p='$(install_sh) -d'
1716
for ac_prog in gawk mawk nawk awk
1718
# Extract the first word of "$ac_prog", so it can be a program name with args.
1719
set dummy $ac_prog; ac_word=$2
1720
echo "$as_me:$LINENO: checking for $ac_word" >&5
1721
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1722
if test "${ac_cv_prog_AWK+set}" = set; then
1723
echo $ECHO_N "(cached) $ECHO_C" >&6
1725
if test -n "$AWK"; then
1726
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1728
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732
test -z "$as_dir" && as_dir=.
1733
for ac_exec_ext in '' $ac_executable_extensions; do
1734
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1735
ac_cv_prog_AWK="$ac_prog"
1736
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1745
if test -n "$AWK"; then
1746
echo "$as_me:$LINENO: result: $AWK" >&5
1747
echo "${ECHO_T}$AWK" >&6
1749
echo "$as_me:$LINENO: result: no" >&5
1750
echo "${ECHO_T}no" >&6
1753
test -n "$AWK" && break
1756
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1757
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1758
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1759
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1760
echo $ECHO_N "(cached) $ECHO_C" >&6
1762
cat >conftest.make <<\_ACEOF
1764
@echo 'ac_maketemp="$(MAKE)"'
1766
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1767
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1768
if test -n "$ac_maketemp"; then
1769
eval ac_cv_prog_make_${ac_make}_set=yes
1771
eval ac_cv_prog_make_${ac_make}_set=no
1775
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1776
echo "$as_me:$LINENO: result: yes" >&5
1777
echo "${ECHO_T}yes" >&6
1780
echo "$as_me:$LINENO: result: no" >&5
1781
echo "${ECHO_T}no" >&6
1782
SET_MAKE="MAKE=${MAKE-make}"
1785
rm -rf .tst 2>/dev/null
1786
mkdir .tst 2>/dev/null
1787
if test -d .tst; then
1792
rmdir .tst 2>/dev/null
1794
# test to see if srcdir already configured
1795
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1796
test -f $srcdir/config.status; then
1797
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1798
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1799
{ (exit 1); exit 1; }; }
1802
# test whether we have cygpath
1803
if test -z "$CYGPATH_W"; then
1804
if (cygpath --version) >/dev/null 2>/dev/null; then
1805
CYGPATH_W='cygpath -w'
1812
# Define the identity of the package.
1817
cat >>confdefs.h <<_ACEOF
1818
#define PACKAGE "$PACKAGE"
1822
cat >>confdefs.h <<_ACEOF
1823
#define VERSION "$VERSION"
1826
# Some tools Automake needs.
1828
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1831
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1834
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1837
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1840
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1843
AMTAR=${AMTAR-"${am_missing_run}tar"}
1845
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1847
# Installed binaries are usually stripped using `strip' when the user
1848
# run `make install-strip'. However `strip' might not be the right
1849
# tool to use in cross-compilation environments, therefore Automake
1850
# will honor the `STRIP' environment variable to overrule this program.
1851
if test "$cross_compiling" != no; then
1852
if test -n "$ac_tool_prefix"; then
1853
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1854
set dummy ${ac_tool_prefix}strip; ac_word=$2
1855
echo "$as_me:$LINENO: checking for $ac_word" >&5
1856
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857
if test "${ac_cv_prog_STRIP+set}" = set; then
1858
echo $ECHO_N "(cached) $ECHO_C" >&6
1860
if test -n "$STRIP"; then
1861
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1863
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867
test -z "$as_dir" && as_dir=.
1868
for ac_exec_ext in '' $ac_executable_extensions; do
1869
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1871
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879
STRIP=$ac_cv_prog_STRIP
1880
if test -n "$STRIP"; then
1881
echo "$as_me:$LINENO: result: $STRIP" >&5
1882
echo "${ECHO_T}$STRIP" >&6
1884
echo "$as_me:$LINENO: result: no" >&5
1885
echo "${ECHO_T}no" >&6
1889
if test -z "$ac_cv_prog_STRIP"; then
1891
# Extract the first word of "strip", so it can be a program name with args.
1892
set dummy strip; ac_word=$2
1893
echo "$as_me:$LINENO: checking for $ac_word" >&5
1894
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1895
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1896
echo $ECHO_N "(cached) $ECHO_C" >&6
1898
if test -n "$ac_ct_STRIP"; then
1899
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1901
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905
test -z "$as_dir" && as_dir=.
1906
for ac_exec_ext in '' $ac_executable_extensions; do
1907
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908
ac_cv_prog_ac_ct_STRIP="strip"
1909
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1918
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1919
if test -n "$ac_ct_STRIP"; then
1920
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1921
echo "${ECHO_T}$ac_ct_STRIP" >&6
1923
echo "$as_me:$LINENO: result: no" >&5
1924
echo "${ECHO_T}no" >&6
1929
STRIP="$ac_cv_prog_STRIP"
1933
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1935
# We need awk for the "check" target. The system "awk" is bad on
1942
ac_cpp='$CXXCPP $CPPFLAGS'
1943
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1944
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1945
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1949
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1950
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1951
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1952
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1953
echo $ECHO_N "(cached) $ECHO_C" >&6
1955
cat >conftest.make <<\_ACEOF
1957
@echo 'ac_maketemp="$(MAKE)"'
1959
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1960
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1961
if test -n "$ac_maketemp"; then
1962
eval ac_cv_prog_make_${ac_make}_set=yes
1964
eval ac_cv_prog_make_${ac_make}_set=no
1968
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1969
echo "$as_me:$LINENO: result: yes" >&5
1970
echo "${ECHO_T}yes" >&6
1973
echo "$as_me:$LINENO: result: no" >&5
1974
echo "${ECHO_T}no" >&6
1975
SET_MAKE="MAKE=${MAKE-make}"
1979
DEPDIR="${am__leading_dot}deps"
1981
ac_config_commands="$ac_config_commands depfiles"
1984
am_make=${MAKE-make}
1985
cat > confinc << 'END'
1990
# If we don't find an include directive, just comment out the code.
1991
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1992
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1996
# First try GNU make style include.
1997
echo "include confinc" > confmf
1998
# We grep out `Entering directory' and `Leaving directory'
1999
# messages which can occur if `w' ends up in MAKEFLAGS.
2000
# In particular we don't look at `^make:' because GNU make might
2001
# be invoked under some other name (usually "gmake"), in which
2002
# case it prints its new name instead of `make'.
2003
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2008
# Now try BSD make style include.
2009
if test "$am__include" = "#"; then
2010
echo '.include "confinc"' > confmf
2011
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2012
am__include=.include
2019
echo "$as_me:$LINENO: result: $_am_result" >&5
2020
echo "${ECHO_T}$_am_result" >&6
2021
rm -f confinc confmf
2023
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2024
if test "${enable_dependency_tracking+set}" = set; then
2025
enableval="$enable_dependency_tracking"
2028
if test "x$enable_dependency_tracking" != xno; then
2029
am_depcomp="$ac_aux_dir/depcomp"
2034
if test "x$enable_dependency_tracking" != xno; then
2045
ac_cpp='$CXXCPP $CPPFLAGS'
2046
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2049
if test -n "$ac_tool_prefix"; then
2050
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2052
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2053
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2054
echo "$as_me:$LINENO: checking for $ac_word" >&5
2055
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2056
if test "${ac_cv_prog_CXX+set}" = set; then
2057
echo $ECHO_N "(cached) $ECHO_C" >&6
2059
if test -n "$CXX"; then
2060
ac_cv_prog_CXX="$CXX" # Let the user override the test.
2062
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066
test -z "$as_dir" && as_dir=.
2067
for ac_exec_ext in '' $ac_executable_extensions; do
2068
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2070
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079
if test -n "$CXX"; then
2080
echo "$as_me:$LINENO: result: $CXX" >&5
2081
echo "${ECHO_T}$CXX" >&6
2083
echo "$as_me:$LINENO: result: no" >&5
2084
echo "${ECHO_T}no" >&6
2087
test -n "$CXX" && break
2090
if test -z "$CXX"; then
2092
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2094
# Extract the first word of "$ac_prog", so it can be a program name with args.
2095
set dummy $ac_prog; ac_word=$2
2096
echo "$as_me:$LINENO: checking for $ac_word" >&5
2097
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2099
echo $ECHO_N "(cached) $ECHO_C" >&6
2101
if test -n "$ac_ct_CXX"; then
2102
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2104
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108
test -z "$as_dir" && as_dir=.
2109
for ac_exec_ext in '' $ac_executable_extensions; do
2110
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111
ac_cv_prog_ac_ct_CXX="$ac_prog"
2112
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2121
if test -n "$ac_ct_CXX"; then
2122
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2123
echo "${ECHO_T}$ac_ct_CXX" >&6
2125
echo "$as_me:$LINENO: result: no" >&5
2126
echo "${ECHO_T}no" >&6
2129
test -n "$ac_ct_CXX" && break
2131
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2137
# Provide some information about the compiler.
2138
echo "$as_me:$LINENO:" \
2139
"checking for C++ compiler version" >&5
2140
ac_compiler=`set X $ac_compile; echo $2`
2141
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2142
(eval $ac_compiler --version </dev/null >&5) 2>&5
2144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145
(exit $ac_status); }
2146
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2147
(eval $ac_compiler -v </dev/null >&5) 2>&5
2149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150
(exit $ac_status); }
2151
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2152
(eval $ac_compiler -V </dev/null >&5) 2>&5
2154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155
(exit $ac_status); }
2157
cat >conftest.$ac_ext <<_ACEOF
2160
cat confdefs.h >>conftest.$ac_ext
2161
cat >>conftest.$ac_ext <<_ACEOF
2162
/* end confdefs.h. */
2172
ac_clean_files_save=$ac_clean_files
2173
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2174
# Try to create an executable without -o first, disregard a.out.
2175
# It will help us diagnose broken compilers, and finding out an intuition
2177
echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2178
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2179
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2180
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2181
(eval $ac_link_default) 2>&5
2183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184
(exit $ac_status); }; then
2185
# Find the output, starting from the most likely. This scheme is
2186
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2189
# Be careful to initialize this variable, since it used to be cached.
2190
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2192
# b.out is created by i960 compilers.
2193
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2195
test -f "$ac_file" || continue
2197
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2200
# This is the source file.
2203
# We found the default executable, but exeext='' is most
2207
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2208
# FIXME: I believe we export ac_cv_exeext for Libtool,
2209
# but it would be cool to find out if it's true. Does anybody
2210
# maintain Libtool? --akim.
2218
echo "$as_me: failed program was:" >&5
2219
sed 's/^/| /' conftest.$ac_ext >&5
2221
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2222
See \`config.log' for more details." >&5
2223
echo "$as_me: error: C++ compiler cannot create executables
2224
See \`config.log' for more details." >&2;}
2225
{ (exit 77); exit 77; }; }
2228
ac_exeext=$ac_cv_exeext
2229
echo "$as_me:$LINENO: result: $ac_file" >&5
2230
echo "${ECHO_T}$ac_file" >&6
2232
# Check the compiler produces executables we can run. If not, either
2233
# the compiler is broken, or we cross compile.
2234
echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2235
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2236
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2237
# If not cross compiling, check that we can run a simple program.
2238
if test "$cross_compiling" != yes; then
2239
if { ac_try='./$ac_file'
2240
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244
(exit $ac_status); }; }; then
2247
if test "$cross_compiling" = maybe; then
2250
{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2251
If you meant to cross compile, use \`--host'.
2252
See \`config.log' for more details." >&5
2253
echo "$as_me: error: cannot run C++ compiled programs.
2254
If you meant to cross compile, use \`--host'.
2255
See \`config.log' for more details." >&2;}
2256
{ (exit 1); exit 1; }; }
2260
echo "$as_me:$LINENO: result: yes" >&5
2261
echo "${ECHO_T}yes" >&6
2263
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2264
ac_clean_files=$ac_clean_files_save
2265
# Check the compiler produces executables we can run. If not, either
2266
# the compiler is broken, or we cross compile.
2267
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2268
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2269
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2270
echo "${ECHO_T}$cross_compiling" >&6
2272
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2273
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2274
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2275
(eval $ac_link) 2>&5
2277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278
(exit $ac_status); }; then
2279
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2280
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2281
# work properly (i.e., refer to `conftest.exe'), while it won't with
2283
for ac_file in conftest.exe conftest conftest.*; do
2284
test -f "$ac_file" || continue
2286
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2287
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2294
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2295
See \`config.log' for more details." >&5
2296
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2297
See \`config.log' for more details." >&2;}
2298
{ (exit 1); exit 1; }; }
2301
rm -f conftest$ac_cv_exeext
2302
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2303
echo "${ECHO_T}$ac_cv_exeext" >&6
2305
rm -f conftest.$ac_ext
2306
EXEEXT=$ac_cv_exeext
2308
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2309
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2310
if test "${ac_cv_objext+set}" = set; then
2311
echo $ECHO_N "(cached) $ECHO_C" >&6
2313
cat >conftest.$ac_ext <<_ACEOF
2316
cat confdefs.h >>conftest.$ac_ext
2317
cat >>conftest.$ac_ext <<_ACEOF
2318
/* end confdefs.h. */
2328
rm -f conftest.o conftest.obj
2329
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330
(eval $ac_compile) 2>&5
2332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333
(exit $ac_status); }; then
2334
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2336
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2337
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2342
echo "$as_me: failed program was:" >&5
2343
sed 's/^/| /' conftest.$ac_ext >&5
2345
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2346
See \`config.log' for more details." >&5
2347
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2348
See \`config.log' for more details." >&2;}
2349
{ (exit 1); exit 1; }; }
2352
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2354
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2355
echo "${ECHO_T}$ac_cv_objext" >&6
2356
OBJEXT=$ac_cv_objext
2358
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2359
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2360
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2361
echo $ECHO_N "(cached) $ECHO_C" >&6
2363
cat >conftest.$ac_ext <<_ACEOF
2366
cat confdefs.h >>conftest.$ac_ext
2367
cat >>conftest.$ac_ext <<_ACEOF
2368
/* end confdefs.h. */
2381
rm -f conftest.$ac_objext
2382
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383
(eval $ac_compile) 2>conftest.er1
2385
grep -v '^ *+' conftest.er1 >conftest.err
2387
cat conftest.err >&5
2388
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389
(exit $ac_status); } &&
2390
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2391
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395
(exit $ac_status); }; } &&
2396
{ ac_try='test -s conftest.$ac_objext'
2397
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401
(exit $ac_status); }; }; then
2404
echo "$as_me: failed program was:" >&5
2405
sed 's/^/| /' conftest.$ac_ext >&5
2409
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2410
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2413
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2414
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2415
GXX=`test $ac_compiler_gnu = yes && echo yes`
2416
ac_test_CXXFLAGS=${CXXFLAGS+set}
2417
ac_save_CXXFLAGS=$CXXFLAGS
2419
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2420
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2421
if test "${ac_cv_prog_cxx_g+set}" = set; then
2422
echo $ECHO_N "(cached) $ECHO_C" >&6
2424
cat >conftest.$ac_ext <<_ACEOF
2427
cat confdefs.h >>conftest.$ac_ext
2428
cat >>conftest.$ac_ext <<_ACEOF
2429
/* end confdefs.h. */
2439
rm -f conftest.$ac_objext
2440
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2441
(eval $ac_compile) 2>conftest.er1
2443
grep -v '^ *+' conftest.er1 >conftest.err
2445
cat conftest.err >&5
2446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447
(exit $ac_status); } &&
2448
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2449
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453
(exit $ac_status); }; } &&
2454
{ ac_try='test -s conftest.$ac_objext'
2455
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459
(exit $ac_status); }; }; then
2460
ac_cv_prog_cxx_g=yes
2462
echo "$as_me: failed program was:" >&5
2463
sed 's/^/| /' conftest.$ac_ext >&5
2467
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2469
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2470
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2471
if test "$ac_test_CXXFLAGS" = set; then
2472
CXXFLAGS=$ac_save_CXXFLAGS
2473
elif test $ac_cv_prog_cxx_g = yes; then
2474
if test "$GXX" = yes; then
2480
if test "$GXX" = yes; then
2486
for ac_declaration in \
2488
'extern "C" void std::exit (int) throw (); using std::exit;' \
2489
'extern "C" void std::exit (int); using std::exit;' \
2490
'extern "C" void exit (int) throw ();' \
2491
'extern "C" void exit (int);' \
2494
cat >conftest.$ac_ext <<_ACEOF
2497
cat confdefs.h >>conftest.$ac_ext
2498
cat >>conftest.$ac_ext <<_ACEOF
2499
/* end confdefs.h. */
2510
rm -f conftest.$ac_objext
2511
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2512
(eval $ac_compile) 2>conftest.er1
2514
grep -v '^ *+' conftest.er1 >conftest.err
2516
cat conftest.err >&5
2517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518
(exit $ac_status); } &&
2519
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2520
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524
(exit $ac_status); }; } &&
2525
{ ac_try='test -s conftest.$ac_objext'
2526
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530
(exit $ac_status); }; }; then
2533
echo "$as_me: failed program was:" >&5
2534
sed 's/^/| /' conftest.$ac_ext >&5
2538
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2539
cat >conftest.$ac_ext <<_ACEOF
2542
cat confdefs.h >>conftest.$ac_ext
2543
cat >>conftest.$ac_ext <<_ACEOF
2544
/* end confdefs.h. */
2554
rm -f conftest.$ac_objext
2555
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2556
(eval $ac_compile) 2>conftest.er1
2558
grep -v '^ *+' conftest.er1 >conftest.err
2560
cat conftest.err >&5
2561
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562
(exit $ac_status); } &&
2563
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2564
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568
(exit $ac_status); }; } &&
2569
{ ac_try='test -s conftest.$ac_objext'
2570
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574
(exit $ac_status); }; }; then
2577
echo "$as_me: failed program was:" >&5
2578
sed 's/^/| /' conftest.$ac_ext >&5
2581
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2584
if test -n "$ac_declaration"; then
2585
echo '#ifdef __cplusplus' >>confdefs.h
2586
echo $ac_declaration >>confdefs.h
2587
echo '#endif' >>confdefs.h
2591
ac_cpp='$CXXCPP $CPPFLAGS'
2592
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2593
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2594
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2596
depcc="$CXX" am_compiler_list=
2598
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2599
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2600
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2601
echo $ECHO_N "(cached) $ECHO_C" >&6
2603
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2604
# We make a subdir and do the tests there. Otherwise we can end up
2605
# making bogus files that we don't know about and never remove. For
2606
# instance it was reported that on HP-UX the gcc test will end up
2607
# making a dummy file named `D' -- because `-MD' means `put the output
2610
# Copy depcomp to subdir because otherwise we won't find it if we're
2611
# using a relative directory.
2612
cp "$am_depcomp" conftest.dir
2614
# We will build objects and dependencies in a subdirectory because
2615
# it helps to detect inapplicable dependency modes. For instance
2616
# both Tru64's cc and ICC support -MD to output dependencies as a
2617
# side effect of compilation, but ICC will put the dependencies in
2618
# the current directory while Tru64 will put them in the object
2622
am_cv_CXX_dependencies_compiler_type=none
2623
if test "$am_compiler_list" = ""; then
2624
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2626
for depmode in $am_compiler_list; do
2627
# Setup a source with many dependencies, because some compilers
2628
# like to wrap large dependency lists on column 80 (with \), and
2629
# we should not choose a depcomp mode which is confused by this.
2631
# We need to recreate these files for each test, as the compiler may
2632
# overwrite some of them when testing with obscure command lines.
2633
# This happens at least with the AIX C compiler.
2635
for i in 1 2 3 4 5 6; do
2636
echo '#include "conftst'$i'.h"' >> sub/conftest.c
2637
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2638
# Solaris 8's {/usr,}/bin/sh.
2639
touch sub/conftst$i.h
2641
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2645
# after this tag, mechanisms are not by side-effect, so they'll
2646
# only be used when explicitly requested
2647
if test "x$enable_dependency_tracking" = xyes; then
2655
# We check with `-c' and `-o' for the sake of the "dashmstdout"
2656
# mode. It turns out that the SunPro C++ compiler does not properly
2657
# handle `-M -o', and we need to detect this.
2658
if depmode=$depmode \
2659
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2660
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2661
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2662
>/dev/null 2>conftest.err &&
2663
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2664
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2665
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2666
# icc doesn't choke on unknown options, it will just issue warnings
2667
# or remarks (even with -Werror). So we grep stderr for any message
2668
# that says an option was ignored or not supported.
2669
# When given -MP, icc 7.0 and 7.1 complain thusly:
2670
# icc: Command line warning: ignoring option '-M'; no argument required
2671
# The diagnosis changed in icc 8.0:
2672
# icc: Command line remark: option '-MP' not supported
2673
if (grep 'ignoring option' conftest.err ||
2674
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2675
am_cv_CXX_dependencies_compiler_type=$depmode
2684
am_cv_CXX_dependencies_compiler_type=none
2688
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2689
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2690
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2695
test "x$enable_dependency_tracking" != xno \
2696
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2697
am__fastdepCXX_TRUE=
2698
am__fastdepCXX_FALSE='#'
2700
am__fastdepCXX_TRUE='#'
2701
am__fastdepCXX_FALSE=
2706
echo "$as_me:$LINENO: checking for library containing strerror" >&5
2707
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2708
if test "${ac_cv_search_strerror+set}" = set; then
2709
echo $ECHO_N "(cached) $ECHO_C" >&6
2711
ac_func_search_save_LIBS=$LIBS
2712
ac_cv_search_strerror=no
2713
cat >conftest.$ac_ext <<_ACEOF
2716
cat confdefs.h >>conftest.$ac_ext
2717
cat >>conftest.$ac_ext <<_ACEOF
2718
/* end confdefs.h. */
2720
/* Override any gcc2 internal prototype to avoid an error. */
2724
/* We use char because int might match the return type of a gcc2
2725
builtin and then its argument prototype would still apply. */
2735
rm -f conftest.$ac_objext conftest$ac_exeext
2736
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2737
(eval $ac_link) 2>conftest.er1
2739
grep -v '^ *+' conftest.er1 >conftest.err
2741
cat conftest.err >&5
2742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743
(exit $ac_status); } &&
2744
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2745
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749
(exit $ac_status); }; } &&
2750
{ ac_try='test -s conftest$ac_exeext'
2751
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755
(exit $ac_status); }; }; then
2756
ac_cv_search_strerror="none required"
2758
echo "$as_me: failed program was:" >&5
2759
sed 's/^/| /' conftest.$ac_ext >&5
2762
rm -f conftest.err conftest.$ac_objext \
2763
conftest$ac_exeext conftest.$ac_ext
2764
if test "$ac_cv_search_strerror" = no; then
2765
for ac_lib in cposix; do
2766
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2767
cat >conftest.$ac_ext <<_ACEOF
2770
cat confdefs.h >>conftest.$ac_ext
2771
cat >>conftest.$ac_ext <<_ACEOF
2772
/* end confdefs.h. */
2774
/* Override any gcc2 internal prototype to avoid an error. */
2778
/* We use char because int might match the return type of a gcc2
2779
builtin and then its argument prototype would still apply. */
2789
rm -f conftest.$ac_objext conftest$ac_exeext
2790
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2791
(eval $ac_link) 2>conftest.er1
2793
grep -v '^ *+' conftest.er1 >conftest.err
2795
cat conftest.err >&5
2796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797
(exit $ac_status); } &&
2798
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2799
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803
(exit $ac_status); }; } &&
2804
{ ac_try='test -s conftest$ac_exeext'
2805
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809
(exit $ac_status); }; }; then
2810
ac_cv_search_strerror="-l$ac_lib"
2813
echo "$as_me: failed program was:" >&5
2814
sed 's/^/| /' conftest.$ac_ext >&5
2817
rm -f conftest.err conftest.$ac_objext \
2818
conftest$ac_exeext conftest.$ac_ext
2821
LIBS=$ac_func_search_save_LIBS
2823
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2824
echo "${ECHO_T}$ac_cv_search_strerror" >&6
2825
if test "$ac_cv_search_strerror" != no; then
2826
test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2831
ac_cpp='$CXXCPP $CPPFLAGS'
2832
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2833
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2834
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2835
if test -n "$ac_tool_prefix"; then
2836
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2838
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2839
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2840
echo "$as_me:$LINENO: checking for $ac_word" >&5
2841
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2842
if test "${ac_cv_prog_CXX+set}" = set; then
2843
echo $ECHO_N "(cached) $ECHO_C" >&6
2845
if test -n "$CXX"; then
2846
ac_cv_prog_CXX="$CXX" # Let the user override the test.
2848
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852
test -z "$as_dir" && as_dir=.
2853
for ac_exec_ext in '' $ac_executable_extensions; do
2854
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2856
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865
if test -n "$CXX"; then
2866
echo "$as_me:$LINENO: result: $CXX" >&5
2867
echo "${ECHO_T}$CXX" >&6
2869
echo "$as_me:$LINENO: result: no" >&5
2870
echo "${ECHO_T}no" >&6
2873
test -n "$CXX" && break
2876
if test -z "$CXX"; then
2878
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2880
# Extract the first word of "$ac_prog", so it can be a program name with args.
2881
set dummy $ac_prog; ac_word=$2
2882
echo "$as_me:$LINENO: checking for $ac_word" >&5
2883
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2884
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2885
echo $ECHO_N "(cached) $ECHO_C" >&6
2887
if test -n "$ac_ct_CXX"; then
2888
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2890
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894
test -z "$as_dir" && as_dir=.
2895
for ac_exec_ext in '' $ac_executable_extensions; do
2896
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897
ac_cv_prog_ac_ct_CXX="$ac_prog"
2898
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2907
if test -n "$ac_ct_CXX"; then
2908
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2909
echo "${ECHO_T}$ac_ct_CXX" >&6
2911
echo "$as_me:$LINENO: result: no" >&5
2912
echo "${ECHO_T}no" >&6
2915
test -n "$ac_ct_CXX" && break
2917
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2923
# Provide some information about the compiler.
2924
echo "$as_me:$LINENO:" \
2925
"checking for C++ compiler version" >&5
2926
ac_compiler=`set X $ac_compile; echo $2`
2927
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2928
(eval $ac_compiler --version </dev/null >&5) 2>&5
2930
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931
(exit $ac_status); }
2932
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2933
(eval $ac_compiler -v </dev/null >&5) 2>&5
2935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936
(exit $ac_status); }
2937
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2938
(eval $ac_compiler -V </dev/null >&5) 2>&5
2940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941
(exit $ac_status); }
2943
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2944
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2945
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2946
echo $ECHO_N "(cached) $ECHO_C" >&6
2948
cat >conftest.$ac_ext <<_ACEOF
2951
cat confdefs.h >>conftest.$ac_ext
2952
cat >>conftest.$ac_ext <<_ACEOF
2953
/* end confdefs.h. */
2966
rm -f conftest.$ac_objext
2967
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2968
(eval $ac_compile) 2>conftest.er1
2970
grep -v '^ *+' conftest.er1 >conftest.err
2972
cat conftest.err >&5
2973
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974
(exit $ac_status); } &&
2975
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2976
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980
(exit $ac_status); }; } &&
2981
{ ac_try='test -s conftest.$ac_objext'
2982
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986
(exit $ac_status); }; }; then
2989
echo "$as_me: failed program was:" >&5
2990
sed 's/^/| /' conftest.$ac_ext >&5
2994
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2995
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2998
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2999
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3000
GXX=`test $ac_compiler_gnu = yes && echo yes`
3001
ac_test_CXXFLAGS=${CXXFLAGS+set}
3002
ac_save_CXXFLAGS=$CXXFLAGS
3004
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3005
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3006
if test "${ac_cv_prog_cxx_g+set}" = set; then
3007
echo $ECHO_N "(cached) $ECHO_C" >&6
3009
cat >conftest.$ac_ext <<_ACEOF
3012
cat confdefs.h >>conftest.$ac_ext
3013
cat >>conftest.$ac_ext <<_ACEOF
3014
/* end confdefs.h. */
3024
rm -f conftest.$ac_objext
3025
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3026
(eval $ac_compile) 2>conftest.er1
3028
grep -v '^ *+' conftest.er1 >conftest.err
3030
cat conftest.err >&5
3031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032
(exit $ac_status); } &&
3033
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3034
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038
(exit $ac_status); }; } &&
3039
{ ac_try='test -s conftest.$ac_objext'
3040
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044
(exit $ac_status); }; }; then
3045
ac_cv_prog_cxx_g=yes
3047
echo "$as_me: failed program was:" >&5
3048
sed 's/^/| /' conftest.$ac_ext >&5
3052
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3054
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3055
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3056
if test "$ac_test_CXXFLAGS" = set; then
3057
CXXFLAGS=$ac_save_CXXFLAGS
3058
elif test $ac_cv_prog_cxx_g = yes; then
3059
if test "$GXX" = yes; then
3065
if test "$GXX" = yes; then
3071
for ac_declaration in \
3073
'extern "C" void std::exit (int) throw (); using std::exit;' \
3074
'extern "C" void std::exit (int); using std::exit;' \
3075
'extern "C" void exit (int) throw ();' \
3076
'extern "C" void exit (int);' \
3079
cat >conftest.$ac_ext <<_ACEOF
3082
cat confdefs.h >>conftest.$ac_ext
3083
cat >>conftest.$ac_ext <<_ACEOF
3084
/* end confdefs.h. */
3095
rm -f conftest.$ac_objext
3096
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3097
(eval $ac_compile) 2>conftest.er1
3099
grep -v '^ *+' conftest.er1 >conftest.err
3101
cat conftest.err >&5
3102
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103
(exit $ac_status); } &&
3104
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3105
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109
(exit $ac_status); }; } &&
3110
{ ac_try='test -s conftest.$ac_objext'
3111
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115
(exit $ac_status); }; }; then
3118
echo "$as_me: failed program was:" >&5
3119
sed 's/^/| /' conftest.$ac_ext >&5
3123
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3124
cat >conftest.$ac_ext <<_ACEOF
3127
cat confdefs.h >>conftest.$ac_ext
3128
cat >>conftest.$ac_ext <<_ACEOF
3129
/* end confdefs.h. */
3139
rm -f conftest.$ac_objext
3140
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141
(eval $ac_compile) 2>conftest.er1
3143
grep -v '^ *+' conftest.er1 >conftest.err
3145
cat conftest.err >&5
3146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147
(exit $ac_status); } &&
3148
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3149
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153
(exit $ac_status); }; } &&
3154
{ ac_try='test -s conftest.$ac_objext'
3155
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159
(exit $ac_status); }; }; then
3162
echo "$as_me: failed program was:" >&5
3163
sed 's/^/| /' conftest.$ac_ext >&5
3166
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3169
if test -n "$ac_declaration"; then
3170
echo '#ifdef __cplusplus' >>confdefs.h
3171
echo $ac_declaration >>confdefs.h
3172
echo '#endif' >>confdefs.h
3176
ac_cpp='$CXXCPP $CPPFLAGS'
3177
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3181
depcc="$CXX" am_compiler_list=
3183
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3184
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3185
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3186
echo $ECHO_N "(cached) $ECHO_C" >&6
3188
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3189
# We make a subdir and do the tests there. Otherwise we can end up
3190
# making bogus files that we don't know about and never remove. For
3191
# instance it was reported that on HP-UX the gcc test will end up
3192
# making a dummy file named `D' -- because `-MD' means `put the output
3195
# Copy depcomp to subdir because otherwise we won't find it if we're
3196
# using a relative directory.
3197
cp "$am_depcomp" conftest.dir
3199
# We will build objects and dependencies in a subdirectory because
3200
# it helps to detect inapplicable dependency modes. For instance
3201
# both Tru64's cc and ICC support -MD to output dependencies as a
3202
# side effect of compilation, but ICC will put the dependencies in
3203
# the current directory while Tru64 will put them in the object
3207
am_cv_CXX_dependencies_compiler_type=none
3208
if test "$am_compiler_list" = ""; then
3209
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3211
for depmode in $am_compiler_list; do
3212
# Setup a source with many dependencies, because some compilers
3213
# like to wrap large dependency lists on column 80 (with \), and
3214
# we should not choose a depcomp mode which is confused by this.
3216
# We need to recreate these files for each test, as the compiler may
3217
# overwrite some of them when testing with obscure command lines.
3218
# This happens at least with the AIX C compiler.
3220
for i in 1 2 3 4 5 6; do
3221
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3222
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3223
# Solaris 8's {/usr,}/bin/sh.
3224
touch sub/conftst$i.h
3226
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3230
# after this tag, mechanisms are not by side-effect, so they'll
3231
# only be used when explicitly requested
3232
if test "x$enable_dependency_tracking" = xyes; then
3240
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3241
# mode. It turns out that the SunPro C++ compiler does not properly
3242
# handle `-M -o', and we need to detect this.
3243
if depmode=$depmode \
3244
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3245
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3246
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3247
>/dev/null 2>conftest.err &&
3248
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3249
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3250
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3251
# icc doesn't choke on unknown options, it will just issue warnings
3252
# or remarks (even with -Werror). So we grep stderr for any message
3253
# that says an option was ignored or not supported.
3254
# When given -MP, icc 7.0 and 7.1 complain thusly:
3255
# icc: Command line warning: ignoring option '-M'; no argument required
3256
# The diagnosis changed in icc 8.0:
3257
# icc: Command line remark: option '-MP' not supported
3258
if (grep 'ignoring option' conftest.err ||
3259
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3260
am_cv_CXX_dependencies_compiler_type=$depmode
3269
am_cv_CXX_dependencies_compiler_type=none
3273
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3274
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3275
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3280
test "x$enable_dependency_tracking" != xno \
3281
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3282
am__fastdepCXX_TRUE=
3283
am__fastdepCXX_FALSE='#'
3285
am__fastdepCXX_TRUE='#'
3286
am__fastdepCXX_FALSE=
3291
ac_cpp='$CXXCPP $CPPFLAGS'
3292
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3295
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3296
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3297
if test -z "$CXXCPP"; then
3298
if test "${ac_cv_prog_CXXCPP+set}" = set; then
3299
echo $ECHO_N "(cached) $ECHO_C" >&6
3301
# Double quotes because CXXCPP needs to be expanded
3302
for CXXCPP in "$CXX -E" "/lib/cpp"
3305
for ac_cxx_preproc_warn_flag in '' yes
3307
# Use a header file that comes with gcc, so configuring glibc
3308
# with a fresh cross-compiler works.
3309
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3310
# <limits.h> exists even on freestanding compilers.
3311
# On the NeXT, cc -E runs the code through the compiler's parser,
3312
# not just through cpp. "Syntax error" is here to catch this case.
3313
cat >conftest.$ac_ext <<_ACEOF
3316
cat confdefs.h >>conftest.$ac_ext
3317
cat >>conftest.$ac_ext <<_ACEOF
3318
/* end confdefs.h. */
3320
# include <limits.h>
3322
# include <assert.h>
3326
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3327
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3329
grep -v '^ *+' conftest.er1 >conftest.err
3331
cat conftest.err >&5
3332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333
(exit $ac_status); } >/dev/null; then
3334
if test -s conftest.err; then
3335
ac_cpp_err=$ac_cxx_preproc_warn_flag
3336
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3343
if test -z "$ac_cpp_err"; then
3346
echo "$as_me: failed program was:" >&5
3347
sed 's/^/| /' conftest.$ac_ext >&5
3349
# Broken: fails on valid input.
3352
rm -f conftest.err conftest.$ac_ext
3354
# OK, works on sane cases. Now check whether non-existent headers
3355
# can be detected and how.
3356
cat >conftest.$ac_ext <<_ACEOF
3359
cat confdefs.h >>conftest.$ac_ext
3360
cat >>conftest.$ac_ext <<_ACEOF
3361
/* end confdefs.h. */
3362
#include <ac_nonexistent.h>
3364
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3365
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3367
grep -v '^ *+' conftest.er1 >conftest.err
3369
cat conftest.err >&5
3370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371
(exit $ac_status); } >/dev/null; then
3372
if test -s conftest.err; then
3373
ac_cpp_err=$ac_cxx_preproc_warn_flag
3374
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3381
if test -z "$ac_cpp_err"; then
3382
# Broken: success on invalid input.
3385
echo "$as_me: failed program was:" >&5
3386
sed 's/^/| /' conftest.$ac_ext >&5
3388
# Passes both tests.
3392
rm -f conftest.err conftest.$ac_ext
3395
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3396
rm -f conftest.err conftest.$ac_ext
3397
if $ac_preproc_ok; then
3402
ac_cv_prog_CXXCPP=$CXXCPP
3405
CXXCPP=$ac_cv_prog_CXXCPP
3407
ac_cv_prog_CXXCPP=$CXXCPP
3409
echo "$as_me:$LINENO: result: $CXXCPP" >&5
3410
echo "${ECHO_T}$CXXCPP" >&6
3412
for ac_cxx_preproc_warn_flag in '' yes
3414
# Use a header file that comes with gcc, so configuring glibc
3415
# with a fresh cross-compiler works.
3416
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3417
# <limits.h> exists even on freestanding compilers.
3418
# On the NeXT, cc -E runs the code through the compiler's parser,
3419
# not just through cpp. "Syntax error" is here to catch this case.
3420
cat >conftest.$ac_ext <<_ACEOF
3423
cat confdefs.h >>conftest.$ac_ext
3424
cat >>conftest.$ac_ext <<_ACEOF
3425
/* end confdefs.h. */
3427
# include <limits.h>
3429
# include <assert.h>
3433
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3434
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3436
grep -v '^ *+' conftest.er1 >conftest.err
3438
cat conftest.err >&5
3439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440
(exit $ac_status); } >/dev/null; then
3441
if test -s conftest.err; then
3442
ac_cpp_err=$ac_cxx_preproc_warn_flag
3443
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3450
if test -z "$ac_cpp_err"; then
3453
echo "$as_me: failed program was:" >&5
3454
sed 's/^/| /' conftest.$ac_ext >&5
3456
# Broken: fails on valid input.
3459
rm -f conftest.err conftest.$ac_ext
3461
# OK, works on sane cases. Now check whether non-existent headers
3462
# can be detected and how.
3463
cat >conftest.$ac_ext <<_ACEOF
3466
cat confdefs.h >>conftest.$ac_ext
3467
cat >>conftest.$ac_ext <<_ACEOF
3468
/* end confdefs.h. */
3469
#include <ac_nonexistent.h>
3471
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3472
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3474
grep -v '^ *+' conftest.er1 >conftest.err
3476
cat conftest.err >&5
3477
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478
(exit $ac_status); } >/dev/null; then
3479
if test -s conftest.err; then
3480
ac_cpp_err=$ac_cxx_preproc_warn_flag
3481
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3488
if test -z "$ac_cpp_err"; then
3489
# Broken: success on invalid input.
3492
echo "$as_me: failed program was:" >&5
3493
sed 's/^/| /' conftest.$ac_ext >&5
3495
# Passes both tests.
3499
rm -f conftest.err conftest.$ac_ext
3502
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3503
rm -f conftest.err conftest.$ac_ext
3504
if $ac_preproc_ok; then
3507
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3508
See \`config.log' for more details." >&5
3509
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3510
See \`config.log' for more details." >&2;}
3511
{ (exit 1); exit 1; }; }
3515
ac_cpp='$CXXCPP $CPPFLAGS'
3516
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3521
ac_cpp='$CPP $CPPFLAGS'
3522
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3525
if test -n "$ac_tool_prefix"; then
3526
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3527
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3528
echo "$as_me:$LINENO: checking for $ac_word" >&5
3529
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3530
if test "${ac_cv_prog_CC+set}" = set; then
3531
echo $ECHO_N "(cached) $ECHO_C" >&6
3533
if test -n "$CC"; then
3534
ac_cv_prog_CC="$CC" # Let the user override the test.
3536
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540
test -z "$as_dir" && as_dir=.
3541
for ac_exec_ext in '' $ac_executable_extensions; do
3542
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3544
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3553
if test -n "$CC"; then
3554
echo "$as_me:$LINENO: result: $CC" >&5
3555
echo "${ECHO_T}$CC" >&6
3557
echo "$as_me:$LINENO: result: no" >&5
3558
echo "${ECHO_T}no" >&6
3562
if test -z "$ac_cv_prog_CC"; then
3564
# Extract the first word of "gcc", so it can be a program name with args.
3565
set dummy gcc; ac_word=$2
3566
echo "$as_me:$LINENO: checking for $ac_word" >&5
3567
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3568
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3569
echo $ECHO_N "(cached) $ECHO_C" >&6
3571
if test -n "$ac_ct_CC"; then
3572
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3574
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578
test -z "$as_dir" && as_dir=.
3579
for ac_exec_ext in '' $ac_executable_extensions; do
3580
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3581
ac_cv_prog_ac_ct_CC="gcc"
3582
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3590
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3591
if test -n "$ac_ct_CC"; then
3592
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3593
echo "${ECHO_T}$ac_ct_CC" >&6
3595
echo "$as_me:$LINENO: result: no" >&5
3596
echo "${ECHO_T}no" >&6
3604
if test -z "$CC"; then
3605
if test -n "$ac_tool_prefix"; then
3606
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3607
set dummy ${ac_tool_prefix}cc; ac_word=$2
3608
echo "$as_me:$LINENO: checking for $ac_word" >&5
3609
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3610
if test "${ac_cv_prog_CC+set}" = set; then
3611
echo $ECHO_N "(cached) $ECHO_C" >&6
3613
if test -n "$CC"; then
3614
ac_cv_prog_CC="$CC" # Let the user override the test.
3616
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620
test -z "$as_dir" && as_dir=.
3621
for ac_exec_ext in '' $ac_executable_extensions; do
3622
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3623
ac_cv_prog_CC="${ac_tool_prefix}cc"
3624
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3633
if test -n "$CC"; then
3634
echo "$as_me:$LINENO: result: $CC" >&5
3635
echo "${ECHO_T}$CC" >&6
3637
echo "$as_me:$LINENO: result: no" >&5
3638
echo "${ECHO_T}no" >&6
3642
if test -z "$ac_cv_prog_CC"; then
3644
# Extract the first word of "cc", so it can be a program name with args.
3645
set dummy cc; ac_word=$2
3646
echo "$as_me:$LINENO: checking for $ac_word" >&5
3647
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3648
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3649
echo $ECHO_N "(cached) $ECHO_C" >&6
3651
if test -n "$ac_ct_CC"; then
3652
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3654
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658
test -z "$as_dir" && as_dir=.
3659
for ac_exec_ext in '' $ac_executable_extensions; do
3660
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3661
ac_cv_prog_ac_ct_CC="cc"
3662
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3671
if test -n "$ac_ct_CC"; then
3672
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3673
echo "${ECHO_T}$ac_ct_CC" >&6
3675
echo "$as_me:$LINENO: result: no" >&5
3676
echo "${ECHO_T}no" >&6
3685
if test -z "$CC"; then
3686
# Extract the first word of "cc", so it can be a program name with args.
3687
set dummy cc; ac_word=$2
3688
echo "$as_me:$LINENO: checking for $ac_word" >&5
3689
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3690
if test "${ac_cv_prog_CC+set}" = set; then
3691
echo $ECHO_N "(cached) $ECHO_C" >&6
3693
if test -n "$CC"; then
3694
ac_cv_prog_CC="$CC" # Let the user override the test.
3697
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701
test -z "$as_dir" && as_dir=.
3702
for ac_exec_ext in '' $ac_executable_extensions; do
3703
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3704
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3705
ac_prog_rejected=yes
3709
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3715
if test $ac_prog_rejected = yes; then
3716
# We found a bogon in the path, so make sure we never use it.
3717
set dummy $ac_cv_prog_CC
3719
if test $# != 0; then
3720
# We chose a different compiler from the bogus one.
3721
# However, it has the same basename, so the bogon will be chosen
3722
# first if we set CC to just the basename; use the full file name.
3724
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3730
if test -n "$CC"; then
3731
echo "$as_me:$LINENO: result: $CC" >&5
3732
echo "${ECHO_T}$CC" >&6
3734
echo "$as_me:$LINENO: result: no" >&5
3735
echo "${ECHO_T}no" >&6
3739
if test -z "$CC"; then
3740
if test -n "$ac_tool_prefix"; then
3743
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3744
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3745
echo "$as_me:$LINENO: checking for $ac_word" >&5
3746
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3747
if test "${ac_cv_prog_CC+set}" = set; then
3748
echo $ECHO_N "(cached) $ECHO_C" >&6
3750
if test -n "$CC"; then
3751
ac_cv_prog_CC="$CC" # Let the user override the test.
3753
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757
test -z "$as_dir" && as_dir=.
3758
for ac_exec_ext in '' $ac_executable_extensions; do
3759
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3761
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3770
if test -n "$CC"; then
3771
echo "$as_me:$LINENO: result: $CC" >&5
3772
echo "${ECHO_T}$CC" >&6
3774
echo "$as_me:$LINENO: result: no" >&5
3775
echo "${ECHO_T}no" >&6
3778
test -n "$CC" && break
3781
if test -z "$CC"; then
3785
# Extract the first word of "$ac_prog", so it can be a program name with args.
3786
set dummy $ac_prog; ac_word=$2
3787
echo "$as_me:$LINENO: checking for $ac_word" >&5
3788
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3789
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3790
echo $ECHO_N "(cached) $ECHO_C" >&6
3792
if test -n "$ac_ct_CC"; then
3793
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3795
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799
test -z "$as_dir" && as_dir=.
3800
for ac_exec_ext in '' $ac_executable_extensions; do
3801
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802
ac_cv_prog_ac_ct_CC="$ac_prog"
3803
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3811
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3812
if test -n "$ac_ct_CC"; then
3813
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3814
echo "${ECHO_T}$ac_ct_CC" >&6
3816
echo "$as_me:$LINENO: result: no" >&5
3817
echo "${ECHO_T}no" >&6
3820
test -n "$ac_ct_CC" && break
3829
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3830
See \`config.log' for more details." >&5
3831
echo "$as_me: error: no acceptable C compiler found in \$PATH
3832
See \`config.log' for more details." >&2;}
3833
{ (exit 1); exit 1; }; }
3835
# Provide some information about the compiler.
3836
echo "$as_me:$LINENO:" \
3837
"checking for C compiler version" >&5
3838
ac_compiler=`set X $ac_compile; echo $2`
3839
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3840
(eval $ac_compiler --version </dev/null >&5) 2>&5
3842
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843
(exit $ac_status); }
3844
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3845
(eval $ac_compiler -v </dev/null >&5) 2>&5
3847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848
(exit $ac_status); }
3849
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3850
(eval $ac_compiler -V </dev/null >&5) 2>&5
3852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853
(exit $ac_status); }
3855
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3856
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3857
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3858
echo $ECHO_N "(cached) $ECHO_C" >&6
3860
cat >conftest.$ac_ext <<_ACEOF
3863
cat confdefs.h >>conftest.$ac_ext
3864
cat >>conftest.$ac_ext <<_ACEOF
3865
/* end confdefs.h. */
3878
rm -f conftest.$ac_objext
3879
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3880
(eval $ac_compile) 2>conftest.er1
3882
grep -v '^ *+' conftest.er1 >conftest.err
3884
cat conftest.err >&5
3885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886
(exit $ac_status); } &&
3887
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3888
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892
(exit $ac_status); }; } &&
3893
{ ac_try='test -s conftest.$ac_objext'
3894
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898
(exit $ac_status); }; }; then
3901
echo "$as_me: failed program was:" >&5
3902
sed 's/^/| /' conftest.$ac_ext >&5
3906
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3907
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3910
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3911
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3912
GCC=`test $ac_compiler_gnu = yes && echo yes`
3913
ac_test_CFLAGS=${CFLAGS+set}
3914
ac_save_CFLAGS=$CFLAGS
3916
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3917
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3918
if test "${ac_cv_prog_cc_g+set}" = set; then
3919
echo $ECHO_N "(cached) $ECHO_C" >&6
3921
cat >conftest.$ac_ext <<_ACEOF
3924
cat confdefs.h >>conftest.$ac_ext
3925
cat >>conftest.$ac_ext <<_ACEOF
3926
/* end confdefs.h. */
3936
rm -f conftest.$ac_objext
3937
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3938
(eval $ac_compile) 2>conftest.er1
3940
grep -v '^ *+' conftest.er1 >conftest.err
3942
cat conftest.err >&5
3943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944
(exit $ac_status); } &&
3945
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3946
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950
(exit $ac_status); }; } &&
3951
{ ac_try='test -s conftest.$ac_objext'
3952
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956
(exit $ac_status); }; }; then
3959
echo "$as_me: failed program was:" >&5
3960
sed 's/^/| /' conftest.$ac_ext >&5
3964
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3966
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3967
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3968
if test "$ac_test_CFLAGS" = set; then
3969
CFLAGS=$ac_save_CFLAGS
3970
elif test $ac_cv_prog_cc_g = yes; then
3971
if test "$GCC" = yes; then
3977
if test "$GCC" = yes; then
3983
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3984
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3985
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3986
echo $ECHO_N "(cached) $ECHO_C" >&6
3988
ac_cv_prog_cc_stdc=no
3990
cat >conftest.$ac_ext <<_ACEOF
3993
cat confdefs.h >>conftest.$ac_ext
3994
cat >>conftest.$ac_ext <<_ACEOF
3995
/* end confdefs.h. */
3998
#include <sys/types.h>
3999
#include <sys/stat.h>
4000
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4001
struct buf { int x; };
4002
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4003
static char *e (p, i)
4009
static char *f (char * (*g) (char **, int), char **p, ...)
4014
s = g (p, va_arg (v,int));
4019
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4020
function prototypes and stuff, but not '\xHH' hex character constants.
4021
These don't provoke an error unfortunately, instead are silently treated
4022
as 'x'. The following induces an error, until -std1 is added to get
4023
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4024
array size at least. It's necessary to write '\x00'==0 to get something
4025
that's true only with -std1. */
4026
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4028
int test (int i, double x);
4029
struct s1 {int (*f) (int a);};
4030
struct s2 {int (*f) (double a);};
4031
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4037
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4042
# Don't try gcc -ansi; that turns off useful extensions and
4043
# breaks some systems' header files.
4044
# AIX -qlanglvl=ansi
4045
# Ultrix and OSF/1 -std1
4046
# HP-UX 10.20 and later -Ae
4047
# HP-UX older versions -Aa -D_HPUX_SOURCE
4048
# SVR4 -Xc -D__EXTENSIONS__
4049
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4051
CC="$ac_save_CC $ac_arg"
4052
rm -f conftest.$ac_objext
4053
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4054
(eval $ac_compile) 2>conftest.er1
4056
grep -v '^ *+' conftest.er1 >conftest.err
4058
cat conftest.err >&5
4059
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060
(exit $ac_status); } &&
4061
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4062
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066
(exit $ac_status); }; } &&
4067
{ ac_try='test -s conftest.$ac_objext'
4068
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072
(exit $ac_status); }; }; then
4073
ac_cv_prog_cc_stdc=$ac_arg
4076
echo "$as_me: failed program was:" >&5
4077
sed 's/^/| /' conftest.$ac_ext >&5
4080
rm -f conftest.err conftest.$ac_objext
4082
rm -f conftest.$ac_ext conftest.$ac_objext
4087
case "x$ac_cv_prog_cc_stdc" in
4089
echo "$as_me:$LINENO: result: none needed" >&5
4090
echo "${ECHO_T}none needed" >&6 ;;
4092
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4093
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4094
CC="$CC $ac_cv_prog_cc_stdc" ;;
4097
# Some people use a C++ compiler to compile C. Since we use `exit',
4098
# in C++ we need to declare it. In case someone uses the same compiler
4099
# for both compiling C and C++ we need to have the C++ compiler decide
4100
# the declaration of exit, since it's the most demanding environment.
4101
cat >conftest.$ac_ext <<_ACEOF
4106
rm -f conftest.$ac_objext
4107
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4108
(eval $ac_compile) 2>conftest.er1
4110
grep -v '^ *+' conftest.er1 >conftest.err
4112
cat conftest.err >&5
4113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114
(exit $ac_status); } &&
4115
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4116
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120
(exit $ac_status); }; } &&
4121
{ ac_try='test -s conftest.$ac_objext'
4122
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126
(exit $ac_status); }; }; then
4127
for ac_declaration in \
4129
'extern "C" void std::exit (int) throw (); using std::exit;' \
4130
'extern "C" void std::exit (int); using std::exit;' \
4131
'extern "C" void exit (int) throw ();' \
4132
'extern "C" void exit (int);' \
4135
cat >conftest.$ac_ext <<_ACEOF
4138
cat confdefs.h >>conftest.$ac_ext
4139
cat >>conftest.$ac_ext <<_ACEOF
4140
/* end confdefs.h. */
4151
rm -f conftest.$ac_objext
4152
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4153
(eval $ac_compile) 2>conftest.er1
4155
grep -v '^ *+' conftest.er1 >conftest.err
4157
cat conftest.err >&5
4158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159
(exit $ac_status); } &&
4160
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4161
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165
(exit $ac_status); }; } &&
4166
{ ac_try='test -s conftest.$ac_objext'
4167
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171
(exit $ac_status); }; }; then
4174
echo "$as_me: failed program was:" >&5
4175
sed 's/^/| /' conftest.$ac_ext >&5
4179
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4180
cat >conftest.$ac_ext <<_ACEOF
4183
cat confdefs.h >>conftest.$ac_ext
4184
cat >>conftest.$ac_ext <<_ACEOF
4185
/* end confdefs.h. */
4195
rm -f conftest.$ac_objext
4196
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4197
(eval $ac_compile) 2>conftest.er1
4199
grep -v '^ *+' conftest.er1 >conftest.err
4201
cat conftest.err >&5
4202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203
(exit $ac_status); } &&
4204
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4205
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209
(exit $ac_status); }; } &&
4210
{ ac_try='test -s conftest.$ac_objext'
4211
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215
(exit $ac_status); }; }; then
4218
echo "$as_me: failed program was:" >&5
4219
sed 's/^/| /' conftest.$ac_ext >&5
4222
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4225
if test -n "$ac_declaration"; then
4226
echo '#ifdef __cplusplus' >>confdefs.h
4227
echo $ac_declaration >>confdefs.h
4228
echo '#endif' >>confdefs.h
4232
echo "$as_me: failed program was:" >&5
4233
sed 's/^/| /' conftest.$ac_ext >&5
4236
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4238
ac_cpp='$CXXCPP $CPPFLAGS'
4239
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4243
depcc="$CC" am_compiler_list=
4245
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4246
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4247
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4248
echo $ECHO_N "(cached) $ECHO_C" >&6
4250
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4251
# We make a subdir and do the tests there. Otherwise we can end up
4252
# making bogus files that we don't know about and never remove. For
4253
# instance it was reported that on HP-UX the gcc test will end up
4254
# making a dummy file named `D' -- because `-MD' means `put the output
4257
# Copy depcomp to subdir because otherwise we won't find it if we're
4258
# using a relative directory.
4259
cp "$am_depcomp" conftest.dir
4261
# We will build objects and dependencies in a subdirectory because
4262
# it helps to detect inapplicable dependency modes. For instance
4263
# both Tru64's cc and ICC support -MD to output dependencies as a
4264
# side effect of compilation, but ICC will put the dependencies in
4265
# the current directory while Tru64 will put them in the object
4269
am_cv_CC_dependencies_compiler_type=none
4270
if test "$am_compiler_list" = ""; then
4271
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4273
for depmode in $am_compiler_list; do
4274
# Setup a source with many dependencies, because some compilers
4275
# like to wrap large dependency lists on column 80 (with \), and
4276
# we should not choose a depcomp mode which is confused by this.
4278
# We need to recreate these files for each test, as the compiler may
4279
# overwrite some of them when testing with obscure command lines.
4280
# This happens at least with the AIX C compiler.
4282
for i in 1 2 3 4 5 6; do
4283
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4284
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4285
# Solaris 8's {/usr,}/bin/sh.
4286
touch sub/conftst$i.h
4288
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4292
# after this tag, mechanisms are not by side-effect, so they'll
4293
# only be used when explicitly requested
4294
if test "x$enable_dependency_tracking" = xyes; then
4302
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4303
# mode. It turns out that the SunPro C++ compiler does not properly
4304
# handle `-M -o', and we need to detect this.
4305
if depmode=$depmode \
4306
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4307
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4308
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4309
>/dev/null 2>conftest.err &&
4310
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4311
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4312
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4313
# icc doesn't choke on unknown options, it will just issue warnings
4314
# or remarks (even with -Werror). So we grep stderr for any message
4315
# that says an option was ignored or not supported.
4316
# When given -MP, icc 7.0 and 7.1 complain thusly:
4317
# icc: Command line warning: ignoring option '-M'; no argument required
4318
# The diagnosis changed in icc 8.0:
4319
# icc: Command line remark: option '-MP' not supported
4320
if (grep 'ignoring option' conftest.err ||
4321
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4322
am_cv_CC_dependencies_compiler_type=$depmode
4331
am_cv_CC_dependencies_compiler_type=none
4335
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4336
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4337
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4342
test "x$enable_dependency_tracking" != xno \
4343
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4345
am__fastdepCC_FALSE='#'
4347
am__fastdepCC_TRUE='#'
4348
am__fastdepCC_FALSE=
4353
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4356
echo "$as_me:$LINENO: checking for egrep" >&5
4357
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4358
if test "${ac_cv_prog_egrep+set}" = set; then
4359
echo $ECHO_N "(cached) $ECHO_C" >&6
4361
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4362
then ac_cv_prog_egrep='grep -E'
4363
else ac_cv_prog_egrep='egrep'
4366
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4367
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4368
EGREP=$ac_cv_prog_egrep
4371
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4372
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4373
if test "${ac_cv_header_stdc+set}" = set; then
4374
echo $ECHO_N "(cached) $ECHO_C" >&6
4376
cat >conftest.$ac_ext <<_ACEOF
4379
cat confdefs.h >>conftest.$ac_ext
4380
cat >>conftest.$ac_ext <<_ACEOF
4381
/* end confdefs.h. */
4395
rm -f conftest.$ac_objext
4396
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4397
(eval $ac_compile) 2>conftest.er1
4399
grep -v '^ *+' conftest.er1 >conftest.err
4401
cat conftest.err >&5
4402
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403
(exit $ac_status); } &&
4404
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4405
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409
(exit $ac_status); }; } &&
4410
{ ac_try='test -s conftest.$ac_objext'
4411
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415
(exit $ac_status); }; }; then
4416
ac_cv_header_stdc=yes
4418
echo "$as_me: failed program was:" >&5
4419
sed 's/^/| /' conftest.$ac_ext >&5
4421
ac_cv_header_stdc=no
4423
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4425
if test $ac_cv_header_stdc = yes; then
4426
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4427
cat >conftest.$ac_ext <<_ACEOF
4430
cat confdefs.h >>conftest.$ac_ext
4431
cat >>conftest.$ac_ext <<_ACEOF
4432
/* end confdefs.h. */
4436
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4437
$EGREP "memchr" >/dev/null 2>&1; then
4440
ac_cv_header_stdc=no
4446
if test $ac_cv_header_stdc = yes; then
4447
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4448
cat >conftest.$ac_ext <<_ACEOF
4451
cat confdefs.h >>conftest.$ac_ext
4452
cat >>conftest.$ac_ext <<_ACEOF
4453
/* end confdefs.h. */
4457
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4458
$EGREP "free" >/dev/null 2>&1; then
4461
ac_cv_header_stdc=no
4467
if test $ac_cv_header_stdc = yes; then
4468
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4469
if test "$cross_compiling" = yes; then
4472
cat >conftest.$ac_ext <<_ACEOF
4475
cat confdefs.h >>conftest.$ac_ext
4476
cat >>conftest.$ac_ext <<_ACEOF
4477
/* end confdefs.h. */
4479
#if ((' ' & 0x0FF) == 0x020)
4480
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4481
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4483
# define ISLOWER(c) \
4484
(('a' <= (c) && (c) <= 'i') \
4485
|| ('j' <= (c) && (c) <= 'r') \
4486
|| ('s' <= (c) && (c) <= 'z'))
4487
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4490
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4495
for (i = 0; i < 256; i++)
4496
if (XOR (islower (i), ISLOWER (i))
4497
|| toupper (i) != TOUPPER (i))
4502
rm -f conftest$ac_exeext
4503
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4504
(eval $ac_link) 2>&5
4506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4508
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512
(exit $ac_status); }; }; then
4515
echo "$as_me: program exited with status $ac_status" >&5
4516
echo "$as_me: failed program was:" >&5
4517
sed 's/^/| /' conftest.$ac_ext >&5
4520
ac_cv_header_stdc=no
4522
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4526
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4527
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4528
if test $ac_cv_header_stdc = yes; then
4530
cat >>confdefs.h <<\_ACEOF
4531
#define STDC_HEADERS 1
4537
# Check whether --enable-shared or --disable-shared was given.
4538
if test "${enable_shared+set}" = set; then
4539
enableval="$enable_shared"
4540
p=${PACKAGE-default}
4542
yes) enable_shared=yes ;;
4543
no) enable_shared=no ;;
4546
# Look at the argument we got. We use all the common list separators.
4547
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4548
for pkg in $enableval; do
4550
if test "X$pkg" = "X$p"; then
4561
# Check whether --enable-static or --disable-static was given.
4562
if test "${enable_static+set}" = set; then
4563
enableval="$enable_static"
4564
p=${PACKAGE-default}
4566
yes) enable_static=yes ;;
4567
no) enable_static=no ;;
4570
# Look at the argument we got. We use all the common list separators.
4571
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4572
for pkg in $enableval; do
4574
if test "X$pkg" = "X$p"; then
4585
# Check whether --enable-fast-install or --disable-fast-install was given.
4586
if test "${enable_fast_install+set}" = set; then
4587
enableval="$enable_fast_install"
4588
p=${PACKAGE-default}
4590
yes) enable_fast_install=yes ;;
4591
no) enable_fast_install=no ;;
4593
enable_fast_install=no
4594
# Look at the argument we got. We use all the common list separators.
4595
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4596
for pkg in $enableval; do
4598
if test "X$pkg" = "X$p"; then
4599
enable_fast_install=yes
4606
enable_fast_install=yes
4609
# Make sure we can run config.sub.
4610
$ac_config_sub sun4 >/dev/null 2>&1 ||
4611
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4612
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4613
{ (exit 1); exit 1; }; }
4615
echo "$as_me:$LINENO: checking build system type" >&5
4616
echo $ECHO_N "checking build system type... $ECHO_C" >&6
4617
if test "${ac_cv_build+set}" = set; then
4618
echo $ECHO_N "(cached) $ECHO_C" >&6
4620
ac_cv_build_alias=$build_alias
4621
test -z "$ac_cv_build_alias" &&
4622
ac_cv_build_alias=`$ac_config_guess`
4623
test -z "$ac_cv_build_alias" &&
4624
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4625
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4626
{ (exit 1); exit 1; }; }
4627
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4628
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4629
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4630
{ (exit 1); exit 1; }; }
4633
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4634
echo "${ECHO_T}$ac_cv_build" >&6
4636
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4637
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4638
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4641
echo "$as_me:$LINENO: checking host system type" >&5
4642
echo $ECHO_N "checking host system type... $ECHO_C" >&6
4643
if test "${ac_cv_host+set}" = set; then
4644
echo $ECHO_N "(cached) $ECHO_C" >&6
4646
ac_cv_host_alias=$host_alias
4647
test -z "$ac_cv_host_alias" &&
4648
ac_cv_host_alias=$ac_cv_build_alias
4649
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4650
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4651
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4652
{ (exit 1); exit 1; }; }
4655
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4656
echo "${ECHO_T}$ac_cv_host" >&6
4658
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4659
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4660
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4663
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4664
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4665
if test "${lt_cv_path_SED+set}" = set; then
4666
echo $ECHO_N "(cached) $ECHO_C" >&6
4668
# Loop through the user's path and test for sed and gsed.
4669
# Then use that list of sed's as ones to test for truncation.
4670
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674
test -z "$as_dir" && as_dir=.
4675
for lt_ac_prog in sed gsed; do
4676
for ac_exec_ext in '' $ac_executable_extensions; do
4677
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4678
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4685
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4686
# along with /bin/sed that truncates output.
4687
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4688
test ! -f $lt_ac_sed && break
4689
cat /dev/null > conftest.in
4691
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4692
# Check for GNU sed and select it if it is found.
4693
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4694
lt_cv_path_SED=$lt_ac_sed
4698
cat conftest.in conftest.in >conftest.tmp
4699
mv conftest.tmp conftest.in
4700
cp conftest.in conftest.nl
4702
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4703
cmp -s conftest.out conftest.nl || break
4704
# 10000 chars as input seems more than enough
4705
test $lt_ac_count -gt 10 && break
4706
lt_ac_count=`expr $lt_ac_count + 1`
4707
if test $lt_ac_count -gt $lt_ac_max; then
4708
lt_ac_max=$lt_ac_count
4709
lt_cv_path_SED=$lt_ac_sed
4717
echo "$as_me:$LINENO: result: $SED" >&5
4718
echo "${ECHO_T}$SED" >&6
4721
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4722
if test "${with_gnu_ld+set}" = set; then
4723
withval="$with_gnu_ld"
4724
test "$withval" = no || with_gnu_ld=yes
4729
if test "$GCC" = yes; then
4730
# Check if gcc -print-prog-name=ld gives a path.
4731
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4732
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4735
# gcc leaves a trailing carriage return which upsets mingw
4736
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4738
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4741
# Accept absolute paths.
4743
re_direlt='/[^/][^/]*/\.\./'
4744
# Canonicalize the pathname of ld
4745
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4746
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4747
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4749
test -z "$LD" && LD="$ac_prog"
4752
# If it fails, then pretend we aren't using GCC.
4756
# If it is relative, then search for the first ld in PATH.
4760
elif test "$with_gnu_ld" = yes; then
4761
echo "$as_me:$LINENO: checking for GNU ld" >&5
4762
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4764
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4765
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4767
if test "${lt_cv_path_LD+set}" = set; then
4768
echo $ECHO_N "(cached) $ECHO_C" >&6
4770
if test -z "$LD"; then
4771
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4772
for ac_dir in $PATH; do
4774
test -z "$ac_dir" && ac_dir=.
4775
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4776
lt_cv_path_LD="$ac_dir/$ac_prog"
4777
# Check to see if the program is GNU ld. I'd rather use --version,
4778
# but apparently some GNU ld's only accept -v.
4779
# Break only if it was the GNU/non-GNU ld that we prefer.
4780
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4781
*GNU* | *'with BFD'*)
4782
test "$with_gnu_ld" != no && break
4785
test "$with_gnu_ld" != yes && break
4792
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4797
if test -n "$LD"; then
4798
echo "$as_me:$LINENO: result: $LD" >&5
4799
echo "${ECHO_T}$LD" >&6
4801
echo "$as_me:$LINENO: result: no" >&5
4802
echo "${ECHO_T}no" >&6
4804
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4805
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4806
{ (exit 1); exit 1; }; }
4807
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4808
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4809
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4810
echo $ECHO_N "(cached) $ECHO_C" >&6
4812
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
4813
case `$LD -v 2>&1 </dev/null` in
4814
*GNU* | *'with BFD'*)
4815
lt_cv_prog_gnu_ld=yes
4818
lt_cv_prog_gnu_ld=no
4822
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4823
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4824
with_gnu_ld=$lt_cv_prog_gnu_ld
4827
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4828
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4829
if test "${lt_cv_ld_reload_flag+set}" = set; then
4830
echo $ECHO_N "(cached) $ECHO_C" >&6
4832
lt_cv_ld_reload_flag='-r'
4834
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4835
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4836
reload_flag=$lt_cv_ld_reload_flag
4837
case $reload_flag in
4839
*) reload_flag=" $reload_flag" ;;
4841
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4843
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4844
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4845
if test "${lt_cv_path_NM+set}" = set; then
4846
echo $ECHO_N "(cached) $ECHO_C" >&6
4848
if test -n "$NM"; then
4849
# Let the user override the test.
4852
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4853
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4855
test -z "$ac_dir" && ac_dir=.
4856
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4857
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4858
# Check to see if the nm accepts a BSD-compat flag.
4859
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4860
# nm: unknown option "B" ignored
4861
# Tru64's nm complains that /dev/null is an invalid object file
4862
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4863
*/dev/null* | *'Invalid file or object type'*)
4864
lt_cv_path_NM="$tmp_nm -B"
4868
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4870
lt_cv_path_NM="$tmp_nm -p"
4874
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4875
continue # so that we can try to find one that supports BSD flags
4882
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4885
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4886
echo "${ECHO_T}$lt_cv_path_NM" >&6
4889
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4890
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4892
if test "$LN_S" = "ln -s"; then
4893
echo "$as_me:$LINENO: result: yes" >&5
4894
echo "${ECHO_T}yes" >&6
4896
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4897
echo "${ECHO_T}no, using $LN_S" >&6
4900
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4901
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4902
if test "${lt_cv_deplibs_check_method+set}" = set; then
4903
echo $ECHO_N "(cached) $ECHO_C" >&6
4905
lt_cv_file_magic_cmd='$MAGIC_CMD'
4906
lt_cv_file_magic_test_file=
4907
lt_cv_deplibs_check_method='unknown'
4908
# Need to set the preceding variable on all platforms that support
4909
# interlibrary dependencies.
4910
# 'none' -- dependencies not supported.
4911
# `unknown' -- same as none, but documents that we really don't know.
4912
# 'pass_all' -- all dependencies passed with no checks.
4913
# 'test_compile' -- check by making test program.
4914
# 'file_magic [[regex]]' -- check by looking for files in library path
4915
# which responds to the $file_magic_cmd with a given extended regex.
4916
# If you have `file' or equivalent on your system and you're not sure
4917
# whether `pass_all' will *always* work, you probably want this one.
4921
lt_cv_deplibs_check_method=pass_all
4925
lt_cv_deplibs_check_method=pass_all
4929
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4930
lt_cv_file_magic_cmd='/usr/bin/file -L'
4931
lt_cv_file_magic_test_file=/shlib/libc.so
4935
# func_win32_libid is a shell function defined in ltmain.sh
4936
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4937
lt_cv_file_magic_cmd='func_win32_libid'
4941
# Base MSYS/MinGW do not provide the 'file' command needed by
4942
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
4943
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4944
lt_cv_file_magic_cmd='$OBJDUMP -f'
4947
darwin* | rhapsody*)
4948
lt_cv_deplibs_check_method=pass_all
4951
freebsd* | kfreebsd*-gnu)
4952
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4955
# Not sure whether the presence of OpenBSD here was a mistake.
4956
# Let's accept both of them until this is cleared up.
4957
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4958
lt_cv_file_magic_cmd=/usr/bin/file
4959
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4963
lt_cv_deplibs_check_method=pass_all
4968
lt_cv_deplibs_check_method=pass_all
4971
hpux10.20* | hpux11*)
4972
lt_cv_file_magic_cmd=/usr/bin/file
4975
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4976
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4979
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4980
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4983
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4984
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4989
irix5* | irix6* | nonstopux*)
4991
*-32|*"-32 ") libmagic=32-bit;;
4992
*-n32|*"-n32 ") libmagic=N32;;
4993
*-64|*"-64 ") libmagic=64-bit;;
4994
*) libmagic=never-match;;
4996
lt_cv_deplibs_check_method=pass_all
4999
# This must be Linux ELF.
5001
lt_cv_deplibs_check_method=pass_all
5004
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5005
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5006
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5008
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5013
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5014
lt_cv_file_magic_cmd=/usr/bin/file
5015
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5019
lt_cv_deplibs_check_method=unknown
5023
lt_cv_file_magic_cmd=/usr/bin/file
5024
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5025
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5026
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
5028
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
5032
osf3* | osf4* | osf5*)
5033
lt_cv_deplibs_check_method=pass_all
5037
lt_cv_deplibs_check_method=pass_all
5041
lt_cv_deplibs_check_method=pass_all
5044
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5045
case $host_vendor in
5047
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]'
5048
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5051
lt_cv_deplibs_check_method=pass_all
5054
lt_cv_file_magic_cmd='/bin/file'
5055
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5058
lt_cv_file_magic_cmd='/bin/file'
5059
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5060
lt_cv_file_magic_test_file=/lib/libc.so
5063
lt_cv_deplibs_check_method=pass_all
5068
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5069
lt_cv_deplibs_check_method=pass_all
5074
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5075
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5076
file_magic_cmd=$lt_cv_file_magic_cmd
5077
deplibs_check_method=$lt_cv_deplibs_check_method
5078
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5083
# If no C compiler was specified, use CC.
5086
# Allow CC to be a program name with arguments.
5090
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5091
if test "${enable_libtool_lock+set}" = set; then
5092
enableval="$enable_libtool_lock"
5095
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5097
# Some flags need to be propagated to the compiler or linker for good
5101
# Find out which ABI we are using.
5102
echo 'int i;' > conftest.$ac_ext
5103
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5104
(eval $ac_compile) 2>&5
5106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107
(exit $ac_status); }; then
5108
case `/usr/bin/file conftest.$ac_objext` in
5120
# Find out which ABI we are using.
5121
echo '#line 5121 "configure"' > conftest.$ac_ext
5122
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5123
(eval $ac_compile) 2>&5
5125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126
(exit $ac_status); }; then
5127
if test "$lt_cv_prog_gnu_ld" = yes; then
5128
case `/usr/bin/file conftest.$ac_objext` in
5130
LD="${LD-ld} -melf32bsmip"
5133
LD="${LD-ld} -melf32bmipn32"
5136
LD="${LD-ld} -melf64bmip"
5140
case `/usr/bin/file conftest.$ac_objext` in
5156
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5157
# Find out which ABI we are using.
5158
echo 'int i;' > conftest.$ac_ext
5159
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5160
(eval $ac_compile) 2>&5
5162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163
(exit $ac_status); }; then
5164
case "`/usr/bin/file conftest.o`" in
5168
LD="${LD-ld} -m elf_i386"
5170
ppc64-*linux*|powerpc64-*linux*)
5171
LD="${LD-ld} -m elf32ppclinux"
5174
LD="${LD-ld} -m elf_s390"
5177
LD="${LD-ld} -m elf32_sparc"
5184
LD="${LD-ld} -m elf_x86_64"
5186
ppc*-*linux*|powerpc*-*linux*)
5187
LD="${LD-ld} -m elf64ppc"
5190
LD="${LD-ld} -m elf64_s390"
5193
LD="${LD-ld} -m elf64_sparc"
5203
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5204
SAVE_CFLAGS="$CFLAGS"
5205
CFLAGS="$CFLAGS -belf"
5206
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5207
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5208
if test "${lt_cv_cc_needs_belf+set}" = set; then
5209
echo $ECHO_N "(cached) $ECHO_C" >&6
5212
ac_cpp='$CPP $CPPFLAGS'
5213
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5217
cat >conftest.$ac_ext <<_ACEOF
5220
cat confdefs.h >>conftest.$ac_ext
5221
cat >>conftest.$ac_ext <<_ACEOF
5222
/* end confdefs.h. */
5232
rm -f conftest.$ac_objext conftest$ac_exeext
5233
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5234
(eval $ac_link) 2>conftest.er1
5236
grep -v '^ *+' conftest.er1 >conftest.err
5238
cat conftest.err >&5
5239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240
(exit $ac_status); } &&
5241
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5242
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246
(exit $ac_status); }; } &&
5247
{ ac_try='test -s conftest$ac_exeext'
5248
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252
(exit $ac_status); }; }; then
5253
lt_cv_cc_needs_belf=yes
5255
echo "$as_me: failed program was:" >&5
5256
sed 's/^/| /' conftest.$ac_ext >&5
5258
lt_cv_cc_needs_belf=no
5260
rm -f conftest.err conftest.$ac_objext \
5261
conftest$ac_exeext conftest.$ac_ext
5263
ac_cpp='$CPP $CPPFLAGS'
5264
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5265
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5266
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5269
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5270
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5271
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5272
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5273
CFLAGS="$SAVE_CFLAGS"
5279
need_locks="$enable_libtool_lock"
5282
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5292
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5293
inttypes.h stdint.h unistd.h
5295
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5296
echo "$as_me:$LINENO: checking for $ac_header" >&5
5297
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5298
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5299
echo $ECHO_N "(cached) $ECHO_C" >&6
5301
cat >conftest.$ac_ext <<_ACEOF
5304
cat confdefs.h >>conftest.$ac_ext
5305
cat >>conftest.$ac_ext <<_ACEOF
5306
/* end confdefs.h. */
5307
$ac_includes_default
5309
#include <$ac_header>
5311
rm -f conftest.$ac_objext
5312
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313
(eval $ac_compile) 2>conftest.er1
5315
grep -v '^ *+' conftest.er1 >conftest.err
5317
cat conftest.err >&5
5318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319
(exit $ac_status); } &&
5320
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5321
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325
(exit $ac_status); }; } &&
5326
{ ac_try='test -s conftest.$ac_objext'
5327
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331
(exit $ac_status); }; }; then
5332
eval "$as_ac_Header=yes"
5334
echo "$as_me: failed program was:" >&5
5335
sed 's/^/| /' conftest.$ac_ext >&5
5337
eval "$as_ac_Header=no"
5339
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5341
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5342
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5343
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5344
cat >>confdefs.h <<_ACEOF
5345
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5354
ac_cpp='$CPP $CPPFLAGS'
5355
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5358
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5359
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5360
# On Suns, sometimes $CPP names a directory.
5361
if test -n "$CPP" && test -d "$CPP"; then
5364
if test -z "$CPP"; then
5365
if test "${ac_cv_prog_CPP+set}" = set; then
5366
echo $ECHO_N "(cached) $ECHO_C" >&6
5368
# Double quotes because CPP needs to be expanded
5369
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5372
for ac_c_preproc_warn_flag in '' yes
5374
# Use a header file that comes with gcc, so configuring glibc
5375
# with a fresh cross-compiler works.
5376
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5377
# <limits.h> exists even on freestanding compilers.
5378
# On the NeXT, cc -E runs the code through the compiler's parser,
5379
# not just through cpp. "Syntax error" is here to catch this case.
5380
cat >conftest.$ac_ext <<_ACEOF
5383
cat confdefs.h >>conftest.$ac_ext
5384
cat >>conftest.$ac_ext <<_ACEOF
5385
/* end confdefs.h. */
5387
# include <limits.h>
5389
# include <assert.h>
5393
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5394
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5396
grep -v '^ *+' conftest.er1 >conftest.err
5398
cat conftest.err >&5
5399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400
(exit $ac_status); } >/dev/null; then
5401
if test -s conftest.err; then
5402
ac_cpp_err=$ac_c_preproc_warn_flag
5403
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5410
if test -z "$ac_cpp_err"; then
5413
echo "$as_me: failed program was:" >&5
5414
sed 's/^/| /' conftest.$ac_ext >&5
5416
# Broken: fails on valid input.
5419
rm -f conftest.err conftest.$ac_ext
5421
# OK, works on sane cases. Now check whether non-existent headers
5422
# can be detected and how.
5423
cat >conftest.$ac_ext <<_ACEOF
5426
cat confdefs.h >>conftest.$ac_ext
5427
cat >>conftest.$ac_ext <<_ACEOF
5428
/* end confdefs.h. */
5429
#include <ac_nonexistent.h>
5431
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5432
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5434
grep -v '^ *+' conftest.er1 >conftest.err
5436
cat conftest.err >&5
5437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438
(exit $ac_status); } >/dev/null; then
5439
if test -s conftest.err; then
5440
ac_cpp_err=$ac_c_preproc_warn_flag
5441
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5448
if test -z "$ac_cpp_err"; then
5449
# Broken: success on invalid input.
5452
echo "$as_me: failed program was:" >&5
5453
sed 's/^/| /' conftest.$ac_ext >&5
5455
# Passes both tests.
5459
rm -f conftest.err conftest.$ac_ext
5462
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5463
rm -f conftest.err conftest.$ac_ext
5464
if $ac_preproc_ok; then
5476
echo "$as_me:$LINENO: result: $CPP" >&5
5477
echo "${ECHO_T}$CPP" >&6
5479
for ac_c_preproc_warn_flag in '' yes
5481
# Use a header file that comes with gcc, so configuring glibc
5482
# with a fresh cross-compiler works.
5483
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5484
# <limits.h> exists even on freestanding compilers.
5485
# On the NeXT, cc -E runs the code through the compiler's parser,
5486
# not just through cpp. "Syntax error" is here to catch this case.
5487
cat >conftest.$ac_ext <<_ACEOF
5490
cat confdefs.h >>conftest.$ac_ext
5491
cat >>conftest.$ac_ext <<_ACEOF
5492
/* end confdefs.h. */
5494
# include <limits.h>
5496
# include <assert.h>
5500
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5501
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5503
grep -v '^ *+' conftest.er1 >conftest.err
5505
cat conftest.err >&5
5506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507
(exit $ac_status); } >/dev/null; then
5508
if test -s conftest.err; then
5509
ac_cpp_err=$ac_c_preproc_warn_flag
5510
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5517
if test -z "$ac_cpp_err"; then
5520
echo "$as_me: failed program was:" >&5
5521
sed 's/^/| /' conftest.$ac_ext >&5
5523
# Broken: fails on valid input.
5526
rm -f conftest.err conftest.$ac_ext
5528
# OK, works on sane cases. Now check whether non-existent headers
5529
# can be detected and how.
5530
cat >conftest.$ac_ext <<_ACEOF
5533
cat confdefs.h >>conftest.$ac_ext
5534
cat >>conftest.$ac_ext <<_ACEOF
5535
/* end confdefs.h. */
5536
#include <ac_nonexistent.h>
5538
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5539
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5541
grep -v '^ *+' conftest.er1 >conftest.err
5543
cat conftest.err >&5
5544
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545
(exit $ac_status); } >/dev/null; then
5546
if test -s conftest.err; then
5547
ac_cpp_err=$ac_c_preproc_warn_flag
5548
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5555
if test -z "$ac_cpp_err"; then
5556
# Broken: success on invalid input.
5559
echo "$as_me: failed program was:" >&5
5560
sed 's/^/| /' conftest.$ac_ext >&5
5562
# Passes both tests.
5566
rm -f conftest.err conftest.$ac_ext
5569
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5570
rm -f conftest.err conftest.$ac_ext
5571
if $ac_preproc_ok; then
5574
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5575
See \`config.log' for more details." >&5
5576
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5577
See \`config.log' for more details." >&2;}
5578
{ (exit 1); exit 1; }; }
5582
ac_cpp='$CPP $CPPFLAGS'
5583
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5584
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5585
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5589
for ac_header in dlfcn.h
5591
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5592
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5593
echo "$as_me:$LINENO: checking for $ac_header" >&5
5594
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5595
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5596
echo $ECHO_N "(cached) $ECHO_C" >&6
5598
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5599
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5601
# Is the header compilable?
5602
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5603
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5604
cat >conftest.$ac_ext <<_ACEOF
5607
cat confdefs.h >>conftest.$ac_ext
5608
cat >>conftest.$ac_ext <<_ACEOF
5609
/* end confdefs.h. */
5610
$ac_includes_default
5611
#include <$ac_header>
5613
rm -f conftest.$ac_objext
5614
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5615
(eval $ac_compile) 2>conftest.er1
5617
grep -v '^ *+' conftest.er1 >conftest.err
5619
cat conftest.err >&5
5620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621
(exit $ac_status); } &&
5622
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5623
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627
(exit $ac_status); }; } &&
5628
{ ac_try='test -s conftest.$ac_objext'
5629
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633
(exit $ac_status); }; }; then
5634
ac_header_compiler=yes
5636
echo "$as_me: failed program was:" >&5
5637
sed 's/^/| /' conftest.$ac_ext >&5
5639
ac_header_compiler=no
5641
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5642
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5643
echo "${ECHO_T}$ac_header_compiler" >&6
5645
# Is the header present?
5646
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5647
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5648
cat >conftest.$ac_ext <<_ACEOF
5651
cat confdefs.h >>conftest.$ac_ext
5652
cat >>conftest.$ac_ext <<_ACEOF
5653
/* end confdefs.h. */
5654
#include <$ac_header>
5656
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5657
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5659
grep -v '^ *+' conftest.er1 >conftest.err
5661
cat conftest.err >&5
5662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663
(exit $ac_status); } >/dev/null; then
5664
if test -s conftest.err; then
5665
ac_cpp_err=$ac_c_preproc_warn_flag
5666
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5673
if test -z "$ac_cpp_err"; then
5674
ac_header_preproc=yes
5676
echo "$as_me: failed program was:" >&5
5677
sed 's/^/| /' conftest.$ac_ext >&5
5679
ac_header_preproc=no
5681
rm -f conftest.err conftest.$ac_ext
5682
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5683
echo "${ECHO_T}$ac_header_preproc" >&6
5685
# So? What about this header?
5686
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5688
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5689
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5690
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5691
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5692
ac_header_preproc=yes
5695
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5696
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5697
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5698
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5699
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5700
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5701
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5702
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5703
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5704
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5705
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5706
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5709
## -------------------------------- ##
5710
## Report this to enrico@debian.org ##
5711
## -------------------------------- ##
5714
sed "s/^/$as_me: WARNING: /" >&2
5717
echo "$as_me:$LINENO: checking for $ac_header" >&5
5718
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5719
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5720
echo $ECHO_N "(cached) $ECHO_C" >&6
5722
eval "$as_ac_Header=\$ac_header_preproc"
5724
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5725
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5728
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5729
cat >>confdefs.h <<_ACEOF
5730
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5738
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5739
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5740
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5741
if test -n "$ac_tool_prefix"; then
5742
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5744
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5745
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5746
echo "$as_me:$LINENO: checking for $ac_word" >&5
5747
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5748
if test "${ac_cv_prog_F77+set}" = set; then
5749
echo $ECHO_N "(cached) $ECHO_C" >&6
5751
if test -n "$F77"; then
5752
ac_cv_prog_F77="$F77" # Let the user override the test.
5754
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758
test -z "$as_dir" && as_dir=.
5759
for ac_exec_ext in '' $ac_executable_extensions; do
5760
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5761
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5762
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771
if test -n "$F77"; then
5772
echo "$as_me:$LINENO: result: $F77" >&5
5773
echo "${ECHO_T}$F77" >&6
5775
echo "$as_me:$LINENO: result: no" >&5
5776
echo "${ECHO_T}no" >&6
5779
test -n "$F77" && break
5782
if test -z "$F77"; then
5784
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5786
# Extract the first word of "$ac_prog", so it can be a program name with args.
5787
set dummy $ac_prog; ac_word=$2
5788
echo "$as_me:$LINENO: checking for $ac_word" >&5
5789
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5790
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5791
echo $ECHO_N "(cached) $ECHO_C" >&6
5793
if test -n "$ac_ct_F77"; then
5794
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5796
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800
test -z "$as_dir" && as_dir=.
5801
for ac_exec_ext in '' $ac_executable_extensions; do
5802
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803
ac_cv_prog_ac_ct_F77="$ac_prog"
5804
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5812
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5813
if test -n "$ac_ct_F77"; then
5814
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5815
echo "${ECHO_T}$ac_ct_F77" >&6
5817
echo "$as_me:$LINENO: result: no" >&5
5818
echo "${ECHO_T}no" >&6
5821
test -n "$ac_ct_F77" && break
5828
# Provide some information about the compiler.
5829
echo "$as_me:5829:" \
5830
"checking for Fortran 77 compiler version" >&5
5831
ac_compiler=`set X $ac_compile; echo $2`
5832
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5833
(eval $ac_compiler --version </dev/null >&5) 2>&5
5835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836
(exit $ac_status); }
5837
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5838
(eval $ac_compiler -v </dev/null >&5) 2>&5
5840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841
(exit $ac_status); }
5842
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5843
(eval $ac_compiler -V </dev/null >&5) 2>&5
5845
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846
(exit $ac_status); }
5849
# If we don't use `.F' as extension, the preprocessor is not run on the
5850
# input file. (Note that this only needs to work for GNU compilers.)
5853
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5854
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5855
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5856
echo $ECHO_N "(cached) $ECHO_C" >&6
5858
cat >conftest.$ac_ext <<_ACEOF
5866
rm -f conftest.$ac_objext
5867
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868
(eval $ac_compile) 2>conftest.er1
5870
grep -v '^ *+' conftest.er1 >conftest.err
5872
cat conftest.err >&5
5873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874
(exit $ac_status); } &&
5875
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5876
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880
(exit $ac_status); }; } &&
5881
{ ac_try='test -s conftest.$ac_objext'
5882
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886
(exit $ac_status); }; }; then
5889
echo "$as_me: failed program was:" >&5
5890
sed 's/^/| /' conftest.$ac_ext >&5
5894
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5895
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5898
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5899
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5901
ac_test_FFLAGS=${FFLAGS+set}
5902
ac_save_FFLAGS=$FFLAGS
5904
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5905
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5906
if test "${ac_cv_prog_f77_g+set}" = set; then
5907
echo $ECHO_N "(cached) $ECHO_C" >&6
5910
cat >conftest.$ac_ext <<_ACEOF
5915
rm -f conftest.$ac_objext
5916
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5917
(eval $ac_compile) 2>conftest.er1
5919
grep -v '^ *+' conftest.er1 >conftest.err
5921
cat conftest.err >&5
5922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923
(exit $ac_status); } &&
5924
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5925
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929
(exit $ac_status); }; } &&
5930
{ ac_try='test -s conftest.$ac_objext'
5931
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935
(exit $ac_status); }; }; then
5936
ac_cv_prog_f77_g=yes
5938
echo "$as_me: failed program was:" >&5
5939
sed 's/^/| /' conftest.$ac_ext >&5
5943
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5946
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5947
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5948
if test "$ac_test_FFLAGS" = set; then
5949
FFLAGS=$ac_save_FFLAGS
5950
elif test $ac_cv_prog_f77_g = yes; then
5951
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5957
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5964
G77=`test $ac_compiler_gnu = yes && echo yes`
5966
ac_cpp='$CXXCPP $CPPFLAGS'
5967
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5968
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5969
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5973
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5975
# find the maximum length of command line arguments
5976
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5977
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5978
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5979
echo $ECHO_N "(cached) $ECHO_C" >&6
5986
# On DJGPP, this test can blow up pretty badly due to problems in libc
5987
# (any single argument exceeding 2000 bytes causes a buffer overrun
5988
# during glob expansion). Even if it were fixed, the result of this
5989
# check would be larger than it should be.
5990
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5994
# Under GNU Hurd, this test is not required because there is
5995
# no limit to the length of command line arguments.
5996
# Libtool will interpret -1 as no limit whatsoever
5997
lt_cv_sys_max_cmd_len=-1;
6001
# On Win9x/ME, this test blows up -- it succeeds, but takes
6002
# about 5 minutes as the teststring grows exponentially.
6003
# Worse, since 9x/ME are not pre-emptively multitasking,
6004
# you end up with a "frozen" computer, even though with patience
6005
# the test eventually succeeds (with a max line length of 256k).
6006
# Instead, let's just punt: use the minimum linelength reported by
6007
# all of the supported platforms: 8192 (on NT/2K/XP).
6008
lt_cv_sys_max_cmd_len=8192;
6012
# On AmigaOS with pdksh, this test takes hours, literally.
6013
# So we just punt and use a minimum line length of 8192.
6014
lt_cv_sys_max_cmd_len=8192;
6018
# If test is not a shell built-in, we'll probably end up computing a
6019
# maximum length that is only half of the actual maximum length, but
6021
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6022
= "XX$teststring") >/dev/null 2>&1 &&
6023
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6024
lt_cv_sys_max_cmd_len=$new_result &&
6025
test $i != 17 # 1/2 MB should be enough
6028
teststring=$teststring$teststring
6031
# Add a significant safety factor because C++ compilers can tack on massive
6032
# amounts of additional arguments before passing them to the linker.
6033
# It appears as though 1/2 is a usable value.
6034
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6040
if test -n $lt_cv_sys_max_cmd_len ; then
6041
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6042
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6044
echo "$as_me:$LINENO: result: none" >&5
6045
echo "${ECHO_T}none" >&6
6051
# Check for command to grab the raw symbol name followed by C symbol from nm.
6052
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6053
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6054
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6055
echo $ECHO_N "(cached) $ECHO_C" >&6
6058
# These are sane defaults that work on at least a few old systems.
6059
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6061
# Character class describing NM global symbol codes.
6062
symcode='[BCDEGRST]'
6064
# Regexp to match symbols that can be accessed directly from C.
6065
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6067
# Transform the above into a raw symbol and a C symbol.
6068
symxfrm='\1 \2\3 \3'
6070
# Transform an extracted symbol line into a proper C declaration
6071
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6073
# Transform an extracted symbol line into symbol name and symbol address
6074
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'"
6076
# Define system-specific variables.
6081
cygwin* | mingw* | pw32*)
6082
symcode='[ABCDGISTW]'
6084
hpux*) # Its linker distinguishes data from code symbols
6085
if test "$host_cpu" = ia64; then
6086
symcode='[ABCDEGRST]'
6088
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6089
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'"
6092
symcode='[BCDEGRST]'
6095
symcode='[BCDEGQRST]'
6105
# Handle CRLF in mingw tool chain
6109
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6113
# If we're using GNU nm, then use its standard symbol codes.
6114
case `$NM -V 2>&1` in
6115
*GNU* | *'with BFD'*)
6116
symcode='[ABCDGIRSTW]' ;;
6119
# Try without a prefix undercore, then with it.
6120
for ac_symprfx in "" "_"; do
6122
# Write the raw and C identifiers.
6123
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6125
# Check to see that the pipe works correctly.
6129
cat > conftest.$ac_ext <<EOF
6134
void nm_test_func(){}
6138
int main(){nm_test_var='a';nm_test_func();return(0);}
6141
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6142
(eval $ac_compile) 2>&5
6144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145
(exit $ac_status); }; then
6146
# Now try to grab the symbols.
6148
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6149
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152
(exit $ac_status); } && test -s "$nlist"; then
6153
# Try sorting and uniquifying the output.
6154
if sort "$nlist" | uniq > "$nlist"T; then
6155
mv -f "$nlist"T "$nlist"
6160
# Make sure that we snagged all the symbols we need.
6161
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6162
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6163
cat <<EOF > conftest.$ac_ext
6169
# Now generate the symbol file.
6170
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6172
cat <<EOF >> conftest.$ac_ext
6173
#if defined (__STDC__) && __STDC__
6174
# define lt_ptr_t void *
6176
# define lt_ptr_t char *
6180
/* The mapping between symbol names and symbols. */
6185
lt_preloaded_symbols[] =
6188
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6189
cat <<\EOF >> conftest.$ac_ext
6197
# Now try linking the two files.
6198
mv conftest.$ac_objext conftstm.$ac_objext
6199
lt_save_LIBS="$LIBS"
6200
lt_save_CFLAGS="$CFLAGS"
6201
LIBS="conftstm.$ac_objext"
6202
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6203
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6204
(eval $ac_link) 2>&5
6206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6210
LIBS="$lt_save_LIBS"
6211
CFLAGS="$lt_save_CFLAGS"
6213
echo "cannot find nm_test_func in $nlist" >&5
6216
echo "cannot find nm_test_var in $nlist" >&5
6219
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6222
echo "$progname: failed program was:" >&5
6223
cat conftest.$ac_ext >&5
6225
rm -f conftest* conftst*
6227
# Do not use the global_symbol_pipe unless it works.
6228
if test "$pipe_works" = yes; then
6231
lt_cv_sys_global_symbol_pipe=
6237
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6238
lt_cv_sys_global_symbol_to_cdecl=
6240
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6241
echo "$as_me:$LINENO: result: failed" >&5
6242
echo "${ECHO_T}failed" >&6
6244
echo "$as_me:$LINENO: result: ok" >&5
6245
echo "${ECHO_T}ok" >&6
6248
echo "$as_me:$LINENO: checking for objdir" >&5
6249
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6250
if test "${lt_cv_objdir+set}" = set; then
6251
echo $ECHO_N "(cached) $ECHO_C" >&6
6253
rm -f .libs 2>/dev/null
6254
mkdir .libs 2>/dev/null
6255
if test -d .libs; then
6258
# MS-DOS does not allow filenames that begin with a dot.
6261
rmdir .libs 2>/dev/null
6263
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6264
echo "${ECHO_T}$lt_cv_objdir" >&6
6265
objdir=$lt_cv_objdir
6273
# AIX sometimes has problems with the GCC collect2 program. For some
6274
# reason, if we set the COLLECT_NAMES environment variable, the problems
6275
# vanish in a puff of smoke.
6276
if test "X${COLLECT_NAMES+set}" != Xset; then
6278
export COLLECT_NAMES
6283
# Sed substitution that helps us do robust quoting. It backslashifies
6284
# metacharacters that are still active within double-quoted strings.
6285
Xsed='sed -e s/^X//'
6286
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6288
# Same as above, but do not quote variable references.
6289
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6291
# Sed substitution to delay expansion of an escaped shell variable in a
6292
# double_quote_subst'ed string.
6293
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6295
# Sed substitution to avoid accidental globbing in evaled expressions
6296
no_glob_subst='s/\*/\\\*/g'
6302
default_ofile=libtool
6303
can_build_shared=yes
6305
# All known linkers require a `.a' archive for static linking (except M$VC,
6306
# which needs '.lib').
6308
ltmain="$ac_aux_dir/ltmain.sh"
6309
ofile="$default_ofile"
6310
with_gnu_ld="$lt_cv_prog_gnu_ld"
6312
if test -n "$ac_tool_prefix"; then
6313
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6314
set dummy ${ac_tool_prefix}ar; ac_word=$2
6315
echo "$as_me:$LINENO: checking for $ac_word" >&5
6316
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6317
if test "${ac_cv_prog_AR+set}" = set; then
6318
echo $ECHO_N "(cached) $ECHO_C" >&6
6320
if test -n "$AR"; then
6321
ac_cv_prog_AR="$AR" # Let the user override the test.
6323
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327
test -z "$as_dir" && as_dir=.
6328
for ac_exec_ext in '' $ac_executable_extensions; do
6329
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6330
ac_cv_prog_AR="${ac_tool_prefix}ar"
6331
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6340
if test -n "$AR"; then
6341
echo "$as_me:$LINENO: result: $AR" >&5
6342
echo "${ECHO_T}$AR" >&6
6344
echo "$as_me:$LINENO: result: no" >&5
6345
echo "${ECHO_T}no" >&6
6349
if test -z "$ac_cv_prog_AR"; then
6351
# Extract the first word of "ar", so it can be a program name with args.
6352
set dummy ar; ac_word=$2
6353
echo "$as_me:$LINENO: checking for $ac_word" >&5
6354
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6355
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6356
echo $ECHO_N "(cached) $ECHO_C" >&6
6358
if test -n "$ac_ct_AR"; then
6359
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6361
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365
test -z "$as_dir" && as_dir=.
6366
for ac_exec_ext in '' $ac_executable_extensions; do
6367
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6368
ac_cv_prog_ac_ct_AR="ar"
6369
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6375
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6378
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6379
if test -n "$ac_ct_AR"; then
6380
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6381
echo "${ECHO_T}$ac_ct_AR" >&6
6383
echo "$as_me:$LINENO: result: no" >&5
6384
echo "${ECHO_T}no" >&6
6392
if test -n "$ac_tool_prefix"; then
6393
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6394
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6395
echo "$as_me:$LINENO: checking for $ac_word" >&5
6396
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6397
if test "${ac_cv_prog_RANLIB+set}" = set; then
6398
echo $ECHO_N "(cached) $ECHO_C" >&6
6400
if test -n "$RANLIB"; then
6401
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6403
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407
test -z "$as_dir" && as_dir=.
6408
for ac_exec_ext in '' $ac_executable_extensions; do
6409
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6410
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6411
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419
RANLIB=$ac_cv_prog_RANLIB
6420
if test -n "$RANLIB"; then
6421
echo "$as_me:$LINENO: result: $RANLIB" >&5
6422
echo "${ECHO_T}$RANLIB" >&6
6424
echo "$as_me:$LINENO: result: no" >&5
6425
echo "${ECHO_T}no" >&6
6429
if test -z "$ac_cv_prog_RANLIB"; then
6430
ac_ct_RANLIB=$RANLIB
6431
# Extract the first word of "ranlib", so it can be a program name with args.
6432
set dummy ranlib; ac_word=$2
6433
echo "$as_me:$LINENO: checking for $ac_word" >&5
6434
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6435
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6436
echo $ECHO_N "(cached) $ECHO_C" >&6
6438
if test -n "$ac_ct_RANLIB"; then
6439
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6441
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445
test -z "$as_dir" && as_dir=.
6446
for ac_exec_ext in '' $ac_executable_extensions; do
6447
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448
ac_cv_prog_ac_ct_RANLIB="ranlib"
6449
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6455
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6458
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6459
if test -n "$ac_ct_RANLIB"; then
6460
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6461
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6463
echo "$as_me:$LINENO: result: no" >&5
6464
echo "${ECHO_T}no" >&6
6467
RANLIB=$ac_ct_RANLIB
6469
RANLIB="$ac_cv_prog_RANLIB"
6472
if test -n "$ac_tool_prefix"; then
6473
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6474
set dummy ${ac_tool_prefix}strip; ac_word=$2
6475
echo "$as_me:$LINENO: checking for $ac_word" >&5
6476
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6477
if test "${ac_cv_prog_STRIP+set}" = set; then
6478
echo $ECHO_N "(cached) $ECHO_C" >&6
6480
if test -n "$STRIP"; then
6481
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6483
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487
test -z "$as_dir" && as_dir=.
6488
for ac_exec_ext in '' $ac_executable_extensions; do
6489
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6490
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6491
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6499
STRIP=$ac_cv_prog_STRIP
6500
if test -n "$STRIP"; then
6501
echo "$as_me:$LINENO: result: $STRIP" >&5
6502
echo "${ECHO_T}$STRIP" >&6
6504
echo "$as_me:$LINENO: result: no" >&5
6505
echo "${ECHO_T}no" >&6
6509
if test -z "$ac_cv_prog_STRIP"; then
6511
# Extract the first word of "strip", so it can be a program name with args.
6512
set dummy strip; ac_word=$2
6513
echo "$as_me:$LINENO: checking for $ac_word" >&5
6514
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6515
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6516
echo $ECHO_N "(cached) $ECHO_C" >&6
6518
if test -n "$ac_ct_STRIP"; then
6519
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6521
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525
test -z "$as_dir" && as_dir=.
6526
for ac_exec_ext in '' $ac_executable_extensions; do
6527
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6528
ac_cv_prog_ac_ct_STRIP="strip"
6529
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6538
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6539
if test -n "$ac_ct_STRIP"; then
6540
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6541
echo "${ECHO_T}$ac_ct_STRIP" >&6
6543
echo "$as_me:$LINENO: result: no" >&5
6544
echo "${ECHO_T}no" >&6
6549
STRIP="$ac_cv_prog_STRIP"
6554
old_CFLAGS="$CFLAGS"
6556
# Set sane defaults for various variables
6557
test -z "$AR" && AR=ar
6558
test -z "$AR_FLAGS" && AR_FLAGS=cru
6559
test -z "$AS" && AS=as
6560
test -z "$CC" && CC=cc
6561
test -z "$LTCC" && LTCC=$CC
6562
test -z "$DLLTOOL" && DLLTOOL=dlltool
6563
test -z "$LD" && LD=ld
6564
test -z "$LN_S" && LN_S="ln -s"
6565
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6566
test -z "$NM" && NM=nm
6567
test -z "$SED" && SED=sed
6568
test -z "$OBJDUMP" && OBJDUMP=objdump
6569
test -z "$RANLIB" && RANLIB=:
6570
test -z "$STRIP" && STRIP=:
6571
test -z "$ac_objext" && ac_objext=o
6573
# Determine commands to create old-style static archives.
6574
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6575
old_postinstall_cmds='chmod 644 $oldlib'
6576
old_postuninstall_cmds=
6578
if test -n "$RANLIB"; then
6581
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6584
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6587
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6590
# Only perform the check for file, if the check method requires it
6591
case $deplibs_check_method in
6593
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6594
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6595
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6596
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6597
echo $ECHO_N "(cached) $ECHO_C" >&6
6601
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6604
lt_save_MAGIC_CMD="$MAGIC_CMD"
6605
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6606
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6607
for ac_dir in $ac_dummy; do
6609
test -z "$ac_dir" && ac_dir=.
6610
if test -f $ac_dir/${ac_tool_prefix}file; then
6611
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6612
if test -n "$file_magic_test_file"; then
6613
case $deplibs_check_method in
6615
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6616
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6617
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6618
$EGREP "$file_magic_regex" > /dev/null; then
6623
*** Warning: the command libtool uses to detect shared libraries,
6624
*** $file_magic_cmd, produces output that libtool cannot recognize.
6625
*** The result is that libtool may fail to recognize shared libraries
6626
*** as such. This will affect the creation of libtool libraries that
6627
*** depend on shared libraries, but programs linked with such libtool
6628
*** libraries will work regardless of this problem. Nevertheless, you
6629
*** may want to report the problem to your system manager and/or to
6630
*** bug-libtool@gnu.org
6640
MAGIC_CMD="$lt_save_MAGIC_CMD"
6645
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6646
if test -n "$MAGIC_CMD"; then
6647
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6648
echo "${ECHO_T}$MAGIC_CMD" >&6
6650
echo "$as_me:$LINENO: result: no" >&5
6651
echo "${ECHO_T}no" >&6
6654
if test -z "$lt_cv_path_MAGIC_CMD"; then
6655
if test -n "$ac_tool_prefix"; then
6656
echo "$as_me:$LINENO: checking for file" >&5
6657
echo $ECHO_N "checking for file... $ECHO_C" >&6
6658
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6659
echo $ECHO_N "(cached) $ECHO_C" >&6
6663
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6666
lt_save_MAGIC_CMD="$MAGIC_CMD"
6667
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6668
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6669
for ac_dir in $ac_dummy; do
6671
test -z "$ac_dir" && ac_dir=.
6672
if test -f $ac_dir/file; then
6673
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6674
if test -n "$file_magic_test_file"; then
6675
case $deplibs_check_method in
6677
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6678
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6679
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6680
$EGREP "$file_magic_regex" > /dev/null; then
6685
*** Warning: the command libtool uses to detect shared libraries,
6686
*** $file_magic_cmd, produces output that libtool cannot recognize.
6687
*** The result is that libtool may fail to recognize shared libraries
6688
*** as such. This will affect the creation of libtool libraries that
6689
*** depend on shared libraries, but programs linked with such libtool
6690
*** libraries will work regardless of this problem. Nevertheless, you
6691
*** may want to report the problem to your system manager and/or to
6692
*** bug-libtool@gnu.org
6702
MAGIC_CMD="$lt_save_MAGIC_CMD"
6707
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6708
if test -n "$MAGIC_CMD"; then
6709
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6710
echo "${ECHO_T}$MAGIC_CMD" >&6
6712
echo "$as_me:$LINENO: result: no" >&5
6713
echo "${ECHO_T}no" >&6
6728
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6729
if test "${enable_libtool_lock+set}" = set; then
6730
enableval="$enable_libtool_lock"
6733
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6736
# Check whether --with-pic or --without-pic was given.
6737
if test "${with_pic+set}" = set; then
6743
test -z "$pic_mode" && pic_mode=default
6745
# Use C for the default configuration in the libtool script
6749
ac_cpp='$CPP $CPPFLAGS'
6750
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6751
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6752
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6755
# Source file extension for C test sources.
6758
# Object file extension for compiled C test sources.
6762
# Code to be used in simple compile tests
6763
lt_simple_compile_test_code="int some_variable = 0;\n"
6765
# Code to be used in simple link tests
6766
lt_simple_link_test_code='int main(){return(0);}\n'
6769
# If no C compiler was specified, use CC.
6772
# Allow CC to be a program name with arguments.
6777
# Check for any special shared library compilation flags.
6780
if test "$GCC" = no; then
6783
lt_prog_cc_shlib='-belf'
6787
if test -n "$lt_prog_cc_shlib"; then
6788
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6789
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6790
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6792
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6793
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6794
lt_cv_prog_cc_can_build_shared=no
6800
# Check to make sure the static flag actually works.
6802
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6803
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6804
if test "${lt_prog_compiler_static_works+set}" = set; then
6805
echo $ECHO_N "(cached) $ECHO_C" >&6
6807
lt_prog_compiler_static_works=no
6808
save_LDFLAGS="$LDFLAGS"
6809
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6810
printf "$lt_simple_link_test_code" > conftest.$ac_ext
6811
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6812
# The compiler can only warn and ignore the option if not recognized
6813
# So say no if there are warnings
6814
if test -s conftest.err; then
6815
# Append any errors to the config.log.
6816
cat conftest.err 1>&5
6818
lt_prog_compiler_static_works=yes
6822
LDFLAGS="$save_LDFLAGS"
6825
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6826
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6828
if test x"$lt_prog_compiler_static_works" = xyes; then
6831
lt_prog_compiler_static=
6837
lt_prog_compiler_no_builtin_flag=
6839
if test "$GCC" = yes; then
6840
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6843
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6844
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6845
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6846
echo $ECHO_N "(cached) $ECHO_C" >&6
6848
lt_cv_prog_compiler_rtti_exceptions=no
6849
ac_outfile=conftest.$ac_objext
6850
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6851
lt_compiler_flag="-fno-rtti -fno-exceptions"
6852
# Insert the option either (1) after the last *FLAGS variable, or
6853
# (2) before a word containing "conftest.", or (3) at the end.
6854
# Note that $ac_compile itself does not contain backslashes and begins
6855
# with a dollar sign (not a hyphen), so the echo should work correctly.
6856
# The option is referenced via a variable to avoid confusing sed.
6857
lt_compile=`echo "$ac_compile" | $SED \
6858
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6859
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6860
-e 's:$: $lt_compiler_flag:'`
6861
(eval echo "\"\$as_me:6861: $lt_compile\"" >&5)
6862
(eval "$lt_compile" 2>conftest.err)
6864
cat conftest.err >&5
6865
echo "$as_me:6865: \$? = $ac_status" >&5
6866
if (exit $ac_status) && test -s "$ac_outfile"; then
6867
# The compiler can only warn and ignore the option if not recognized
6868
# So say no if there are warnings
6869
if test ! -s conftest.err; then
6870
lt_cv_prog_compiler_rtti_exceptions=yes
6876
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6877
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6879
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6880
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6887
lt_prog_compiler_wl=
6888
lt_prog_compiler_pic=
6889
lt_prog_compiler_static=
6891
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6892
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6894
if test "$GCC" = yes; then
6895
lt_prog_compiler_wl='-Wl,'
6896
lt_prog_compiler_static='-static'
6900
# All AIX code is PIC.
6901
if test "$host_cpu" = ia64; then
6902
# AIX 5 now supports IA64 processor
6903
lt_prog_compiler_static='-Bstatic'
6908
# FIXME: we need at least 68020 code to build shared libraries, but
6909
# adding the `-m68020' flag to GCC prevents building anything better,
6911
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6914
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6915
# PIC is the default for these OSes.
6918
mingw* | pw32* | os2*)
6919
# This hack is so that the source file can tell whether it is being
6920
# built for inclusion in a dll (and should export symbols for example).
6921
lt_prog_compiler_pic='-DDLL_EXPORT'
6924
darwin* | rhapsody*)
6925
# PIC is the default on this platform
6926
# Common symbols not allowed in MH_DYLIB files
6927
lt_prog_compiler_pic='-fno-common'
6931
# Just because we use GCC doesn't mean we suddenly get shared libraries
6932
# on systems that don't support them.
6933
lt_prog_compiler_can_build_shared=no
6938
if test -d /usr/nec; then
6939
lt_prog_compiler_pic=-Kconform_pic
6944
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6951
lt_prog_compiler_pic='-fPIC'
6957
lt_prog_compiler_pic='-fPIC'
6961
# PORTME Check for flag to pass linker flags through the system compiler.
6964
lt_prog_compiler_wl='-Wl,'
6965
if test "$host_cpu" = ia64; then
6966
# AIX 5 now supports IA64 processor
6967
lt_prog_compiler_static='-Bstatic'
6969
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6973
mingw* | pw32* | os2*)
6974
# This hack is so that the source file can tell whether it is being
6975
# built for inclusion in a dll (and should export symbols for example).
6976
lt_prog_compiler_pic='-DDLL_EXPORT'
6979
hpux9* | hpux10* | hpux11*)
6980
lt_prog_compiler_wl='-Wl,'
6981
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6988
lt_prog_compiler_pic='+Z'
6991
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6992
lt_prog_compiler_static='${wl}-a ${wl}archive'
6995
irix5* | irix6* | nonstopux*)
6996
lt_prog_compiler_wl='-Wl,'
6997
# PIC (with -KPIC) is the default.
6998
lt_prog_compiler_static='-non_shared'
7002
lt_prog_compiler_pic='-KPIC'
7003
lt_prog_compiler_static='-Bstatic'
7009
lt_prog_compiler_wl='-Wl,'
7010
lt_prog_compiler_pic='-KPIC'
7011
lt_prog_compiler_static='-static'
7014
lt_prog_compiler_wl='-Wl,'
7015
# All Alpha code is PIC.
7016
lt_prog_compiler_static='-non_shared'
7021
osf3* | osf4* | osf5*)
7022
lt_prog_compiler_wl='-Wl,'
7023
# All OSF/1 code is PIC.
7024
lt_prog_compiler_static='-non_shared'
7028
lt_prog_compiler_pic='-Kpic'
7029
lt_prog_compiler_static='-dn'
7033
lt_prog_compiler_wl='-Wl,'
7034
lt_prog_compiler_pic='-KPIC'
7035
lt_prog_compiler_static='-Bstatic'
7039
lt_prog_compiler_wl='-Qoption ld '
7040
lt_prog_compiler_pic='-PIC'
7041
lt_prog_compiler_static='-Bstatic'
7044
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7045
lt_prog_compiler_wl='-Wl,'
7046
lt_prog_compiler_pic='-KPIC'
7047
lt_prog_compiler_static='-Bstatic'
7051
if test -d /usr/nec ;then
7052
lt_prog_compiler_pic='-Kconform_pic'
7053
lt_prog_compiler_static='-Bstatic'
7058
lt_prog_compiler_pic='-pic'
7059
lt_prog_compiler_static='-Bstatic'
7063
lt_prog_compiler_can_build_shared=no
7068
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7069
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7072
# Check to make sure the PIC flag actually works.
7074
if test -n "$lt_prog_compiler_pic"; then
7076
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7077
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7078
if test "${lt_prog_compiler_pic_works+set}" = set; then
7079
echo $ECHO_N "(cached) $ECHO_C" >&6
7081
lt_prog_compiler_pic_works=no
7082
ac_outfile=conftest.$ac_objext
7083
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7084
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7085
# Insert the option either (1) after the last *FLAGS variable, or
7086
# (2) before a word containing "conftest.", or (3) at the end.
7087
# Note that $ac_compile itself does not contain backslashes and begins
7088
# with a dollar sign (not a hyphen), so the echo should work correctly.
7089
# The option is referenced via a variable to avoid confusing sed.
7090
lt_compile=`echo "$ac_compile" | $SED \
7091
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7092
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7093
-e 's:$: $lt_compiler_flag:'`
7094
(eval echo "\"\$as_me:7094: $lt_compile\"" >&5)
7095
(eval "$lt_compile" 2>conftest.err)
7097
cat conftest.err >&5
7098
echo "$as_me:7098: \$? = $ac_status" >&5
7099
if (exit $ac_status) && test -s "$ac_outfile"; then
7100
# The compiler can only warn and ignore the option if not recognized
7101
# So say no if there are warnings
7102
if test ! -s conftest.err; then
7103
lt_prog_compiler_pic_works=yes
7109
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7110
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7112
if test x"$lt_prog_compiler_pic_works" = xyes; then
7113
case $lt_prog_compiler_pic in
7115
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7118
lt_prog_compiler_pic=
7119
lt_prog_compiler_can_build_shared=no
7124
# For platforms which do not support PIC, -DPIC is meaningless:
7126
lt_prog_compiler_pic=
7129
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7133
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7134
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7135
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7136
echo $ECHO_N "(cached) $ECHO_C" >&6
7138
lt_cv_prog_compiler_c_o=no
7139
$rm -r conftest 2>/dev/null
7143
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7145
lt_compiler_flag="-o out/conftest2.$ac_objext"
7146
# Insert the option either (1) after the last *FLAGS variable, or
7147
# (2) before a word containing "conftest.", or (3) at the end.
7148
# Note that $ac_compile itself does not contain backslashes and begins
7149
# with a dollar sign (not a hyphen), so the echo should work correctly.
7150
lt_compile=`echo "$ac_compile" | $SED \
7151
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7152
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7153
-e 's:$: $lt_compiler_flag:'`
7154
(eval echo "\"\$as_me:7154: $lt_compile\"" >&5)
7155
(eval "$lt_compile" 2>out/conftest.err)
7157
cat out/conftest.err >&5
7158
echo "$as_me:7158: \$? = $ac_status" >&5
7159
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7161
# The compiler can only warn and ignore the option if not recognized
7162
# So say no if there are warnings
7163
if test ! -s out/conftest.err; then
7164
lt_cv_prog_compiler_c_o=yes
7169
# SGI C++ compiler will create directory out/ii_files/ for
7170
# template instantiation
7171
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7172
$rm out/* && rmdir out
7178
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7179
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7182
hard_links="nottested"
7183
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7184
# do not overwrite the value of need_locks provided by the user
7185
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7186
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7189
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7191
ln conftest.a conftest.b 2>&5 || hard_links=no
7192
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7193
echo "$as_me:$LINENO: result: $hard_links" >&5
7194
echo "${ECHO_T}$hard_links" >&6
7195
if test "$hard_links" = no; then
7196
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7197
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7204
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7205
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7208
allow_undefined_flag=
7209
enable_shared_with_static_runtimes=no
7211
archive_expsym_cmds=
7212
old_archive_From_new_cmds=
7213
old_archive_from_expsyms_cmds=
7214
export_dynamic_flag_spec=
7215
whole_archive_flag_spec=
7216
thread_safe_flag_spec=
7217
hardcode_libdir_flag_spec=
7218
hardcode_libdir_flag_spec_ld=
7219
hardcode_libdir_separator=
7222
hardcode_shlibpath_var=unsupported
7223
link_all_deplibs=unknown
7224
hardcode_automatic=no
7227
always_export_symbols=no
7228
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7229
# include_expsyms should be a list of space-separated symbols to be *always*
7230
# included in the symbol list
7232
# exclude_expsyms can be an extended regexp of symbols to exclude
7233
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7234
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7235
# as well as any symbol that contains `d'.
7236
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7237
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7238
# platforms (ab)use it in PIC code, but their linkers get confused if
7239
# the symbol is explicitly referenced. Since portable code cannot
7240
# rely on this symbol name, it's probably fine to never include it in
7241
# preloaded symbol tables.
7242
extract_expsyms_cmds=
7245
cygwin* | mingw* | pw32*)
7246
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7247
# When not using gcc, we currently assume that we are using
7248
# Microsoft Visual C++.
7249
if test "$GCC" != yes; then
7259
if test "$with_gnu_ld" = yes; then
7260
# If archive_cmds runs LD, not CC, wlarc should be empty
7263
# See if GNU ld supports shared libraries.
7265
aix3* | aix4* | aix5*)
7266
# On AIX/PPC, the GNU linker is very broken
7267
if test "$host_cpu" != ia64; then
7271
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7272
*** to be unable to reliably create shared libraries on AIX.
7273
*** Therefore, libtool is disabling shared libraries support. If you
7274
*** really care for shared libraries, you may want to modify your PATH
7275
*** so that a non-GNU linker is found, and then restart.
7282
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)'
7283
hardcode_libdir_flag_spec='-L$libdir'
7284
hardcode_minus_L=yes
7286
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7287
# that the semantics of dynamic libraries on AmigaOS, at least up
7288
# to version 4, is to share data among multiple programs linked
7289
# with the same dynamic library. Since this doesn't match the
7290
# behavior of shared libraries on other platforms, we can't use
7296
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7297
allow_undefined_flag=unsupported
7298
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7299
# support --undefined. This deserves some investigation. FIXME
7300
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7306
cygwin* | mingw* | pw32*)
7307
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7308
# as there is no search path for DLLs.
7309
hardcode_libdir_flag_spec='-L$libdir'
7310
allow_undefined_flag=unsupported
7311
always_export_symbols=no
7312
enable_shared_with_static_runtimes=yes
7313
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7315
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7316
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7317
# If the export-symbols file already is a .def file (1st line
7318
# is EXPORTS), use it as is; otherwise, prepend...
7319
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7320
cp $export_symbols $output_objdir/$soname.def;
7322
echo EXPORTS > $output_objdir/$soname.def;
7323
cat $export_symbols >> $output_objdir/$soname.def;
7325
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7331
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7332
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7333
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7336
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7337
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7342
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7346
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7347
*** create shared libraries on Solaris systems. Therefore, libtool
7348
*** is disabling shared libraries support. We urge you to upgrade GNU
7349
*** binutils to release 2.9.1 or newer. Another option is to modify
7350
*** your PATH or compiler configuration so that the native linker is
7351
*** used, and then restart.
7354
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7355
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7356
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7363
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7366
hardcode_shlibpath_var=no
7370
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7371
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7372
archive_cmds="$tmp_archive_cmds"
7373
supports_anon_versioning=no
7374
case `$LD -v 2>/dev/null` in
7375
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7376
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7377
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7378
*\ 2.11.*) ;; # other 2.11 versions
7379
*) supports_anon_versioning=yes ;;
7381
if test $supports_anon_versioning = yes; then
7382
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7383
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7384
$echo "local: *; };" >> $output_objdir/$libname.ver~
7385
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7387
archive_expsym_cmds="$tmp_archive_cmds"
7396
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7397
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7398
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7405
if test "$ld_shlibs" = yes; then
7406
runpath_var=LD_RUN_PATH
7407
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7408
export_dynamic_flag_spec='${wl}--export-dynamic'
7409
# ancient GNU ld didn't support --whole-archive et. al.
7410
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7411
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7413
whole_archive_flag_spec=
7417
# PORTME fill in a description of your system's linker (not GNU ld)
7420
allow_undefined_flag=unsupported
7421
always_export_symbols=yes
7422
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'
7423
# Note: this linker hardcodes the directories in LIBPATH if there
7424
# are no directories specified by -L.
7425
hardcode_minus_L=yes
7426
if test "$GCC" = yes && test -z "$link_static_flag"; then
7427
# Neither direct hardcoding nor static linking is supported with a
7429
hardcode_direct=unsupported
7434
if test "$host_cpu" = ia64; then
7435
# On IA64, the linker does run time linking by default, so we don't
7436
# have to do anything special.
7437
aix_use_runtimelinking=no
7438
exp_sym_flag='-Bexport'
7441
# If we're using GNU nm, then we don't want the "-C" option.
7442
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7443
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7444
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'
7446
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'
7448
aix_use_runtimelinking=no
7450
# Test if we are trying to use run time linking or normal
7451
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7452
# need to do runtime linking.
7453
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7454
for ld_flag in $LDFLAGS; do
7455
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7456
aix_use_runtimelinking=yes
7462
exp_sym_flag='-bexport'
7463
no_entry_flag='-bnoentry'
7466
# When large executables or shared objects are built, AIX ld can
7467
# have problems creating the table of contents. If linking a library
7468
# or program results in "error TOC overflow" add -mminimal-toc to
7469
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7470
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7474
hardcode_libdir_separator=':'
7475
link_all_deplibs=yes
7477
if test "$GCC" = yes; then
7478
case $host_os in aix4.012|aix4.012.*)
7479
# We only want to do this on AIX 4.2 and lower, the check
7480
# below for broken collect2 doesn't work under 4.3+
7481
collect2name=`${CC} -print-prog-name=collect2`
7482
if test -f "$collect2name" && \
7483
strings "$collect2name" | grep resolve_lib_name >/dev/null
7485
# We have reworked collect2
7488
# We have old collect2
7489
hardcode_direct=unsupported
7490
# It fails to find uninstalled libraries when the uninstalled
7491
# path is not listed in the libpath. Setting hardcode_minus_L
7492
# to unsupported forces relinking
7493
hardcode_minus_L=yes
7494
hardcode_libdir_flag_spec='-L$libdir'
7495
hardcode_libdir_separator=
7498
shared_flag='-shared'
7501
if test "$host_cpu" = ia64; then
7502
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7503
# chokes on -Wl,-G. The following line is correct:
7506
if test "$aix_use_runtimelinking" = yes; then
7507
shared_flag='${wl}-G'
7509
shared_flag='${wl}-bM:SRE'
7514
# It seems that -bexpall does not export symbols beginning with
7515
# underscore (_), so it is better to generate a list of symbols to export.
7516
always_export_symbols=yes
7517
if test "$aix_use_runtimelinking" = yes; then
7518
# Warning - without using the other runtime loading flags (-brtl),
7519
# -berok will link without error, but may produce a broken library.
7520
allow_undefined_flag='-berok'
7521
# Determine the default libpath from the value encoded in an empty executable.
7522
cat >conftest.$ac_ext <<_ACEOF
7525
cat confdefs.h >>conftest.$ac_ext
7526
cat >>conftest.$ac_ext <<_ACEOF
7527
/* end confdefs.h. */
7537
rm -f conftest.$ac_objext conftest$ac_exeext
7538
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7539
(eval $ac_link) 2>conftest.er1
7541
grep -v '^ *+' conftest.er1 >conftest.err
7543
cat conftest.err >&5
7544
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545
(exit $ac_status); } &&
7546
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7547
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551
(exit $ac_status); }; } &&
7552
{ ac_try='test -s conftest$ac_exeext'
7553
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557
(exit $ac_status); }; }; then
7559
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7561
# Check for a 64-bit object if we didn't find anything.
7562
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; }
7565
echo "$as_me: failed program was:" >&5
7566
sed 's/^/| /' conftest.$ac_ext >&5
7569
rm -f conftest.err conftest.$ac_objext \
7570
conftest$ac_exeext conftest.$ac_ext
7571
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7573
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7574
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"
7576
if test "$host_cpu" = ia64; then
7577
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7578
allow_undefined_flag="-z nodefs"
7579
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"
7581
# Determine the default libpath from the value encoded in an empty executable.
7582
cat >conftest.$ac_ext <<_ACEOF
7585
cat confdefs.h >>conftest.$ac_ext
7586
cat >>conftest.$ac_ext <<_ACEOF
7587
/* end confdefs.h. */
7597
rm -f conftest.$ac_objext conftest$ac_exeext
7598
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7599
(eval $ac_link) 2>conftest.er1
7601
grep -v '^ *+' conftest.er1 >conftest.err
7603
cat conftest.err >&5
7604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605
(exit $ac_status); } &&
7606
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7607
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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
7619
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7621
# Check for a 64-bit object if we didn't find anything.
7622
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; }
7625
echo "$as_me: failed program was:" >&5
7626
sed 's/^/| /' conftest.$ac_ext >&5
7629
rm -f conftest.err conftest.$ac_objext \
7630
conftest$ac_exeext conftest.$ac_ext
7631
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7633
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7634
# Warning - without using the other run time loading flags,
7635
# -berok will link without error, but may produce a broken library.
7636
no_undefined_flag=' ${wl}-bernotok'
7637
allow_undefined_flag=' ${wl}-berok'
7638
# -bexpall does not export symbols beginning with underscore (_)
7639
always_export_symbols=yes
7640
# Exported symbols can be pulled into shared objects from archives
7641
whole_archive_flag_spec=' '
7642
archive_cmds_need_lc=yes
7643
# This is similar to how AIX traditionally builds it's shared libraries.
7644
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'
7650
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)'
7651
hardcode_libdir_flag_spec='-L$libdir'
7652
hardcode_minus_L=yes
7653
# see comment about different semantics on the GNU ld section
7658
export_dynamic_flag_spec=-rdynamic
7661
cygwin* | mingw* | pw32*)
7662
# When not using gcc, we currently assume that we are using
7663
# Microsoft Visual C++.
7664
# hardcode_libdir_flag_spec is actually meaningless, as there is
7665
# no search path for DLLs.
7666
hardcode_libdir_flag_spec=' '
7667
allow_undefined_flag=unsupported
7668
# Tell ltmain to make .lib files, not .a files.
7670
# Tell ltmain to make .dll files, not .so files.
7672
# FIXME: Setting linknames here is a bad hack.
7673
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7674
# The linker will automatically build a .lib file if we build a DLL.
7675
old_archive_From_new_cmds='true'
7676
# FIXME: Should let the user specify the lib program.
7677
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7678
fix_srcfile_path='`cygpath -w "$srcfile"`'
7679
enable_shared_with_static_runtimes=yes
7682
darwin* | rhapsody*)
7683
if test "$GXX" = yes ; then
7684
archive_cmds_need_lc=no
7686
rhapsody* | darwin1.[012])
7687
allow_undefined_flag='-undefined suppress'
7690
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7691
allow_undefined_flag='-flat_namespace -undefined suppress'
7693
case ${MACOSX_DEPLOYMENT_TARGET} in
7695
allow_undefined_flag='-flat_namespace -undefined suppress'
7698
allow_undefined_flag='-undefined dynamic_lookup'
7704
lt_int_apple_cc_single_mod=no
7705
output_verbose_link_cmd='echo'
7706
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7707
lt_int_apple_cc_single_mod=yes
7709
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7710
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7712
archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7714
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7715
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7716
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7717
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7719
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7721
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7723
hardcode_automatic=yes
7724
hardcode_shlibpath_var=unsupported
7725
whole_archive_flag_spec='-all_load $convenience'
7726
link_all_deplibs=yes
7733
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7734
hardcode_libdir_flag_spec='-L$libdir'
7735
hardcode_shlibpath_var=no
7742
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7743
# support. Future versions do this automatically, but an explicit c++rt0.o
7744
# does not break anything, and helps significantly (at the cost of a little
7747
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7748
hardcode_libdir_flag_spec='-R$libdir'
7750
hardcode_shlibpath_var=no
7753
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7755
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7757
hardcode_minus_L=yes
7758
hardcode_shlibpath_var=no
7761
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7762
freebsd* | kfreebsd*-gnu)
7763
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7764
hardcode_libdir_flag_spec='-R$libdir'
7766
hardcode_shlibpath_var=no
7770
if test "$GCC" = yes; then
7771
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'
7773
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'
7775
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7776
hardcode_libdir_separator=:
7779
# hardcode_minus_L: Not really in the search PATH,
7780
# but as the default location of the library.
7781
hardcode_minus_L=yes
7782
export_dynamic_flag_spec='${wl}-E'
7786
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7789
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7792
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7798
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7801
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7805
if test "$with_gnu_ld" = no; then
7808
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7809
hardcode_libdir_flag_spec_ld='+b $libdir'
7810
hardcode_libdir_separator=:
7812
hardcode_shlibpath_var=no
7815
hardcode_libdir_flag_spec='-L$libdir'
7817
hardcode_shlibpath_var=no
7819
# hardcode_minus_L: Not really in the search PATH,
7820
# but as the default location of the library.
7821
hardcode_minus_L=yes
7824
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7825
hardcode_libdir_separator=:
7827
export_dynamic_flag_spec='${wl}-E'
7829
# hardcode_minus_L: Not really in the search PATH,
7830
# but as the default location of the library.
7831
hardcode_minus_L=yes
7837
irix5* | irix6* | nonstopux*)
7838
if test "$GCC" = yes; then
7839
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'
7841
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'
7842
hardcode_libdir_flag_spec_ld='-rpath $libdir'
7844
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7845
hardcode_libdir_separator=:
7846
link_all_deplibs=yes
7849
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7850
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7851
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7853
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7855
hardcode_libdir_flag_spec='-R$libdir'
7857
hardcode_shlibpath_var=no
7861
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7863
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7864
hardcode_libdir_separator=:
7865
hardcode_shlibpath_var=no
7870
hardcode_shlibpath_var=no
7871
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7872
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7873
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7874
export_dynamic_flag_spec='${wl}-E'
7877
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7878
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7879
hardcode_libdir_flag_spec='-R$libdir'
7882
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7883
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7890
hardcode_libdir_flag_spec='-L$libdir'
7891
hardcode_minus_L=yes
7892
allow_undefined_flag=unsupported
7893
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'
7894
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7898
if test "$GCC" = yes; then
7899
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7900
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'
7902
allow_undefined_flag=' -expect_unresolved \*'
7903
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'
7905
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7906
hardcode_libdir_separator=:
7909
osf4* | osf5*) # as osf3* with the addition of -msym flag
7910
if test "$GCC" = yes; then
7911
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7912
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'
7913
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7915
allow_undefined_flag=' -expect_unresolved \*'
7916
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'
7917
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7918
$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'
7920
# Both c and cxx compiler support -rpath directly
7921
hardcode_libdir_flag_spec='-rpath $libdir'
7923
hardcode_libdir_separator=:
7927
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7928
hardcode_shlibpath_var=no
7929
export_dynamic_flag_spec='${wl}-Bexport'
7930
runpath_var=LD_RUN_PATH
7931
hardcode_runpath_var=yes
7935
no_undefined_flag=' -z text'
7936
if test "$GCC" = yes; then
7937
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7938
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7939
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7941
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7942
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7943
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7945
hardcode_libdir_flag_spec='-R$libdir'
7946
hardcode_shlibpath_var=no
7948
solaris2.[0-5] | solaris2.[0-5].*) ;;
7949
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
7950
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7952
link_all_deplibs=yes
7956
if test "x$host_vendor" = xsequent; then
7957
# Use $CC to link under sequent, because it throws in some extra .o
7958
# files that make .init and .fini sections work.
7959
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7961
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7963
hardcode_libdir_flag_spec='-L$libdir'
7965
hardcode_minus_L=yes
7966
hardcode_shlibpath_var=no
7970
case $host_vendor in
7972
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7973
hardcode_direct=yes # is this really true???
7976
## LD is ld it makes a PLAMLIB
7977
## CC just makes a GrossModule.
7978
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7979
reload_cmds='$CC -r -o $output$reload_objs'
7983
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7984
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7987
runpath_var='LD_RUN_PATH'
7988
hardcode_shlibpath_var=no
7992
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7993
hardcode_shlibpath_var=no
7994
export_dynamic_flag_spec='-Bexport'
7998
if test -d /usr/nec; then
7999
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8000
hardcode_shlibpath_var=no
8001
runpath_var=LD_RUN_PATH
8002
hardcode_runpath_var=yes
8008
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8011
hardcode_shlibpath_var=no
8012
hardcode_runpath_var=yes
8013
runpath_var=LD_RUN_PATH
8016
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8017
no_undefined_flag='${wl}-z ${wl}text'
8018
if test "$GCC" = yes; then
8019
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8021
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8023
runpath_var='LD_RUN_PATH'
8024
hardcode_shlibpath_var=no
8028
no_undefined_flag=' -z text'
8029
# $CC -shared without GNU ld will not create a library from C++
8030
# object files and a static libstdc++, better avoid it by now
8031
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8032
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8033
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8034
hardcode_libdir_flag_spec=
8035
hardcode_shlibpath_var=no
8036
runpath_var='LD_RUN_PATH'
8040
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8041
hardcode_libdir_flag_spec='-L$libdir'
8042
hardcode_shlibpath_var=no
8051
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8052
echo "${ECHO_T}$ld_shlibs" >&6
8053
test "$ld_shlibs" = no && can_build_shared=no
8055
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8056
if test "$GCC" = yes; then
8057
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8061
# Do we need to explicitly link libc?
8063
case "x$archive_cmds_need_lc" in
8065
# Assume -lc should be added
8066
archive_cmds_need_lc=yes
8068
if test "$enable_shared" = yes && test "$GCC" = yes; then
8069
case $archive_cmds in
8071
# FIXME: we may have to deal with multi-command sequences.
8074
# Test whether the compiler implicitly links with -lc since on some
8075
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8076
# to ld, don't add -lc before -lgcc.
8077
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8078
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8080
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8082
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8083
(eval $ac_compile) 2>&5
8085
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086
(exit $ac_status); } 2>conftest.err; then
8089
libobjs=conftest.$ac_objext
8091
wl=$lt_prog_compiler_wl
8097
lt_save_allow_undefined_flag=$allow_undefined_flag
8098
allow_undefined_flag=
8099
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8100
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8102
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103
(exit $ac_status); }
8105
archive_cmds_need_lc=no
8107
archive_cmds_need_lc=yes
8109
allow_undefined_flag=$lt_save_allow_undefined_flag
8111
cat conftest.err 1>&5
8114
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8115
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8122
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8123
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8125
libname_spec='lib$name'
8133
shlibpath_overrides_runpath=unknown
8135
dynamic_linker="$host_os ld.so"
8136
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8137
if test "$GCC" = yes; then
8138
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8139
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8140
# if the path contains ";" then we assume it to be the separator
8141
# otherwise default to the standard path separator (i.e. ":") - it is
8142
# assumed that no part of a normal pathname contains ";" but that should
8143
# okay in the real world where ";" in dirpaths is itself problematic.
8144
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8146
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8149
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8151
need_lib_prefix=unknown
8152
hardcode_into_libs=no
8154
# when you set need_version to no, make sure it does not cause -set_version
8155
# flags to be left without arguments
8156
need_version=unknown
8161
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8162
shlibpath_var=LIBPATH
8164
# AIX 3 has no versioning support, so we append a major version to the name.
8165
soname_spec='${libname}${release}${shared_ext}$major'
8172
hardcode_into_libs=yes
8173
if test "$host_cpu" = ia64; then
8174
# AIX 5 supports IA64
8175
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8176
shlibpath_var=LD_LIBRARY_PATH
8178
# With GCC up to 2.95.x, collect2 would create an import file
8179
# for dependence libraries. The import file would start with
8180
# the line `#! .'. This would cause the generated library to
8181
# depend on `.', always an invalid library. This was fixed in
8182
# development snapshots of GCC prior to 3.0.
8184
aix4 | aix4.[01] | aix4.[01].*)
8185
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8187
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8194
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8195
# soname into executable. Probably we can add versioning support to
8196
# collect2, so additional links can be useful in future.
8197
if test "$aix_use_runtimelinking" = yes; then
8198
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8199
# instead of lib<name>.a to let people know that these are not
8200
# typical AIX shared libraries.
8201
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8203
# We preserve .a as extension for shared libraries through AIX4.2
8204
# and later when we are not doing run time linking.
8205
library_names_spec='${libname}${release}.a $libname.a'
8206
soname_spec='${libname}${release}${shared_ext}$major'
8208
shlibpath_var=LIBPATH
8213
library_names_spec='$libname.ixlibrary $libname.a'
8214
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8215
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'
8219
library_names_spec='${libname}${shared_ext}'
8220
dynamic_linker="$host_os ld.so"
8221
shlibpath_var=LIBRARY_PATH
8227
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8228
soname_spec='${libname}${release}${shared_ext}$major'
8229
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8230
shlibpath_var=LD_LIBRARY_PATH
8231
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8232
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8233
# the default ld.so.conf also contains /usr/contrib/lib and
8234
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8235
# libtool to hard-code these into programs
8238
cygwin* | mingw* | pw32*)
8239
version_type=windows
8244
case $GCC,$host_os in
8245
yes,cygwin* | yes,mingw* | yes,pw32*)
8246
library_names_spec='$libname.dll.a'
8247
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8248
postinstall_cmds='base_file=`basename \${file}`~
8249
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8250
dldir=$destdir/`dirname \$dlpath`~
8251
test -d \$dldir || mkdir -p \$dldir~
8252
$install_prog $dir/$dlname \$dldir/$dlname'
8253
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8254
dlpath=$dir/\$dldll~
8256
shlibpath_overrides_runpath=yes
8260
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8261
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8262
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8265
# MinGW DLLs use traditional 'lib' prefix
8266
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8267
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8268
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8269
# It is most probably a Windows format PATH printed by
8270
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8271
# path with ; separators, and with drive letters. We can handle the
8272
# drive letters (cygwin fileutils understands them), so leave them,
8273
# especially as we might pass files found there to a mingw objdump,
8274
# which wouldn't understand a cygwinified path. Ahh.
8275
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8277
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8281
# pw32 DLLs use 'pw' prefix rather than 'lib'
8282
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8288
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8291
dynamic_linker='Win32 ld.exe'
8292
# FIXME: first we should search . and the directory the executable is in
8296
darwin* | rhapsody*)
8297
dynamic_linker="$host_os dyld"
8301
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8302
soname_spec='${libname}${release}${major}$shared_ext'
8303
shlibpath_overrides_runpath=yes
8304
shlibpath_var=DYLD_LIBRARY_PATH
8305
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8306
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8307
if test "$GCC" = yes; then
8308
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8310
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8312
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8319
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8320
soname_spec='${libname}${release}${shared_ext}$major'
8321
shlibpath_var=LD_LIBRARY_PATH
8332
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8333
soname_spec='${libname}${release}${shared_ext}$major'
8334
shlibpath_var=LD_LIBRARY_PATH
8335
shlibpath_overrides_runpath=no
8336
hardcode_into_libs=yes
8337
dynamic_linker='GNU ld.so'
8341
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8342
version_type=freebsd-$objformat
8343
case $version_type in
8345
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8350
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8354
shlibpath_var=LD_LIBRARY_PATH
8357
shlibpath_overrides_runpath=yes
8359
freebsd3.01* | freebsdelf3.01*)
8360
shlibpath_overrides_runpath=yes
8361
hardcode_into_libs=yes
8364
shlibpath_overrides_runpath=no
8365
hardcode_into_libs=yes
8374
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8375
soname_spec='${libname}${release}${shared_ext}$major'
8376
shlibpath_var=LD_LIBRARY_PATH
8377
hardcode_into_libs=yes
8380
hpux9* | hpux10* | hpux11*)
8381
# Give a soname corresponding to the major version so that dld.sl refuses to
8382
# link against other versions.
8389
hardcode_into_libs=yes
8390
dynamic_linker="$host_os dld.so"
8391
shlibpath_var=LD_LIBRARY_PATH
8392
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8393
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8394
soname_spec='${libname}${release}${shared_ext}$major'
8395
if test "X$HPUX_IA64_MODE" = X32; then
8396
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8398
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8400
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8404
hardcode_into_libs=yes
8405
dynamic_linker="$host_os dld.sl"
8406
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8407
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8408
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8409
soname_spec='${libname}${release}${shared_ext}$major'
8410
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8411
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8415
dynamic_linker="$host_os dld.sl"
8416
shlibpath_var=SHLIB_PATH
8417
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8418
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8419
soname_spec='${libname}${release}${shared_ext}$major'
8422
# HP-UX runs *really* slowly unless shared libraries are mode 555.
8423
postinstall_cmds='chmod 555 $lib'
8426
irix5* | irix6* | nonstopux*)
8428
nonstopux*) version_type=nonstopux ;;
8430
if test "$lt_cv_prog_gnu_ld" = yes; then
8438
soname_spec='${libname}${release}${shared_ext}$major'
8439
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8441
irix5* | nonstopux*)
8445
case $LD in # libtool.m4 will add one of these switches to LD
8446
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8447
libsuff= shlibsuff= libmagic=32-bit;;
8448
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8449
libsuff=32 shlibsuff=N32 libmagic=N32;;
8450
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8451
libsuff=64 shlibsuff=64 libmagic=64-bit;;
8452
*) libsuff= shlibsuff= libmagic=never-match;;
8456
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8457
shlibpath_overrides_runpath=no
8458
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8459
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8460
hardcode_into_libs=yes
8463
# No shared lib support for Linux oldld, aout, or coff.
8464
linux*oldld* | linux*aout* | linux*coff*)
8468
# This must be Linux ELF.
8473
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8474
soname_spec='${libname}${release}${shared_ext}$major'
8475
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8476
shlibpath_var=LD_LIBRARY_PATH
8477
shlibpath_overrides_runpath=no
8478
# This implies no fast_install, which is unacceptable.
8479
# Some rework will be needed to allow for fast_install
8480
# before this can be enabled.
8481
hardcode_into_libs=yes
8483
# Append ld.so.conf contents to the search path
8484
if test -f /etc/ld.so.conf; then
8485
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8486
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8489
# We used to test for /lib/ld.so.1 and disable shared libraries on
8490
# powerpc, because MkLinux only supported shared libraries with the
8491
# GNU dynamic linker. Since this was broken with cross compilers,
8492
# most powerpc-linux boxes support dynamic linking these days and
8493
# people can always --disable-shared, the test was removed, and we
8494
# assume the GNU/Linux dynamic linker is in use.
8495
dynamic_linker='GNU/Linux ld.so'
8502
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8503
soname_spec='${libname}${release}${shared_ext}$major'
8504
shlibpath_var=LD_LIBRARY_PATH
8505
shlibpath_overrides_runpath=no
8506
hardcode_into_libs=yes
8507
dynamic_linker='NetBSD ld.elf_so'
8514
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8515
soname_spec='${libname}${release}${shared_ext}$major'
8516
shlibpath_var=LD_LIBRARY_PATH
8517
shlibpath_overrides_runpath=no
8518
hardcode_into_libs=yes
8519
dynamic_linker='GNU ld.so'
8526
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8527
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8528
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8529
dynamic_linker='NetBSD (a.out) ld.so'
8531
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8532
soname_spec='${libname}${release}${shared_ext}$major'
8533
dynamic_linker='NetBSD ld.elf_so'
8535
shlibpath_var=LD_LIBRARY_PATH
8536
shlibpath_overrides_runpath=yes
8537
hardcode_into_libs=yes
8542
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8543
shlibpath_var=LD_LIBRARY_PATH
8544
shlibpath_overrides_runpath=yes
8551
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8552
soname_spec='${libname}${release}${shared_ext}$major'
8553
shlibpath_var=LD_LIBRARY_PATH
8554
shlibpath_overrides_runpath=yes
8561
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8562
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8563
shlibpath_var=LD_LIBRARY_PATH
8564
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8566
openbsd2.[89] | openbsd2.[89].*)
8567
shlibpath_overrides_runpath=no
8570
shlibpath_overrides_runpath=yes
8574
shlibpath_overrides_runpath=yes
8579
libname_spec='$name'
8582
library_names_spec='$libname${shared_ext} $libname.a'
8583
dynamic_linker='OS/2 ld.exe'
8584
shlibpath_var=LIBPATH
8587
osf3* | osf4* | osf5*)
8591
soname_spec='${libname}${release}${shared_ext}$major'
8592
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8593
shlibpath_var=LD_LIBRARY_PATH
8594
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8595
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8600
soname_spec='${libname}${release}${shared_ext}$major'
8601
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8602
shlibpath_var=LD_LIBRARY_PATH
8609
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8610
soname_spec='${libname}${release}${shared_ext}$major'
8611
shlibpath_var=LD_LIBRARY_PATH
8612
shlibpath_overrides_runpath=yes
8613
hardcode_into_libs=yes
8614
# ldd complains unless libraries are executable
8615
postinstall_cmds='chmod +x $lib'
8620
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8621
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8622
shlibpath_var=LD_LIBRARY_PATH
8623
shlibpath_overrides_runpath=yes
8624
if test "$with_gnu_ld" = yes; then
8630
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8632
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8633
soname_spec='${libname}${release}${shared_ext}$major'
8634
shlibpath_var=LD_LIBRARY_PATH
8635
case $host_vendor in
8637
shlibpath_overrides_runpath=no
8639
export_dynamic_flag_spec='${wl}-Blargedynsym'
8640
runpath_var=LD_RUN_PATH
8648
shlibpath_overrides_runpath=no
8649
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8655
if test -d /usr/nec ;then
8657
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8658
soname_spec='$libname${shared_ext}.$major'
8659
shlibpath_var=LD_LIBRARY_PATH
8665
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8666
soname_spec='${libname}${release}${shared_ext}$major'
8667
shlibpath_var=LD_LIBRARY_PATH
8674
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8675
echo "${ECHO_T}$dynamic_linker" >&6
8676
test "$dynamic_linker" = no && can_build_shared=no
8678
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8679
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8681
if test -n "$hardcode_libdir_flag_spec" || \
8682
test -n "$runpath_var " || \
8683
test "X$hardcode_automatic"="Xyes" ; then
8685
# We can hardcode non-existant directories.
8686
if test "$hardcode_direct" != no &&
8687
# If the only mechanism to avoid hardcoding is shlibpath_var, we
8688
# have to relink, otherwise we might link with an installed library
8689
# when we should be linking with a yet-to-be-installed one
8690
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8691
test "$hardcode_minus_L" != no; then
8692
# Linking always hardcodes the temporary library directory.
8693
hardcode_action=relink
8695
# We can link without hardcoding, and we can hardcode nonexisting dirs.
8696
hardcode_action=immediate
8699
# We cannot hardcode anything, or else we can only hardcode existing
8701
hardcode_action=unsupported
8703
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8704
echo "${ECHO_T}$hardcode_action" >&6
8706
if test "$hardcode_action" = relink; then
8707
# Fast installation is not supported
8708
enable_fast_install=no
8709
elif test "$shlibpath_overrides_runpath" = yes ||
8710
test "$enable_shared" = no; then
8711
# Fast installation is not necessary
8712
enable_fast_install=needless
8717
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8718
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8719
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8720
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8721
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8722
echo "$as_me:$LINENO: result: yes" >&5
8723
echo "${ECHO_T}yes" >&6
8725
# FIXME - insert some real tests, host_os isn't really good enough
8728
if test -n "$STRIP" ; then
8729
striplib="$STRIP -x"
8730
echo "$as_me:$LINENO: result: yes" >&5
8731
echo "${ECHO_T}yes" >&6
8733
echo "$as_me:$LINENO: result: no" >&5
8734
echo "${ECHO_T}no" >&6
8738
echo "$as_me:$LINENO: result: no" >&5
8739
echo "${ECHO_T}no" >&6
8744
if test "x$enable_dlopen" != xyes; then
8745
enable_dlopen=unknown
8746
enable_dlopen_self=unknown
8747
enable_dlopen_self_static=unknown
8754
lt_cv_dlopen="load_add_on"
8756
lt_cv_dlopen_self=yes
8760
lt_cv_dlopen="LoadLibrary"
8765
lt_cv_dlopen="dlopen"
8770
# if libdl is installed we need to link against it
8771
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8772
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8773
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8774
echo $ECHO_N "(cached) $ECHO_C" >&6
8776
ac_check_lib_save_LIBS=$LIBS
8778
cat >conftest.$ac_ext <<_ACEOF
8781
cat confdefs.h >>conftest.$ac_ext
8782
cat >>conftest.$ac_ext <<_ACEOF
8783
/* end confdefs.h. */
8785
/* Override any gcc2 internal prototype to avoid an error. */
8789
/* We use char because int might match the return type of a gcc2
8790
builtin and then its argument prototype would still apply. */
8800
rm -f conftest.$ac_objext conftest$ac_exeext
8801
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8802
(eval $ac_link) 2>conftest.er1
8804
grep -v '^ *+' conftest.er1 >conftest.err
8806
cat conftest.err >&5
8807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808
(exit $ac_status); } &&
8809
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8810
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814
(exit $ac_status); }; } &&
8815
{ ac_try='test -s conftest$ac_exeext'
8816
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820
(exit $ac_status); }; }; then
8821
ac_cv_lib_dl_dlopen=yes
8823
echo "$as_me: failed program was:" >&5
8824
sed 's/^/| /' conftest.$ac_ext >&5
8826
ac_cv_lib_dl_dlopen=no
8828
rm -f conftest.err conftest.$ac_objext \
8829
conftest$ac_exeext conftest.$ac_ext
8830
LIBS=$ac_check_lib_save_LIBS
8832
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8833
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8834
if test $ac_cv_lib_dl_dlopen = yes; then
8835
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8840
lt_cv_dlopen_self=yes
8847
echo "$as_me:$LINENO: checking for shl_load" >&5
8848
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8849
if test "${ac_cv_func_shl_load+set}" = set; then
8850
echo $ECHO_N "(cached) $ECHO_C" >&6
8852
cat >conftest.$ac_ext <<_ACEOF
8855
cat confdefs.h >>conftest.$ac_ext
8856
cat >>conftest.$ac_ext <<_ACEOF
8857
/* end confdefs.h. */
8858
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8859
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8860
#define shl_load innocuous_shl_load
8862
/* System header to define __stub macros and hopefully few prototypes,
8863
which can conflict with char shl_load (); below.
8864
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8865
<limits.h> exists even on freestanding compilers. */
8868
# include <limits.h>
8870
# include <assert.h>
8875
/* Override any gcc2 internal prototype to avoid an error. */
8880
/* We use char because int might match the return type of a gcc2
8881
builtin and then its argument prototype would still apply. */
8883
/* The GNU C library defines this for functions which it implements
8884
to always fail with ENOSYS. Some functions are actually named
8885
something starting with __ and the normal name is an alias. */
8886
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8889
char (*f) () = shl_load;
8898
return f != shl_load;
8903
rm -f conftest.$ac_objext conftest$ac_exeext
8904
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8905
(eval $ac_link) 2>conftest.er1
8907
grep -v '^ *+' conftest.er1 >conftest.err
8909
cat conftest.err >&5
8910
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911
(exit $ac_status); } &&
8912
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8913
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917
(exit $ac_status); }; } &&
8918
{ ac_try='test -s conftest$ac_exeext'
8919
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923
(exit $ac_status); }; }; then
8924
ac_cv_func_shl_load=yes
8926
echo "$as_me: failed program was:" >&5
8927
sed 's/^/| /' conftest.$ac_ext >&5
8929
ac_cv_func_shl_load=no
8931
rm -f conftest.err conftest.$ac_objext \
8932
conftest$ac_exeext conftest.$ac_ext
8934
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8935
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8936
if test $ac_cv_func_shl_load = yes; then
8937
lt_cv_dlopen="shl_load"
8939
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8940
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8941
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8942
echo $ECHO_N "(cached) $ECHO_C" >&6
8944
ac_check_lib_save_LIBS=$LIBS
8946
cat >conftest.$ac_ext <<_ACEOF
8949
cat confdefs.h >>conftest.$ac_ext
8950
cat >>conftest.$ac_ext <<_ACEOF
8951
/* end confdefs.h. */
8953
/* Override any gcc2 internal prototype to avoid an error. */
8957
/* We use char because int might match the return type of a gcc2
8958
builtin and then its argument prototype would still apply. */
8968
rm -f conftest.$ac_objext conftest$ac_exeext
8969
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8970
(eval $ac_link) 2>conftest.er1
8972
grep -v '^ *+' conftest.er1 >conftest.err
8974
cat conftest.err >&5
8975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976
(exit $ac_status); } &&
8977
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8978
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982
(exit $ac_status); }; } &&
8983
{ ac_try='test -s conftest$ac_exeext'
8984
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988
(exit $ac_status); }; }; then
8989
ac_cv_lib_dld_shl_load=yes
8991
echo "$as_me: failed program was:" >&5
8992
sed 's/^/| /' conftest.$ac_ext >&5
8994
ac_cv_lib_dld_shl_load=no
8996
rm -f conftest.err conftest.$ac_objext \
8997
conftest$ac_exeext conftest.$ac_ext
8998
LIBS=$ac_check_lib_save_LIBS
9000
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9001
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9002
if test $ac_cv_lib_dld_shl_load = yes; then
9003
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9005
echo "$as_me:$LINENO: checking for dlopen" >&5
9006
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9007
if test "${ac_cv_func_dlopen+set}" = set; then
9008
echo $ECHO_N "(cached) $ECHO_C" >&6
9010
cat >conftest.$ac_ext <<_ACEOF
9013
cat confdefs.h >>conftest.$ac_ext
9014
cat >>conftest.$ac_ext <<_ACEOF
9015
/* end confdefs.h. */
9016
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9017
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9018
#define dlopen innocuous_dlopen
9020
/* System header to define __stub macros and hopefully few prototypes,
9021
which can conflict with char dlopen (); below.
9022
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9023
<limits.h> exists even on freestanding compilers. */
9026
# include <limits.h>
9028
# include <assert.h>
9033
/* Override any gcc2 internal prototype to avoid an error. */
9038
/* We use char because int might match the return type of a gcc2
9039
builtin and then its argument prototype would still apply. */
9041
/* The GNU C library defines this for functions which it implements
9042
to always fail with ENOSYS. Some functions are actually named
9043
something starting with __ and the normal name is an alias. */
9044
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9047
char (*f) () = dlopen;
9061
rm -f conftest.$ac_objext conftest$ac_exeext
9062
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9063
(eval $ac_link) 2>conftest.er1
9065
grep -v '^ *+' conftest.er1 >conftest.err
9067
cat conftest.err >&5
9068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069
(exit $ac_status); } &&
9070
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9071
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075
(exit $ac_status); }; } &&
9076
{ ac_try='test -s conftest$ac_exeext'
9077
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081
(exit $ac_status); }; }; then
9082
ac_cv_func_dlopen=yes
9084
echo "$as_me: failed program was:" >&5
9085
sed 's/^/| /' conftest.$ac_ext >&5
9087
ac_cv_func_dlopen=no
9089
rm -f conftest.err conftest.$ac_objext \
9090
conftest$ac_exeext conftest.$ac_ext
9092
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9093
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9094
if test $ac_cv_func_dlopen = yes; then
9095
lt_cv_dlopen="dlopen"
9097
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9098
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9099
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9100
echo $ECHO_N "(cached) $ECHO_C" >&6
9102
ac_check_lib_save_LIBS=$LIBS
9104
cat >conftest.$ac_ext <<_ACEOF
9107
cat confdefs.h >>conftest.$ac_ext
9108
cat >>conftest.$ac_ext <<_ACEOF
9109
/* end confdefs.h. */
9111
/* Override any gcc2 internal prototype to avoid an error. */
9115
/* We use char because int might match the return type of a gcc2
9116
builtin and then its argument prototype would still apply. */
9126
rm -f conftest.$ac_objext conftest$ac_exeext
9127
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9128
(eval $ac_link) 2>conftest.er1
9130
grep -v '^ *+' conftest.er1 >conftest.err
9132
cat conftest.err >&5
9133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134
(exit $ac_status); } &&
9135
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9136
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140
(exit $ac_status); }; } &&
9141
{ ac_try='test -s conftest$ac_exeext'
9142
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146
(exit $ac_status); }; }; then
9147
ac_cv_lib_dl_dlopen=yes
9149
echo "$as_me: failed program was:" >&5
9150
sed 's/^/| /' conftest.$ac_ext >&5
9152
ac_cv_lib_dl_dlopen=no
9154
rm -f conftest.err conftest.$ac_objext \
9155
conftest$ac_exeext conftest.$ac_ext
9156
LIBS=$ac_check_lib_save_LIBS
9158
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9159
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9160
if test $ac_cv_lib_dl_dlopen = yes; then
9161
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9163
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9164
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9165
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9166
echo $ECHO_N "(cached) $ECHO_C" >&6
9168
ac_check_lib_save_LIBS=$LIBS
9170
cat >conftest.$ac_ext <<_ACEOF
9173
cat confdefs.h >>conftest.$ac_ext
9174
cat >>conftest.$ac_ext <<_ACEOF
9175
/* end confdefs.h. */
9177
/* Override any gcc2 internal prototype to avoid an error. */
9181
/* We use char because int might match the return type of a gcc2
9182
builtin and then its argument prototype would still apply. */
9192
rm -f conftest.$ac_objext conftest$ac_exeext
9193
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9194
(eval $ac_link) 2>conftest.er1
9196
grep -v '^ *+' conftest.er1 >conftest.err
9198
cat conftest.err >&5
9199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200
(exit $ac_status); } &&
9201
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9202
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206
(exit $ac_status); }; } &&
9207
{ ac_try='test -s conftest$ac_exeext'
9208
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212
(exit $ac_status); }; }; then
9213
ac_cv_lib_svld_dlopen=yes
9215
echo "$as_me: failed program was:" >&5
9216
sed 's/^/| /' conftest.$ac_ext >&5
9218
ac_cv_lib_svld_dlopen=no
9220
rm -f conftest.err conftest.$ac_objext \
9221
conftest$ac_exeext conftest.$ac_ext
9222
LIBS=$ac_check_lib_save_LIBS
9224
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9225
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9226
if test $ac_cv_lib_svld_dlopen = yes; then
9227
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9229
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9230
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9231
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9232
echo $ECHO_N "(cached) $ECHO_C" >&6
9234
ac_check_lib_save_LIBS=$LIBS
9236
cat >conftest.$ac_ext <<_ACEOF
9239
cat confdefs.h >>conftest.$ac_ext
9240
cat >>conftest.$ac_ext <<_ACEOF
9241
/* end confdefs.h. */
9243
/* Override any gcc2 internal prototype to avoid an error. */
9247
/* We use char because int might match the return type of a gcc2
9248
builtin and then its argument prototype would still apply. */
9258
rm -f conftest.$ac_objext conftest$ac_exeext
9259
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9260
(eval $ac_link) 2>conftest.er1
9262
grep -v '^ *+' conftest.er1 >conftest.err
9264
cat conftest.err >&5
9265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266
(exit $ac_status); } &&
9267
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9268
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272
(exit $ac_status); }; } &&
9273
{ ac_try='test -s conftest$ac_exeext'
9274
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278
(exit $ac_status); }; }; then
9279
ac_cv_lib_dld_dld_link=yes
9281
echo "$as_me: failed program was:" >&5
9282
sed 's/^/| /' conftest.$ac_ext >&5
9284
ac_cv_lib_dld_dld_link=no
9286
rm -f conftest.err conftest.$ac_objext \
9287
conftest$ac_exeext conftest.$ac_ext
9288
LIBS=$ac_check_lib_save_LIBS
9290
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9291
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9292
if test $ac_cv_lib_dld_dld_link = yes; then
9293
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9314
if test "x$lt_cv_dlopen" != xno; then
9320
case $lt_cv_dlopen in
9322
save_CPPFLAGS="$CPPFLAGS"
9323
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9325
save_LDFLAGS="$LDFLAGS"
9326
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9329
LIBS="$lt_cv_dlopen_libs $LIBS"
9331
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9332
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9333
if test "${lt_cv_dlopen_self+set}" = set; then
9334
echo $ECHO_N "(cached) $ECHO_C" >&6
9336
if test "$cross_compiling" = yes; then :
9337
lt_cv_dlopen_self=cross
9339
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9340
lt_status=$lt_dlunknown
9341
cat > conftest.$ac_ext <<EOF
9342
#line 9342 "configure"
9343
#include "confdefs.h"
9352
# define LT_DLGLOBAL RTLD_GLOBAL
9355
# define LT_DLGLOBAL DL_GLOBAL
9357
# define LT_DLGLOBAL 0
9361
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9362
find out it does not work in some platform. */
9363
#ifndef LT_DLLAZY_OR_NOW
9365
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9368
# define LT_DLLAZY_OR_NOW DL_LAZY
9371
# define LT_DLLAZY_OR_NOW RTLD_NOW
9374
# define LT_DLLAZY_OR_NOW DL_NOW
9376
# define LT_DLLAZY_OR_NOW 0
9384
extern "C" void exit (int);
9387
void fnord() { int i=42;}
9390
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9391
int status = $lt_dlunknown;
9395
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9396
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9397
/* dlclose (self); */
9403
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9404
(eval $ac_link) 2>&5
9406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9408
(./conftest; exit; ) 2>/dev/null
9411
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9412
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9413
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9416
# compilation failed
9417
lt_cv_dlopen_self=no
9424
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9425
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9427
if test "x$lt_cv_dlopen_self" = xyes; then
9428
LDFLAGS="$LDFLAGS $link_static_flag"
9429
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9430
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9431
if test "${lt_cv_dlopen_self_static+set}" = set; then
9432
echo $ECHO_N "(cached) $ECHO_C" >&6
9434
if test "$cross_compiling" = yes; then :
9435
lt_cv_dlopen_self_static=cross
9437
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9438
lt_status=$lt_dlunknown
9439
cat > conftest.$ac_ext <<EOF
9440
#line 9440 "configure"
9441
#include "confdefs.h"
9450
# define LT_DLGLOBAL RTLD_GLOBAL
9453
# define LT_DLGLOBAL DL_GLOBAL
9455
# define LT_DLGLOBAL 0
9459
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9460
find out it does not work in some platform. */
9461
#ifndef LT_DLLAZY_OR_NOW
9463
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9466
# define LT_DLLAZY_OR_NOW DL_LAZY
9469
# define LT_DLLAZY_OR_NOW RTLD_NOW
9472
# define LT_DLLAZY_OR_NOW DL_NOW
9474
# define LT_DLLAZY_OR_NOW 0
9482
extern "C" void exit (int);
9485
void fnord() { int i=42;}
9488
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9489
int status = $lt_dlunknown;
9493
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9494
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9495
/* dlclose (self); */
9501
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9502
(eval $ac_link) 2>&5
9504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9506
(./conftest; exit; ) 2>/dev/null
9509
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9510
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9511
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9514
# compilation failed
9515
lt_cv_dlopen_self_static=no
9522
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9523
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9526
CPPFLAGS="$save_CPPFLAGS"
9527
LDFLAGS="$save_LDFLAGS"
9532
case $lt_cv_dlopen_self in
9533
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9534
*) enable_dlopen_self=unknown ;;
9537
case $lt_cv_dlopen_self_static in
9538
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9539
*) enable_dlopen_self_static=unknown ;;
9544
# Report which librarie types wil actually be built
9545
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9546
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9547
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9548
echo "${ECHO_T}$can_build_shared" >&6
9550
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9551
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9552
test "$can_build_shared" = "no" && enable_shared=no
9554
# On AIX, shared libraries and static libraries use the same namespace, and
9555
# are all built from PIC.
9558
test "$enable_shared" = yes && enable_static=no
9559
if test -n "$RANLIB"; then
9560
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9561
postinstall_cmds='$RANLIB $lib'
9566
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9567
test "$enable_shared" = yes && enable_static=no
9570
darwin* | rhapsody*)
9571
if test "$GCC" = yes; then
9572
archive_cmds_need_lc=no
9574
rhapsody* | darwin1.[012])
9575
allow_undefined_flag='-undefined suppress'
9578
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9579
allow_undefined_flag='-flat_namespace -undefined suppress'
9581
case ${MACOSX_DEPLOYMENT_TARGET} in
9583
allow_undefined_flag='-flat_namespace -undefined suppress'
9586
allow_undefined_flag='-undefined dynamic_lookup'
9592
output_verbose_link_cmd='echo'
9593
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9594
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9595
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9596
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9597
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9599
hardcode_automatic=yes
9600
hardcode_shlibpath_var=unsupported
9601
whole_archive_flag_spec='-all_load $convenience'
9602
link_all_deplibs=yes
9608
echo "$as_me:$LINENO: result: $enable_shared" >&5
9609
echo "${ECHO_T}$enable_shared" >&6
9611
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9612
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9613
# Make sure either enable_shared or enable_static is yes.
9614
test "$enable_shared" = yes || enable_static=yes
9615
echo "$as_me:$LINENO: result: $enable_static" >&5
9616
echo "${ECHO_T}$enable_static" >&6
9618
# The else clause should only fire when bootstrapping the
9619
# libtool distribution, otherwise you forgot to ship ltmain.sh
9620
# with your package, and you will get complaints that there are
9621
# no rules to generate ltmain.sh.
9622
if test -f "$ltmain"; then
9623
# See if we are running on zsh, and set the options which allow our commands through
9624
# without removal of \ escapes.
9625
if test -n "${ZSH_VERSION+set}" ; then
9626
setopt NO_GLOB_SUBST
9628
# Now quote all the things that may contain metacharacters while being
9629
# careful not to overquote the AC_SUBSTed values. We take copies of the
9630
# variables and quote the copies for generation of the libtool script.
9631
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9633
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9634
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9635
deplibs_check_method reload_flag reload_cmds need_locks \
9636
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9637
lt_cv_sys_global_symbol_to_c_name_address \
9638
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9639
old_postinstall_cmds old_postuninstall_cmds \
9643
lt_prog_compiler_wl \
9644
lt_prog_compiler_pic \
9645
lt_prog_compiler_static \
9646
lt_prog_compiler_no_builtin_flag \
9647
export_dynamic_flag_spec \
9648
thread_safe_flag_spec \
9649
whole_archive_flag_spec \
9650
enable_shared_with_static_runtimes \
9652
old_archive_from_new_cmds \
9657
compiler_lib_search_path \
9659
archive_expsym_cmds \
9661
postuninstall_cmds \
9662
old_archive_from_expsyms_cmds \
9663
allow_undefined_flag \
9665
export_symbols_cmds \
9666
hardcode_libdir_flag_spec \
9667
hardcode_libdir_flag_spec_ld \
9668
hardcode_libdir_separator \
9669
hardcode_automatic \
9671
module_expsym_cmds \
9672
lt_cv_prog_compiler_c_o \
9677
old_archive_cmds | \
9678
old_archive_from_new_cmds | \
9680
archive_expsym_cmds | \
9682
module_expsym_cmds | \
9683
old_archive_from_expsyms_cmds | \
9684
export_symbols_cmds | \
9685
extract_expsyms_cmds | reload_cmds | finish_cmds | \
9686
postinstall_cmds | postuninstall_cmds | \
9687
old_postinstall_cmds | old_postuninstall_cmds | \
9688
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9689
# Double-quote double-evaled strings.
9690
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9693
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9699
*'\$0 --fallback-echo"')
9700
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9705
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9707
{ echo "$as_me:$LINENO: creating $ofile" >&5
9708
echo "$as_me: creating $ofile" >&6;}
9710
cat <<__EOF__ >> "$cfgfile"
9713
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9714
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9715
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9717
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9718
# Free Software Foundation, Inc.
9720
# This file is part of GNU Libtool:
9721
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9723
# This program is free software; you can redistribute it and/or modify
9724
# it under the terms of the GNU General Public License as published by
9725
# the Free Software Foundation; either version 2 of the License, or
9726
# (at your option) any later version.
9728
# This program is distributed in the hope that it will be useful, but
9729
# WITHOUT ANY WARRANTY; without even the implied warranty of
9730
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9731
# General Public License for more details.
9733
# You should have received a copy of the GNU General Public License
9734
# along with this program; if not, write to the Free Software
9735
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9737
# As a special exception to the GNU General Public License, if you
9738
# distribute this file as part of a program that contains a
9739
# configuration script generated by Autoconf, you may include it under
9740
# the same distribution terms that you use for the rest of that program.
9742
# A sed program that does not truncate output.
9745
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9746
Xsed="$SED -e s/^X//"
9748
# The HP-UX ksh and POSIX shell print the target directory to stdout
9750
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9752
# The names of the tagged configurations supported by this script.
9755
# ### BEGIN LIBTOOL CONFIG
9757
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9759
# Shell to use when invoking shell scripts.
9762
# Whether or not to build shared libraries.
9763
build_libtool_libs=$enable_shared
9765
# Whether or not to build static libraries.
9766
build_old_libs=$enable_static
9768
# Whether or not to add -lc for building shared libraries.
9769
build_libtool_need_lc=$archive_cmds_need_lc
9771
# Whether or not to disallow shared libs when runtime libs are static
9772
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9774
# Whether or not to optimize for fast installation.
9775
fast_install=$enable_fast_install
9778
host_alias=$host_alias
9781
# An echo program that does not interpret backslashes.
9786
AR_FLAGS=$lt_AR_FLAGS
9791
# A language-specific compiler.
9794
# Is the compiler the GNU C compiler?
9800
# The linker used to build libraries.
9803
# Whether we need hard or soft links.
9806
# A BSD-compatible nm program.
9809
# A symbol stripping program
9812
# Used to examine libraries when file_magic_cmd begins "file"
9813
MAGIC_CMD=$MAGIC_CMD
9815
# Used on cygwin: DLL creation program.
9818
# Used on cygwin: object dumper.
9821
# Used on cygwin: assembler.
9824
# The name of the directory that contains temporary libtool files.
9827
# How to create reloadable object files.
9828
reload_flag=$lt_reload_flag
9829
reload_cmds=$lt_reload_cmds
9831
# How to pass a linker flag through the compiler.
9832
wl=$lt_lt_prog_compiler_wl
9834
# Object file suffix (normally "o").
9837
# Old archive suffix (normally "a").
9840
# Shared library suffix (normally ".so").
9841
shrext_cmds='$shrext_cmds'
9843
# Executable file suffix (normally "").
9846
# Additional compiler flags for building library objects.
9847
pic_flag=$lt_lt_prog_compiler_pic
9850
# What is the maximum length of a command?
9851
max_cmd_len=$lt_cv_sys_max_cmd_len
9853
# Does compiler simultaneously support -c and -o options?
9854
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9856
# Must we lock files when doing compilation ?
9857
need_locks=$lt_need_locks
9859
# Do we need the lib prefix for modules?
9860
need_lib_prefix=$need_lib_prefix
9862
# Do we need a version for libraries?
9863
need_version=$need_version
9865
# Whether dlopen is supported.
9866
dlopen_support=$enable_dlopen
9868
# Whether dlopen of programs is supported.
9869
dlopen_self=$enable_dlopen_self
9871
# Whether dlopen of statically linked programs is supported.
9872
dlopen_self_static=$enable_dlopen_self_static
9874
# Compiler flag to prevent dynamic linking.
9875
link_static_flag=$lt_lt_prog_compiler_static
9877
# Compiler flag to turn off builtin functions.
9878
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9880
# Compiler flag to allow reflexive dlopens.
9881
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9883
# Compiler flag to generate shared objects directly from archives.
9884
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9886
# Compiler flag to generate thread-safe objects.
9887
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9889
# Library versioning type.
9890
version_type=$version_type
9892
# Format of library name prefix.
9893
libname_spec=$lt_libname_spec
9895
# List of archive names. First name is the real one, the rest are links.
9896
# The last name is the one that the linker finds with -lNAME.
9897
library_names_spec=$lt_library_names_spec
9899
# The coded name of the library, if different from the real name.
9900
soname_spec=$lt_soname_spec
9902
# Commands used to build and install an old-style archive.
9904
old_archive_cmds=$lt_old_archive_cmds
9905
old_postinstall_cmds=$lt_old_postinstall_cmds
9906
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9908
# Create an old-style archive from a shared archive.
9909
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9911
# Create a temporary old-style archive to link instead of a shared archive.
9912
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9914
# Commands used to build and install a shared archive.
9915
archive_cmds=$lt_archive_cmds
9916
archive_expsym_cmds=$lt_archive_expsym_cmds
9917
postinstall_cmds=$lt_postinstall_cmds
9918
postuninstall_cmds=$lt_postuninstall_cmds
9920
# Commands used to build a loadable module (assumed same as above if empty)
9921
module_cmds=$lt_module_cmds
9922
module_expsym_cmds=$lt_module_expsym_cmds
9924
# Commands to strip libraries.
9925
old_striplib=$lt_old_striplib
9926
striplib=$lt_striplib
9928
# Dependencies to place before the objects being linked to create a
9930
predep_objects=$lt_predep_objects
9932
# Dependencies to place after the objects being linked to create a
9934
postdep_objects=$lt_postdep_objects
9936
# Dependencies to place before the objects being linked to create a
9940
# Dependencies to place after the objects being linked to create a
9942
postdeps=$lt_postdeps
9944
# The library search path used internally by the compiler when linking
9946
compiler_lib_search_path=$lt_compiler_lib_search_path
9948
# Method to check whether dependent libraries are shared objects.
9949
deplibs_check_method=$lt_deplibs_check_method
9951
# Command to use when deplibs_check_method == file_magic.
9952
file_magic_cmd=$lt_file_magic_cmd
9954
# Flag that allows shared libraries with undefined symbols to be built.
9955
allow_undefined_flag=$lt_allow_undefined_flag
9957
# Flag that forces no undefined symbols.
9958
no_undefined_flag=$lt_no_undefined_flag
9960
# Commands used to finish a libtool library installation in a directory.
9961
finish_cmds=$lt_finish_cmds
9963
# Same as above, but a single script fragment to be evaled but not shown.
9964
finish_eval=$lt_finish_eval
9966
# Take the output of nm and produce a listing of raw symbols and C names.
9967
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9969
# Transform the output of nm in a proper C declaration
9970
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9972
# Transform the output of nm in a C name address pair
9973
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9975
# This is the shared library runtime path variable.
9976
runpath_var=$runpath_var
9978
# This is the shared library path variable.
9979
shlibpath_var=$shlibpath_var
9981
# Is shlibpath searched before the hard-coded library search path?
9982
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9984
# How to hardcode a shared library path into an executable.
9985
hardcode_action=$hardcode_action
9987
# Whether we should hardcode library paths into libraries.
9988
hardcode_into_libs=$hardcode_into_libs
9990
# Flag to hardcode \$libdir into a binary during linking.
9991
# This must work even if \$libdir does not exist.
9992
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9994
# If ld is used when linking, flag to hardcode \$libdir into
9995
# a binary during linking. This must work even if \$libdir does
9997
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9999
# Whether we need a single -rpath flag with a separated argument.
10000
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10002
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10003
# resulting binary.
10004
hardcode_direct=$hardcode_direct
10006
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10007
# resulting binary.
10008
hardcode_minus_L=$hardcode_minus_L
10010
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10011
# the resulting binary.
10012
hardcode_shlibpath_var=$hardcode_shlibpath_var
10014
# Set to yes if building a shared library automatically hardcodes DIR into the library
10015
# and all subsequent libraries and executables linked against it.
10016
hardcode_automatic=$hardcode_automatic
10018
# Variables whose values should be saved in libtool wrapper scripts and
10019
# restored at relink time.
10020
variables_saved_for_relink="$variables_saved_for_relink"
10022
# Whether libtool must link a program against all its dependency libraries.
10023
link_all_deplibs=$link_all_deplibs
10025
# Compile-time system search path for libraries
10026
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10028
# Run-time system search path for libraries
10029
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10031
# Fix the shell variable \$srcfile for the compiler.
10032
fix_srcfile_path="$fix_srcfile_path"
10034
# Set to yes if exported symbols are required.
10035
always_export_symbols=$always_export_symbols
10037
# The commands to list exported symbols.
10038
export_symbols_cmds=$lt_export_symbols_cmds
10040
# The commands to extract the exported symbol list from a shared archive.
10041
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10043
# Symbols that should not be listed in the preloaded symbols.
10044
exclude_expsyms=$lt_exclude_expsyms
10046
# Symbols that must always be exported.
10047
include_expsyms=$lt_include_expsyms
10049
# ### END LIBTOOL CONFIG
10056
cat <<\EOF >> "$cfgfile"
10058
# AIX sometimes has problems with the GCC collect2 program. For some
10059
# reason, if we set the COLLECT_NAMES environment variable, the problems
10060
# vanish in a puff of smoke.
10061
if test "X${COLLECT_NAMES+set}" != Xset; then
10063
export COLLECT_NAMES
10069
# We use sed instead of cat because bash on DJGPP gets confused if
10070
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10071
# text mode, it properly converts lines to CR/LF. This bash problem
10072
# is reportedly fixed, but why not run on old versions too?
10073
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10075
mv -f "$cfgfile" "$ofile" || \
10076
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10080
# If there is no Makefile yet, we rely on a make rule to execute
10081
# `config.status --recheck' to rerun these tests and create the
10082
# libtool script then.
10083
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10084
if test -f "$ltmain_in"; then
10085
test -f Makefile && make "$ltmain"
10091
ac_cpp='$CXXCPP $CPPFLAGS'
10092
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10093
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10094
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10099
# Check whether --with-tags or --without-tags was given.
10100
if test "${with_tags+set}" = set; then
10101
withval="$with_tags"
10102
tagnames="$withval"
10105
if test -f "$ltmain" && test -n "$tagnames"; then
10106
if test ! -f "${ofile}"; then
10107
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10108
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10111
if test -z "$LTCC"; then
10112
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10113
if test -z "$LTCC"; then
10114
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10115
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10117
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10118
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10122
# Extract list of available tagged configurations in $ofile.
10123
# Note that this assumes the entire list is on one line.
10124
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10126
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10127
for tagname in $tagnames; do
10129
# Check whether tagname contains only valid characters
10130
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10132
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10133
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10134
{ (exit 1); exit 1; }; }
10138
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10140
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10141
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10142
{ (exit 1); exit 1; }; }
10145
# Update the list of available tags.
10146
if test -n "$tagname"; then
10147
echo appending configuration tag \"$tagname\" to $ofile
10151
if test -n "$CXX" && test "X$CXX" != "Xno"; then
10153
ac_cpp='$CXXCPP $CPPFLAGS'
10154
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10155
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10156
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10161
archive_cmds_need_lc_CXX=no
10162
allow_undefined_flag_CXX=
10163
always_export_symbols_CXX=no
10164
archive_expsym_cmds_CXX=
10165
export_dynamic_flag_spec_CXX=
10166
hardcode_direct_CXX=no
10167
hardcode_libdir_flag_spec_CXX=
10168
hardcode_libdir_flag_spec_ld_CXX=
10169
hardcode_libdir_separator_CXX=
10170
hardcode_minus_L_CXX=no
10171
hardcode_automatic_CXX=no
10173
module_expsym_cmds_CXX=
10174
link_all_deplibs_CXX=unknown
10175
old_archive_cmds_CXX=$old_archive_cmds
10176
no_undefined_flag_CXX=
10177
whole_archive_flag_spec_CXX=
10178
enable_shared_with_static_runtimes_CXX=no
10180
# Dependencies to place before and after the object being linked:
10181
predep_objects_CXX=
10182
postdep_objects_CXX=
10185
compiler_lib_search_path_CXX=
10187
# Source file extension for C++ test sources.
10190
# Object file extension for compiled C++ test sources.
10194
# Code to be used in simple compile tests
10195
lt_simple_compile_test_code="int some_variable = 0;\n"
10197
# Code to be used in simple link tests
10198
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10200
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10202
# If no C compiler was specified, use CC.
10205
# Allow CC to be a program name with arguments.
10209
# Allow CC to be a program name with arguments.
10214
lt_save_with_gnu_ld=$with_gnu_ld
10215
lt_save_path_LD=$lt_cv_path_LD
10216
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10217
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10219
unset lt_cv_prog_gnu_ld
10221
if test -n "${lt_cv_path_LDCXX+set}"; then
10222
lt_cv_path_LD=$lt_cv_path_LDCXX
10224
unset lt_cv_path_LD
10226
test -z "${LDCXX+set}" || LD=$LDCXX
10230
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10232
# We don't want -fno-exception wen compiling C++ code, so set the
10233
# no_builtin_flag separately
10234
if test "$GXX" = yes; then
10235
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10237
lt_prog_compiler_no_builtin_flag_CXX=
10240
if test "$GXX" = yes; then
10241
# Set up default GNU C++ configuration
10244
# Check whether --with-gnu-ld or --without-gnu-ld was given.
10245
if test "${with_gnu_ld+set}" = set; then
10246
withval="$with_gnu_ld"
10247
test "$withval" = no || with_gnu_ld=yes
10252
if test "$GCC" = yes; then
10253
# Check if gcc -print-prog-name=ld gives a path.
10254
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10255
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10258
# gcc leaves a trailing carriage return which upsets mingw
10259
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10261
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10264
# Accept absolute paths.
10266
re_direlt='/[^/][^/]*/\.\./'
10267
# Canonicalize the pathname of ld
10268
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10269
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10270
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10272
test -z "$LD" && LD="$ac_prog"
10275
# If it fails, then pretend we aren't using GCC.
10279
# If it is relative, then search for the first ld in PATH.
10280
with_gnu_ld=unknown
10283
elif test "$with_gnu_ld" = yes; then
10284
echo "$as_me:$LINENO: checking for GNU ld" >&5
10285
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10287
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10288
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10290
if test "${lt_cv_path_LD+set}" = set; then
10291
echo $ECHO_N "(cached) $ECHO_C" >&6
10293
if test -z "$LD"; then
10294
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10295
for ac_dir in $PATH; do
10297
test -z "$ac_dir" && ac_dir=.
10298
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10299
lt_cv_path_LD="$ac_dir/$ac_prog"
10300
# Check to see if the program is GNU ld. I'd rather use --version,
10301
# but apparently some GNU ld's only accept -v.
10302
# Break only if it was the GNU/non-GNU ld that we prefer.
10303
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10304
*GNU* | *'with BFD'*)
10305
test "$with_gnu_ld" != no && break
10308
test "$with_gnu_ld" != yes && break
10315
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10319
LD="$lt_cv_path_LD"
10320
if test -n "$LD"; then
10321
echo "$as_me:$LINENO: result: $LD" >&5
10322
echo "${ECHO_T}$LD" >&6
10324
echo "$as_me:$LINENO: result: no" >&5
10325
echo "${ECHO_T}no" >&6
10327
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10328
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10329
{ (exit 1); exit 1; }; }
10330
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10331
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10332
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10333
echo $ECHO_N "(cached) $ECHO_C" >&6
10335
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
10336
case `$LD -v 2>&1 </dev/null` in
10337
*GNU* | *'with BFD'*)
10338
lt_cv_prog_gnu_ld=yes
10341
lt_cv_prog_gnu_ld=no
10345
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10346
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10347
with_gnu_ld=$lt_cv_prog_gnu_ld
10351
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10352
# archiving commands below assume that GNU ld is being used.
10353
if test "$with_gnu_ld" = yes; then
10354
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10355
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'
10357
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10358
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10360
# If archive_cmds runs LD, not CC, wlarc should be empty
10361
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10362
# investigate it a little bit more. (MM)
10365
# ancient GNU ld didn't support --whole-archive et. al.
10366
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10367
grep 'no-whole-archive' > /dev/null; then
10368
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10370
whole_archive_flag_spec_CXX=
10376
# A generic and very simple default shared library creation
10377
# command for GNU C++ for the case where it uses the native
10378
# linker, instead of GNU ld. If possible, this setting should
10379
# overridden to take advantage of the native linker features on
10380
# the platform it is being used on.
10381
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10384
# Commands to make compiler produce verbose output that lists
10385
# what "hidden" libraries, object files and flags are used when
10386
# linking a shared library.
10387
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10395
# PORTME: fill in a description of your system's C++ link characteristics
10396
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10397
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10401
# FIXME: insert proper C++ library support
10405
if test "$host_cpu" = ia64; then
10406
# On IA64, the linker does run time linking by default, so we don't
10407
# have to do anything special.
10408
aix_use_runtimelinking=no
10409
exp_sym_flag='-Bexport'
10412
aix_use_runtimelinking=no
10414
# Test if we are trying to use run time linking or normal
10415
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10416
# need to do runtime linking.
10417
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10418
for ld_flag in $LDFLAGS; do
10421
aix_use_runtimelinking=yes
10428
exp_sym_flag='-bexport'
10429
no_entry_flag='-bnoentry'
10432
# When large executables or shared objects are built, AIX ld can
10433
# have problems creating the table of contents. If linking a library
10434
# or program results in "error TOC overflow" add -mminimal-toc to
10435
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10436
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10438
archive_cmds_CXX=''
10439
hardcode_direct_CXX=yes
10440
hardcode_libdir_separator_CXX=':'
10441
link_all_deplibs_CXX=yes
10443
if test "$GXX" = yes; then
10444
case $host_os in aix4.012|aix4.012.*)
10445
# We only want to do this on AIX 4.2 and lower, the check
10446
# below for broken collect2 doesn't work under 4.3+
10447
collect2name=`${CC} -print-prog-name=collect2`
10448
if test -f "$collect2name" && \
10449
strings "$collect2name" | grep resolve_lib_name >/dev/null
10451
# We have reworked collect2
10452
hardcode_direct_CXX=yes
10454
# We have old collect2
10455
hardcode_direct_CXX=unsupported
10456
# It fails to find uninstalled libraries when the uninstalled
10457
# path is not listed in the libpath. Setting hardcode_minus_L
10458
# to unsupported forces relinking
10459
hardcode_minus_L_CXX=yes
10460
hardcode_libdir_flag_spec_CXX='-L$libdir'
10461
hardcode_libdir_separator_CXX=
10464
shared_flag='-shared'
10467
if test "$host_cpu" = ia64; then
10468
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10469
# chokes on -Wl,-G. The following line is correct:
10472
if test "$aix_use_runtimelinking" = yes; then
10473
shared_flag='${wl}-G'
10475
shared_flag='${wl}-bM:SRE'
10480
# It seems that -bexpall does not export symbols beginning with
10481
# underscore (_), so it is better to generate a list of symbols to export.
10482
always_export_symbols_CXX=yes
10483
if test "$aix_use_runtimelinking" = yes; then
10484
# Warning - without using the other runtime loading flags (-brtl),
10485
# -berok will link without error, but may produce a broken library.
10486
allow_undefined_flag_CXX='-berok'
10487
# Determine the default libpath from the value encoded in an empty executable.
10488
cat >conftest.$ac_ext <<_ACEOF
10491
cat confdefs.h >>conftest.$ac_ext
10492
cat >>conftest.$ac_ext <<_ACEOF
10493
/* end confdefs.h. */
10503
rm -f conftest.$ac_objext conftest$ac_exeext
10504
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10505
(eval $ac_link) 2>conftest.er1
10507
grep -v '^ *+' conftest.er1 >conftest.err
10509
cat conftest.err >&5
10510
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511
(exit $ac_status); } &&
10512
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10513
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514
(eval $ac_try) 2>&5
10516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517
(exit $ac_status); }; } &&
10518
{ ac_try='test -s conftest$ac_exeext'
10519
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520
(eval $ac_try) 2>&5
10522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523
(exit $ac_status); }; }; then
10525
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10527
# Check for a 64-bit object if we didn't find anything.
10528
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; }
10531
echo "$as_me: failed program was:" >&5
10532
sed 's/^/| /' conftest.$ac_ext >&5
10535
rm -f conftest.err conftest.$ac_objext \
10536
conftest$ac_exeext conftest.$ac_ext
10537
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10539
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10541
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"
10543
if test "$host_cpu" = ia64; then
10544
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10545
allow_undefined_flag_CXX="-z nodefs"
10546
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"
10548
# Determine the default libpath from the value encoded in an empty executable.
10549
cat >conftest.$ac_ext <<_ACEOF
10552
cat confdefs.h >>conftest.$ac_ext
10553
cat >>conftest.$ac_ext <<_ACEOF
10554
/* end confdefs.h. */
10564
rm -f conftest.$ac_objext conftest$ac_exeext
10565
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10566
(eval $ac_link) 2>conftest.er1
10568
grep -v '^ *+' conftest.er1 >conftest.err
10570
cat conftest.err >&5
10571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572
(exit $ac_status); } &&
10573
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10574
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575
(eval $ac_try) 2>&5
10577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578
(exit $ac_status); }; } &&
10579
{ ac_try='test -s conftest$ac_exeext'
10580
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581
(eval $ac_try) 2>&5
10583
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584
(exit $ac_status); }; }; then
10586
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10588
# Check for a 64-bit object if we didn't find anything.
10589
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; }
10592
echo "$as_me: failed program was:" >&5
10593
sed 's/^/| /' conftest.$ac_ext >&5
10596
rm -f conftest.err conftest.$ac_objext \
10597
conftest$ac_exeext conftest.$ac_ext
10598
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10600
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10601
# Warning - without using the other run time loading flags,
10602
# -berok will link without error, but may produce a broken library.
10603
no_undefined_flag_CXX=' ${wl}-bernotok'
10604
allow_undefined_flag_CXX=' ${wl}-berok'
10605
# -bexpall does not export symbols beginning with underscore (_)
10606
always_export_symbols_CXX=yes
10607
# Exported symbols can be pulled into shared objects from archives
10608
whole_archive_flag_spec_CXX=' '
10609
archive_cmds_need_lc_CXX=yes
10610
# This is similar to how AIX traditionally builds it's shared libraries.
10611
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'
10616
case $cc_basename in
10618
# FIXME: insert proper C++ library support
10624
cygwin* | mingw* | pw32*)
10625
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10626
# as there is no search path for DLLs.
10627
hardcode_libdir_flag_spec_CXX='-L$libdir'
10628
allow_undefined_flag_CXX=unsupported
10629
always_export_symbols_CXX=no
10630
enable_shared_with_static_runtimes_CXX=yes
10632
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10633
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'
10634
# If the export-symbols file already is a .def file (1st line
10635
# is EXPORTS), use it as is; otherwise, prepend...
10636
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10637
cp $export_symbols $output_objdir/$soname.def;
10639
echo EXPORTS > $output_objdir/$soname.def;
10640
cat $export_symbols >> $output_objdir/$soname.def;
10642
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10648
darwin* | rhapsody*)
10649
if test "$GXX" = yes; then
10650
archive_cmds_need_lc_CXX=no
10652
rhapsody* | darwin1.[012])
10653
allow_undefined_flag_CXX='-undefined suppress'
10656
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10657
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10659
case ${MACOSX_DEPLOYMENT_TARGET} in
10661
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10664
allow_undefined_flag_CXX='-undefined dynamic_lookup'
10670
lt_int_apple_cc_single_mod=no
10671
output_verbose_link_cmd='echo'
10672
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10673
lt_int_apple_cc_single_mod=yes
10675
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10676
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10678
archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10680
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10682
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10683
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10684
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10686
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10688
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10689
hardcode_direct_CXX=no
10690
hardcode_automatic_CXX=yes
10691
hardcode_shlibpath_var_CXX=unsupported
10692
whole_archive_flag_spec_CXX='-all_load $convenience'
10693
link_all_deplibs_CXX=yes
10700
case $cc_basename in
10702
# FIXME: insert proper C++ library support
10706
# Green Hills C++ Compiler
10707
# FIXME: insert proper C++ library support
10711
# FIXME: insert proper C++ library support
10717
# C++ shared libraries reported to be fairly broken before switch to ELF
10721
archive_cmds_need_lc_CXX=no
10723
freebsd* | kfreebsd*-gnu)
10724
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10731
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10732
hardcode_libdir_separator_CXX=:
10733
export_dynamic_flag_spec_CXX='${wl}-E'
10734
hardcode_direct_CXX=yes
10735
hardcode_minus_L_CXX=yes # Not in the search PATH,
10736
# but as the default
10737
# location of the library.
10739
case $cc_basename in
10741
# FIXME: insert proper C++ library support
10745
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'
10746
# Commands to make compiler produce verbose output that lists
10747
# what "hidden" libraries, object files and flags are used when
10748
# linking a shared library.
10750
# There doesn't appear to be a way to prevent this compiler from
10751
# explicitly linking system object files so we need to strip them
10752
# from the output so that they don't get included in the library
10754
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10757
if test "$GXX" = yes; then
10758
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'
10760
# FIXME: insert proper C++ library support
10767
if test $with_gnu_ld = no; then
10768
case "$host_cpu" in
10770
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10771
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10772
hardcode_libdir_separator_CXX=:
10775
hardcode_libdir_flag_spec_CXX='-L$libdir'
10778
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10779
hardcode_libdir_separator_CXX=:
10780
export_dynamic_flag_spec_CXX='${wl}-E'
10784
case "$host_cpu" in
10786
hardcode_direct_CXX=no
10787
hardcode_shlibpath_var_CXX=no
10790
hardcode_direct_CXX=no
10791
hardcode_shlibpath_var_CXX=no
10792
hardcode_minus_L_CXX=yes # Not in the search PATH,
10793
# but as the default
10794
# location of the library.
10797
hardcode_direct_CXX=yes
10798
hardcode_minus_L_CXX=yes # Not in the search PATH,
10799
# but as the default
10800
# location of the library.
10804
case $cc_basename in
10806
# FIXME: insert proper C++ library support
10810
case "$host_cpu" in
10812
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10815
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10818
# Commands to make compiler produce verbose output that lists
10819
# what "hidden" libraries, object files and flags are used when
10820
# linking a shared library.
10822
# There doesn't appear to be a way to prevent this compiler from
10823
# explicitly linking system object files so we need to strip them
10824
# from the output so that they don't get included in the library
10826
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10829
if test "$GXX" = yes; then
10830
if test $with_gnu_ld = no; then
10831
case "$host_cpu" in
10833
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10836
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'
10841
# FIXME: insert proper C++ library support
10848
case $cc_basename in
10851
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'
10853
# Archives containing C++ object files must be created using
10854
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
10855
# necessary to make sure instantiated templates are included
10857
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10860
if test "$GXX" = yes; then
10861
if test "$with_gnu_ld" = no; then
10862
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'
10864
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` -o $lib'
10867
link_all_deplibs_CXX=yes
10870
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10871
hardcode_libdir_separator_CXX=:
10874
case $cc_basename in
10876
# Kuck and Associates, Inc. (KAI) C++ Compiler
10878
# KCC will only create a shared library if the output file
10879
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10880
# to its proper name (with version) after linking.
10881
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10882
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10883
# Commands to make compiler produce verbose output that lists
10884
# what "hidden" libraries, object files and flags are used when
10885
# linking a shared library.
10887
# There doesn't appear to be a way to prevent this compiler from
10888
# explicitly linking system object files so we need to strip them
10889
# from the output so that they don't get included in the library
10891
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10893
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10894
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10896
# Archives containing C++ object files must be created using
10897
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10898
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10903
archive_cmds_need_lc_CXX=no
10904
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10905
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10906
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10907
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10908
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10912
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10913
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'
10915
runpath_var=LD_RUN_PATH
10916
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10917
hardcode_libdir_separator_CXX=:
10919
# Commands to make compiler produce verbose output that lists
10920
# what "hidden" libraries, object files and flags are used when
10921
# linking a shared library.
10923
# There doesn't appear to be a way to prevent this compiler from
10924
# explicitly linking system object files so we need to strip them
10925
# from the output so that they don't get included in the library
10927
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'
10932
# FIXME: insert proper C++ library support
10936
# FIXME: insert proper C++ library support
10940
case $cc_basename in
10942
# FIXME: insert proper C++ library support
10946
# FIXME: insert proper C++ library support
10951
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10952
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10953
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10955
hardcode_libdir_flag_spec_CXX='-R$libdir'
10956
hardcode_direct_CXX=yes
10957
hardcode_shlibpath_var_CXX=no
10959
# Workaround some broken pre-1.5 toolchains
10960
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10963
case $cc_basename in
10965
# Kuck and Associates, Inc. (KAI) C++ Compiler
10967
# KCC will only create a shared library if the output file
10968
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10969
# to its proper name (with version) after linking.
10970
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10972
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10973
hardcode_libdir_separator_CXX=:
10975
# Archives containing C++ object files must be created using
10976
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10977
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10981
# Rational C++ 2.4.1
10982
# FIXME: insert proper C++ library support
10986
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10987
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'
10989
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10990
hardcode_libdir_separator_CXX=:
10992
# Commands to make compiler produce verbose output that lists
10993
# what "hidden" libraries, object files and flags are used when
10994
# linking a shared library.
10996
# There doesn't appear to be a way to prevent this compiler from
10997
# explicitly linking system object files so we need to strip them
10998
# from the output so that they don't get included in the library
11000
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'
11003
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11004
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11005
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'
11007
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11008
hardcode_libdir_separator_CXX=:
11010
# Commands to make compiler produce verbose output that lists
11011
# what "hidden" libraries, object files and flags are used when
11012
# linking a shared library.
11013
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11016
# FIXME: insert proper C++ library support
11023
case $cc_basename in
11025
# Kuck and Associates, Inc. (KAI) C++ Compiler
11027
# KCC will only create a shared library if the output file
11028
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11029
# to its proper name (with version) after linking.
11030
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11032
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11033
hardcode_libdir_separator_CXX=:
11035
# Archives containing C++ object files must be created using
11036
# the KAI C++ compiler.
11037
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11040
# Rational C++ 2.4.1
11041
# FIXME: insert proper C++ library support
11045
allow_undefined_flag_CXX=' -expect_unresolved \*'
11046
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'
11047
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11048
echo "-hidden">> $lib.exp~
11049
$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~
11052
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11053
hardcode_libdir_separator_CXX=:
11055
# Commands to make compiler produce verbose output that lists
11056
# what "hidden" libraries, object files and flags are used when
11057
# linking a shared library.
11059
# There doesn't appear to be a way to prevent this compiler from
11060
# explicitly linking system object files so we need to strip them
11061
# from the output so that they don't get included in the library
11063
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'
11066
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11067
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11068
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'
11070
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11071
hardcode_libdir_separator_CXX=:
11073
# Commands to make compiler produce verbose output that lists
11074
# what "hidden" libraries, object files and flags are used when
11075
# linking a shared library.
11076
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11079
# FIXME: insert proper C++ library support
11086
# FIXME: insert proper C++ library support
11090
archive_cmds_need_lc_CXX=no
11091
case $cc_basename in
11093
# FIXME: insert proper C++ library support
11097
# FIXME: insert proper C++ library support
11103
case $cc_basename in
11106
# FIXME: insert proper C++ library support
11111
# FIXME: insert proper C++ library support
11115
# FIXME: insert proper C++ library support
11121
case $cc_basename in
11123
# Sun C++ 4.2, 5.x and Centerline C++
11124
no_undefined_flag_CXX=' -zdefs'
11125
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11126
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11127
$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'
11129
hardcode_libdir_flag_spec_CXX='-R$libdir'
11130
hardcode_shlibpath_var_CXX=no
11132
solaris2.0-5 | solaris2.0-5.*) ;;
11134
# The C++ compiler is used as linker so we must use $wl
11135
# flag to pass the commands to the underlying system
11137
# Supported since Solaris 2.6 (maybe 2.5.1?)
11138
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11141
link_all_deplibs_CXX=yes
11143
# Commands to make compiler produce verbose output that lists
11144
# what "hidden" libraries, object files and flags are used when
11145
# linking a shared library.
11147
# There doesn't appear to be a way to prevent this compiler from
11148
# explicitly linking system object files so we need to strip them
11149
# from the output so that they don't get included in the library
11151
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11153
# Archives containing C++ object files must be created using
11154
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11155
# necessary to make sure instantiated templates are included
11157
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11160
# Green Hills C++ Compiler
11161
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11163
# The C++ compiler must be used to create the archive.
11164
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11167
# GNU C++ compiler with Solaris linker
11168
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11169
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11170
if $CC --version | grep -v '^2\.7' > /dev/null; then
11171
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11172
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11173
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11175
# Commands to make compiler produce verbose output that lists
11176
# what "hidden" libraries, object files and flags are used when
11177
# linking a shared library.
11178
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11180
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11182
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11183
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11184
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11186
# Commands to make compiler produce verbose output that lists
11187
# what "hidden" libraries, object files and flags are used when
11188
# linking a shared library.
11189
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11192
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11197
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11198
archive_cmds_need_lc_CXX=no
11201
case $cc_basename in
11203
# NonStop-UX NCC 3.20
11204
# FIXME: insert proper C++ library support
11208
# FIXME: insert proper C++ library support
11214
# FIXME: insert proper C++ library support
11218
# FIXME: insert proper C++ library support
11222
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11223
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11224
test "$ld_shlibs_CXX" = no && can_build_shared=no
11230
cat > conftest.$ac_ext <<EOF
11234
Foo (void) { a = 0; }
11240
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11241
(eval $ac_compile) 2>&5
11243
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244
(exit $ac_status); }; then
11245
# Parse the compiler output and extract the necessary
11246
# objects, libraries and library flags.
11248
# Sentinel used to keep track of whether or not we are before
11249
# the conftest object file.
11250
pre_test_object_deps_done=no
11252
# The `*' in the case matches for architectures that use `case' in
11253
# $output_verbose_cmd can trigger glob expansion during the loop
11254
# eval without this substitution.
11255
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11257
for p in `eval $output_verbose_link_cmd`; do
11261
# Some compilers place space between "-{L,R}" and the path.
11262
# Remove the space.
11263
if test $p = "-L" \
11264
|| test $p = "-R"; then
11271
if test "$pre_test_object_deps_done" = no; then
11274
# Internal compiler library paths should come after those
11275
# provided the user. The postdeps already come after the
11276
# user supplied libs so there is no need to process them.
11277
if test -z "$compiler_lib_search_path_CXX"; then
11278
compiler_lib_search_path_CXX="${prev}${p}"
11280
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11283
# The "-l" case would never come before the object being
11284
# linked, so don't bother handling this case.
11287
if test -z "$postdeps_CXX"; then
11288
postdeps_CXX="${prev}${p}"
11290
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11296
# This assumes that the test object file only shows up
11297
# once in the compiler output.
11298
if test "$p" = "conftest.$objext"; then
11299
pre_test_object_deps_done=yes
11303
if test "$pre_test_object_deps_done" = no; then
11304
if test -z "$predep_objects_CXX"; then
11305
predep_objects_CXX="$p"
11307
predep_objects_CXX="$predep_objects_CXX $p"
11310
if test -z "$postdep_objects_CXX"; then
11311
postdep_objects_CXX="$p"
11313
postdep_objects_CXX="$postdep_objects_CXX $p"
11318
*) ;; # Ignore the rest.
11326
echo "libtool.m4: error: problem compiling CXX test program"
11329
$rm -f confest.$objext
11331
case " $postdeps_CXX " in
11332
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11335
lt_prog_compiler_wl_CXX=
11336
lt_prog_compiler_pic_CXX=
11337
lt_prog_compiler_static_CXX=
11339
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11340
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11342
# C++ specific cases for pic, static, wl, etc.
11343
if test "$GXX" = yes; then
11344
lt_prog_compiler_wl_CXX='-Wl,'
11345
lt_prog_compiler_static_CXX='-static'
11349
# All AIX code is PIC.
11350
if test "$host_cpu" = ia64; then
11351
# AIX 5 now supports IA64 processor
11352
lt_prog_compiler_static_CXX='-Bstatic'
11356
# FIXME: we need at least 68020 code to build shared libraries, but
11357
# adding the `-m68020' flag to GCC prevents building anything better,
11359
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11361
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11362
# PIC is the default for these OSes.
11364
mingw* | os2* | pw32*)
11365
# This hack is so that the source file can tell whether it is being
11366
# built for inclusion in a dll (and should export symbols for example).
11367
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11369
darwin* | rhapsody*)
11370
# PIC is the default on this platform
11371
# Common symbols not allowed in MH_DYLIB files
11372
lt_prog_compiler_pic_CXX='-fno-common'
11375
# DJGPP does not support shared libraries at all
11376
lt_prog_compiler_pic_CXX=
11379
if test -d /usr/nec; then
11380
lt_prog_compiler_pic_CXX=-Kconform_pic
11384
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11385
# not for PA HP-UX.
11386
case "$host_cpu" in
11390
lt_prog_compiler_pic_CXX='-fPIC'
11395
lt_prog_compiler_pic_CXX='-fPIC'
11401
# All AIX code is PIC.
11402
if test "$host_cpu" = ia64; then
11403
# AIX 5 now supports IA64 processor
11404
lt_prog_compiler_static_CXX='-Bstatic'
11406
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11410
case $cc_basename in
11412
# Green Hills C++ Compiler
11413
# _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"
11418
case $cc_basename in
11420
lt_prog_compiler_pic_CXX='-KPIC'
11423
# Green Hills C++ Compiler
11424
lt_prog_compiler_pic_CXX='-pic'
11430
freebsd* | kfreebsd*-gnu)
11431
# FreeBSD uses GNU C++
11433
hpux9* | hpux10* | hpux11*)
11434
case $cc_basename in
11436
lt_prog_compiler_wl_CXX='-Wl,'
11437
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11438
if test "$host_cpu" != ia64; then
11439
lt_prog_compiler_pic_CXX='+Z'
11443
lt_prog_compiler_wl_CXX='-Wl,'
11444
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11445
case "$host_cpu" in
11450
lt_prog_compiler_pic_CXX='+Z'
11458
irix5* | irix6* | nonstopux*)
11459
case $cc_basename in
11461
lt_prog_compiler_wl_CXX='-Wl,'
11462
lt_prog_compiler_static_CXX='-non_shared'
11463
# CC pic flag -KPIC is the default.
11470
case $cc_basename in
11473
lt_prog_compiler_wl_CXX='--backend -Wl,'
11474
lt_prog_compiler_pic_CXX='-fPIC'
11478
lt_prog_compiler_wl_CXX='-Wl,'
11479
lt_prog_compiler_pic_CXX='-KPIC'
11480
lt_prog_compiler_static_CXX='-static'
11484
# Make sure the PIC flag is empty. It appears that all Alpha
11485
# Linux and Compaq Tru64 Unix objects are PIC.
11486
lt_prog_compiler_pic_CXX=
11487
lt_prog_compiler_static_CXX='-non_shared'
11498
case $cc_basename in
11500
lt_prog_compiler_pic_CXX='-W c,exportall'
11506
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11508
osf3* | osf4* | osf5*)
11509
case $cc_basename in
11511
lt_prog_compiler_wl_CXX='--backend -Wl,'
11514
# Rational C++ 2.4.1
11515
lt_prog_compiler_pic_CXX='-pic'
11518
# Digital/Compaq C++
11519
lt_prog_compiler_wl_CXX='-Wl,'
11520
# Make sure the PIC flag is empty. It appears that all Alpha
11521
# Linux and Compaq Tru64 Unix objects are PIC.
11522
lt_prog_compiler_pic_CXX=
11523
lt_prog_compiler_static_CXX='-non_shared'
11532
case $cc_basename in
11534
lt_prog_compiler_pic_CXX='-fPIC'
11541
case $cc_basename in
11543
# Sun C++ 4.2, 5.x and Centerline C++
11544
lt_prog_compiler_pic_CXX='-KPIC'
11545
lt_prog_compiler_static_CXX='-Bstatic'
11546
lt_prog_compiler_wl_CXX='-Qoption ld '
11549
# Green Hills C++ Compiler
11550
lt_prog_compiler_pic_CXX='-PIC'
11557
case $cc_basename in
11560
lt_prog_compiler_pic_CXX='-pic'
11561
lt_prog_compiler_static_CXX='-Bstatic'
11565
lt_prog_compiler_pic_CXX='-pic'
11572
case $cc_basename in
11574
# NonStop-UX NCC 3.20
11575
lt_prog_compiler_pic_CXX='-KPIC'
11586
lt_prog_compiler_can_build_shared_CXX=no
11591
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11592
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11595
# Check to make sure the PIC flag actually works.
11597
if test -n "$lt_prog_compiler_pic_CXX"; then
11599
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11600
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11601
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11602
echo $ECHO_N "(cached) $ECHO_C" >&6
11604
lt_prog_compiler_pic_works_CXX=no
11605
ac_outfile=conftest.$ac_objext
11606
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11607
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11608
# Insert the option either (1) after the last *FLAGS variable, or
11609
# (2) before a word containing "conftest.", or (3) at the end.
11610
# Note that $ac_compile itself does not contain backslashes and begins
11611
# with a dollar sign (not a hyphen), so the echo should work correctly.
11612
# The option is referenced via a variable to avoid confusing sed.
11613
lt_compile=`echo "$ac_compile" | $SED \
11614
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11615
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11616
-e 's:$: $lt_compiler_flag:'`
11617
(eval echo "\"\$as_me:11617: $lt_compile\"" >&5)
11618
(eval "$lt_compile" 2>conftest.err)
11620
cat conftest.err >&5
11621
echo "$as_me:11621: \$? = $ac_status" >&5
11622
if (exit $ac_status) && test -s "$ac_outfile"; then
11623
# The compiler can only warn and ignore the option if not recognized
11624
# So say no if there are warnings
11625
if test ! -s conftest.err; then
11626
lt_prog_compiler_pic_works_CXX=yes
11632
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11633
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11635
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11636
case $lt_prog_compiler_pic_CXX in
11638
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11641
lt_prog_compiler_pic_CXX=
11642
lt_prog_compiler_can_build_shared_CXX=no
11647
# For platforms which do not support PIC, -DPIC is meaningless:
11649
lt_prog_compiler_pic_CXX=
11652
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11656
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11657
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11658
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11659
echo $ECHO_N "(cached) $ECHO_C" >&6
11661
lt_cv_prog_compiler_c_o_CXX=no
11662
$rm -r conftest 2>/dev/null
11666
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11668
lt_compiler_flag="-o out/conftest2.$ac_objext"
11669
# Insert the option either (1) after the last *FLAGS variable, or
11670
# (2) before a word containing "conftest.", or (3) at the end.
11671
# Note that $ac_compile itself does not contain backslashes and begins
11672
# with a dollar sign (not a hyphen), so the echo should work correctly.
11673
lt_compile=`echo "$ac_compile" | $SED \
11674
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11675
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11676
-e 's:$: $lt_compiler_flag:'`
11677
(eval echo "\"\$as_me:11677: $lt_compile\"" >&5)
11678
(eval "$lt_compile" 2>out/conftest.err)
11680
cat out/conftest.err >&5
11681
echo "$as_me:11681: \$? = $ac_status" >&5
11682
if (exit $ac_status) && test -s out/conftest2.$ac_objext
11684
# The compiler can only warn and ignore the option if not recognized
11685
# So say no if there are warnings
11686
if test ! -s out/conftest.err; then
11687
lt_cv_prog_compiler_c_o_CXX=yes
11692
# SGI C++ compiler will create directory out/ii_files/ for
11693
# template instantiation
11694
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11695
$rm out/* && rmdir out
11701
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11702
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11705
hard_links="nottested"
11706
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11707
# do not overwrite the value of need_locks provided by the user
11708
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11709
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11712
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11714
ln conftest.a conftest.b 2>&5 || hard_links=no
11715
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11716
echo "$as_me:$LINENO: result: $hard_links" >&5
11717
echo "${ECHO_T}$hard_links" >&6
11718
if test "$hard_links" = no; then
11719
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11720
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11727
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11728
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11730
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11733
# If we're using GNU nm, then we don't want the "-C" option.
11734
# -C means demangle to AIX nm, but means don't demangle with GNU nm
11735
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11736
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'
11738
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'
11742
export_symbols_cmds_CXX="$ltdll_cmds"
11745
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11748
link_all_deplibs_CXX=no
11751
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11755
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11756
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11757
test "$ld_shlibs_CXX" = no && can_build_shared=no
11759
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11760
if test "$GCC" = yes; then
11761
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11765
# Do we need to explicitly link libc?
11767
case "x$archive_cmds_need_lc_CXX" in
11769
# Assume -lc should be added
11770
archive_cmds_need_lc_CXX=yes
11772
if test "$enable_shared" = yes && test "$GCC" = yes; then
11773
case $archive_cmds_CXX in
11775
# FIXME: we may have to deal with multi-command sequences.
11778
# Test whether the compiler implicitly links with -lc since on some
11779
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11780
# to ld, don't add -lc before -lgcc.
11781
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11782
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11784
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11786
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11787
(eval $ac_compile) 2>&5
11789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790
(exit $ac_status); } 2>conftest.err; then
11793
libobjs=conftest.$ac_objext
11795
wl=$lt_prog_compiler_wl_CXX
11801
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11802
allow_undefined_flag_CXX=
11803
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11804
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11806
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807
(exit $ac_status); }
11809
archive_cmds_need_lc_CXX=no
11811
archive_cmds_need_lc_CXX=yes
11813
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11815
cat conftest.err 1>&5
11818
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11819
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11826
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11827
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11828
library_names_spec=
11829
libname_spec='lib$name'
11833
postuninstall_cmds=
11837
shlibpath_overrides_runpath=unknown
11839
dynamic_linker="$host_os ld.so"
11840
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11841
if test "$GCC" = yes; then
11842
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11843
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11844
# if the path contains ";" then we assume it to be the separator
11845
# otherwise default to the standard path separator (i.e. ":") - it is
11846
# assumed that no part of a normal pathname contains ";" but that should
11847
# okay in the real world where ";" in dirpaths is itself problematic.
11848
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11850
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11853
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11855
need_lib_prefix=unknown
11856
hardcode_into_libs=no
11858
# when you set need_version to no, make sure it does not cause -set_version
11859
# flags to be left without arguments
11860
need_version=unknown
11865
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11866
shlibpath_var=LIBPATH
11868
# AIX 3 has no versioning support, so we append a major version to the name.
11869
soname_spec='${libname}${release}${shared_ext}$major'
11876
hardcode_into_libs=yes
11877
if test "$host_cpu" = ia64; then
11878
# AIX 5 supports IA64
11879
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11880
shlibpath_var=LD_LIBRARY_PATH
11882
# With GCC up to 2.95.x, collect2 would create an import file
11883
# for dependence libraries. The import file would start with
11884
# the line `#! .'. This would cause the generated library to
11885
# depend on `.', always an invalid library. This was fixed in
11886
# development snapshots of GCC prior to 3.0.
11888
aix4 | aix4.[01] | aix4.[01].*)
11889
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11891
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11894
can_build_shared=no
11898
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11899
# soname into executable. Probably we can add versioning support to
11900
# collect2, so additional links can be useful in future.
11901
if test "$aix_use_runtimelinking" = yes; then
11902
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11903
# instead of lib<name>.a to let people know that these are not
11904
# typical AIX shared libraries.
11905
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11907
# We preserve .a as extension for shared libraries through AIX4.2
11908
# and later when we are not doing run time linking.
11909
library_names_spec='${libname}${release}.a $libname.a'
11910
soname_spec='${libname}${release}${shared_ext}$major'
11912
shlibpath_var=LIBPATH
11917
library_names_spec='$libname.ixlibrary $libname.a'
11918
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11919
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'
11923
library_names_spec='${libname}${shared_ext}'
11924
dynamic_linker="$host_os ld.so"
11925
shlibpath_var=LIBRARY_PATH
11931
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11932
soname_spec='${libname}${release}${shared_ext}$major'
11933
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11934
shlibpath_var=LD_LIBRARY_PATH
11935
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11936
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11937
# the default ld.so.conf also contains /usr/contrib/lib and
11938
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11939
# libtool to hard-code these into programs
11942
cygwin* | mingw* | pw32*)
11943
version_type=windows
11948
case $GCC,$host_os in
11949
yes,cygwin* | yes,mingw* | yes,pw32*)
11950
library_names_spec='$libname.dll.a'
11951
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11952
postinstall_cmds='base_file=`basename \${file}`~
11953
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11954
dldir=$destdir/`dirname \$dlpath`~
11955
test -d \$dldir || mkdir -p \$dldir~
11956
$install_prog $dir/$dlname \$dldir/$dlname'
11957
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11958
dlpath=$dir/\$dldll~
11960
shlibpath_overrides_runpath=yes
11964
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11965
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11966
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11969
# MinGW DLLs use traditional 'lib' prefix
11970
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11971
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11972
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11973
# It is most probably a Windows format PATH printed by
11974
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11975
# path with ; separators, and with drive letters. We can handle the
11976
# drive letters (cygwin fileutils understands them), so leave them,
11977
# especially as we might pass files found there to a mingw objdump,
11978
# which wouldn't understand a cygwinified path. Ahh.
11979
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11981
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11985
# pw32 DLLs use 'pw' prefix rather than 'lib'
11986
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11992
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11995
dynamic_linker='Win32 ld.exe'
11996
# FIXME: first we should search . and the directory the executable is in
12000
darwin* | rhapsody*)
12001
dynamic_linker="$host_os dyld"
12002
version_type=darwin
12005
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12006
soname_spec='${libname}${release}${major}$shared_ext'
12007
shlibpath_overrides_runpath=yes
12008
shlibpath_var=DYLD_LIBRARY_PATH
12009
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12010
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12011
if test "$GCC" = yes; then
12012
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12014
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12016
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12023
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12024
soname_spec='${libname}${release}${shared_ext}$major'
12025
shlibpath_var=LD_LIBRARY_PATH
12036
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12037
soname_spec='${libname}${release}${shared_ext}$major'
12038
shlibpath_var=LD_LIBRARY_PATH
12039
shlibpath_overrides_runpath=no
12040
hardcode_into_libs=yes
12041
dynamic_linker='GNU ld.so'
12045
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12046
version_type=freebsd-$objformat
12047
case $version_type in
12049
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12054
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12058
shlibpath_var=LD_LIBRARY_PATH
12061
shlibpath_overrides_runpath=yes
12063
freebsd3.01* | freebsdelf3.01*)
12064
shlibpath_overrides_runpath=yes
12065
hardcode_into_libs=yes
12068
shlibpath_overrides_runpath=no
12069
hardcode_into_libs=yes
12078
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12079
soname_spec='${libname}${release}${shared_ext}$major'
12080
shlibpath_var=LD_LIBRARY_PATH
12081
hardcode_into_libs=yes
12084
hpux9* | hpux10* | hpux11*)
12085
# Give a soname corresponding to the major version so that dld.sl refuses to
12086
# link against other versions.
12090
case "$host_cpu" in
12093
hardcode_into_libs=yes
12094
dynamic_linker="$host_os dld.so"
12095
shlibpath_var=LD_LIBRARY_PATH
12096
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12097
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12098
soname_spec='${libname}${release}${shared_ext}$major'
12099
if test "X$HPUX_IA64_MODE" = X32; then
12100
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12102
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12104
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12108
hardcode_into_libs=yes
12109
dynamic_linker="$host_os dld.sl"
12110
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12111
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12112
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12113
soname_spec='${libname}${release}${shared_ext}$major'
12114
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12115
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12119
dynamic_linker="$host_os dld.sl"
12120
shlibpath_var=SHLIB_PATH
12121
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12122
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12123
soname_spec='${libname}${release}${shared_ext}$major'
12126
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12127
postinstall_cmds='chmod 555 $lib'
12130
irix5* | irix6* | nonstopux*)
12132
nonstopux*) version_type=nonstopux ;;
12134
if test "$lt_cv_prog_gnu_ld" = yes; then
12142
soname_spec='${libname}${release}${shared_ext}$major'
12143
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12145
irix5* | nonstopux*)
12146
libsuff= shlibsuff=
12149
case $LD in # libtool.m4 will add one of these switches to LD
12150
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12151
libsuff= shlibsuff= libmagic=32-bit;;
12152
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12153
libsuff=32 shlibsuff=N32 libmagic=N32;;
12154
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12155
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12156
*) libsuff= shlibsuff= libmagic=never-match;;
12160
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12161
shlibpath_overrides_runpath=no
12162
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12163
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12164
hardcode_into_libs=yes
12167
# No shared lib support for Linux oldld, aout, or coff.
12168
linux*oldld* | linux*aout* | linux*coff*)
12172
# This must be Linux ELF.
12177
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12178
soname_spec='${libname}${release}${shared_ext}$major'
12179
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12180
shlibpath_var=LD_LIBRARY_PATH
12181
shlibpath_overrides_runpath=no
12182
# This implies no fast_install, which is unacceptable.
12183
# Some rework will be needed to allow for fast_install
12184
# before this can be enabled.
12185
hardcode_into_libs=yes
12187
# Append ld.so.conf contents to the search path
12188
if test -f /etc/ld.so.conf; then
12189
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12190
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12193
# We used to test for /lib/ld.so.1 and disable shared libraries on
12194
# powerpc, because MkLinux only supported shared libraries with the
12195
# GNU dynamic linker. Since this was broken with cross compilers,
12196
# most powerpc-linux boxes support dynamic linking these days and
12197
# people can always --disable-shared, the test was removed, and we
12198
# assume the GNU/Linux dynamic linker is in use.
12199
dynamic_linker='GNU/Linux ld.so'
12206
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12207
soname_spec='${libname}${release}${shared_ext}$major'
12208
shlibpath_var=LD_LIBRARY_PATH
12209
shlibpath_overrides_runpath=no
12210
hardcode_into_libs=yes
12211
dynamic_linker='NetBSD ld.elf_so'
12218
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12219
soname_spec='${libname}${release}${shared_ext}$major'
12220
shlibpath_var=LD_LIBRARY_PATH
12221
shlibpath_overrides_runpath=no
12222
hardcode_into_libs=yes
12223
dynamic_linker='GNU ld.so'
12230
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12231
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12232
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12233
dynamic_linker='NetBSD (a.out) ld.so'
12235
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12236
soname_spec='${libname}${release}${shared_ext}$major'
12237
dynamic_linker='NetBSD ld.elf_so'
12239
shlibpath_var=LD_LIBRARY_PATH
12240
shlibpath_overrides_runpath=yes
12241
hardcode_into_libs=yes
12246
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12247
shlibpath_var=LD_LIBRARY_PATH
12248
shlibpath_overrides_runpath=yes
12255
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12256
soname_spec='${libname}${release}${shared_ext}$major'
12257
shlibpath_var=LD_LIBRARY_PATH
12258
shlibpath_overrides_runpath=yes
12265
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12266
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12267
shlibpath_var=LD_LIBRARY_PATH
12268
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12270
openbsd2.[89] | openbsd2.[89].*)
12271
shlibpath_overrides_runpath=no
12274
shlibpath_overrides_runpath=yes
12278
shlibpath_overrides_runpath=yes
12283
libname_spec='$name'
12286
library_names_spec='$libname${shared_ext} $libname.a'
12287
dynamic_linker='OS/2 ld.exe'
12288
shlibpath_var=LIBPATH
12291
osf3* | osf4* | osf5*)
12295
soname_spec='${libname}${release}${shared_ext}$major'
12296
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12297
shlibpath_var=LD_LIBRARY_PATH
12298
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12299
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12304
soname_spec='${libname}${release}${shared_ext}$major'
12305
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12306
shlibpath_var=LD_LIBRARY_PATH
12313
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12314
soname_spec='${libname}${release}${shared_ext}$major'
12315
shlibpath_var=LD_LIBRARY_PATH
12316
shlibpath_overrides_runpath=yes
12317
hardcode_into_libs=yes
12318
# ldd complains unless libraries are executable
12319
postinstall_cmds='chmod +x $lib'
12324
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12325
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12326
shlibpath_var=LD_LIBRARY_PATH
12327
shlibpath_overrides_runpath=yes
12328
if test "$with_gnu_ld" = yes; then
12334
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12336
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12337
soname_spec='${libname}${release}${shared_ext}$major'
12338
shlibpath_var=LD_LIBRARY_PATH
12339
case $host_vendor in
12341
shlibpath_overrides_runpath=no
12343
export_dynamic_flag_spec='${wl}-Blargedynsym'
12344
runpath_var=LD_RUN_PATH
12352
shlibpath_overrides_runpath=no
12353
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12359
if test -d /usr/nec ;then
12361
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12362
soname_spec='$libname${shared_ext}.$major'
12363
shlibpath_var=LD_LIBRARY_PATH
12369
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12370
soname_spec='${libname}${release}${shared_ext}$major'
12371
shlibpath_var=LD_LIBRARY_PATH
12378
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12379
echo "${ECHO_T}$dynamic_linker" >&6
12380
test "$dynamic_linker" = no && can_build_shared=no
12382
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12383
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12384
hardcode_action_CXX=
12385
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12386
test -n "$runpath_var CXX" || \
12387
test "X$hardcode_automatic_CXX"="Xyes" ; then
12389
# We can hardcode non-existant directories.
12390
if test "$hardcode_direct_CXX" != no &&
12391
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12392
# have to relink, otherwise we might link with an installed library
12393
# when we should be linking with a yet-to-be-installed one
12394
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12395
test "$hardcode_minus_L_CXX" != no; then
12396
# Linking always hardcodes the temporary library directory.
12397
hardcode_action_CXX=relink
12399
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12400
hardcode_action_CXX=immediate
12403
# We cannot hardcode anything, or else we can only hardcode existing
12405
hardcode_action_CXX=unsupported
12407
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12408
echo "${ECHO_T}$hardcode_action_CXX" >&6
12410
if test "$hardcode_action_CXX" = relink; then
12411
# Fast installation is not supported
12412
enable_fast_install=no
12413
elif test "$shlibpath_overrides_runpath" = yes ||
12414
test "$enable_shared" = no; then
12415
# Fast installation is not necessary
12416
enable_fast_install=needless
12421
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12422
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12423
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12424
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12425
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12426
echo "$as_me:$LINENO: result: yes" >&5
12427
echo "${ECHO_T}yes" >&6
12429
# FIXME - insert some real tests, host_os isn't really good enough
12432
if test -n "$STRIP" ; then
12433
striplib="$STRIP -x"
12434
echo "$as_me:$LINENO: result: yes" >&5
12435
echo "${ECHO_T}yes" >&6
12437
echo "$as_me:$LINENO: result: no" >&5
12438
echo "${ECHO_T}no" >&6
12442
echo "$as_me:$LINENO: result: no" >&5
12443
echo "${ECHO_T}no" >&6
12448
if test "x$enable_dlopen" != xyes; then
12449
enable_dlopen=unknown
12450
enable_dlopen_self=unknown
12451
enable_dlopen_self_static=unknown
12458
lt_cv_dlopen="load_add_on"
12460
lt_cv_dlopen_self=yes
12464
lt_cv_dlopen="LoadLibrary"
12469
lt_cv_dlopen="dlopen"
12474
# if libdl is installed we need to link against it
12475
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12476
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12477
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12478
echo $ECHO_N "(cached) $ECHO_C" >&6
12480
ac_check_lib_save_LIBS=$LIBS
12482
cat >conftest.$ac_ext <<_ACEOF
12485
cat confdefs.h >>conftest.$ac_ext
12486
cat >>conftest.$ac_ext <<_ACEOF
12487
/* end confdefs.h. */
12489
/* Override any gcc2 internal prototype to avoid an error. */
12493
/* We use char because int might match the return type of a gcc2
12494
builtin and then its argument prototype would still apply. */
12504
rm -f conftest.$ac_objext conftest$ac_exeext
12505
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12506
(eval $ac_link) 2>conftest.er1
12508
grep -v '^ *+' conftest.er1 >conftest.err
12510
cat conftest.err >&5
12511
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512
(exit $ac_status); } &&
12513
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12514
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515
(eval $ac_try) 2>&5
12517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518
(exit $ac_status); }; } &&
12519
{ ac_try='test -s conftest$ac_exeext'
12520
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521
(eval $ac_try) 2>&5
12523
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524
(exit $ac_status); }; }; then
12525
ac_cv_lib_dl_dlopen=yes
12527
echo "$as_me: failed program was:" >&5
12528
sed 's/^/| /' conftest.$ac_ext >&5
12530
ac_cv_lib_dl_dlopen=no
12532
rm -f conftest.err conftest.$ac_objext \
12533
conftest$ac_exeext conftest.$ac_ext
12534
LIBS=$ac_check_lib_save_LIBS
12536
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12537
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12538
if test $ac_cv_lib_dl_dlopen = yes; then
12539
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12542
lt_cv_dlopen="dyld"
12544
lt_cv_dlopen_self=yes
12551
echo "$as_me:$LINENO: checking for shl_load" >&5
12552
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12553
if test "${ac_cv_func_shl_load+set}" = set; then
12554
echo $ECHO_N "(cached) $ECHO_C" >&6
12556
cat >conftest.$ac_ext <<_ACEOF
12559
cat confdefs.h >>conftest.$ac_ext
12560
cat >>conftest.$ac_ext <<_ACEOF
12561
/* end confdefs.h. */
12562
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12563
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12564
#define shl_load innocuous_shl_load
12566
/* System header to define __stub macros and hopefully few prototypes,
12567
which can conflict with char shl_load (); below.
12568
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12569
<limits.h> exists even on freestanding compilers. */
12572
# include <limits.h>
12574
# include <assert.h>
12579
/* Override any gcc2 internal prototype to avoid an error. */
12584
/* We use char because int might match the return type of a gcc2
12585
builtin and then its argument prototype would still apply. */
12587
/* The GNU C library defines this for functions which it implements
12588
to always fail with ENOSYS. Some functions are actually named
12589
something starting with __ and the normal name is an alias. */
12590
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12593
char (*f) () = shl_load;
12602
return f != shl_load;
12607
rm -f conftest.$ac_objext conftest$ac_exeext
12608
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12609
(eval $ac_link) 2>conftest.er1
12611
grep -v '^ *+' conftest.er1 >conftest.err
12613
cat conftest.err >&5
12614
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615
(exit $ac_status); } &&
12616
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12617
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618
(eval $ac_try) 2>&5
12620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621
(exit $ac_status); }; } &&
12622
{ ac_try='test -s conftest$ac_exeext'
12623
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624
(eval $ac_try) 2>&5
12626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627
(exit $ac_status); }; }; then
12628
ac_cv_func_shl_load=yes
12630
echo "$as_me: failed program was:" >&5
12631
sed 's/^/| /' conftest.$ac_ext >&5
12633
ac_cv_func_shl_load=no
12635
rm -f conftest.err conftest.$ac_objext \
12636
conftest$ac_exeext conftest.$ac_ext
12638
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12639
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12640
if test $ac_cv_func_shl_load = yes; then
12641
lt_cv_dlopen="shl_load"
12643
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12644
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12645
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12646
echo $ECHO_N "(cached) $ECHO_C" >&6
12648
ac_check_lib_save_LIBS=$LIBS
12650
cat >conftest.$ac_ext <<_ACEOF
12653
cat confdefs.h >>conftest.$ac_ext
12654
cat >>conftest.$ac_ext <<_ACEOF
12655
/* end confdefs.h. */
12657
/* Override any gcc2 internal prototype to avoid an error. */
12661
/* We use char because int might match the return type of a gcc2
12662
builtin and then its argument prototype would still apply. */
12672
rm -f conftest.$ac_objext conftest$ac_exeext
12673
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12674
(eval $ac_link) 2>conftest.er1
12676
grep -v '^ *+' conftest.er1 >conftest.err
12678
cat conftest.err >&5
12679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680
(exit $ac_status); } &&
12681
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12682
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683
(eval $ac_try) 2>&5
12685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686
(exit $ac_status); }; } &&
12687
{ ac_try='test -s conftest$ac_exeext'
12688
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12689
(eval $ac_try) 2>&5
12691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692
(exit $ac_status); }; }; then
12693
ac_cv_lib_dld_shl_load=yes
12695
echo "$as_me: failed program was:" >&5
12696
sed 's/^/| /' conftest.$ac_ext >&5
12698
ac_cv_lib_dld_shl_load=no
12700
rm -f conftest.err conftest.$ac_objext \
12701
conftest$ac_exeext conftest.$ac_ext
12702
LIBS=$ac_check_lib_save_LIBS
12704
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12705
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12706
if test $ac_cv_lib_dld_shl_load = yes; then
12707
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12709
echo "$as_me:$LINENO: checking for dlopen" >&5
12710
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12711
if test "${ac_cv_func_dlopen+set}" = set; then
12712
echo $ECHO_N "(cached) $ECHO_C" >&6
12714
cat >conftest.$ac_ext <<_ACEOF
12717
cat confdefs.h >>conftest.$ac_ext
12718
cat >>conftest.$ac_ext <<_ACEOF
12719
/* end confdefs.h. */
12720
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12721
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12722
#define dlopen innocuous_dlopen
12724
/* System header to define __stub macros and hopefully few prototypes,
12725
which can conflict with char dlopen (); below.
12726
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12727
<limits.h> exists even on freestanding compilers. */
12730
# include <limits.h>
12732
# include <assert.h>
12737
/* Override any gcc2 internal prototype to avoid an error. */
12742
/* We use char because int might match the return type of a gcc2
12743
builtin and then its argument prototype would still apply. */
12745
/* The GNU C library defines this for functions which it implements
12746
to always fail with ENOSYS. Some functions are actually named
12747
something starting with __ and the normal name is an alias. */
12748
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12751
char (*f) () = dlopen;
12760
return f != dlopen;
12765
rm -f conftest.$ac_objext conftest$ac_exeext
12766
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12767
(eval $ac_link) 2>conftest.er1
12769
grep -v '^ *+' conftest.er1 >conftest.err
12771
cat conftest.err >&5
12772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773
(exit $ac_status); } &&
12774
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12775
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12776
(eval $ac_try) 2>&5
12778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779
(exit $ac_status); }; } &&
12780
{ ac_try='test -s conftest$ac_exeext'
12781
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782
(eval $ac_try) 2>&5
12784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785
(exit $ac_status); }; }; then
12786
ac_cv_func_dlopen=yes
12788
echo "$as_me: failed program was:" >&5
12789
sed 's/^/| /' conftest.$ac_ext >&5
12791
ac_cv_func_dlopen=no
12793
rm -f conftest.err conftest.$ac_objext \
12794
conftest$ac_exeext conftest.$ac_ext
12796
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12797
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12798
if test $ac_cv_func_dlopen = yes; then
12799
lt_cv_dlopen="dlopen"
12801
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12802
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12803
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12804
echo $ECHO_N "(cached) $ECHO_C" >&6
12806
ac_check_lib_save_LIBS=$LIBS
12808
cat >conftest.$ac_ext <<_ACEOF
12811
cat confdefs.h >>conftest.$ac_ext
12812
cat >>conftest.$ac_ext <<_ACEOF
12813
/* end confdefs.h. */
12815
/* Override any gcc2 internal prototype to avoid an error. */
12819
/* We use char because int might match the return type of a gcc2
12820
builtin and then its argument prototype would still apply. */
12830
rm -f conftest.$ac_objext conftest$ac_exeext
12831
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12832
(eval $ac_link) 2>conftest.er1
12834
grep -v '^ *+' conftest.er1 >conftest.err
12836
cat conftest.err >&5
12837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838
(exit $ac_status); } &&
12839
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12840
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12841
(eval $ac_try) 2>&5
12843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844
(exit $ac_status); }; } &&
12845
{ ac_try='test -s conftest$ac_exeext'
12846
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847
(eval $ac_try) 2>&5
12849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850
(exit $ac_status); }; }; then
12851
ac_cv_lib_dl_dlopen=yes
12853
echo "$as_me: failed program was:" >&5
12854
sed 's/^/| /' conftest.$ac_ext >&5
12856
ac_cv_lib_dl_dlopen=no
12858
rm -f conftest.err conftest.$ac_objext \
12859
conftest$ac_exeext conftest.$ac_ext
12860
LIBS=$ac_check_lib_save_LIBS
12862
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12863
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12864
if test $ac_cv_lib_dl_dlopen = yes; then
12865
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12867
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12868
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12869
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12870
echo $ECHO_N "(cached) $ECHO_C" >&6
12872
ac_check_lib_save_LIBS=$LIBS
12873
LIBS="-lsvld $LIBS"
12874
cat >conftest.$ac_ext <<_ACEOF
12877
cat confdefs.h >>conftest.$ac_ext
12878
cat >>conftest.$ac_ext <<_ACEOF
12879
/* end confdefs.h. */
12881
/* Override any gcc2 internal prototype to avoid an error. */
12885
/* We use char because int might match the return type of a gcc2
12886
builtin and then its argument prototype would still apply. */
12896
rm -f conftest.$ac_objext conftest$ac_exeext
12897
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12898
(eval $ac_link) 2>conftest.er1
12900
grep -v '^ *+' conftest.er1 >conftest.err
12902
cat conftest.err >&5
12903
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904
(exit $ac_status); } &&
12905
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12906
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907
(eval $ac_try) 2>&5
12909
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910
(exit $ac_status); }; } &&
12911
{ ac_try='test -s conftest$ac_exeext'
12912
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913
(eval $ac_try) 2>&5
12915
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916
(exit $ac_status); }; }; then
12917
ac_cv_lib_svld_dlopen=yes
12919
echo "$as_me: failed program was:" >&5
12920
sed 's/^/| /' conftest.$ac_ext >&5
12922
ac_cv_lib_svld_dlopen=no
12924
rm -f conftest.err conftest.$ac_objext \
12925
conftest$ac_exeext conftest.$ac_ext
12926
LIBS=$ac_check_lib_save_LIBS
12928
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12929
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12930
if test $ac_cv_lib_svld_dlopen = yes; then
12931
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12933
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12934
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12935
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12936
echo $ECHO_N "(cached) $ECHO_C" >&6
12938
ac_check_lib_save_LIBS=$LIBS
12940
cat >conftest.$ac_ext <<_ACEOF
12943
cat confdefs.h >>conftest.$ac_ext
12944
cat >>conftest.$ac_ext <<_ACEOF
12945
/* end confdefs.h. */
12947
/* Override any gcc2 internal prototype to avoid an error. */
12951
/* We use char because int might match the return type of a gcc2
12952
builtin and then its argument prototype would still apply. */
12962
rm -f conftest.$ac_objext conftest$ac_exeext
12963
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12964
(eval $ac_link) 2>conftest.er1
12966
grep -v '^ *+' conftest.er1 >conftest.err
12968
cat conftest.err >&5
12969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970
(exit $ac_status); } &&
12971
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12972
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973
(eval $ac_try) 2>&5
12975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976
(exit $ac_status); }; } &&
12977
{ ac_try='test -s conftest$ac_exeext'
12978
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979
(eval $ac_try) 2>&5
12981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982
(exit $ac_status); }; }; then
12983
ac_cv_lib_dld_dld_link=yes
12985
echo "$as_me: failed program was:" >&5
12986
sed 's/^/| /' conftest.$ac_ext >&5
12988
ac_cv_lib_dld_dld_link=no
12990
rm -f conftest.err conftest.$ac_objext \
12991
conftest$ac_exeext conftest.$ac_ext
12992
LIBS=$ac_check_lib_save_LIBS
12994
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12995
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12996
if test $ac_cv_lib_dld_dld_link = yes; then
12997
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13018
if test "x$lt_cv_dlopen" != xno; then
13024
case $lt_cv_dlopen in
13026
save_CPPFLAGS="$CPPFLAGS"
13027
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13029
save_LDFLAGS="$LDFLAGS"
13030
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13033
LIBS="$lt_cv_dlopen_libs $LIBS"
13035
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13036
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13037
if test "${lt_cv_dlopen_self+set}" = set; then
13038
echo $ECHO_N "(cached) $ECHO_C" >&6
13040
if test "$cross_compiling" = yes; then :
13041
lt_cv_dlopen_self=cross
13043
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13044
lt_status=$lt_dlunknown
13045
cat > conftest.$ac_ext <<EOF
13046
#line 13046 "configure"
13047
#include "confdefs.h"
13056
# define LT_DLGLOBAL RTLD_GLOBAL
13059
# define LT_DLGLOBAL DL_GLOBAL
13061
# define LT_DLGLOBAL 0
13065
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13066
find out it does not work in some platform. */
13067
#ifndef LT_DLLAZY_OR_NOW
13069
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13072
# define LT_DLLAZY_OR_NOW DL_LAZY
13075
# define LT_DLLAZY_OR_NOW RTLD_NOW
13078
# define LT_DLLAZY_OR_NOW DL_NOW
13080
# define LT_DLLAZY_OR_NOW 0
13088
extern "C" void exit (int);
13091
void fnord() { int i=42;}
13094
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13095
int status = $lt_dlunknown;
13099
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13100
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13101
/* dlclose (self); */
13107
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13108
(eval $ac_link) 2>&5
13110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13112
(./conftest; exit; ) 2>/dev/null
13114
case x$lt_status in
13115
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13116
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13117
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13120
# compilation failed
13121
lt_cv_dlopen_self=no
13128
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13129
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13131
if test "x$lt_cv_dlopen_self" = xyes; then
13132
LDFLAGS="$LDFLAGS $link_static_flag"
13133
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13134
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13135
if test "${lt_cv_dlopen_self_static+set}" = set; then
13136
echo $ECHO_N "(cached) $ECHO_C" >&6
13138
if test "$cross_compiling" = yes; then :
13139
lt_cv_dlopen_self_static=cross
13141
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13142
lt_status=$lt_dlunknown
13143
cat > conftest.$ac_ext <<EOF
13144
#line 13144 "configure"
13145
#include "confdefs.h"
13154
# define LT_DLGLOBAL RTLD_GLOBAL
13157
# define LT_DLGLOBAL DL_GLOBAL
13159
# define LT_DLGLOBAL 0
13163
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13164
find out it does not work in some platform. */
13165
#ifndef LT_DLLAZY_OR_NOW
13167
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13170
# define LT_DLLAZY_OR_NOW DL_LAZY
13173
# define LT_DLLAZY_OR_NOW RTLD_NOW
13176
# define LT_DLLAZY_OR_NOW DL_NOW
13178
# define LT_DLLAZY_OR_NOW 0
13186
extern "C" void exit (int);
13189
void fnord() { int i=42;}
13192
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13193
int status = $lt_dlunknown;
13197
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13198
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13199
/* dlclose (self); */
13205
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13206
(eval $ac_link) 2>&5
13208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13210
(./conftest; exit; ) 2>/dev/null
13212
case x$lt_status in
13213
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13214
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13215
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13218
# compilation failed
13219
lt_cv_dlopen_self_static=no
13226
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13227
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13230
CPPFLAGS="$save_CPPFLAGS"
13231
LDFLAGS="$save_LDFLAGS"
13236
case $lt_cv_dlopen_self in
13237
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13238
*) enable_dlopen_self=unknown ;;
13241
case $lt_cv_dlopen_self_static in
13242
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13243
*) enable_dlopen_self_static=unknown ;;
13248
# The else clause should only fire when bootstrapping the
13249
# libtool distribution, otherwise you forgot to ship ltmain.sh
13250
# with your package, and you will get complaints that there are
13251
# no rules to generate ltmain.sh.
13252
if test -f "$ltmain"; then
13253
# See if we are running on zsh, and set the options which allow our commands through
13254
# without removal of \ escapes.
13255
if test -n "${ZSH_VERSION+set}" ; then
13256
setopt NO_GLOB_SUBST
13258
# Now quote all the things that may contain metacharacters while being
13259
# careful not to overquote the AC_SUBSTed values. We take copies of the
13260
# variables and quote the copies for generation of the libtool script.
13261
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13263
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13264
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13265
deplibs_check_method reload_flag reload_cmds need_locks \
13266
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13267
lt_cv_sys_global_symbol_to_c_name_address \
13268
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13269
old_postinstall_cmds old_postuninstall_cmds \
13273
lt_prog_compiler_wl_CXX \
13274
lt_prog_compiler_pic_CXX \
13275
lt_prog_compiler_static_CXX \
13276
lt_prog_compiler_no_builtin_flag_CXX \
13277
export_dynamic_flag_spec_CXX \
13278
thread_safe_flag_spec_CXX \
13279
whole_archive_flag_spec_CXX \
13280
enable_shared_with_static_runtimes_CXX \
13281
old_archive_cmds_CXX \
13282
old_archive_from_new_cmds_CXX \
13283
predep_objects_CXX \
13284
postdep_objects_CXX \
13287
compiler_lib_search_path_CXX \
13289
archive_expsym_cmds_CXX \
13290
postinstall_cmds_CXX \
13291
postuninstall_cmds_CXX \
13292
old_archive_from_expsyms_cmds_CXX \
13293
allow_undefined_flag_CXX \
13294
no_undefined_flag_CXX \
13295
export_symbols_cmds_CXX \
13296
hardcode_libdir_flag_spec_CXX \
13297
hardcode_libdir_flag_spec_ld_CXX \
13298
hardcode_libdir_separator_CXX \
13299
hardcode_automatic_CXX \
13301
module_expsym_cmds_CXX \
13302
lt_cv_prog_compiler_c_o_CXX \
13303
exclude_expsyms_CXX \
13304
include_expsyms_CXX; do
13307
old_archive_cmds_CXX | \
13308
old_archive_from_new_cmds_CXX | \
13309
archive_cmds_CXX | \
13310
archive_expsym_cmds_CXX | \
13311
module_cmds_CXX | \
13312
module_expsym_cmds_CXX | \
13313
old_archive_from_expsyms_cmds_CXX | \
13314
export_symbols_cmds_CXX | \
13315
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13316
postinstall_cmds | postuninstall_cmds | \
13317
old_postinstall_cmds | old_postuninstall_cmds | \
13318
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13319
# Double-quote double-evaled strings.
13320
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13323
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13329
*'\$0 --fallback-echo"')
13330
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13336
cat <<__EOF__ >> "$cfgfile"
13337
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13339
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13341
# Shell to use when invoking shell scripts.
13344
# Whether or not to build shared libraries.
13345
build_libtool_libs=$enable_shared
13347
# Whether or not to build static libraries.
13348
build_old_libs=$enable_static
13350
# Whether or not to add -lc for building shared libraries.
13351
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13353
# Whether or not to disallow shared libs when runtime libs are static
13354
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13356
# Whether or not to optimize for fast installation.
13357
fast_install=$enable_fast_install
13360
host_alias=$host_alias
13363
# An echo program that does not interpret backslashes.
13368
AR_FLAGS=$lt_AR_FLAGS
13373
# A language-specific compiler.
13374
CC=$lt_compiler_CXX
13376
# Is the compiler the GNU C compiler?
13382
# The linker used to build libraries.
13385
# Whether we need hard or soft links.
13388
# A BSD-compatible nm program.
13391
# A symbol stripping program
13394
# Used to examine libraries when file_magic_cmd begins "file"
13395
MAGIC_CMD=$MAGIC_CMD
13397
# Used on cygwin: DLL creation program.
13400
# Used on cygwin: object dumper.
13403
# Used on cygwin: assembler.
13406
# The name of the directory that contains temporary libtool files.
13409
# How to create reloadable object files.
13410
reload_flag=$lt_reload_flag
13411
reload_cmds=$lt_reload_cmds
13413
# How to pass a linker flag through the compiler.
13414
wl=$lt_lt_prog_compiler_wl_CXX
13416
# Object file suffix (normally "o").
13417
objext="$ac_objext"
13419
# Old archive suffix (normally "a").
13422
# Shared library suffix (normally ".so").
13423
shrext_cmds='$shrext_cmds'
13425
# Executable file suffix (normally "").
13428
# Additional compiler flags for building library objects.
13429
pic_flag=$lt_lt_prog_compiler_pic_CXX
13432
# What is the maximum length of a command?
13433
max_cmd_len=$lt_cv_sys_max_cmd_len
13435
# Does compiler simultaneously support -c and -o options?
13436
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13438
# Must we lock files when doing compilation ?
13439
need_locks=$lt_need_locks
13441
# Do we need the lib prefix for modules?
13442
need_lib_prefix=$need_lib_prefix
13444
# Do we need a version for libraries?
13445
need_version=$need_version
13447
# Whether dlopen is supported.
13448
dlopen_support=$enable_dlopen
13450
# Whether dlopen of programs is supported.
13451
dlopen_self=$enable_dlopen_self
13453
# Whether dlopen of statically linked programs is supported.
13454
dlopen_self_static=$enable_dlopen_self_static
13456
# Compiler flag to prevent dynamic linking.
13457
link_static_flag=$lt_lt_prog_compiler_static_CXX
13459
# Compiler flag to turn off builtin functions.
13460
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13462
# Compiler flag to allow reflexive dlopens.
13463
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13465
# Compiler flag to generate shared objects directly from archives.
13466
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13468
# Compiler flag to generate thread-safe objects.
13469
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13471
# Library versioning type.
13472
version_type=$version_type
13474
# Format of library name prefix.
13475
libname_spec=$lt_libname_spec
13477
# List of archive names. First name is the real one, the rest are links.
13478
# The last name is the one that the linker finds with -lNAME.
13479
library_names_spec=$lt_library_names_spec
13481
# The coded name of the library, if different from the real name.
13482
soname_spec=$lt_soname_spec
13484
# Commands used to build and install an old-style archive.
13486
old_archive_cmds=$lt_old_archive_cmds_CXX
13487
old_postinstall_cmds=$lt_old_postinstall_cmds
13488
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13490
# Create an old-style archive from a shared archive.
13491
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13493
# Create a temporary old-style archive to link instead of a shared archive.
13494
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13496
# Commands used to build and install a shared archive.
13497
archive_cmds=$lt_archive_cmds_CXX
13498
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13499
postinstall_cmds=$lt_postinstall_cmds
13500
postuninstall_cmds=$lt_postuninstall_cmds
13502
# Commands used to build a loadable module (assumed same as above if empty)
13503
module_cmds=$lt_module_cmds_CXX
13504
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13506
# Commands to strip libraries.
13507
old_striplib=$lt_old_striplib
13508
striplib=$lt_striplib
13510
# Dependencies to place before the objects being linked to create a
13512
predep_objects=$lt_predep_objects_CXX
13514
# Dependencies to place after the objects being linked to create a
13516
postdep_objects=$lt_postdep_objects_CXX
13518
# Dependencies to place before the objects being linked to create a
13520
predeps=$lt_predeps_CXX
13522
# Dependencies to place after the objects being linked to create a
13524
postdeps=$lt_postdeps_CXX
13526
# The library search path used internally by the compiler when linking
13527
# a shared library.
13528
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13530
# Method to check whether dependent libraries are shared objects.
13531
deplibs_check_method=$lt_deplibs_check_method
13533
# Command to use when deplibs_check_method == file_magic.
13534
file_magic_cmd=$lt_file_magic_cmd
13536
# Flag that allows shared libraries with undefined symbols to be built.
13537
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13539
# Flag that forces no undefined symbols.
13540
no_undefined_flag=$lt_no_undefined_flag_CXX
13542
# Commands used to finish a libtool library installation in a directory.
13543
finish_cmds=$lt_finish_cmds
13545
# Same as above, but a single script fragment to be evaled but not shown.
13546
finish_eval=$lt_finish_eval
13548
# Take the output of nm and produce a listing of raw symbols and C names.
13549
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13551
# Transform the output of nm in a proper C declaration
13552
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13554
# Transform the output of nm in a C name address pair
13555
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13557
# This is the shared library runtime path variable.
13558
runpath_var=$runpath_var
13560
# This is the shared library path variable.
13561
shlibpath_var=$shlibpath_var
13563
# Is shlibpath searched before the hard-coded library search path?
13564
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13566
# How to hardcode a shared library path into an executable.
13567
hardcode_action=$hardcode_action_CXX
13569
# Whether we should hardcode library paths into libraries.
13570
hardcode_into_libs=$hardcode_into_libs
13572
# Flag to hardcode \$libdir into a binary during linking.
13573
# This must work even if \$libdir does not exist.
13574
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13576
# If ld is used when linking, flag to hardcode \$libdir into
13577
# a binary during linking. This must work even if \$libdir does
13579
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13581
# Whether we need a single -rpath flag with a separated argument.
13582
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13584
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13585
# resulting binary.
13586
hardcode_direct=$hardcode_direct_CXX
13588
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13589
# resulting binary.
13590
hardcode_minus_L=$hardcode_minus_L_CXX
13592
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13593
# the resulting binary.
13594
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13596
# Set to yes if building a shared library automatically hardcodes DIR into the library
13597
# and all subsequent libraries and executables linked against it.
13598
hardcode_automatic=$hardcode_automatic_CXX
13600
# Variables whose values should be saved in libtool wrapper scripts and
13601
# restored at relink time.
13602
variables_saved_for_relink="$variables_saved_for_relink"
13604
# Whether libtool must link a program against all its dependency libraries.
13605
link_all_deplibs=$link_all_deplibs_CXX
13607
# Compile-time system search path for libraries
13608
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13610
# Run-time system search path for libraries
13611
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13613
# Fix the shell variable \$srcfile for the compiler.
13614
fix_srcfile_path="$fix_srcfile_path_CXX"
13616
# Set to yes if exported symbols are required.
13617
always_export_symbols=$always_export_symbols_CXX
13619
# The commands to list exported symbols.
13620
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13622
# The commands to extract the exported symbol list from a shared archive.
13623
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13625
# Symbols that should not be listed in the preloaded symbols.
13626
exclude_expsyms=$lt_exclude_expsyms_CXX
13628
# Symbols that must always be exported.
13629
include_expsyms=$lt_include_expsyms_CXX
13631
# ### END LIBTOOL TAG CONFIG: $tagname
13637
# If there is no Makefile yet, we rely on a make rule to execute
13638
# `config.status --recheck' to rerun these tests and create the
13639
# libtool script then.
13640
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13641
if test -f "$ltmain_in"; then
13642
test -f Makefile && make "$ltmain"
13648
ac_cpp='$CXXCPP $CPPFLAGS'
13649
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13650
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13651
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13657
with_gnu_ldcxx=$with_gnu_ld
13658
with_gnu_ld=$lt_save_with_gnu_ld
13659
lt_cv_path_LDCXX=$lt_cv_path_LD
13660
lt_cv_path_LD=$lt_save_path_LD
13661
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13662
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13670
if test -n "$F77" && test "X$F77" != "Xno"; then
13673
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13674
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13675
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13678
archive_cmds_need_lc_F77=no
13679
allow_undefined_flag_F77=
13680
always_export_symbols_F77=no
13681
archive_expsym_cmds_F77=
13682
export_dynamic_flag_spec_F77=
13683
hardcode_direct_F77=no
13684
hardcode_libdir_flag_spec_F77=
13685
hardcode_libdir_flag_spec_ld_F77=
13686
hardcode_libdir_separator_F77=
13687
hardcode_minus_L_F77=no
13688
hardcode_automatic_F77=no
13690
module_expsym_cmds_F77=
13691
link_all_deplibs_F77=unknown
13692
old_archive_cmds_F77=$old_archive_cmds
13693
no_undefined_flag_F77=
13694
whole_archive_flag_spec_F77=
13695
enable_shared_with_static_runtimes_F77=no
13697
# Source file extension for f77 test sources.
13700
# Object file extension for compiled f77 test sources.
13704
# Code to be used in simple compile tests
13705
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13707
# Code to be used in simple link tests
13708
lt_simple_link_test_code=" program t\n end\n"
13710
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13712
# If no C compiler was specified, use CC.
13715
# Allow CC to be a program name with arguments.
13719
# Allow CC to be a program name with arguments.
13724
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13726
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13727
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13728
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13729
echo "${ECHO_T}$can_build_shared" >&6
13731
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13732
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13733
test "$can_build_shared" = "no" && enable_shared=no
13735
# On AIX, shared libraries and static libraries use the same namespace, and
13736
# are all built from PIC.
13739
test "$enable_shared" = yes && enable_static=no
13740
if test -n "$RANLIB"; then
13741
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13742
postinstall_cmds='$RANLIB $lib'
13746
test "$enable_shared" = yes && enable_static=no
13749
echo "$as_me:$LINENO: result: $enable_shared" >&5
13750
echo "${ECHO_T}$enable_shared" >&6
13752
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13753
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13754
# Make sure either enable_shared or enable_static is yes.
13755
test "$enable_shared" = yes || enable_static=yes
13756
echo "$as_me:$LINENO: result: $enable_static" >&5
13757
echo "${ECHO_T}$enable_static" >&6
13759
test "$ld_shlibs_F77" = no && can_build_shared=no
13764
lt_prog_compiler_wl_F77=
13765
lt_prog_compiler_pic_F77=
13766
lt_prog_compiler_static_F77=
13768
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13769
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13771
if test "$GCC" = yes; then
13772
lt_prog_compiler_wl_F77='-Wl,'
13773
lt_prog_compiler_static_F77='-static'
13777
# All AIX code is PIC.
13778
if test "$host_cpu" = ia64; then
13779
# AIX 5 now supports IA64 processor
13780
lt_prog_compiler_static_F77='-Bstatic'
13785
# FIXME: we need at least 68020 code to build shared libraries, but
13786
# adding the `-m68020' flag to GCC prevents building anything better,
13788
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13791
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13792
# PIC is the default for these OSes.
13795
mingw* | pw32* | os2*)
13796
# This hack is so that the source file can tell whether it is being
13797
# built for inclusion in a dll (and should export symbols for example).
13798
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13801
darwin* | rhapsody*)
13802
# PIC is the default on this platform
13803
# Common symbols not allowed in MH_DYLIB files
13804
lt_prog_compiler_pic_F77='-fno-common'
13808
# Just because we use GCC doesn't mean we suddenly get shared libraries
13809
# on systems that don't support them.
13810
lt_prog_compiler_can_build_shared_F77=no
13815
if test -d /usr/nec; then
13816
lt_prog_compiler_pic_F77=-Kconform_pic
13821
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13822
# not for PA HP-UX.
13823
case "$host_cpu" in
13828
lt_prog_compiler_pic_F77='-fPIC'
13834
lt_prog_compiler_pic_F77='-fPIC'
13838
# PORTME Check for flag to pass linker flags through the system compiler.
13841
lt_prog_compiler_wl_F77='-Wl,'
13842
if test "$host_cpu" = ia64; then
13843
# AIX 5 now supports IA64 processor
13844
lt_prog_compiler_static_F77='-Bstatic'
13846
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13850
mingw* | pw32* | os2*)
13851
# This hack is so that the source file can tell whether it is being
13852
# built for inclusion in a dll (and should export symbols for example).
13853
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13856
hpux9* | hpux10* | hpux11*)
13857
lt_prog_compiler_wl_F77='-Wl,'
13858
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13859
# not for PA HP-UX.
13860
case "$host_cpu" in
13865
lt_prog_compiler_pic_F77='+Z'
13868
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13869
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13872
irix5* | irix6* | nonstopux*)
13873
lt_prog_compiler_wl_F77='-Wl,'
13874
# PIC (with -KPIC) is the default.
13875
lt_prog_compiler_static_F77='-non_shared'
13879
lt_prog_compiler_pic_F77='-KPIC'
13880
lt_prog_compiler_static_F77='-Bstatic'
13886
lt_prog_compiler_wl_F77='-Wl,'
13887
lt_prog_compiler_pic_F77='-KPIC'
13888
lt_prog_compiler_static_F77='-static'
13891
lt_prog_compiler_wl_F77='-Wl,'
13892
# All Alpha code is PIC.
13893
lt_prog_compiler_static_F77='-non_shared'
13898
osf3* | osf4* | osf5*)
13899
lt_prog_compiler_wl_F77='-Wl,'
13900
# All OSF/1 code is PIC.
13901
lt_prog_compiler_static_F77='-non_shared'
13905
lt_prog_compiler_pic_F77='-Kpic'
13906
lt_prog_compiler_static_F77='-dn'
13910
lt_prog_compiler_wl_F77='-Wl,'
13911
lt_prog_compiler_pic_F77='-KPIC'
13912
lt_prog_compiler_static_F77='-Bstatic'
13916
lt_prog_compiler_wl_F77='-Qoption ld '
13917
lt_prog_compiler_pic_F77='-PIC'
13918
lt_prog_compiler_static_F77='-Bstatic'
13921
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13922
lt_prog_compiler_wl_F77='-Wl,'
13923
lt_prog_compiler_pic_F77='-KPIC'
13924
lt_prog_compiler_static_F77='-Bstatic'
13928
if test -d /usr/nec ;then
13929
lt_prog_compiler_pic_F77='-Kconform_pic'
13930
lt_prog_compiler_static_F77='-Bstatic'
13935
lt_prog_compiler_pic_F77='-pic'
13936
lt_prog_compiler_static_F77='-Bstatic'
13940
lt_prog_compiler_can_build_shared_F77=no
13945
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13946
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13949
# Check to make sure the PIC flag actually works.
13951
if test -n "$lt_prog_compiler_pic_F77"; then
13953
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13954
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13955
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13956
echo $ECHO_N "(cached) $ECHO_C" >&6
13958
lt_prog_compiler_pic_works_F77=no
13959
ac_outfile=conftest.$ac_objext
13960
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13961
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13962
# Insert the option either (1) after the last *FLAGS variable, or
13963
# (2) before a word containing "conftest.", or (3) at the end.
13964
# Note that $ac_compile itself does not contain backslashes and begins
13965
# with a dollar sign (not a hyphen), so the echo should work correctly.
13966
# The option is referenced via a variable to avoid confusing sed.
13967
lt_compile=`echo "$ac_compile" | $SED \
13968
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13969
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13970
-e 's:$: $lt_compiler_flag:'`
13971
(eval echo "\"\$as_me:13971: $lt_compile\"" >&5)
13972
(eval "$lt_compile" 2>conftest.err)
13974
cat conftest.err >&5
13975
echo "$as_me:13975: \$? = $ac_status" >&5
13976
if (exit $ac_status) && test -s "$ac_outfile"; then
13977
# The compiler can only warn and ignore the option if not recognized
13978
# So say no if there are warnings
13979
if test ! -s conftest.err; then
13980
lt_prog_compiler_pic_works_F77=yes
13986
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13987
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13989
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13990
case $lt_prog_compiler_pic_F77 in
13992
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13995
lt_prog_compiler_pic_F77=
13996
lt_prog_compiler_can_build_shared_F77=no
14001
# For platforms which do not support PIC, -DPIC is meaningless:
14003
lt_prog_compiler_pic_F77=
14006
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14010
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14011
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14012
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14013
echo $ECHO_N "(cached) $ECHO_C" >&6
14015
lt_cv_prog_compiler_c_o_F77=no
14016
$rm -r conftest 2>/dev/null
14020
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14022
lt_compiler_flag="-o out/conftest2.$ac_objext"
14023
# Insert the option either (1) after the last *FLAGS variable, or
14024
# (2) before a word containing "conftest.", or (3) at the end.
14025
# Note that $ac_compile itself does not contain backslashes and begins
14026
# with a dollar sign (not a hyphen), so the echo should work correctly.
14027
lt_compile=`echo "$ac_compile" | $SED \
14028
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14029
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14030
-e 's:$: $lt_compiler_flag:'`
14031
(eval echo "\"\$as_me:14031: $lt_compile\"" >&5)
14032
(eval "$lt_compile" 2>out/conftest.err)
14034
cat out/conftest.err >&5
14035
echo "$as_me:14035: \$? = $ac_status" >&5
14036
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14038
# The compiler can only warn and ignore the option if not recognized
14039
# So say no if there are warnings
14040
if test ! -s out/conftest.err; then
14041
lt_cv_prog_compiler_c_o_F77=yes
14046
# SGI C++ compiler will create directory out/ii_files/ for
14047
# template instantiation
14048
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14049
$rm out/* && rmdir out
14055
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14056
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14059
hard_links="nottested"
14060
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14061
# do not overwrite the value of need_locks provided by the user
14062
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14063
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14066
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14068
ln conftest.a conftest.b 2>&5 || hard_links=no
14069
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14070
echo "$as_me:$LINENO: result: $hard_links" >&5
14071
echo "${ECHO_T}$hard_links" >&6
14072
if test "$hard_links" = no; then
14073
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14074
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14081
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14082
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14085
allow_undefined_flag_F77=
14086
enable_shared_with_static_runtimes_F77=no
14088
archive_expsym_cmds_F77=
14089
old_archive_From_new_cmds_F77=
14090
old_archive_from_expsyms_cmds_F77=
14091
export_dynamic_flag_spec_F77=
14092
whole_archive_flag_spec_F77=
14093
thread_safe_flag_spec_F77=
14094
hardcode_libdir_flag_spec_F77=
14095
hardcode_libdir_flag_spec_ld_F77=
14096
hardcode_libdir_separator_F77=
14097
hardcode_direct_F77=no
14098
hardcode_minus_L_F77=no
14099
hardcode_shlibpath_var_F77=unsupported
14100
link_all_deplibs_F77=unknown
14101
hardcode_automatic_F77=no
14103
module_expsym_cmds_F77=
14104
always_export_symbols_F77=no
14105
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14106
# include_expsyms should be a list of space-separated symbols to be *always*
14107
# included in the symbol list
14108
include_expsyms_F77=
14109
# exclude_expsyms can be an extended regexp of symbols to exclude
14110
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14111
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14112
# as well as any symbol that contains `d'.
14113
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14114
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14115
# platforms (ab)use it in PIC code, but their linkers get confused if
14116
# the symbol is explicitly referenced. Since portable code cannot
14117
# rely on this symbol name, it's probably fine to never include it in
14118
# preloaded symbol tables.
14119
extract_expsyms_cmds=
14122
cygwin* | mingw* | pw32*)
14123
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14124
# When not using gcc, we currently assume that we are using
14125
# Microsoft Visual C++.
14126
if test "$GCC" != yes; then
14136
if test "$with_gnu_ld" = yes; then
14137
# If archive_cmds runs LD, not CC, wlarc should be empty
14140
# See if GNU ld supports shared libraries.
14142
aix3* | aix4* | aix5*)
14143
# On AIX/PPC, the GNU linker is very broken
14144
if test "$host_cpu" != ia64; then
14148
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14149
*** to be unable to reliably create shared libraries on AIX.
14150
*** Therefore, libtool is disabling shared libraries support. If you
14151
*** really care for shared libraries, you may want to modify your PATH
14152
*** so that a non-GNU linker is found, and then restart.
14159
archive_cmds_F77='$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)'
14160
hardcode_libdir_flag_spec_F77='-L$libdir'
14161
hardcode_minus_L_F77=yes
14163
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14164
# that the semantics of dynamic libraries on AmigaOS, at least up
14165
# to version 4, is to share data among multiple programs linked
14166
# with the same dynamic library. Since this doesn't match the
14167
# behavior of shared libraries on other platforms, we can't use
14173
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14174
allow_undefined_flag_F77=unsupported
14175
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14176
# support --undefined. This deserves some investigation. FIXME
14177
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14183
cygwin* | mingw* | pw32*)
14184
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14185
# as there is no search path for DLLs.
14186
hardcode_libdir_flag_spec_F77='-L$libdir'
14187
allow_undefined_flag_F77=unsupported
14188
always_export_symbols_F77=no
14189
enable_shared_with_static_runtimes_F77=yes
14190
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14192
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14193
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14194
# If the export-symbols file already is a .def file (1st line
14195
# is EXPORTS), use it as is; otherwise, prepend...
14196
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14197
cp $export_symbols $output_objdir/$soname.def;
14199
echo EXPORTS > $output_objdir/$soname.def;
14200
cat $export_symbols >> $output_objdir/$soname.def;
14202
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14208
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14209
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14210
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14213
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14214
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14219
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14223
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14224
*** create shared libraries on Solaris systems. Therefore, libtool
14225
*** is disabling shared libraries support. We urge you to upgrade GNU
14226
*** binutils to release 2.9.1 or newer. Another option is to modify
14227
*** your PATH or compiler configuration so that the native linker is
14228
*** used, and then restart.
14231
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14232
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14233
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14240
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14242
hardcode_direct_F77=yes
14243
hardcode_shlibpath_var_F77=no
14247
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14248
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14249
archive_cmds_F77="$tmp_archive_cmds"
14250
supports_anon_versioning=no
14251
case `$LD -v 2>/dev/null` in
14252
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14253
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14254
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14255
*\ 2.11.*) ;; # other 2.11 versions
14256
*) supports_anon_versioning=yes ;;
14258
if test $supports_anon_versioning = yes; then
14259
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14260
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14261
$echo "local: *; };" >> $output_objdir/$libname.ver~
14262
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14264
archive_expsym_cmds_F77="$tmp_archive_cmds"
14266
link_all_deplibs_F77=no
14273
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14274
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14275
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14282
if test "$ld_shlibs_F77" = yes; then
14283
runpath_var=LD_RUN_PATH
14284
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14285
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14286
# ancient GNU ld didn't support --whole-archive et. al.
14287
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14288
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14290
whole_archive_flag_spec_F77=
14294
# PORTME fill in a description of your system's linker (not GNU ld)
14297
allow_undefined_flag_F77=unsupported
14298
always_export_symbols_F77=yes
14299
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14300
# Note: this linker hardcodes the directories in LIBPATH if there
14301
# are no directories specified by -L.
14302
hardcode_minus_L_F77=yes
14303
if test "$GCC" = yes && test -z "$link_static_flag"; then
14304
# Neither direct hardcoding nor static linking is supported with a
14306
hardcode_direct_F77=unsupported
14311
if test "$host_cpu" = ia64; then
14312
# On IA64, the linker does run time linking by default, so we don't
14313
# have to do anything special.
14314
aix_use_runtimelinking=no
14315
exp_sym_flag='-Bexport'
14318
# If we're using GNU nm, then we don't want the "-C" option.
14319
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14320
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14321
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14323
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14325
aix_use_runtimelinking=no
14327
# Test if we are trying to use run time linking or normal
14328
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14329
# need to do runtime linking.
14330
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14331
for ld_flag in $LDFLAGS; do
14332
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14333
aix_use_runtimelinking=yes
14339
exp_sym_flag='-bexport'
14340
no_entry_flag='-bnoentry'
14343
# When large executables or shared objects are built, AIX ld can
14344
# have problems creating the table of contents. If linking a library
14345
# or program results in "error TOC overflow" add -mminimal-toc to
14346
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14347
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14349
archive_cmds_F77=''
14350
hardcode_direct_F77=yes
14351
hardcode_libdir_separator_F77=':'
14352
link_all_deplibs_F77=yes
14354
if test "$GCC" = yes; then
14355
case $host_os in aix4.012|aix4.012.*)
14356
# We only want to do this on AIX 4.2 and lower, the check
14357
# below for broken collect2 doesn't work under 4.3+
14358
collect2name=`${CC} -print-prog-name=collect2`
14359
if test -f "$collect2name" && \
14360
strings "$collect2name" | grep resolve_lib_name >/dev/null
14362
# We have reworked collect2
14363
hardcode_direct_F77=yes
14365
# We have old collect2
14366
hardcode_direct_F77=unsupported
14367
# It fails to find uninstalled libraries when the uninstalled
14368
# path is not listed in the libpath. Setting hardcode_minus_L
14369
# to unsupported forces relinking
14370
hardcode_minus_L_F77=yes
14371
hardcode_libdir_flag_spec_F77='-L$libdir'
14372
hardcode_libdir_separator_F77=
14375
shared_flag='-shared'
14378
if test "$host_cpu" = ia64; then
14379
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14380
# chokes on -Wl,-G. The following line is correct:
14383
if test "$aix_use_runtimelinking" = yes; then
14384
shared_flag='${wl}-G'
14386
shared_flag='${wl}-bM:SRE'
14391
# It seems that -bexpall does not export symbols beginning with
14392
# underscore (_), so it is better to generate a list of symbols to export.
14393
always_export_symbols_F77=yes
14394
if test "$aix_use_runtimelinking" = yes; then
14395
# Warning - without using the other runtime loading flags (-brtl),
14396
# -berok will link without error, but may produce a broken library.
14397
allow_undefined_flag_F77='-berok'
14398
# Determine the default libpath from the value encoded in an empty executable.
14399
cat >conftest.$ac_ext <<_ACEOF
14404
rm -f conftest.$ac_objext conftest$ac_exeext
14405
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14406
(eval $ac_link) 2>conftest.er1
14408
grep -v '^ *+' conftest.er1 >conftest.err
14410
cat conftest.err >&5
14411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412
(exit $ac_status); } &&
14413
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14414
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415
(eval $ac_try) 2>&5
14417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418
(exit $ac_status); }; } &&
14419
{ ac_try='test -s conftest$ac_exeext'
14420
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421
(eval $ac_try) 2>&5
14423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424
(exit $ac_status); }; }; then
14426
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14428
# Check for a 64-bit object if we didn't find anything.
14429
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; }
14432
echo "$as_me: failed program was:" >&5
14433
sed 's/^/| /' conftest.$ac_ext >&5
14436
rm -f conftest.err conftest.$ac_objext \
14437
conftest$ac_exeext conftest.$ac_ext
14438
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14440
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14441
archive_expsym_cmds_F77="\$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"
14443
if test "$host_cpu" = ia64; then
14444
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14445
allow_undefined_flag_F77="-z nodefs"
14446
archive_expsym_cmds_F77="\$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"
14448
# Determine the default libpath from the value encoded in an empty executable.
14449
cat >conftest.$ac_ext <<_ACEOF
14454
rm -f conftest.$ac_objext conftest$ac_exeext
14455
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14456
(eval $ac_link) 2>conftest.er1
14458
grep -v '^ *+' conftest.er1 >conftest.err
14460
cat conftest.err >&5
14461
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462
(exit $ac_status); } &&
14463
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14464
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14465
(eval $ac_try) 2>&5
14467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468
(exit $ac_status); }; } &&
14469
{ ac_try='test -s conftest$ac_exeext'
14470
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471
(eval $ac_try) 2>&5
14473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474
(exit $ac_status); }; }; then
14476
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14478
# Check for a 64-bit object if we didn't find anything.
14479
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; }
14482
echo "$as_me: failed program was:" >&5
14483
sed 's/^/| /' conftest.$ac_ext >&5
14486
rm -f conftest.err conftest.$ac_objext \
14487
conftest$ac_exeext conftest.$ac_ext
14488
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14490
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14491
# Warning - without using the other run time loading flags,
14492
# -berok will link without error, but may produce a broken library.
14493
no_undefined_flag_F77=' ${wl}-bernotok'
14494
allow_undefined_flag_F77=' ${wl}-berok'
14495
# -bexpall does not export symbols beginning with underscore (_)
14496
always_export_symbols_F77=yes
14497
# Exported symbols can be pulled into shared objects from archives
14498
whole_archive_flag_spec_F77=' '
14499
archive_cmds_need_lc_F77=yes
14500
# This is similar to how AIX traditionally builds it's shared libraries.
14501
archive_expsym_cmds_F77="\$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'
14507
archive_cmds_F77='$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)'
14508
hardcode_libdir_flag_spec_F77='-L$libdir'
14509
hardcode_minus_L_F77=yes
14510
# see comment about different semantics on the GNU ld section
14515
export_dynamic_flag_spec_F77=-rdynamic
14518
cygwin* | mingw* | pw32*)
14519
# When not using gcc, we currently assume that we are using
14520
# Microsoft Visual C++.
14521
# hardcode_libdir_flag_spec is actually meaningless, as there is
14522
# no search path for DLLs.
14523
hardcode_libdir_flag_spec_F77=' '
14524
allow_undefined_flag_F77=unsupported
14525
# Tell ltmain to make .lib files, not .a files.
14527
# Tell ltmain to make .dll files, not .so files.
14529
# FIXME: Setting linknames here is a bad hack.
14530
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14531
# The linker will automatically build a .lib file if we build a DLL.
14532
old_archive_From_new_cmds_F77='true'
14533
# FIXME: Should let the user specify the lib program.
14534
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14535
fix_srcfile_path='`cygpath -w "$srcfile"`'
14536
enable_shared_with_static_runtimes_F77=yes
14539
darwin* | rhapsody*)
14540
if test "$GXX" = yes ; then
14541
archive_cmds_need_lc_F77=no
14543
rhapsody* | darwin1.[012])
14544
allow_undefined_flag_F77='-undefined suppress'
14547
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14548
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14550
case ${MACOSX_DEPLOYMENT_TARGET} in
14552
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14555
allow_undefined_flag_F77='-undefined dynamic_lookup'
14561
lt_int_apple_cc_single_mod=no
14562
output_verbose_link_cmd='echo'
14563
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14564
lt_int_apple_cc_single_mod=yes
14566
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14567
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14569
archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14571
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14572
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14573
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14574
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14576
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14578
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14579
hardcode_direct_F77=no
14580
hardcode_automatic_F77=yes
14581
hardcode_shlibpath_var_F77=unsupported
14582
whole_archive_flag_spec_F77='-all_load $convenience'
14583
link_all_deplibs_F77=yes
14590
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14591
hardcode_libdir_flag_spec_F77='-L$libdir'
14592
hardcode_shlibpath_var_F77=no
14599
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14600
# support. Future versions do this automatically, but an explicit c++rt0.o
14601
# does not break anything, and helps significantly (at the cost of a little
14604
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14605
hardcode_libdir_flag_spec_F77='-R$libdir'
14606
hardcode_direct_F77=yes
14607
hardcode_shlibpath_var_F77=no
14610
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14612
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14613
hardcode_direct_F77=yes
14614
hardcode_minus_L_F77=yes
14615
hardcode_shlibpath_var_F77=no
14618
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14619
freebsd* | kfreebsd*-gnu)
14620
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14621
hardcode_libdir_flag_spec_F77='-R$libdir'
14622
hardcode_direct_F77=yes
14623
hardcode_shlibpath_var_F77=no
14627
if test "$GCC" = yes; then
14628
archive_cmds_F77='$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'
14630
archive_cmds_F77='$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'
14632
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14633
hardcode_libdir_separator_F77=:
14634
hardcode_direct_F77=yes
14636
# hardcode_minus_L: Not really in the search PATH,
14637
# but as the default location of the library.
14638
hardcode_minus_L_F77=yes
14639
export_dynamic_flag_spec_F77='${wl}-E'
14643
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14644
case "$host_cpu" in
14646
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14649
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14653
case "$host_cpu" in
14655
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14658
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14662
if test "$with_gnu_ld" = no; then
14663
case "$host_cpu" in
14665
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14666
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14667
hardcode_libdir_separator_F77=:
14668
hardcode_direct_F77=no
14669
hardcode_shlibpath_var_F77=no
14672
hardcode_libdir_flag_spec_F77='-L$libdir'
14673
hardcode_direct_F77=no
14674
hardcode_shlibpath_var_F77=no
14676
# hardcode_minus_L: Not really in the search PATH,
14677
# but as the default location of the library.
14678
hardcode_minus_L_F77=yes
14681
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14682
hardcode_libdir_separator_F77=:
14683
hardcode_direct_F77=yes
14684
export_dynamic_flag_spec_F77='${wl}-E'
14686
# hardcode_minus_L: Not really in the search PATH,
14687
# but as the default location of the library.
14688
hardcode_minus_L_F77=yes
14694
irix5* | irix6* | nonstopux*)
14695
if test "$GCC" = yes; then
14696
archive_cmds_F77='$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'
14698
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14699
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14701
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14702
hardcode_libdir_separator_F77=:
14703
link_all_deplibs_F77=yes
14706
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14707
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14708
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14710
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14712
hardcode_libdir_flag_spec_F77='-R$libdir'
14713
hardcode_direct_F77=yes
14714
hardcode_shlibpath_var_F77=no
14718
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14719
hardcode_direct_F77=yes
14720
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14721
hardcode_libdir_separator_F77=:
14722
hardcode_shlibpath_var_F77=no
14726
hardcode_direct_F77=yes
14727
hardcode_shlibpath_var_F77=no
14728
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14729
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14730
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14731
export_dynamic_flag_spec_F77='${wl}-E'
14734
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14735
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14736
hardcode_libdir_flag_spec_F77='-R$libdir'
14739
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14740
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14747
hardcode_libdir_flag_spec_F77='-L$libdir'
14748
hardcode_minus_L_F77=yes
14749
allow_undefined_flag_F77=unsupported
14750
archive_cmds_F77='$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'
14751
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14755
if test "$GCC" = yes; then
14756
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14757
archive_cmds_F77='$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'
14759
allow_undefined_flag_F77=' -expect_unresolved \*'
14760
archive_cmds_F77='$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'
14762
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14763
hardcode_libdir_separator_F77=:
14766
osf4* | osf5*) # as osf3* with the addition of -msym flag
14767
if test "$GCC" = yes; then
14768
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14769
archive_cmds_F77='$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'
14770
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14772
allow_undefined_flag_F77=' -expect_unresolved \*'
14773
archive_cmds_F77='$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'
14774
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14775
$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'
14777
# Both c and cxx compiler support -rpath directly
14778
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14780
hardcode_libdir_separator_F77=:
14784
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14785
hardcode_shlibpath_var_F77=no
14786
export_dynamic_flag_spec_F77='${wl}-Bexport'
14787
runpath_var=LD_RUN_PATH
14788
hardcode_runpath_var=yes
14792
no_undefined_flag_F77=' -z text'
14793
if test "$GCC" = yes; then
14794
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14795
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14796
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14798
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14799
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14800
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14802
hardcode_libdir_flag_spec_F77='-R$libdir'
14803
hardcode_shlibpath_var_F77=no
14805
solaris2.[0-5] | solaris2.[0-5].*) ;;
14806
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
14807
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14809
link_all_deplibs_F77=yes
14813
if test "x$host_vendor" = xsequent; then
14814
# Use $CC to link under sequent, because it throws in some extra .o
14815
# files that make .init and .fini sections work.
14816
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14818
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14820
hardcode_libdir_flag_spec_F77='-L$libdir'
14821
hardcode_direct_F77=yes
14822
hardcode_minus_L_F77=yes
14823
hardcode_shlibpath_var_F77=no
14827
case $host_vendor in
14829
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14830
hardcode_direct_F77=yes # is this really true???
14833
## LD is ld it makes a PLAMLIB
14834
## CC just makes a GrossModule.
14835
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14836
reload_cmds_F77='$CC -r -o $output$reload_objs'
14837
hardcode_direct_F77=no
14840
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14841
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14844
runpath_var='LD_RUN_PATH'
14845
hardcode_shlibpath_var_F77=no
14849
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14850
hardcode_shlibpath_var_F77=no
14851
export_dynamic_flag_spec_F77='-Bexport'
14855
if test -d /usr/nec; then
14856
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14857
hardcode_shlibpath_var_F77=no
14858
runpath_var=LD_RUN_PATH
14859
hardcode_runpath_var=yes
14865
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14866
hardcode_direct_F77=yes
14867
hardcode_minus_L_F77=no
14868
hardcode_shlibpath_var_F77=no
14869
hardcode_runpath_var=yes
14870
runpath_var=LD_RUN_PATH
14873
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14874
no_undefined_flag_F77='${wl}-z ${wl}text'
14875
if test "$GCC" = yes; then
14876
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14878
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14880
runpath_var='LD_RUN_PATH'
14881
hardcode_shlibpath_var_F77=no
14885
no_undefined_flag_F77=' -z text'
14886
# $CC -shared without GNU ld will not create a library from C++
14887
# object files and a static libstdc++, better avoid it by now
14888
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14889
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14890
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14891
hardcode_libdir_flag_spec_F77=
14892
hardcode_shlibpath_var_F77=no
14893
runpath_var='LD_RUN_PATH'
14897
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14898
hardcode_libdir_flag_spec_F77='-L$libdir'
14899
hardcode_shlibpath_var_F77=no
14908
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14909
echo "${ECHO_T}$ld_shlibs_F77" >&6
14910
test "$ld_shlibs_F77" = no && can_build_shared=no
14912
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14913
if test "$GCC" = yes; then
14914
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14918
# Do we need to explicitly link libc?
14920
case "x$archive_cmds_need_lc_F77" in
14922
# Assume -lc should be added
14923
archive_cmds_need_lc_F77=yes
14925
if test "$enable_shared" = yes && test "$GCC" = yes; then
14926
case $archive_cmds_F77 in
14928
# FIXME: we may have to deal with multi-command sequences.
14931
# Test whether the compiler implicitly links with -lc since on some
14932
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14933
# to ld, don't add -lc before -lgcc.
14934
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14935
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14937
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14939
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14940
(eval $ac_compile) 2>&5
14942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943
(exit $ac_status); } 2>conftest.err; then
14946
libobjs=conftest.$ac_objext
14948
wl=$lt_prog_compiler_wl_F77
14954
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14955
allow_undefined_flag_F77=
14956
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14957
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14959
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960
(exit $ac_status); }
14962
archive_cmds_need_lc_F77=no
14964
archive_cmds_need_lc_F77=yes
14966
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14968
cat conftest.err 1>&5
14971
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14972
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14979
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14980
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14981
library_names_spec=
14982
libname_spec='lib$name'
14986
postuninstall_cmds=
14990
shlibpath_overrides_runpath=unknown
14992
dynamic_linker="$host_os ld.so"
14993
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14994
if test "$GCC" = yes; then
14995
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14996
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14997
# if the path contains ";" then we assume it to be the separator
14998
# otherwise default to the standard path separator (i.e. ":") - it is
14999
# assumed that no part of a normal pathname contains ";" but that should
15000
# okay in the real world where ";" in dirpaths is itself problematic.
15001
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15003
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15006
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15008
need_lib_prefix=unknown
15009
hardcode_into_libs=no
15011
# when you set need_version to no, make sure it does not cause -set_version
15012
# flags to be left without arguments
15013
need_version=unknown
15018
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15019
shlibpath_var=LIBPATH
15021
# AIX 3 has no versioning support, so we append a major version to the name.
15022
soname_spec='${libname}${release}${shared_ext}$major'
15029
hardcode_into_libs=yes
15030
if test "$host_cpu" = ia64; then
15031
# AIX 5 supports IA64
15032
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15033
shlibpath_var=LD_LIBRARY_PATH
15035
# With GCC up to 2.95.x, collect2 would create an import file
15036
# for dependence libraries. The import file would start with
15037
# the line `#! .'. This would cause the generated library to
15038
# depend on `.', always an invalid library. This was fixed in
15039
# development snapshots of GCC prior to 3.0.
15041
aix4 | aix4.[01] | aix4.[01].*)
15042
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15044
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15047
can_build_shared=no
15051
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15052
# soname into executable. Probably we can add versioning support to
15053
# collect2, so additional links can be useful in future.
15054
if test "$aix_use_runtimelinking" = yes; then
15055
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15056
# instead of lib<name>.a to let people know that these are not
15057
# typical AIX shared libraries.
15058
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15060
# We preserve .a as extension for shared libraries through AIX4.2
15061
# and later when we are not doing run time linking.
15062
library_names_spec='${libname}${release}.a $libname.a'
15063
soname_spec='${libname}${release}${shared_ext}$major'
15065
shlibpath_var=LIBPATH
15070
library_names_spec='$libname.ixlibrary $libname.a'
15071
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15072
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'
15076
library_names_spec='${libname}${shared_ext}'
15077
dynamic_linker="$host_os ld.so"
15078
shlibpath_var=LIBRARY_PATH
15084
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15085
soname_spec='${libname}${release}${shared_ext}$major'
15086
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15087
shlibpath_var=LD_LIBRARY_PATH
15088
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15089
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15090
# the default ld.so.conf also contains /usr/contrib/lib and
15091
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15092
# libtool to hard-code these into programs
15095
cygwin* | mingw* | pw32*)
15096
version_type=windows
15101
case $GCC,$host_os in
15102
yes,cygwin* | yes,mingw* | yes,pw32*)
15103
library_names_spec='$libname.dll.a'
15104
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15105
postinstall_cmds='base_file=`basename \${file}`~
15106
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15107
dldir=$destdir/`dirname \$dlpath`~
15108
test -d \$dldir || mkdir -p \$dldir~
15109
$install_prog $dir/$dlname \$dldir/$dlname'
15110
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15111
dlpath=$dir/\$dldll~
15113
shlibpath_overrides_runpath=yes
15117
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15118
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15119
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15122
# MinGW DLLs use traditional 'lib' prefix
15123
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15124
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15125
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15126
# It is most probably a Windows format PATH printed by
15127
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15128
# path with ; separators, and with drive letters. We can handle the
15129
# drive letters (cygwin fileutils understands them), so leave them,
15130
# especially as we might pass files found there to a mingw objdump,
15131
# which wouldn't understand a cygwinified path. Ahh.
15132
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15134
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15138
# pw32 DLLs use 'pw' prefix rather than 'lib'
15139
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15145
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15148
dynamic_linker='Win32 ld.exe'
15149
# FIXME: first we should search . and the directory the executable is in
15153
darwin* | rhapsody*)
15154
dynamic_linker="$host_os dyld"
15155
version_type=darwin
15158
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15159
soname_spec='${libname}${release}${major}$shared_ext'
15160
shlibpath_overrides_runpath=yes
15161
shlibpath_var=DYLD_LIBRARY_PATH
15162
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15163
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15164
if test "$GCC" = yes; then
15165
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15167
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15169
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15176
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15177
soname_spec='${libname}${release}${shared_ext}$major'
15178
shlibpath_var=LD_LIBRARY_PATH
15189
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15190
soname_spec='${libname}${release}${shared_ext}$major'
15191
shlibpath_var=LD_LIBRARY_PATH
15192
shlibpath_overrides_runpath=no
15193
hardcode_into_libs=yes
15194
dynamic_linker='GNU ld.so'
15198
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15199
version_type=freebsd-$objformat
15200
case $version_type in
15202
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15207
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15211
shlibpath_var=LD_LIBRARY_PATH
15214
shlibpath_overrides_runpath=yes
15216
freebsd3.01* | freebsdelf3.01*)
15217
shlibpath_overrides_runpath=yes
15218
hardcode_into_libs=yes
15221
shlibpath_overrides_runpath=no
15222
hardcode_into_libs=yes
15231
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15232
soname_spec='${libname}${release}${shared_ext}$major'
15233
shlibpath_var=LD_LIBRARY_PATH
15234
hardcode_into_libs=yes
15237
hpux9* | hpux10* | hpux11*)
15238
# Give a soname corresponding to the major version so that dld.sl refuses to
15239
# link against other versions.
15243
case "$host_cpu" in
15246
hardcode_into_libs=yes
15247
dynamic_linker="$host_os dld.so"
15248
shlibpath_var=LD_LIBRARY_PATH
15249
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15250
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15251
soname_spec='${libname}${release}${shared_ext}$major'
15252
if test "X$HPUX_IA64_MODE" = X32; then
15253
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15255
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15257
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15261
hardcode_into_libs=yes
15262
dynamic_linker="$host_os dld.sl"
15263
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15264
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15265
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15266
soname_spec='${libname}${release}${shared_ext}$major'
15267
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15268
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15272
dynamic_linker="$host_os dld.sl"
15273
shlibpath_var=SHLIB_PATH
15274
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15275
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15276
soname_spec='${libname}${release}${shared_ext}$major'
15279
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15280
postinstall_cmds='chmod 555 $lib'
15283
irix5* | irix6* | nonstopux*)
15285
nonstopux*) version_type=nonstopux ;;
15287
if test "$lt_cv_prog_gnu_ld" = yes; then
15295
soname_spec='${libname}${release}${shared_ext}$major'
15296
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15298
irix5* | nonstopux*)
15299
libsuff= shlibsuff=
15302
case $LD in # libtool.m4 will add one of these switches to LD
15303
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15304
libsuff= shlibsuff= libmagic=32-bit;;
15305
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15306
libsuff=32 shlibsuff=N32 libmagic=N32;;
15307
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15308
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15309
*) libsuff= shlibsuff= libmagic=never-match;;
15313
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15314
shlibpath_overrides_runpath=no
15315
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15316
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15317
hardcode_into_libs=yes
15320
# No shared lib support for Linux oldld, aout, or coff.
15321
linux*oldld* | linux*aout* | linux*coff*)
15325
# This must be Linux ELF.
15330
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15331
soname_spec='${libname}${release}${shared_ext}$major'
15332
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15333
shlibpath_var=LD_LIBRARY_PATH
15334
shlibpath_overrides_runpath=no
15335
# This implies no fast_install, which is unacceptable.
15336
# Some rework will be needed to allow for fast_install
15337
# before this can be enabled.
15338
hardcode_into_libs=yes
15340
# Append ld.so.conf contents to the search path
15341
if test -f /etc/ld.so.conf; then
15342
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15343
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15346
# We used to test for /lib/ld.so.1 and disable shared libraries on
15347
# powerpc, because MkLinux only supported shared libraries with the
15348
# GNU dynamic linker. Since this was broken with cross compilers,
15349
# most powerpc-linux boxes support dynamic linking these days and
15350
# people can always --disable-shared, the test was removed, and we
15351
# assume the GNU/Linux dynamic linker is in use.
15352
dynamic_linker='GNU/Linux ld.so'
15359
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15360
soname_spec='${libname}${release}${shared_ext}$major'
15361
shlibpath_var=LD_LIBRARY_PATH
15362
shlibpath_overrides_runpath=no
15363
hardcode_into_libs=yes
15364
dynamic_linker='NetBSD ld.elf_so'
15371
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15372
soname_spec='${libname}${release}${shared_ext}$major'
15373
shlibpath_var=LD_LIBRARY_PATH
15374
shlibpath_overrides_runpath=no
15375
hardcode_into_libs=yes
15376
dynamic_linker='GNU ld.so'
15383
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15385
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15386
dynamic_linker='NetBSD (a.out) ld.so'
15388
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15389
soname_spec='${libname}${release}${shared_ext}$major'
15390
dynamic_linker='NetBSD ld.elf_so'
15392
shlibpath_var=LD_LIBRARY_PATH
15393
shlibpath_overrides_runpath=yes
15394
hardcode_into_libs=yes
15399
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15400
shlibpath_var=LD_LIBRARY_PATH
15401
shlibpath_overrides_runpath=yes
15408
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15409
soname_spec='${libname}${release}${shared_ext}$major'
15410
shlibpath_var=LD_LIBRARY_PATH
15411
shlibpath_overrides_runpath=yes
15418
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15419
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15420
shlibpath_var=LD_LIBRARY_PATH
15421
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15423
openbsd2.[89] | openbsd2.[89].*)
15424
shlibpath_overrides_runpath=no
15427
shlibpath_overrides_runpath=yes
15431
shlibpath_overrides_runpath=yes
15436
libname_spec='$name'
15439
library_names_spec='$libname${shared_ext} $libname.a'
15440
dynamic_linker='OS/2 ld.exe'
15441
shlibpath_var=LIBPATH
15444
osf3* | osf4* | osf5*)
15448
soname_spec='${libname}${release}${shared_ext}$major'
15449
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450
shlibpath_var=LD_LIBRARY_PATH
15451
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15452
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15457
soname_spec='${libname}${release}${shared_ext}$major'
15458
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459
shlibpath_var=LD_LIBRARY_PATH
15466
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15467
soname_spec='${libname}${release}${shared_ext}$major'
15468
shlibpath_var=LD_LIBRARY_PATH
15469
shlibpath_overrides_runpath=yes
15470
hardcode_into_libs=yes
15471
# ldd complains unless libraries are executable
15472
postinstall_cmds='chmod +x $lib'
15477
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15478
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15479
shlibpath_var=LD_LIBRARY_PATH
15480
shlibpath_overrides_runpath=yes
15481
if test "$with_gnu_ld" = yes; then
15487
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15489
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15490
soname_spec='${libname}${release}${shared_ext}$major'
15491
shlibpath_var=LD_LIBRARY_PATH
15492
case $host_vendor in
15494
shlibpath_overrides_runpath=no
15496
export_dynamic_flag_spec='${wl}-Blargedynsym'
15497
runpath_var=LD_RUN_PATH
15505
shlibpath_overrides_runpath=no
15506
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15512
if test -d /usr/nec ;then
15514
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15515
soname_spec='$libname${shared_ext}.$major'
15516
shlibpath_var=LD_LIBRARY_PATH
15522
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15523
soname_spec='${libname}${release}${shared_ext}$major'
15524
shlibpath_var=LD_LIBRARY_PATH
15531
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15532
echo "${ECHO_T}$dynamic_linker" >&6
15533
test "$dynamic_linker" = no && can_build_shared=no
15535
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15536
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15537
hardcode_action_F77=
15538
if test -n "$hardcode_libdir_flag_spec_F77" || \
15539
test -n "$runpath_var F77" || \
15540
test "X$hardcode_automatic_F77"="Xyes" ; then
15542
# We can hardcode non-existant directories.
15543
if test "$hardcode_direct_F77" != no &&
15544
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15545
# have to relink, otherwise we might link with an installed library
15546
# when we should be linking with a yet-to-be-installed one
15547
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15548
test "$hardcode_minus_L_F77" != no; then
15549
# Linking always hardcodes the temporary library directory.
15550
hardcode_action_F77=relink
15552
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15553
hardcode_action_F77=immediate
15556
# We cannot hardcode anything, or else we can only hardcode existing
15558
hardcode_action_F77=unsupported
15560
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15561
echo "${ECHO_T}$hardcode_action_F77" >&6
15563
if test "$hardcode_action_F77" = relink; then
15564
# Fast installation is not supported
15565
enable_fast_install=no
15566
elif test "$shlibpath_overrides_runpath" = yes ||
15567
test "$enable_shared" = no; then
15568
# Fast installation is not necessary
15569
enable_fast_install=needless
15574
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15575
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15576
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15577
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15578
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15579
echo "$as_me:$LINENO: result: yes" >&5
15580
echo "${ECHO_T}yes" >&6
15582
# FIXME - insert some real tests, host_os isn't really good enough
15585
if test -n "$STRIP" ; then
15586
striplib="$STRIP -x"
15587
echo "$as_me:$LINENO: result: yes" >&5
15588
echo "${ECHO_T}yes" >&6
15590
echo "$as_me:$LINENO: result: no" >&5
15591
echo "${ECHO_T}no" >&6
15595
echo "$as_me:$LINENO: result: no" >&5
15596
echo "${ECHO_T}no" >&6
15603
# The else clause should only fire when bootstrapping the
15604
# libtool distribution, otherwise you forgot to ship ltmain.sh
15605
# with your package, and you will get complaints that there are
15606
# no rules to generate ltmain.sh.
15607
if test -f "$ltmain"; then
15608
# See if we are running on zsh, and set the options which allow our commands through
15609
# without removal of \ escapes.
15610
if test -n "${ZSH_VERSION+set}" ; then
15611
setopt NO_GLOB_SUBST
15613
# Now quote all the things that may contain metacharacters while being
15614
# careful not to overquote the AC_SUBSTed values. We take copies of the
15615
# variables and quote the copies for generation of the libtool script.
15616
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15618
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15619
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15620
deplibs_check_method reload_flag reload_cmds need_locks \
15621
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15622
lt_cv_sys_global_symbol_to_c_name_address \
15623
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15624
old_postinstall_cmds old_postuninstall_cmds \
15628
lt_prog_compiler_wl_F77 \
15629
lt_prog_compiler_pic_F77 \
15630
lt_prog_compiler_static_F77 \
15631
lt_prog_compiler_no_builtin_flag_F77 \
15632
export_dynamic_flag_spec_F77 \
15633
thread_safe_flag_spec_F77 \
15634
whole_archive_flag_spec_F77 \
15635
enable_shared_with_static_runtimes_F77 \
15636
old_archive_cmds_F77 \
15637
old_archive_from_new_cmds_F77 \
15638
predep_objects_F77 \
15639
postdep_objects_F77 \
15642
compiler_lib_search_path_F77 \
15644
archive_expsym_cmds_F77 \
15645
postinstall_cmds_F77 \
15646
postuninstall_cmds_F77 \
15647
old_archive_from_expsyms_cmds_F77 \
15648
allow_undefined_flag_F77 \
15649
no_undefined_flag_F77 \
15650
export_symbols_cmds_F77 \
15651
hardcode_libdir_flag_spec_F77 \
15652
hardcode_libdir_flag_spec_ld_F77 \
15653
hardcode_libdir_separator_F77 \
15654
hardcode_automatic_F77 \
15656
module_expsym_cmds_F77 \
15657
lt_cv_prog_compiler_c_o_F77 \
15658
exclude_expsyms_F77 \
15659
include_expsyms_F77; do
15662
old_archive_cmds_F77 | \
15663
old_archive_from_new_cmds_F77 | \
15664
archive_cmds_F77 | \
15665
archive_expsym_cmds_F77 | \
15666
module_cmds_F77 | \
15667
module_expsym_cmds_F77 | \
15668
old_archive_from_expsyms_cmds_F77 | \
15669
export_symbols_cmds_F77 | \
15670
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15671
postinstall_cmds | postuninstall_cmds | \
15672
old_postinstall_cmds | old_postuninstall_cmds | \
15673
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15674
# Double-quote double-evaled strings.
15675
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15678
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15684
*'\$0 --fallback-echo"')
15685
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15691
cat <<__EOF__ >> "$cfgfile"
15692
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15694
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15696
# Shell to use when invoking shell scripts.
15699
# Whether or not to build shared libraries.
15700
build_libtool_libs=$enable_shared
15702
# Whether or not to build static libraries.
15703
build_old_libs=$enable_static
15705
# Whether or not to add -lc for building shared libraries.
15706
build_libtool_need_lc=$archive_cmds_need_lc_F77
15708
# Whether or not to disallow shared libs when runtime libs are static
15709
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15711
# Whether or not to optimize for fast installation.
15712
fast_install=$enable_fast_install
15715
host_alias=$host_alias
15718
# An echo program that does not interpret backslashes.
15723
AR_FLAGS=$lt_AR_FLAGS
15728
# A language-specific compiler.
15729
CC=$lt_compiler_F77
15731
# Is the compiler the GNU C compiler?
15737
# The linker used to build libraries.
15740
# Whether we need hard or soft links.
15743
# A BSD-compatible nm program.
15746
# A symbol stripping program
15749
# Used to examine libraries when file_magic_cmd begins "file"
15750
MAGIC_CMD=$MAGIC_CMD
15752
# Used on cygwin: DLL creation program.
15755
# Used on cygwin: object dumper.
15758
# Used on cygwin: assembler.
15761
# The name of the directory that contains temporary libtool files.
15764
# How to create reloadable object files.
15765
reload_flag=$lt_reload_flag
15766
reload_cmds=$lt_reload_cmds
15768
# How to pass a linker flag through the compiler.
15769
wl=$lt_lt_prog_compiler_wl_F77
15771
# Object file suffix (normally "o").
15772
objext="$ac_objext"
15774
# Old archive suffix (normally "a").
15777
# Shared library suffix (normally ".so").
15778
shrext_cmds='$shrext_cmds'
15780
# Executable file suffix (normally "").
15783
# Additional compiler flags for building library objects.
15784
pic_flag=$lt_lt_prog_compiler_pic_F77
15787
# What is the maximum length of a command?
15788
max_cmd_len=$lt_cv_sys_max_cmd_len
15790
# Does compiler simultaneously support -c and -o options?
15791
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15793
# Must we lock files when doing compilation ?
15794
need_locks=$lt_need_locks
15796
# Do we need the lib prefix for modules?
15797
need_lib_prefix=$need_lib_prefix
15799
# Do we need a version for libraries?
15800
need_version=$need_version
15802
# Whether dlopen is supported.
15803
dlopen_support=$enable_dlopen
15805
# Whether dlopen of programs is supported.
15806
dlopen_self=$enable_dlopen_self
15808
# Whether dlopen of statically linked programs is supported.
15809
dlopen_self_static=$enable_dlopen_self_static
15811
# Compiler flag to prevent dynamic linking.
15812
link_static_flag=$lt_lt_prog_compiler_static_F77
15814
# Compiler flag to turn off builtin functions.
15815
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15817
# Compiler flag to allow reflexive dlopens.
15818
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15820
# Compiler flag to generate shared objects directly from archives.
15821
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15823
# Compiler flag to generate thread-safe objects.
15824
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15826
# Library versioning type.
15827
version_type=$version_type
15829
# Format of library name prefix.
15830
libname_spec=$lt_libname_spec
15832
# List of archive names. First name is the real one, the rest are links.
15833
# The last name is the one that the linker finds with -lNAME.
15834
library_names_spec=$lt_library_names_spec
15836
# The coded name of the library, if different from the real name.
15837
soname_spec=$lt_soname_spec
15839
# Commands used to build and install an old-style archive.
15841
old_archive_cmds=$lt_old_archive_cmds_F77
15842
old_postinstall_cmds=$lt_old_postinstall_cmds
15843
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15845
# Create an old-style archive from a shared archive.
15846
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15848
# Create a temporary old-style archive to link instead of a shared archive.
15849
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15851
# Commands used to build and install a shared archive.
15852
archive_cmds=$lt_archive_cmds_F77
15853
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15854
postinstall_cmds=$lt_postinstall_cmds
15855
postuninstall_cmds=$lt_postuninstall_cmds
15857
# Commands used to build a loadable module (assumed same as above if empty)
15858
module_cmds=$lt_module_cmds_F77
15859
module_expsym_cmds=$lt_module_expsym_cmds_F77
15861
# Commands to strip libraries.
15862
old_striplib=$lt_old_striplib
15863
striplib=$lt_striplib
15865
# Dependencies to place before the objects being linked to create a
15867
predep_objects=$lt_predep_objects_F77
15869
# Dependencies to place after the objects being linked to create a
15871
postdep_objects=$lt_postdep_objects_F77
15873
# Dependencies to place before the objects being linked to create a
15875
predeps=$lt_predeps_F77
15877
# Dependencies to place after the objects being linked to create a
15879
postdeps=$lt_postdeps_F77
15881
# The library search path used internally by the compiler when linking
15882
# a shared library.
15883
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15885
# Method to check whether dependent libraries are shared objects.
15886
deplibs_check_method=$lt_deplibs_check_method
15888
# Command to use when deplibs_check_method == file_magic.
15889
file_magic_cmd=$lt_file_magic_cmd
15891
# Flag that allows shared libraries with undefined symbols to be built.
15892
allow_undefined_flag=$lt_allow_undefined_flag_F77
15894
# Flag that forces no undefined symbols.
15895
no_undefined_flag=$lt_no_undefined_flag_F77
15897
# Commands used to finish a libtool library installation in a directory.
15898
finish_cmds=$lt_finish_cmds
15900
# Same as above, but a single script fragment to be evaled but not shown.
15901
finish_eval=$lt_finish_eval
15903
# Take the output of nm and produce a listing of raw symbols and C names.
15904
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15906
# Transform the output of nm in a proper C declaration
15907
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15909
# Transform the output of nm in a C name address pair
15910
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15912
# This is the shared library runtime path variable.
15913
runpath_var=$runpath_var
15915
# This is the shared library path variable.
15916
shlibpath_var=$shlibpath_var
15918
# Is shlibpath searched before the hard-coded library search path?
15919
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15921
# How to hardcode a shared library path into an executable.
15922
hardcode_action=$hardcode_action_F77
15924
# Whether we should hardcode library paths into libraries.
15925
hardcode_into_libs=$hardcode_into_libs
15927
# Flag to hardcode \$libdir into a binary during linking.
15928
# This must work even if \$libdir does not exist.
15929
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15931
# If ld is used when linking, flag to hardcode \$libdir into
15932
# a binary during linking. This must work even if \$libdir does
15934
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15936
# Whether we need a single -rpath flag with a separated argument.
15937
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15939
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15940
# resulting binary.
15941
hardcode_direct=$hardcode_direct_F77
15943
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15944
# resulting binary.
15945
hardcode_minus_L=$hardcode_minus_L_F77
15947
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15948
# the resulting binary.
15949
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15951
# Set to yes if building a shared library automatically hardcodes DIR into the library
15952
# and all subsequent libraries and executables linked against it.
15953
hardcode_automatic=$hardcode_automatic_F77
15955
# Variables whose values should be saved in libtool wrapper scripts and
15956
# restored at relink time.
15957
variables_saved_for_relink="$variables_saved_for_relink"
15959
# Whether libtool must link a program against all its dependency libraries.
15960
link_all_deplibs=$link_all_deplibs_F77
15962
# Compile-time system search path for libraries
15963
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15965
# Run-time system search path for libraries
15966
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15968
# Fix the shell variable \$srcfile for the compiler.
15969
fix_srcfile_path="$fix_srcfile_path_F77"
15971
# Set to yes if exported symbols are required.
15972
always_export_symbols=$always_export_symbols_F77
15974
# The commands to list exported symbols.
15975
export_symbols_cmds=$lt_export_symbols_cmds_F77
15977
# The commands to extract the exported symbol list from a shared archive.
15978
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15980
# Symbols that should not be listed in the preloaded symbols.
15981
exclude_expsyms=$lt_exclude_expsyms_F77
15983
# Symbols that must always be exported.
15984
include_expsyms=$lt_include_expsyms_F77
15986
# ### END LIBTOOL TAG CONFIG: $tagname
15992
# If there is no Makefile yet, we rely on a make rule to execute
15993
# `config.status --recheck' to rerun these tests and create the
15994
# libtool script then.
15995
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15996
if test -f "$ltmain_in"; then
15997
test -f Makefile && make "$ltmain"
16003
ac_cpp='$CXXCPP $CPPFLAGS'
16004
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16005
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16006
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16016
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16020
# Source file extension for Java test sources.
16023
# Object file extension for compiled Java test sources.
16027
# Code to be used in simple compile tests
16028
lt_simple_compile_test_code="class foo {}\n"
16030
# Code to be used in simple link tests
16031
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16033
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16035
# If no C compiler was specified, use CC.
16038
# Allow CC to be a program name with arguments.
16042
# Allow CC to be a program name with arguments.
16048
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16049
archive_cmds_need_lc_GCJ=no
16052
lt_prog_compiler_no_builtin_flag_GCJ=
16054
if test "$GCC" = yes; then
16055
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16058
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16059
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16060
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16061
echo $ECHO_N "(cached) $ECHO_C" >&6
16063
lt_cv_prog_compiler_rtti_exceptions=no
16064
ac_outfile=conftest.$ac_objext
16065
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16066
lt_compiler_flag="-fno-rtti -fno-exceptions"
16067
# Insert the option either (1) after the last *FLAGS variable, or
16068
# (2) before a word containing "conftest.", or (3) at the end.
16069
# Note that $ac_compile itself does not contain backslashes and begins
16070
# with a dollar sign (not a hyphen), so the echo should work correctly.
16071
# The option is referenced via a variable to avoid confusing sed.
16072
lt_compile=`echo "$ac_compile" | $SED \
16073
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16074
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16075
-e 's:$: $lt_compiler_flag:'`
16076
(eval echo "\"\$as_me:16076: $lt_compile\"" >&5)
16077
(eval "$lt_compile" 2>conftest.err)
16079
cat conftest.err >&5
16080
echo "$as_me:16080: \$? = $ac_status" >&5
16081
if (exit $ac_status) && test -s "$ac_outfile"; then
16082
# The compiler can only warn and ignore the option if not recognized
16083
# So say no if there are warnings
16084
if test ! -s conftest.err; then
16085
lt_cv_prog_compiler_rtti_exceptions=yes
16091
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16092
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16094
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16095
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16102
lt_prog_compiler_wl_GCJ=
16103
lt_prog_compiler_pic_GCJ=
16104
lt_prog_compiler_static_GCJ=
16106
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16107
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16109
if test "$GCC" = yes; then
16110
lt_prog_compiler_wl_GCJ='-Wl,'
16111
lt_prog_compiler_static_GCJ='-static'
16115
# All AIX code is PIC.
16116
if test "$host_cpu" = ia64; then
16117
# AIX 5 now supports IA64 processor
16118
lt_prog_compiler_static_GCJ='-Bstatic'
16123
# FIXME: we need at least 68020 code to build shared libraries, but
16124
# adding the `-m68020' flag to GCC prevents building anything better,
16126
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16129
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16130
# PIC is the default for these OSes.
16133
mingw* | pw32* | os2*)
16134
# This hack is so that the source file can tell whether it is being
16135
# built for inclusion in a dll (and should export symbols for example).
16136
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16139
darwin* | rhapsody*)
16140
# PIC is the default on this platform
16141
# Common symbols not allowed in MH_DYLIB files
16142
lt_prog_compiler_pic_GCJ='-fno-common'
16146
# Just because we use GCC doesn't mean we suddenly get shared libraries
16147
# on systems that don't support them.
16148
lt_prog_compiler_can_build_shared_GCJ=no
16153
if test -d /usr/nec; then
16154
lt_prog_compiler_pic_GCJ=-Kconform_pic
16159
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16160
# not for PA HP-UX.
16161
case "$host_cpu" in
16166
lt_prog_compiler_pic_GCJ='-fPIC'
16172
lt_prog_compiler_pic_GCJ='-fPIC'
16176
# PORTME Check for flag to pass linker flags through the system compiler.
16179
lt_prog_compiler_wl_GCJ='-Wl,'
16180
if test "$host_cpu" = ia64; then
16181
# AIX 5 now supports IA64 processor
16182
lt_prog_compiler_static_GCJ='-Bstatic'
16184
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16188
mingw* | pw32* | os2*)
16189
# This hack is so that the source file can tell whether it is being
16190
# built for inclusion in a dll (and should export symbols for example).
16191
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16194
hpux9* | hpux10* | hpux11*)
16195
lt_prog_compiler_wl_GCJ='-Wl,'
16196
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16197
# not for PA HP-UX.
16198
case "$host_cpu" in
16203
lt_prog_compiler_pic_GCJ='+Z'
16206
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16207
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16210
irix5* | irix6* | nonstopux*)
16211
lt_prog_compiler_wl_GCJ='-Wl,'
16212
# PIC (with -KPIC) is the default.
16213
lt_prog_compiler_static_GCJ='-non_shared'
16217
lt_prog_compiler_pic_GCJ='-KPIC'
16218
lt_prog_compiler_static_GCJ='-Bstatic'
16224
lt_prog_compiler_wl_GCJ='-Wl,'
16225
lt_prog_compiler_pic_GCJ='-KPIC'
16226
lt_prog_compiler_static_GCJ='-static'
16229
lt_prog_compiler_wl_GCJ='-Wl,'
16230
# All Alpha code is PIC.
16231
lt_prog_compiler_static_GCJ='-non_shared'
16236
osf3* | osf4* | osf5*)
16237
lt_prog_compiler_wl_GCJ='-Wl,'
16238
# All OSF/1 code is PIC.
16239
lt_prog_compiler_static_GCJ='-non_shared'
16243
lt_prog_compiler_pic_GCJ='-Kpic'
16244
lt_prog_compiler_static_GCJ='-dn'
16248
lt_prog_compiler_wl_GCJ='-Wl,'
16249
lt_prog_compiler_pic_GCJ='-KPIC'
16250
lt_prog_compiler_static_GCJ='-Bstatic'
16254
lt_prog_compiler_wl_GCJ='-Qoption ld '
16255
lt_prog_compiler_pic_GCJ='-PIC'
16256
lt_prog_compiler_static_GCJ='-Bstatic'
16259
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16260
lt_prog_compiler_wl_GCJ='-Wl,'
16261
lt_prog_compiler_pic_GCJ='-KPIC'
16262
lt_prog_compiler_static_GCJ='-Bstatic'
16266
if test -d /usr/nec ;then
16267
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16268
lt_prog_compiler_static_GCJ='-Bstatic'
16273
lt_prog_compiler_pic_GCJ='-pic'
16274
lt_prog_compiler_static_GCJ='-Bstatic'
16278
lt_prog_compiler_can_build_shared_GCJ=no
16283
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16284
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16287
# Check to make sure the PIC flag actually works.
16289
if test -n "$lt_prog_compiler_pic_GCJ"; then
16291
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16292
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16293
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16294
echo $ECHO_N "(cached) $ECHO_C" >&6
16296
lt_prog_compiler_pic_works_GCJ=no
16297
ac_outfile=conftest.$ac_objext
16298
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16299
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16300
# Insert the option either (1) after the last *FLAGS variable, or
16301
# (2) before a word containing "conftest.", or (3) at the end.
16302
# Note that $ac_compile itself does not contain backslashes and begins
16303
# with a dollar sign (not a hyphen), so the echo should work correctly.
16304
# The option is referenced via a variable to avoid confusing sed.
16305
lt_compile=`echo "$ac_compile" | $SED \
16306
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16307
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16308
-e 's:$: $lt_compiler_flag:'`
16309
(eval echo "\"\$as_me:16309: $lt_compile\"" >&5)
16310
(eval "$lt_compile" 2>conftest.err)
16312
cat conftest.err >&5
16313
echo "$as_me:16313: \$? = $ac_status" >&5
16314
if (exit $ac_status) && test -s "$ac_outfile"; then
16315
# The compiler can only warn and ignore the option if not recognized
16316
# So say no if there are warnings
16317
if test ! -s conftest.err; then
16318
lt_prog_compiler_pic_works_GCJ=yes
16324
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16325
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16327
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16328
case $lt_prog_compiler_pic_GCJ in
16330
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16333
lt_prog_compiler_pic_GCJ=
16334
lt_prog_compiler_can_build_shared_GCJ=no
16339
# For platforms which do not support PIC, -DPIC is meaningless:
16341
lt_prog_compiler_pic_GCJ=
16344
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16348
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16349
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16350
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16351
echo $ECHO_N "(cached) $ECHO_C" >&6
16353
lt_cv_prog_compiler_c_o_GCJ=no
16354
$rm -r conftest 2>/dev/null
16358
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16360
lt_compiler_flag="-o out/conftest2.$ac_objext"
16361
# Insert the option either (1) after the last *FLAGS variable, or
16362
# (2) before a word containing "conftest.", or (3) at the end.
16363
# Note that $ac_compile itself does not contain backslashes and begins
16364
# with a dollar sign (not a hyphen), so the echo should work correctly.
16365
lt_compile=`echo "$ac_compile" | $SED \
16366
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16367
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16368
-e 's:$: $lt_compiler_flag:'`
16369
(eval echo "\"\$as_me:16369: $lt_compile\"" >&5)
16370
(eval "$lt_compile" 2>out/conftest.err)
16372
cat out/conftest.err >&5
16373
echo "$as_me:16373: \$? = $ac_status" >&5
16374
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16376
# The compiler can only warn and ignore the option if not recognized
16377
# So say no if there are warnings
16378
if test ! -s out/conftest.err; then
16379
lt_cv_prog_compiler_c_o_GCJ=yes
16384
# SGI C++ compiler will create directory out/ii_files/ for
16385
# template instantiation
16386
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16387
$rm out/* && rmdir out
16393
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16394
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16397
hard_links="nottested"
16398
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16399
# do not overwrite the value of need_locks provided by the user
16400
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16401
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16404
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16406
ln conftest.a conftest.b 2>&5 || hard_links=no
16407
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16408
echo "$as_me:$LINENO: result: $hard_links" >&5
16409
echo "${ECHO_T}$hard_links" >&6
16410
if test "$hard_links" = no; then
16411
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16412
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16419
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16420
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16423
allow_undefined_flag_GCJ=
16424
enable_shared_with_static_runtimes_GCJ=no
16426
archive_expsym_cmds_GCJ=
16427
old_archive_From_new_cmds_GCJ=
16428
old_archive_from_expsyms_cmds_GCJ=
16429
export_dynamic_flag_spec_GCJ=
16430
whole_archive_flag_spec_GCJ=
16431
thread_safe_flag_spec_GCJ=
16432
hardcode_libdir_flag_spec_GCJ=
16433
hardcode_libdir_flag_spec_ld_GCJ=
16434
hardcode_libdir_separator_GCJ=
16435
hardcode_direct_GCJ=no
16436
hardcode_minus_L_GCJ=no
16437
hardcode_shlibpath_var_GCJ=unsupported
16438
link_all_deplibs_GCJ=unknown
16439
hardcode_automatic_GCJ=no
16441
module_expsym_cmds_GCJ=
16442
always_export_symbols_GCJ=no
16443
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16444
# include_expsyms should be a list of space-separated symbols to be *always*
16445
# included in the symbol list
16446
include_expsyms_GCJ=
16447
# exclude_expsyms can be an extended regexp of symbols to exclude
16448
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16449
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16450
# as well as any symbol that contains `d'.
16451
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16452
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16453
# platforms (ab)use it in PIC code, but their linkers get confused if
16454
# the symbol is explicitly referenced. Since portable code cannot
16455
# rely on this symbol name, it's probably fine to never include it in
16456
# preloaded symbol tables.
16457
extract_expsyms_cmds=
16460
cygwin* | mingw* | pw32*)
16461
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16462
# When not using gcc, we currently assume that we are using
16463
# Microsoft Visual C++.
16464
if test "$GCC" != yes; then
16474
if test "$with_gnu_ld" = yes; then
16475
# If archive_cmds runs LD, not CC, wlarc should be empty
16478
# See if GNU ld supports shared libraries.
16480
aix3* | aix4* | aix5*)
16481
# On AIX/PPC, the GNU linker is very broken
16482
if test "$host_cpu" != ia64; then
16486
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16487
*** to be unable to reliably create shared libraries on AIX.
16488
*** Therefore, libtool is disabling shared libraries support. If you
16489
*** really care for shared libraries, you may want to modify your PATH
16490
*** so that a non-GNU linker is found, and then restart.
16497
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)'
16498
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16499
hardcode_minus_L_GCJ=yes
16501
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16502
# that the semantics of dynamic libraries on AmigaOS, at least up
16503
# to version 4, is to share data among multiple programs linked
16504
# with the same dynamic library. Since this doesn't match the
16505
# behavior of shared libraries on other platforms, we can't use
16511
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16512
allow_undefined_flag_GCJ=unsupported
16513
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16514
# support --undefined. This deserves some investigation. FIXME
16515
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16521
cygwin* | mingw* | pw32*)
16522
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16523
# as there is no search path for DLLs.
16524
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16525
allow_undefined_flag_GCJ=unsupported
16526
always_export_symbols_GCJ=no
16527
enable_shared_with_static_runtimes_GCJ=yes
16528
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16530
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16531
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16532
# If the export-symbols file already is a .def file (1st line
16533
# is EXPORTS), use it as is; otherwise, prepend...
16534
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16535
cp $export_symbols $output_objdir/$soname.def;
16537
echo EXPORTS > $output_objdir/$soname.def;
16538
cat $export_symbols >> $output_objdir/$soname.def;
16540
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16546
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16547
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16548
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16551
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16552
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16557
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16561
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16562
*** create shared libraries on Solaris systems. Therefore, libtool
16563
*** is disabling shared libraries support. We urge you to upgrade GNU
16564
*** binutils to release 2.9.1 or newer. Another option is to modify
16565
*** your PATH or compiler configuration so that the native linker is
16566
*** used, and then restart.
16569
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16570
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16571
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16578
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16580
hardcode_direct_GCJ=yes
16581
hardcode_shlibpath_var_GCJ=no
16585
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16586
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16587
archive_cmds_GCJ="$tmp_archive_cmds"
16588
supports_anon_versioning=no
16589
case `$LD -v 2>/dev/null` in
16590
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16591
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16592
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16593
*\ 2.11.*) ;; # other 2.11 versions
16594
*) supports_anon_versioning=yes ;;
16596
if test $supports_anon_versioning = yes; then
16597
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16598
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16599
$echo "local: *; };" >> $output_objdir/$libname.ver~
16600
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16602
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16604
link_all_deplibs_GCJ=no
16611
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16612
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16613
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16620
if test "$ld_shlibs_GCJ" = yes; then
16621
runpath_var=LD_RUN_PATH
16622
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16623
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16624
# ancient GNU ld didn't support --whole-archive et. al.
16625
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16626
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16628
whole_archive_flag_spec_GCJ=
16632
# PORTME fill in a description of your system's linker (not GNU ld)
16635
allow_undefined_flag_GCJ=unsupported
16636
always_export_symbols_GCJ=yes
16637
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'
16638
# Note: this linker hardcodes the directories in LIBPATH if there
16639
# are no directories specified by -L.
16640
hardcode_minus_L_GCJ=yes
16641
if test "$GCC" = yes && test -z "$link_static_flag"; then
16642
# Neither direct hardcoding nor static linking is supported with a
16644
hardcode_direct_GCJ=unsupported
16649
if test "$host_cpu" = ia64; then
16650
# On IA64, the linker does run time linking by default, so we don't
16651
# have to do anything special.
16652
aix_use_runtimelinking=no
16653
exp_sym_flag='-Bexport'
16656
# If we're using GNU nm, then we don't want the "-C" option.
16657
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16658
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16659
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'
16661
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'
16663
aix_use_runtimelinking=no
16665
# Test if we are trying to use run time linking or normal
16666
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16667
# need to do runtime linking.
16668
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16669
for ld_flag in $LDFLAGS; do
16670
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16671
aix_use_runtimelinking=yes
16677
exp_sym_flag='-bexport'
16678
no_entry_flag='-bnoentry'
16681
# When large executables or shared objects are built, AIX ld can
16682
# have problems creating the table of contents. If linking a library
16683
# or program results in "error TOC overflow" add -mminimal-toc to
16684
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16685
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16687
archive_cmds_GCJ=''
16688
hardcode_direct_GCJ=yes
16689
hardcode_libdir_separator_GCJ=':'
16690
link_all_deplibs_GCJ=yes
16692
if test "$GCC" = yes; then
16693
case $host_os in aix4.012|aix4.012.*)
16694
# We only want to do this on AIX 4.2 and lower, the check
16695
# below for broken collect2 doesn't work under 4.3+
16696
collect2name=`${CC} -print-prog-name=collect2`
16697
if test -f "$collect2name" && \
16698
strings "$collect2name" | grep resolve_lib_name >/dev/null
16700
# We have reworked collect2
16701
hardcode_direct_GCJ=yes
16703
# We have old collect2
16704
hardcode_direct_GCJ=unsupported
16705
# It fails to find uninstalled libraries when the uninstalled
16706
# path is not listed in the libpath. Setting hardcode_minus_L
16707
# to unsupported forces relinking
16708
hardcode_minus_L_GCJ=yes
16709
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16710
hardcode_libdir_separator_GCJ=
16713
shared_flag='-shared'
16716
if test "$host_cpu" = ia64; then
16717
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16718
# chokes on -Wl,-G. The following line is correct:
16721
if test "$aix_use_runtimelinking" = yes; then
16722
shared_flag='${wl}-G'
16724
shared_flag='${wl}-bM:SRE'
16729
# It seems that -bexpall does not export symbols beginning with
16730
# underscore (_), so it is better to generate a list of symbols to export.
16731
always_export_symbols_GCJ=yes
16732
if test "$aix_use_runtimelinking" = yes; then
16733
# Warning - without using the other runtime loading flags (-brtl),
16734
# -berok will link without error, but may produce a broken library.
16735
allow_undefined_flag_GCJ='-berok'
16736
# Determine the default libpath from the value encoded in an empty executable.
16737
cat >conftest.$ac_ext <<_ACEOF
16740
cat confdefs.h >>conftest.$ac_ext
16741
cat >>conftest.$ac_ext <<_ACEOF
16742
/* end confdefs.h. */
16752
rm -f conftest.$ac_objext conftest$ac_exeext
16753
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16754
(eval $ac_link) 2>conftest.er1
16756
grep -v '^ *+' conftest.er1 >conftest.err
16758
cat conftest.err >&5
16759
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760
(exit $ac_status); } &&
16761
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16762
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16763
(eval $ac_try) 2>&5
16765
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766
(exit $ac_status); }; } &&
16767
{ ac_try='test -s conftest$ac_exeext'
16768
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16769
(eval $ac_try) 2>&5
16771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772
(exit $ac_status); }; }; then
16774
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16776
# Check for a 64-bit object if we didn't find anything.
16777
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; }
16780
echo "$as_me: failed program was:" >&5
16781
sed 's/^/| /' conftest.$ac_ext >&5
16784
rm -f conftest.err conftest.$ac_objext \
16785
conftest$ac_exeext conftest.$ac_ext
16786
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16788
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16789
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"
16791
if test "$host_cpu" = ia64; then
16792
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16793
allow_undefined_flag_GCJ="-z nodefs"
16794
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"
16796
# Determine the default libpath from the value encoded in an empty executable.
16797
cat >conftest.$ac_ext <<_ACEOF
16800
cat confdefs.h >>conftest.$ac_ext
16801
cat >>conftest.$ac_ext <<_ACEOF
16802
/* end confdefs.h. */
16812
rm -f conftest.$ac_objext conftest$ac_exeext
16813
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16814
(eval $ac_link) 2>conftest.er1
16816
grep -v '^ *+' conftest.er1 >conftest.err
16818
cat conftest.err >&5
16819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820
(exit $ac_status); } &&
16821
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16822
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16823
(eval $ac_try) 2>&5
16825
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826
(exit $ac_status); }; } &&
16827
{ ac_try='test -s conftest$ac_exeext'
16828
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829
(eval $ac_try) 2>&5
16831
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832
(exit $ac_status); }; }; then
16834
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16836
# Check for a 64-bit object if we didn't find anything.
16837
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; }
16840
echo "$as_me: failed program was:" >&5
16841
sed 's/^/| /' conftest.$ac_ext >&5
16844
rm -f conftest.err conftest.$ac_objext \
16845
conftest$ac_exeext conftest.$ac_ext
16846
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16848
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16849
# Warning - without using the other run time loading flags,
16850
# -berok will link without error, but may produce a broken library.
16851
no_undefined_flag_GCJ=' ${wl}-bernotok'
16852
allow_undefined_flag_GCJ=' ${wl}-berok'
16853
# -bexpall does not export symbols beginning with underscore (_)
16854
always_export_symbols_GCJ=yes
16855
# Exported symbols can be pulled into shared objects from archives
16856
whole_archive_flag_spec_GCJ=' '
16857
archive_cmds_need_lc_GCJ=yes
16858
# This is similar to how AIX traditionally builds it's shared libraries.
16859
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'
16865
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)'
16866
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16867
hardcode_minus_L_GCJ=yes
16868
# see comment about different semantics on the GNU ld section
16873
export_dynamic_flag_spec_GCJ=-rdynamic
16876
cygwin* | mingw* | pw32*)
16877
# When not using gcc, we currently assume that we are using
16878
# Microsoft Visual C++.
16879
# hardcode_libdir_flag_spec is actually meaningless, as there is
16880
# no search path for DLLs.
16881
hardcode_libdir_flag_spec_GCJ=' '
16882
allow_undefined_flag_GCJ=unsupported
16883
# Tell ltmain to make .lib files, not .a files.
16885
# Tell ltmain to make .dll files, not .so files.
16887
# FIXME: Setting linknames here is a bad hack.
16888
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16889
# The linker will automatically build a .lib file if we build a DLL.
16890
old_archive_From_new_cmds_GCJ='true'
16891
# FIXME: Should let the user specify the lib program.
16892
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16893
fix_srcfile_path='`cygpath -w "$srcfile"`'
16894
enable_shared_with_static_runtimes_GCJ=yes
16897
darwin* | rhapsody*)
16898
if test "$GXX" = yes ; then
16899
archive_cmds_need_lc_GCJ=no
16901
rhapsody* | darwin1.[012])
16902
allow_undefined_flag_GCJ='-undefined suppress'
16905
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16906
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16908
case ${MACOSX_DEPLOYMENT_TARGET} in
16910
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16913
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16919
lt_int_apple_cc_single_mod=no
16920
output_verbose_link_cmd='echo'
16921
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16922
lt_int_apple_cc_single_mod=yes
16924
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16925
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16927
archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16929
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16930
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16931
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16932
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16934
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16936
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16937
hardcode_direct_GCJ=no
16938
hardcode_automatic_GCJ=yes
16939
hardcode_shlibpath_var_GCJ=unsupported
16940
whole_archive_flag_spec_GCJ='-all_load $convenience'
16941
link_all_deplibs_GCJ=yes
16948
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16949
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16950
hardcode_shlibpath_var_GCJ=no
16957
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16958
# support. Future versions do this automatically, but an explicit c++rt0.o
16959
# does not break anything, and helps significantly (at the cost of a little
16962
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16963
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16964
hardcode_direct_GCJ=yes
16965
hardcode_shlibpath_var_GCJ=no
16968
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16970
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16971
hardcode_direct_GCJ=yes
16972
hardcode_minus_L_GCJ=yes
16973
hardcode_shlibpath_var_GCJ=no
16976
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16977
freebsd* | kfreebsd*-gnu)
16978
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16979
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16980
hardcode_direct_GCJ=yes
16981
hardcode_shlibpath_var_GCJ=no
16985
if test "$GCC" = yes; then
16986
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'
16988
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'
16990
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16991
hardcode_libdir_separator_GCJ=:
16992
hardcode_direct_GCJ=yes
16994
# hardcode_minus_L: Not really in the search PATH,
16995
# but as the default location of the library.
16996
hardcode_minus_L_GCJ=yes
16997
export_dynamic_flag_spec_GCJ='${wl}-E'
17001
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17002
case "$host_cpu" in
17004
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17007
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17011
case "$host_cpu" in
17013
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17016
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17020
if test "$with_gnu_ld" = no; then
17021
case "$host_cpu" in
17023
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17024
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17025
hardcode_libdir_separator_GCJ=:
17026
hardcode_direct_GCJ=no
17027
hardcode_shlibpath_var_GCJ=no
17030
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17031
hardcode_direct_GCJ=no
17032
hardcode_shlibpath_var_GCJ=no
17034
# hardcode_minus_L: Not really in the search PATH,
17035
# but as the default location of the library.
17036
hardcode_minus_L_GCJ=yes
17039
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17040
hardcode_libdir_separator_GCJ=:
17041
hardcode_direct_GCJ=yes
17042
export_dynamic_flag_spec_GCJ='${wl}-E'
17044
# hardcode_minus_L: Not really in the search PATH,
17045
# but as the default location of the library.
17046
hardcode_minus_L_GCJ=yes
17052
irix5* | irix6* | nonstopux*)
17053
if test "$GCC" = yes; then
17054
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'
17056
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'
17057
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17059
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17060
hardcode_libdir_separator_GCJ=:
17061
link_all_deplibs_GCJ=yes
17064
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17065
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17066
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17068
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17070
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17071
hardcode_direct_GCJ=yes
17072
hardcode_shlibpath_var_GCJ=no
17076
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17077
hardcode_direct_GCJ=yes
17078
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17079
hardcode_libdir_separator_GCJ=:
17080
hardcode_shlibpath_var_GCJ=no
17084
hardcode_direct_GCJ=yes
17085
hardcode_shlibpath_var_GCJ=no
17086
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17087
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17088
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17089
export_dynamic_flag_spec_GCJ='${wl}-E'
17092
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17093
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17094
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17097
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17098
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17105
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17106
hardcode_minus_L_GCJ=yes
17107
allow_undefined_flag_GCJ=unsupported
17108
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'
17109
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17113
if test "$GCC" = yes; then
17114
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17115
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'
17117
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17118
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'
17120
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17121
hardcode_libdir_separator_GCJ=:
17124
osf4* | osf5*) # as osf3* with the addition of -msym flag
17125
if test "$GCC" = yes; then
17126
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17127
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'
17128
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17130
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17131
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'
17132
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17133
$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'
17135
# Both c and cxx compiler support -rpath directly
17136
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17138
hardcode_libdir_separator_GCJ=:
17142
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17143
hardcode_shlibpath_var_GCJ=no
17144
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17145
runpath_var=LD_RUN_PATH
17146
hardcode_runpath_var=yes
17150
no_undefined_flag_GCJ=' -z text'
17151
if test "$GCC" = yes; then
17152
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17153
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17154
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17156
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17157
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17158
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17160
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17161
hardcode_shlibpath_var_GCJ=no
17163
solaris2.[0-5] | solaris2.[0-5].*) ;;
17164
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
17165
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17167
link_all_deplibs_GCJ=yes
17171
if test "x$host_vendor" = xsequent; then
17172
# Use $CC to link under sequent, because it throws in some extra .o
17173
# files that make .init and .fini sections work.
17174
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17176
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17178
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17179
hardcode_direct_GCJ=yes
17180
hardcode_minus_L_GCJ=yes
17181
hardcode_shlibpath_var_GCJ=no
17185
case $host_vendor in
17187
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17188
hardcode_direct_GCJ=yes # is this really true???
17191
## LD is ld it makes a PLAMLIB
17192
## CC just makes a GrossModule.
17193
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17194
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17195
hardcode_direct_GCJ=no
17198
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17199
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17202
runpath_var='LD_RUN_PATH'
17203
hardcode_shlibpath_var_GCJ=no
17207
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17208
hardcode_shlibpath_var_GCJ=no
17209
export_dynamic_flag_spec_GCJ='-Bexport'
17213
if test -d /usr/nec; then
17214
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17215
hardcode_shlibpath_var_GCJ=no
17216
runpath_var=LD_RUN_PATH
17217
hardcode_runpath_var=yes
17223
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17224
hardcode_direct_GCJ=yes
17225
hardcode_minus_L_GCJ=no
17226
hardcode_shlibpath_var_GCJ=no
17227
hardcode_runpath_var=yes
17228
runpath_var=LD_RUN_PATH
17231
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17232
no_undefined_flag_GCJ='${wl}-z ${wl}text'
17233
if test "$GCC" = yes; then
17234
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17236
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17238
runpath_var='LD_RUN_PATH'
17239
hardcode_shlibpath_var_GCJ=no
17243
no_undefined_flag_GCJ=' -z text'
17244
# $CC -shared without GNU ld will not create a library from C++
17245
# object files and a static libstdc++, better avoid it by now
17246
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17247
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17248
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17249
hardcode_libdir_flag_spec_GCJ=
17250
hardcode_shlibpath_var_GCJ=no
17251
runpath_var='LD_RUN_PATH'
17255
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17256
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17257
hardcode_shlibpath_var_GCJ=no
17266
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17267
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17268
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17270
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17271
if test "$GCC" = yes; then
17272
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17276
# Do we need to explicitly link libc?
17278
case "x$archive_cmds_need_lc_GCJ" in
17280
# Assume -lc should be added
17281
archive_cmds_need_lc_GCJ=yes
17283
if test "$enable_shared" = yes && test "$GCC" = yes; then
17284
case $archive_cmds_GCJ in
17286
# FIXME: we may have to deal with multi-command sequences.
17289
# Test whether the compiler implicitly links with -lc since on some
17290
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17291
# to ld, don't add -lc before -lgcc.
17292
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17293
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17295
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17297
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17298
(eval $ac_compile) 2>&5
17300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301
(exit $ac_status); } 2>conftest.err; then
17304
libobjs=conftest.$ac_objext
17306
wl=$lt_prog_compiler_wl_GCJ
17312
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17313
allow_undefined_flag_GCJ=
17314
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17315
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17317
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318
(exit $ac_status); }
17320
archive_cmds_need_lc_GCJ=no
17322
archive_cmds_need_lc_GCJ=yes
17324
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17326
cat conftest.err 1>&5
17329
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17330
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17337
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17338
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17339
library_names_spec=
17340
libname_spec='lib$name'
17344
postuninstall_cmds=
17348
shlibpath_overrides_runpath=unknown
17350
dynamic_linker="$host_os ld.so"
17351
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17352
if test "$GCC" = yes; then
17353
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17354
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17355
# if the path contains ";" then we assume it to be the separator
17356
# otherwise default to the standard path separator (i.e. ":") - it is
17357
# assumed that no part of a normal pathname contains ";" but that should
17358
# okay in the real world where ";" in dirpaths is itself problematic.
17359
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17361
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17364
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17366
need_lib_prefix=unknown
17367
hardcode_into_libs=no
17369
# when you set need_version to no, make sure it does not cause -set_version
17370
# flags to be left without arguments
17371
need_version=unknown
17376
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17377
shlibpath_var=LIBPATH
17379
# AIX 3 has no versioning support, so we append a major version to the name.
17380
soname_spec='${libname}${release}${shared_ext}$major'
17387
hardcode_into_libs=yes
17388
if test "$host_cpu" = ia64; then
17389
# AIX 5 supports IA64
17390
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17391
shlibpath_var=LD_LIBRARY_PATH
17393
# With GCC up to 2.95.x, collect2 would create an import file
17394
# for dependence libraries. The import file would start with
17395
# the line `#! .'. This would cause the generated library to
17396
# depend on `.', always an invalid library. This was fixed in
17397
# development snapshots of GCC prior to 3.0.
17399
aix4 | aix4.[01] | aix4.[01].*)
17400
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17402
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17405
can_build_shared=no
17409
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17410
# soname into executable. Probably we can add versioning support to
17411
# collect2, so additional links can be useful in future.
17412
if test "$aix_use_runtimelinking" = yes; then
17413
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17414
# instead of lib<name>.a to let people know that these are not
17415
# typical AIX shared libraries.
17416
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17418
# We preserve .a as extension for shared libraries through AIX4.2
17419
# and later when we are not doing run time linking.
17420
library_names_spec='${libname}${release}.a $libname.a'
17421
soname_spec='${libname}${release}${shared_ext}$major'
17423
shlibpath_var=LIBPATH
17428
library_names_spec='$libname.ixlibrary $libname.a'
17429
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17430
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'
17434
library_names_spec='${libname}${shared_ext}'
17435
dynamic_linker="$host_os ld.so"
17436
shlibpath_var=LIBRARY_PATH
17442
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17443
soname_spec='${libname}${release}${shared_ext}$major'
17444
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17445
shlibpath_var=LD_LIBRARY_PATH
17446
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17447
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17448
# the default ld.so.conf also contains /usr/contrib/lib and
17449
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17450
# libtool to hard-code these into programs
17453
cygwin* | mingw* | pw32*)
17454
version_type=windows
17459
case $GCC,$host_os in
17460
yes,cygwin* | yes,mingw* | yes,pw32*)
17461
library_names_spec='$libname.dll.a'
17462
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17463
postinstall_cmds='base_file=`basename \${file}`~
17464
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17465
dldir=$destdir/`dirname \$dlpath`~
17466
test -d \$dldir || mkdir -p \$dldir~
17467
$install_prog $dir/$dlname \$dldir/$dlname'
17468
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17469
dlpath=$dir/\$dldll~
17471
shlibpath_overrides_runpath=yes
17475
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17476
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17477
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17480
# MinGW DLLs use traditional 'lib' prefix
17481
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17482
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17483
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17484
# It is most probably a Windows format PATH printed by
17485
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17486
# path with ; separators, and with drive letters. We can handle the
17487
# drive letters (cygwin fileutils understands them), so leave them,
17488
# especially as we might pass files found there to a mingw objdump,
17489
# which wouldn't understand a cygwinified path. Ahh.
17490
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17492
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17496
# pw32 DLLs use 'pw' prefix rather than 'lib'
17497
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17503
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17506
dynamic_linker='Win32 ld.exe'
17507
# FIXME: first we should search . and the directory the executable is in
17511
darwin* | rhapsody*)
17512
dynamic_linker="$host_os dyld"
17513
version_type=darwin
17516
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17517
soname_spec='${libname}${release}${major}$shared_ext'
17518
shlibpath_overrides_runpath=yes
17519
shlibpath_var=DYLD_LIBRARY_PATH
17520
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17521
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17522
if test "$GCC" = yes; then
17523
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17525
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17527
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17534
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17535
soname_spec='${libname}${release}${shared_ext}$major'
17536
shlibpath_var=LD_LIBRARY_PATH
17547
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17548
soname_spec='${libname}${release}${shared_ext}$major'
17549
shlibpath_var=LD_LIBRARY_PATH
17550
shlibpath_overrides_runpath=no
17551
hardcode_into_libs=yes
17552
dynamic_linker='GNU ld.so'
17556
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17557
version_type=freebsd-$objformat
17558
case $version_type in
17560
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17565
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17569
shlibpath_var=LD_LIBRARY_PATH
17572
shlibpath_overrides_runpath=yes
17574
freebsd3.01* | freebsdelf3.01*)
17575
shlibpath_overrides_runpath=yes
17576
hardcode_into_libs=yes
17579
shlibpath_overrides_runpath=no
17580
hardcode_into_libs=yes
17589
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17590
soname_spec='${libname}${release}${shared_ext}$major'
17591
shlibpath_var=LD_LIBRARY_PATH
17592
hardcode_into_libs=yes
17595
hpux9* | hpux10* | hpux11*)
17596
# Give a soname corresponding to the major version so that dld.sl refuses to
17597
# link against other versions.
17601
case "$host_cpu" in
17604
hardcode_into_libs=yes
17605
dynamic_linker="$host_os dld.so"
17606
shlibpath_var=LD_LIBRARY_PATH
17607
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17608
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17609
soname_spec='${libname}${release}${shared_ext}$major'
17610
if test "X$HPUX_IA64_MODE" = X32; then
17611
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17613
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17615
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17619
hardcode_into_libs=yes
17620
dynamic_linker="$host_os dld.sl"
17621
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17622
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17623
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17624
soname_spec='${libname}${release}${shared_ext}$major'
17625
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17626
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17630
dynamic_linker="$host_os dld.sl"
17631
shlibpath_var=SHLIB_PATH
17632
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17633
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17634
soname_spec='${libname}${release}${shared_ext}$major'
17637
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17638
postinstall_cmds='chmod 555 $lib'
17641
irix5* | irix6* | nonstopux*)
17643
nonstopux*) version_type=nonstopux ;;
17645
if test "$lt_cv_prog_gnu_ld" = yes; then
17653
soname_spec='${libname}${release}${shared_ext}$major'
17654
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17656
irix5* | nonstopux*)
17657
libsuff= shlibsuff=
17660
case $LD in # libtool.m4 will add one of these switches to LD
17661
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17662
libsuff= shlibsuff= libmagic=32-bit;;
17663
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17664
libsuff=32 shlibsuff=N32 libmagic=N32;;
17665
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17666
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17667
*) libsuff= shlibsuff= libmagic=never-match;;
17671
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17672
shlibpath_overrides_runpath=no
17673
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17674
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17675
hardcode_into_libs=yes
17678
# No shared lib support for Linux oldld, aout, or coff.
17679
linux*oldld* | linux*aout* | linux*coff*)
17683
# This must be Linux ELF.
17688
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17689
soname_spec='${libname}${release}${shared_ext}$major'
17690
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17691
shlibpath_var=LD_LIBRARY_PATH
17692
shlibpath_overrides_runpath=no
17693
# This implies no fast_install, which is unacceptable.
17694
# Some rework will be needed to allow for fast_install
17695
# before this can be enabled.
17696
hardcode_into_libs=yes
17698
# Append ld.so.conf contents to the search path
17699
if test -f /etc/ld.so.conf; then
17700
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17701
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17704
# We used to test for /lib/ld.so.1 and disable shared libraries on
17705
# powerpc, because MkLinux only supported shared libraries with the
17706
# GNU dynamic linker. Since this was broken with cross compilers,
17707
# most powerpc-linux boxes support dynamic linking these days and
17708
# people can always --disable-shared, the test was removed, and we
17709
# assume the GNU/Linux dynamic linker is in use.
17710
dynamic_linker='GNU/Linux ld.so'
17717
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17718
soname_spec='${libname}${release}${shared_ext}$major'
17719
shlibpath_var=LD_LIBRARY_PATH
17720
shlibpath_overrides_runpath=no
17721
hardcode_into_libs=yes
17722
dynamic_linker='NetBSD ld.elf_so'
17729
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17730
soname_spec='${libname}${release}${shared_ext}$major'
17731
shlibpath_var=LD_LIBRARY_PATH
17732
shlibpath_overrides_runpath=no
17733
hardcode_into_libs=yes
17734
dynamic_linker='GNU ld.so'
17741
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17742
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17743
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17744
dynamic_linker='NetBSD (a.out) ld.so'
17746
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17747
soname_spec='${libname}${release}${shared_ext}$major'
17748
dynamic_linker='NetBSD ld.elf_so'
17750
shlibpath_var=LD_LIBRARY_PATH
17751
shlibpath_overrides_runpath=yes
17752
hardcode_into_libs=yes
17757
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17758
shlibpath_var=LD_LIBRARY_PATH
17759
shlibpath_overrides_runpath=yes
17766
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17767
soname_spec='${libname}${release}${shared_ext}$major'
17768
shlibpath_var=LD_LIBRARY_PATH
17769
shlibpath_overrides_runpath=yes
17776
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17777
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17778
shlibpath_var=LD_LIBRARY_PATH
17779
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17781
openbsd2.[89] | openbsd2.[89].*)
17782
shlibpath_overrides_runpath=no
17785
shlibpath_overrides_runpath=yes
17789
shlibpath_overrides_runpath=yes
17794
libname_spec='$name'
17797
library_names_spec='$libname${shared_ext} $libname.a'
17798
dynamic_linker='OS/2 ld.exe'
17799
shlibpath_var=LIBPATH
17802
osf3* | osf4* | osf5*)
17806
soname_spec='${libname}${release}${shared_ext}$major'
17807
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17808
shlibpath_var=LD_LIBRARY_PATH
17809
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17810
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17815
soname_spec='${libname}${release}${shared_ext}$major'
17816
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17817
shlibpath_var=LD_LIBRARY_PATH
17824
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17825
soname_spec='${libname}${release}${shared_ext}$major'
17826
shlibpath_var=LD_LIBRARY_PATH
17827
shlibpath_overrides_runpath=yes
17828
hardcode_into_libs=yes
17829
# ldd complains unless libraries are executable
17830
postinstall_cmds='chmod +x $lib'
17835
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17836
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17837
shlibpath_var=LD_LIBRARY_PATH
17838
shlibpath_overrides_runpath=yes
17839
if test "$with_gnu_ld" = yes; then
17845
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17847
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17848
soname_spec='${libname}${release}${shared_ext}$major'
17849
shlibpath_var=LD_LIBRARY_PATH
17850
case $host_vendor in
17852
shlibpath_overrides_runpath=no
17854
export_dynamic_flag_spec='${wl}-Blargedynsym'
17855
runpath_var=LD_RUN_PATH
17863
shlibpath_overrides_runpath=no
17864
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17870
if test -d /usr/nec ;then
17872
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17873
soname_spec='$libname${shared_ext}.$major'
17874
shlibpath_var=LD_LIBRARY_PATH
17880
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17881
soname_spec='${libname}${release}${shared_ext}$major'
17882
shlibpath_var=LD_LIBRARY_PATH
17889
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17890
echo "${ECHO_T}$dynamic_linker" >&6
17891
test "$dynamic_linker" = no && can_build_shared=no
17893
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17894
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17895
hardcode_action_GCJ=
17896
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17897
test -n "$runpath_var GCJ" || \
17898
test "X$hardcode_automatic_GCJ"="Xyes" ; then
17900
# We can hardcode non-existant directories.
17901
if test "$hardcode_direct_GCJ" != no &&
17902
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17903
# have to relink, otherwise we might link with an installed library
17904
# when we should be linking with a yet-to-be-installed one
17905
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17906
test "$hardcode_minus_L_GCJ" != no; then
17907
# Linking always hardcodes the temporary library directory.
17908
hardcode_action_GCJ=relink
17910
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17911
hardcode_action_GCJ=immediate
17914
# We cannot hardcode anything, or else we can only hardcode existing
17916
hardcode_action_GCJ=unsupported
17918
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17919
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17921
if test "$hardcode_action_GCJ" = relink; then
17922
# Fast installation is not supported
17923
enable_fast_install=no
17924
elif test "$shlibpath_overrides_runpath" = yes ||
17925
test "$enable_shared" = no; then
17926
# Fast installation is not necessary
17927
enable_fast_install=needless
17932
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17933
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17934
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17935
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17936
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17937
echo "$as_me:$LINENO: result: yes" >&5
17938
echo "${ECHO_T}yes" >&6
17940
# FIXME - insert some real tests, host_os isn't really good enough
17943
if test -n "$STRIP" ; then
17944
striplib="$STRIP -x"
17945
echo "$as_me:$LINENO: result: yes" >&5
17946
echo "${ECHO_T}yes" >&6
17948
echo "$as_me:$LINENO: result: no" >&5
17949
echo "${ECHO_T}no" >&6
17953
echo "$as_me:$LINENO: result: no" >&5
17954
echo "${ECHO_T}no" >&6
17959
if test "x$enable_dlopen" != xyes; then
17960
enable_dlopen=unknown
17961
enable_dlopen_self=unknown
17962
enable_dlopen_self_static=unknown
17969
lt_cv_dlopen="load_add_on"
17971
lt_cv_dlopen_self=yes
17975
lt_cv_dlopen="LoadLibrary"
17980
lt_cv_dlopen="dlopen"
17985
# if libdl is installed we need to link against it
17986
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17987
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17988
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17989
echo $ECHO_N "(cached) $ECHO_C" >&6
17991
ac_check_lib_save_LIBS=$LIBS
17993
cat >conftest.$ac_ext <<_ACEOF
17996
cat confdefs.h >>conftest.$ac_ext
17997
cat >>conftest.$ac_ext <<_ACEOF
17998
/* end confdefs.h. */
18000
/* Override any gcc2 internal prototype to avoid an error. */
18004
/* We use char because int might match the return type of a gcc2
18005
builtin and then its argument prototype would still apply. */
18015
rm -f conftest.$ac_objext conftest$ac_exeext
18016
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18017
(eval $ac_link) 2>conftest.er1
18019
grep -v '^ *+' conftest.er1 >conftest.err
18021
cat conftest.err >&5
18022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023
(exit $ac_status); } &&
18024
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18025
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026
(eval $ac_try) 2>&5
18028
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029
(exit $ac_status); }; } &&
18030
{ ac_try='test -s conftest$ac_exeext'
18031
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032
(eval $ac_try) 2>&5
18034
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035
(exit $ac_status); }; }; then
18036
ac_cv_lib_dl_dlopen=yes
18038
echo "$as_me: failed program was:" >&5
18039
sed 's/^/| /' conftest.$ac_ext >&5
18041
ac_cv_lib_dl_dlopen=no
18043
rm -f conftest.err conftest.$ac_objext \
18044
conftest$ac_exeext conftest.$ac_ext
18045
LIBS=$ac_check_lib_save_LIBS
18047
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18048
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18049
if test $ac_cv_lib_dl_dlopen = yes; then
18050
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18053
lt_cv_dlopen="dyld"
18055
lt_cv_dlopen_self=yes
18062
echo "$as_me:$LINENO: checking for shl_load" >&5
18063
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18064
if test "${ac_cv_func_shl_load+set}" = set; then
18065
echo $ECHO_N "(cached) $ECHO_C" >&6
18067
cat >conftest.$ac_ext <<_ACEOF
18070
cat confdefs.h >>conftest.$ac_ext
18071
cat >>conftest.$ac_ext <<_ACEOF
18072
/* end confdefs.h. */
18073
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18074
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18075
#define shl_load innocuous_shl_load
18077
/* System header to define __stub macros and hopefully few prototypes,
18078
which can conflict with char shl_load (); below.
18079
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18080
<limits.h> exists even on freestanding compilers. */
18083
# include <limits.h>
18085
# include <assert.h>
18090
/* Override any gcc2 internal prototype to avoid an error. */
18095
/* We use char because int might match the return type of a gcc2
18096
builtin and then its argument prototype would still apply. */
18098
/* The GNU C library defines this for functions which it implements
18099
to always fail with ENOSYS. Some functions are actually named
18100
something starting with __ and the normal name is an alias. */
18101
#if defined (__stub_shl_load) || defined (__stub___shl_load)
18104
char (*f) () = shl_load;
18113
return f != shl_load;
18118
rm -f conftest.$ac_objext conftest$ac_exeext
18119
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18120
(eval $ac_link) 2>conftest.er1
18122
grep -v '^ *+' conftest.er1 >conftest.err
18124
cat conftest.err >&5
18125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126
(exit $ac_status); } &&
18127
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18128
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18129
(eval $ac_try) 2>&5
18131
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132
(exit $ac_status); }; } &&
18133
{ ac_try='test -s conftest$ac_exeext'
18134
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18135
(eval $ac_try) 2>&5
18137
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138
(exit $ac_status); }; }; then
18139
ac_cv_func_shl_load=yes
18141
echo "$as_me: failed program was:" >&5
18142
sed 's/^/| /' conftest.$ac_ext >&5
18144
ac_cv_func_shl_load=no
18146
rm -f conftest.err conftest.$ac_objext \
18147
conftest$ac_exeext conftest.$ac_ext
18149
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18150
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18151
if test $ac_cv_func_shl_load = yes; then
18152
lt_cv_dlopen="shl_load"
18154
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18155
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18156
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18157
echo $ECHO_N "(cached) $ECHO_C" >&6
18159
ac_check_lib_save_LIBS=$LIBS
18161
cat >conftest.$ac_ext <<_ACEOF
18164
cat confdefs.h >>conftest.$ac_ext
18165
cat >>conftest.$ac_ext <<_ACEOF
18166
/* end confdefs.h. */
18168
/* Override any gcc2 internal prototype to avoid an error. */
18172
/* We use char because int might match the return type of a gcc2
18173
builtin and then its argument prototype would still apply. */
18183
rm -f conftest.$ac_objext conftest$ac_exeext
18184
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18185
(eval $ac_link) 2>conftest.er1
18187
grep -v '^ *+' conftest.er1 >conftest.err
18189
cat conftest.err >&5
18190
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191
(exit $ac_status); } &&
18192
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18193
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18194
(eval $ac_try) 2>&5
18196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197
(exit $ac_status); }; } &&
18198
{ ac_try='test -s conftest$ac_exeext'
18199
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200
(eval $ac_try) 2>&5
18202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203
(exit $ac_status); }; }; then
18204
ac_cv_lib_dld_shl_load=yes
18206
echo "$as_me: failed program was:" >&5
18207
sed 's/^/| /' conftest.$ac_ext >&5
18209
ac_cv_lib_dld_shl_load=no
18211
rm -f conftest.err conftest.$ac_objext \
18212
conftest$ac_exeext conftest.$ac_ext
18213
LIBS=$ac_check_lib_save_LIBS
18215
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18216
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18217
if test $ac_cv_lib_dld_shl_load = yes; then
18218
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18220
echo "$as_me:$LINENO: checking for dlopen" >&5
18221
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18222
if test "${ac_cv_func_dlopen+set}" = set; then
18223
echo $ECHO_N "(cached) $ECHO_C" >&6
18225
cat >conftest.$ac_ext <<_ACEOF
18228
cat confdefs.h >>conftest.$ac_ext
18229
cat >>conftest.$ac_ext <<_ACEOF
18230
/* end confdefs.h. */
18231
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18232
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18233
#define dlopen innocuous_dlopen
18235
/* System header to define __stub macros and hopefully few prototypes,
18236
which can conflict with char dlopen (); below.
18237
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18238
<limits.h> exists even on freestanding compilers. */
18241
# include <limits.h>
18243
# include <assert.h>
18248
/* Override any gcc2 internal prototype to avoid an error. */
18253
/* We use char because int might match the return type of a gcc2
18254
builtin and then its argument prototype would still apply. */
18256
/* The GNU C library defines this for functions which it implements
18257
to always fail with ENOSYS. Some functions are actually named
18258
something starting with __ and the normal name is an alias. */
18259
#if defined (__stub_dlopen) || defined (__stub___dlopen)
18262
char (*f) () = dlopen;
18271
return f != dlopen;
18276
rm -f conftest.$ac_objext conftest$ac_exeext
18277
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18278
(eval $ac_link) 2>conftest.er1
18280
grep -v '^ *+' conftest.er1 >conftest.err
18282
cat conftest.err >&5
18283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284
(exit $ac_status); } &&
18285
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18286
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287
(eval $ac_try) 2>&5
18289
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290
(exit $ac_status); }; } &&
18291
{ ac_try='test -s conftest$ac_exeext'
18292
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18293
(eval $ac_try) 2>&5
18295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296
(exit $ac_status); }; }; then
18297
ac_cv_func_dlopen=yes
18299
echo "$as_me: failed program was:" >&5
18300
sed 's/^/| /' conftest.$ac_ext >&5
18302
ac_cv_func_dlopen=no
18304
rm -f conftest.err conftest.$ac_objext \
18305
conftest$ac_exeext conftest.$ac_ext
18307
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18308
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18309
if test $ac_cv_func_dlopen = yes; then
18310
lt_cv_dlopen="dlopen"
18312
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18313
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18314
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18315
echo $ECHO_N "(cached) $ECHO_C" >&6
18317
ac_check_lib_save_LIBS=$LIBS
18319
cat >conftest.$ac_ext <<_ACEOF
18322
cat confdefs.h >>conftest.$ac_ext
18323
cat >>conftest.$ac_ext <<_ACEOF
18324
/* end confdefs.h. */
18326
/* Override any gcc2 internal prototype to avoid an error. */
18330
/* We use char because int might match the return type of a gcc2
18331
builtin and then its argument prototype would still apply. */
18341
rm -f conftest.$ac_objext conftest$ac_exeext
18342
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18343
(eval $ac_link) 2>conftest.er1
18345
grep -v '^ *+' conftest.er1 >conftest.err
18347
cat conftest.err >&5
18348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349
(exit $ac_status); } &&
18350
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18351
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18352
(eval $ac_try) 2>&5
18354
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355
(exit $ac_status); }; } &&
18356
{ ac_try='test -s conftest$ac_exeext'
18357
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18358
(eval $ac_try) 2>&5
18360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361
(exit $ac_status); }; }; then
18362
ac_cv_lib_dl_dlopen=yes
18364
echo "$as_me: failed program was:" >&5
18365
sed 's/^/| /' conftest.$ac_ext >&5
18367
ac_cv_lib_dl_dlopen=no
18369
rm -f conftest.err conftest.$ac_objext \
18370
conftest$ac_exeext conftest.$ac_ext
18371
LIBS=$ac_check_lib_save_LIBS
18373
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18374
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18375
if test $ac_cv_lib_dl_dlopen = yes; then
18376
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18378
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18379
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18380
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18381
echo $ECHO_N "(cached) $ECHO_C" >&6
18383
ac_check_lib_save_LIBS=$LIBS
18384
LIBS="-lsvld $LIBS"
18385
cat >conftest.$ac_ext <<_ACEOF
18388
cat confdefs.h >>conftest.$ac_ext
18389
cat >>conftest.$ac_ext <<_ACEOF
18390
/* end confdefs.h. */
18392
/* Override any gcc2 internal prototype to avoid an error. */
18396
/* We use char because int might match the return type of a gcc2
18397
builtin and then its argument prototype would still apply. */
18407
rm -f conftest.$ac_objext conftest$ac_exeext
18408
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18409
(eval $ac_link) 2>conftest.er1
18411
grep -v '^ *+' conftest.er1 >conftest.err
18413
cat conftest.err >&5
18414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415
(exit $ac_status); } &&
18416
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18417
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418
(eval $ac_try) 2>&5
18420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421
(exit $ac_status); }; } &&
18422
{ ac_try='test -s conftest$ac_exeext'
18423
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18424
(eval $ac_try) 2>&5
18426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427
(exit $ac_status); }; }; then
18428
ac_cv_lib_svld_dlopen=yes
18430
echo "$as_me: failed program was:" >&5
18431
sed 's/^/| /' conftest.$ac_ext >&5
18433
ac_cv_lib_svld_dlopen=no
18435
rm -f conftest.err conftest.$ac_objext \
18436
conftest$ac_exeext conftest.$ac_ext
18437
LIBS=$ac_check_lib_save_LIBS
18439
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18440
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18441
if test $ac_cv_lib_svld_dlopen = yes; then
18442
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18444
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18445
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18446
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18447
echo $ECHO_N "(cached) $ECHO_C" >&6
18449
ac_check_lib_save_LIBS=$LIBS
18451
cat >conftest.$ac_ext <<_ACEOF
18454
cat confdefs.h >>conftest.$ac_ext
18455
cat >>conftest.$ac_ext <<_ACEOF
18456
/* end confdefs.h. */
18458
/* Override any gcc2 internal prototype to avoid an error. */
18462
/* We use char because int might match the return type of a gcc2
18463
builtin and then its argument prototype would still apply. */
18473
rm -f conftest.$ac_objext conftest$ac_exeext
18474
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18475
(eval $ac_link) 2>conftest.er1
18477
grep -v '^ *+' conftest.er1 >conftest.err
18479
cat conftest.err >&5
18480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481
(exit $ac_status); } &&
18482
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18483
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484
(eval $ac_try) 2>&5
18486
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487
(exit $ac_status); }; } &&
18488
{ ac_try='test -s conftest$ac_exeext'
18489
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18490
(eval $ac_try) 2>&5
18492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493
(exit $ac_status); }; }; then
18494
ac_cv_lib_dld_dld_link=yes
18496
echo "$as_me: failed program was:" >&5
18497
sed 's/^/| /' conftest.$ac_ext >&5
18499
ac_cv_lib_dld_dld_link=no
18501
rm -f conftest.err conftest.$ac_objext \
18502
conftest$ac_exeext conftest.$ac_ext
18503
LIBS=$ac_check_lib_save_LIBS
18505
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18506
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18507
if test $ac_cv_lib_dld_dld_link = yes; then
18508
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18529
if test "x$lt_cv_dlopen" != xno; then
18535
case $lt_cv_dlopen in
18537
save_CPPFLAGS="$CPPFLAGS"
18538
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18540
save_LDFLAGS="$LDFLAGS"
18541
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18544
LIBS="$lt_cv_dlopen_libs $LIBS"
18546
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18547
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18548
if test "${lt_cv_dlopen_self+set}" = set; then
18549
echo $ECHO_N "(cached) $ECHO_C" >&6
18551
if test "$cross_compiling" = yes; then :
18552
lt_cv_dlopen_self=cross
18554
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18555
lt_status=$lt_dlunknown
18556
cat > conftest.$ac_ext <<EOF
18557
#line 18557 "configure"
18558
#include "confdefs.h"
18567
# define LT_DLGLOBAL RTLD_GLOBAL
18570
# define LT_DLGLOBAL DL_GLOBAL
18572
# define LT_DLGLOBAL 0
18576
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18577
find out it does not work in some platform. */
18578
#ifndef LT_DLLAZY_OR_NOW
18580
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18583
# define LT_DLLAZY_OR_NOW DL_LAZY
18586
# define LT_DLLAZY_OR_NOW RTLD_NOW
18589
# define LT_DLLAZY_OR_NOW DL_NOW
18591
# define LT_DLLAZY_OR_NOW 0
18599
extern "C" void exit (int);
18602
void fnord() { int i=42;}
18605
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18606
int status = $lt_dlunknown;
18610
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18611
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18612
/* dlclose (self); */
18618
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18619
(eval $ac_link) 2>&5
18621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18623
(./conftest; exit; ) 2>/dev/null
18625
case x$lt_status in
18626
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18627
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18628
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18631
# compilation failed
18632
lt_cv_dlopen_self=no
18639
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18640
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18642
if test "x$lt_cv_dlopen_self" = xyes; then
18643
LDFLAGS="$LDFLAGS $link_static_flag"
18644
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18645
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18646
if test "${lt_cv_dlopen_self_static+set}" = set; then
18647
echo $ECHO_N "(cached) $ECHO_C" >&6
18649
if test "$cross_compiling" = yes; then :
18650
lt_cv_dlopen_self_static=cross
18652
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18653
lt_status=$lt_dlunknown
18654
cat > conftest.$ac_ext <<EOF
18655
#line 18655 "configure"
18656
#include "confdefs.h"
18665
# define LT_DLGLOBAL RTLD_GLOBAL
18668
# define LT_DLGLOBAL DL_GLOBAL
18670
# define LT_DLGLOBAL 0
18674
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18675
find out it does not work in some platform. */
18676
#ifndef LT_DLLAZY_OR_NOW
18678
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18681
# define LT_DLLAZY_OR_NOW DL_LAZY
18684
# define LT_DLLAZY_OR_NOW RTLD_NOW
18687
# define LT_DLLAZY_OR_NOW DL_NOW
18689
# define LT_DLLAZY_OR_NOW 0
18697
extern "C" void exit (int);
18700
void fnord() { int i=42;}
18703
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18704
int status = $lt_dlunknown;
18708
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18709
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18710
/* dlclose (self); */
18716
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18717
(eval $ac_link) 2>&5
18719
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18721
(./conftest; exit; ) 2>/dev/null
18723
case x$lt_status in
18724
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18725
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18726
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18729
# compilation failed
18730
lt_cv_dlopen_self_static=no
18737
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18738
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18741
CPPFLAGS="$save_CPPFLAGS"
18742
LDFLAGS="$save_LDFLAGS"
18747
case $lt_cv_dlopen_self in
18748
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18749
*) enable_dlopen_self=unknown ;;
18752
case $lt_cv_dlopen_self_static in
18753
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18754
*) enable_dlopen_self_static=unknown ;;
18759
# The else clause should only fire when bootstrapping the
18760
# libtool distribution, otherwise you forgot to ship ltmain.sh
18761
# with your package, and you will get complaints that there are
18762
# no rules to generate ltmain.sh.
18763
if test -f "$ltmain"; then
18764
# See if we are running on zsh, and set the options which allow our commands through
18765
# without removal of \ escapes.
18766
if test -n "${ZSH_VERSION+set}" ; then
18767
setopt NO_GLOB_SUBST
18769
# Now quote all the things that may contain metacharacters while being
18770
# careful not to overquote the AC_SUBSTed values. We take copies of the
18771
# variables and quote the copies for generation of the libtool script.
18772
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18774
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18775
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18776
deplibs_check_method reload_flag reload_cmds need_locks \
18777
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18778
lt_cv_sys_global_symbol_to_c_name_address \
18779
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18780
old_postinstall_cmds old_postuninstall_cmds \
18784
lt_prog_compiler_wl_GCJ \
18785
lt_prog_compiler_pic_GCJ \
18786
lt_prog_compiler_static_GCJ \
18787
lt_prog_compiler_no_builtin_flag_GCJ \
18788
export_dynamic_flag_spec_GCJ \
18789
thread_safe_flag_spec_GCJ \
18790
whole_archive_flag_spec_GCJ \
18791
enable_shared_with_static_runtimes_GCJ \
18792
old_archive_cmds_GCJ \
18793
old_archive_from_new_cmds_GCJ \
18794
predep_objects_GCJ \
18795
postdep_objects_GCJ \
18798
compiler_lib_search_path_GCJ \
18800
archive_expsym_cmds_GCJ \
18801
postinstall_cmds_GCJ \
18802
postuninstall_cmds_GCJ \
18803
old_archive_from_expsyms_cmds_GCJ \
18804
allow_undefined_flag_GCJ \
18805
no_undefined_flag_GCJ \
18806
export_symbols_cmds_GCJ \
18807
hardcode_libdir_flag_spec_GCJ \
18808
hardcode_libdir_flag_spec_ld_GCJ \
18809
hardcode_libdir_separator_GCJ \
18810
hardcode_automatic_GCJ \
18812
module_expsym_cmds_GCJ \
18813
lt_cv_prog_compiler_c_o_GCJ \
18814
exclude_expsyms_GCJ \
18815
include_expsyms_GCJ; do
18818
old_archive_cmds_GCJ | \
18819
old_archive_from_new_cmds_GCJ | \
18820
archive_cmds_GCJ | \
18821
archive_expsym_cmds_GCJ | \
18822
module_cmds_GCJ | \
18823
module_expsym_cmds_GCJ | \
18824
old_archive_from_expsyms_cmds_GCJ | \
18825
export_symbols_cmds_GCJ | \
18826
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18827
postinstall_cmds | postuninstall_cmds | \
18828
old_postinstall_cmds | old_postuninstall_cmds | \
18829
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18830
# Double-quote double-evaled strings.
18831
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18834
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18840
*'\$0 --fallback-echo"')
18841
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18847
cat <<__EOF__ >> "$cfgfile"
18848
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18850
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18852
# Shell to use when invoking shell scripts.
18855
# Whether or not to build shared libraries.
18856
build_libtool_libs=$enable_shared
18858
# Whether or not to build static libraries.
18859
build_old_libs=$enable_static
18861
# Whether or not to add -lc for building shared libraries.
18862
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18864
# Whether or not to disallow shared libs when runtime libs are static
18865
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18867
# Whether or not to optimize for fast installation.
18868
fast_install=$enable_fast_install
18871
host_alias=$host_alias
18874
# An echo program that does not interpret backslashes.
18879
AR_FLAGS=$lt_AR_FLAGS
18884
# A language-specific compiler.
18885
CC=$lt_compiler_GCJ
18887
# Is the compiler the GNU C compiler?
18893
# The linker used to build libraries.
18896
# Whether we need hard or soft links.
18899
# A BSD-compatible nm program.
18902
# A symbol stripping program
18905
# Used to examine libraries when file_magic_cmd begins "file"
18906
MAGIC_CMD=$MAGIC_CMD
18908
# Used on cygwin: DLL creation program.
18911
# Used on cygwin: object dumper.
18914
# Used on cygwin: assembler.
18917
# The name of the directory that contains temporary libtool files.
18920
# How to create reloadable object files.
18921
reload_flag=$lt_reload_flag
18922
reload_cmds=$lt_reload_cmds
18924
# How to pass a linker flag through the compiler.
18925
wl=$lt_lt_prog_compiler_wl_GCJ
18927
# Object file suffix (normally "o").
18928
objext="$ac_objext"
18930
# Old archive suffix (normally "a").
18933
# Shared library suffix (normally ".so").
18934
shrext_cmds='$shrext_cmds'
18936
# Executable file suffix (normally "").
18939
# Additional compiler flags for building library objects.
18940
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18943
# What is the maximum length of a command?
18944
max_cmd_len=$lt_cv_sys_max_cmd_len
18946
# Does compiler simultaneously support -c and -o options?
18947
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18949
# Must we lock files when doing compilation ?
18950
need_locks=$lt_need_locks
18952
# Do we need the lib prefix for modules?
18953
need_lib_prefix=$need_lib_prefix
18955
# Do we need a version for libraries?
18956
need_version=$need_version
18958
# Whether dlopen is supported.
18959
dlopen_support=$enable_dlopen
18961
# Whether dlopen of programs is supported.
18962
dlopen_self=$enable_dlopen_self
18964
# Whether dlopen of statically linked programs is supported.
18965
dlopen_self_static=$enable_dlopen_self_static
18967
# Compiler flag to prevent dynamic linking.
18968
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18970
# Compiler flag to turn off builtin functions.
18971
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18973
# Compiler flag to allow reflexive dlopens.
18974
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18976
# Compiler flag to generate shared objects directly from archives.
18977
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18979
# Compiler flag to generate thread-safe objects.
18980
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18982
# Library versioning type.
18983
version_type=$version_type
18985
# Format of library name prefix.
18986
libname_spec=$lt_libname_spec
18988
# List of archive names. First name is the real one, the rest are links.
18989
# The last name is the one that the linker finds with -lNAME.
18990
library_names_spec=$lt_library_names_spec
18992
# The coded name of the library, if different from the real name.
18993
soname_spec=$lt_soname_spec
18995
# Commands used to build and install an old-style archive.
18997
old_archive_cmds=$lt_old_archive_cmds_GCJ
18998
old_postinstall_cmds=$lt_old_postinstall_cmds
18999
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19001
# Create an old-style archive from a shared archive.
19002
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19004
# Create a temporary old-style archive to link instead of a shared archive.
19005
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19007
# Commands used to build and install a shared archive.
19008
archive_cmds=$lt_archive_cmds_GCJ
19009
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19010
postinstall_cmds=$lt_postinstall_cmds
19011
postuninstall_cmds=$lt_postuninstall_cmds
19013
# Commands used to build a loadable module (assumed same as above if empty)
19014
module_cmds=$lt_module_cmds_GCJ
19015
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19017
# Commands to strip libraries.
19018
old_striplib=$lt_old_striplib
19019
striplib=$lt_striplib
19021
# Dependencies to place before the objects being linked to create a
19023
predep_objects=$lt_predep_objects_GCJ
19025
# Dependencies to place after the objects being linked to create a
19027
postdep_objects=$lt_postdep_objects_GCJ
19029
# Dependencies to place before the objects being linked to create a
19031
predeps=$lt_predeps_GCJ
19033
# Dependencies to place after the objects being linked to create a
19035
postdeps=$lt_postdeps_GCJ
19037
# The library search path used internally by the compiler when linking
19038
# a shared library.
19039
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19041
# Method to check whether dependent libraries are shared objects.
19042
deplibs_check_method=$lt_deplibs_check_method
19044
# Command to use when deplibs_check_method == file_magic.
19045
file_magic_cmd=$lt_file_magic_cmd
19047
# Flag that allows shared libraries with undefined symbols to be built.
19048
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19050
# Flag that forces no undefined symbols.
19051
no_undefined_flag=$lt_no_undefined_flag_GCJ
19053
# Commands used to finish a libtool library installation in a directory.
19054
finish_cmds=$lt_finish_cmds
19056
# Same as above, but a single script fragment to be evaled but not shown.
19057
finish_eval=$lt_finish_eval
19059
# Take the output of nm and produce a listing of raw symbols and C names.
19060
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19062
# Transform the output of nm in a proper C declaration
19063
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19065
# Transform the output of nm in a C name address pair
19066
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19068
# This is the shared library runtime path variable.
19069
runpath_var=$runpath_var
19071
# This is the shared library path variable.
19072
shlibpath_var=$shlibpath_var
19074
# Is shlibpath searched before the hard-coded library search path?
19075
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19077
# How to hardcode a shared library path into an executable.
19078
hardcode_action=$hardcode_action_GCJ
19080
# Whether we should hardcode library paths into libraries.
19081
hardcode_into_libs=$hardcode_into_libs
19083
# Flag to hardcode \$libdir into a binary during linking.
19084
# This must work even if \$libdir does not exist.
19085
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19087
# If ld is used when linking, flag to hardcode \$libdir into
19088
# a binary during linking. This must work even if \$libdir does
19090
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19092
# Whether we need a single -rpath flag with a separated argument.
19093
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19095
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19096
# resulting binary.
19097
hardcode_direct=$hardcode_direct_GCJ
19099
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19100
# resulting binary.
19101
hardcode_minus_L=$hardcode_minus_L_GCJ
19103
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19104
# the resulting binary.
19105
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19107
# Set to yes if building a shared library automatically hardcodes DIR into the library
19108
# and all subsequent libraries and executables linked against it.
19109
hardcode_automatic=$hardcode_automatic_GCJ
19111
# Variables whose values should be saved in libtool wrapper scripts and
19112
# restored at relink time.
19113
variables_saved_for_relink="$variables_saved_for_relink"
19115
# Whether libtool must link a program against all its dependency libraries.
19116
link_all_deplibs=$link_all_deplibs_GCJ
19118
# Compile-time system search path for libraries
19119
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19121
# Run-time system search path for libraries
19122
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19124
# Fix the shell variable \$srcfile for the compiler.
19125
fix_srcfile_path="$fix_srcfile_path_GCJ"
19127
# Set to yes if exported symbols are required.
19128
always_export_symbols=$always_export_symbols_GCJ
19130
# The commands to list exported symbols.
19131
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19133
# The commands to extract the exported symbol list from a shared archive.
19134
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19136
# Symbols that should not be listed in the preloaded symbols.
19137
exclude_expsyms=$lt_exclude_expsyms_GCJ
19139
# Symbols that must always be exported.
19140
include_expsyms=$lt_include_expsyms_GCJ
19142
# ### END LIBTOOL TAG CONFIG: $tagname
19148
# If there is no Makefile yet, we rely on a make rule to execute
19149
# `config.status --recheck' to rerun these tests and create the
19150
# libtool script then.
19151
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19152
if test -f "$ltmain_in"; then
19153
test -f Makefile && make "$ltmain"
19159
ac_cpp='$CXXCPP $CPPFLAGS'
19160
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19161
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19162
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19175
# Source file extension for RC test sources.
19178
# Object file extension for compiled RC test sources.
19182
# Code to be used in simple compile tests
19183
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19185
# Code to be used in simple link tests
19186
lt_simple_link_test_code="$lt_simple_compile_test_code"
19188
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19190
# If no C compiler was specified, use CC.
19193
# Allow CC to be a program name with arguments.
19197
# Allow CC to be a program name with arguments.
19202
lt_cv_prog_compiler_c_o_RC=yes
19204
# The else clause should only fire when bootstrapping the
19205
# libtool distribution, otherwise you forgot to ship ltmain.sh
19206
# with your package, and you will get complaints that there are
19207
# no rules to generate ltmain.sh.
19208
if test -f "$ltmain"; then
19209
# See if we are running on zsh, and set the options which allow our commands through
19210
# without removal of \ escapes.
19211
if test -n "${ZSH_VERSION+set}" ; then
19212
setopt NO_GLOB_SUBST
19214
# Now quote all the things that may contain metacharacters while being
19215
# careful not to overquote the AC_SUBSTed values. We take copies of the
19216
# variables and quote the copies for generation of the libtool script.
19217
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19219
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19220
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19221
deplibs_check_method reload_flag reload_cmds need_locks \
19222
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19223
lt_cv_sys_global_symbol_to_c_name_address \
19224
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19225
old_postinstall_cmds old_postuninstall_cmds \
19229
lt_prog_compiler_wl_RC \
19230
lt_prog_compiler_pic_RC \
19231
lt_prog_compiler_static_RC \
19232
lt_prog_compiler_no_builtin_flag_RC \
19233
export_dynamic_flag_spec_RC \
19234
thread_safe_flag_spec_RC \
19235
whole_archive_flag_spec_RC \
19236
enable_shared_with_static_runtimes_RC \
19237
old_archive_cmds_RC \
19238
old_archive_from_new_cmds_RC \
19239
predep_objects_RC \
19240
postdep_objects_RC \
19243
compiler_lib_search_path_RC \
19245
archive_expsym_cmds_RC \
19246
postinstall_cmds_RC \
19247
postuninstall_cmds_RC \
19248
old_archive_from_expsyms_cmds_RC \
19249
allow_undefined_flag_RC \
19250
no_undefined_flag_RC \
19251
export_symbols_cmds_RC \
19252
hardcode_libdir_flag_spec_RC \
19253
hardcode_libdir_flag_spec_ld_RC \
19254
hardcode_libdir_separator_RC \
19255
hardcode_automatic_RC \
19257
module_expsym_cmds_RC \
19258
lt_cv_prog_compiler_c_o_RC \
19259
exclude_expsyms_RC \
19260
include_expsyms_RC; do
19263
old_archive_cmds_RC | \
19264
old_archive_from_new_cmds_RC | \
19265
archive_cmds_RC | \
19266
archive_expsym_cmds_RC | \
19268
module_expsym_cmds_RC | \
19269
old_archive_from_expsyms_cmds_RC | \
19270
export_symbols_cmds_RC | \
19271
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19272
postinstall_cmds | postuninstall_cmds | \
19273
old_postinstall_cmds | old_postuninstall_cmds | \
19274
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19275
# Double-quote double-evaled strings.
19276
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19279
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19285
*'\$0 --fallback-echo"')
19286
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19292
cat <<__EOF__ >> "$cfgfile"
19293
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19295
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19297
# Shell to use when invoking shell scripts.
19300
# Whether or not to build shared libraries.
19301
build_libtool_libs=$enable_shared
19303
# Whether or not to build static libraries.
19304
build_old_libs=$enable_static
19306
# Whether or not to add -lc for building shared libraries.
19307
build_libtool_need_lc=$archive_cmds_need_lc_RC
19309
# Whether or not to disallow shared libs when runtime libs are static
19310
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19312
# Whether or not to optimize for fast installation.
19313
fast_install=$enable_fast_install
19316
host_alias=$host_alias
19319
# An echo program that does not interpret backslashes.
19324
AR_FLAGS=$lt_AR_FLAGS
19329
# A language-specific compiler.
19332
# Is the compiler the GNU C compiler?
19338
# The linker used to build libraries.
19341
# Whether we need hard or soft links.
19344
# A BSD-compatible nm program.
19347
# A symbol stripping program
19350
# Used to examine libraries when file_magic_cmd begins "file"
19351
MAGIC_CMD=$MAGIC_CMD
19353
# Used on cygwin: DLL creation program.
19356
# Used on cygwin: object dumper.
19359
# Used on cygwin: assembler.
19362
# The name of the directory that contains temporary libtool files.
19365
# How to create reloadable object files.
19366
reload_flag=$lt_reload_flag
19367
reload_cmds=$lt_reload_cmds
19369
# How to pass a linker flag through the compiler.
19370
wl=$lt_lt_prog_compiler_wl_RC
19372
# Object file suffix (normally "o").
19373
objext="$ac_objext"
19375
# Old archive suffix (normally "a").
19378
# Shared library suffix (normally ".so").
19379
shrext_cmds='$shrext_cmds'
19381
# Executable file suffix (normally "").
19384
# Additional compiler flags for building library objects.
19385
pic_flag=$lt_lt_prog_compiler_pic_RC
19388
# What is the maximum length of a command?
19389
max_cmd_len=$lt_cv_sys_max_cmd_len
19391
# Does compiler simultaneously support -c and -o options?
19392
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19394
# Must we lock files when doing compilation ?
19395
need_locks=$lt_need_locks
19397
# Do we need the lib prefix for modules?
19398
need_lib_prefix=$need_lib_prefix
19400
# Do we need a version for libraries?
19401
need_version=$need_version
19403
# Whether dlopen is supported.
19404
dlopen_support=$enable_dlopen
19406
# Whether dlopen of programs is supported.
19407
dlopen_self=$enable_dlopen_self
19409
# Whether dlopen of statically linked programs is supported.
19410
dlopen_self_static=$enable_dlopen_self_static
19412
# Compiler flag to prevent dynamic linking.
19413
link_static_flag=$lt_lt_prog_compiler_static_RC
19415
# Compiler flag to turn off builtin functions.
19416
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19418
# Compiler flag to allow reflexive dlopens.
19419
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19421
# Compiler flag to generate shared objects directly from archives.
19422
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19424
# Compiler flag to generate thread-safe objects.
19425
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19427
# Library versioning type.
19428
version_type=$version_type
19430
# Format of library name prefix.
19431
libname_spec=$lt_libname_spec
19433
# List of archive names. First name is the real one, the rest are links.
19434
# The last name is the one that the linker finds with -lNAME.
19435
library_names_spec=$lt_library_names_spec
19437
# The coded name of the library, if different from the real name.
19438
soname_spec=$lt_soname_spec
19440
# Commands used to build and install an old-style archive.
19442
old_archive_cmds=$lt_old_archive_cmds_RC
19443
old_postinstall_cmds=$lt_old_postinstall_cmds
19444
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19446
# Create an old-style archive from a shared archive.
19447
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19449
# Create a temporary old-style archive to link instead of a shared archive.
19450
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19452
# Commands used to build and install a shared archive.
19453
archive_cmds=$lt_archive_cmds_RC
19454
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19455
postinstall_cmds=$lt_postinstall_cmds
19456
postuninstall_cmds=$lt_postuninstall_cmds
19458
# Commands used to build a loadable module (assumed same as above if empty)
19459
module_cmds=$lt_module_cmds_RC
19460
module_expsym_cmds=$lt_module_expsym_cmds_RC
19462
# Commands to strip libraries.
19463
old_striplib=$lt_old_striplib
19464
striplib=$lt_striplib
19466
# Dependencies to place before the objects being linked to create a
19468
predep_objects=$lt_predep_objects_RC
19470
# Dependencies to place after the objects being linked to create a
19472
postdep_objects=$lt_postdep_objects_RC
19474
# Dependencies to place before the objects being linked to create a
19476
predeps=$lt_predeps_RC
19478
# Dependencies to place after the objects being linked to create a
19480
postdeps=$lt_postdeps_RC
19482
# The library search path used internally by the compiler when linking
19483
# a shared library.
19484
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19486
# Method to check whether dependent libraries are shared objects.
19487
deplibs_check_method=$lt_deplibs_check_method
19489
# Command to use when deplibs_check_method == file_magic.
19490
file_magic_cmd=$lt_file_magic_cmd
19492
# Flag that allows shared libraries with undefined symbols to be built.
19493
allow_undefined_flag=$lt_allow_undefined_flag_RC
19495
# Flag that forces no undefined symbols.
19496
no_undefined_flag=$lt_no_undefined_flag_RC
19498
# Commands used to finish a libtool library installation in a directory.
19499
finish_cmds=$lt_finish_cmds
19501
# Same as above, but a single script fragment to be evaled but not shown.
19502
finish_eval=$lt_finish_eval
19504
# Take the output of nm and produce a listing of raw symbols and C names.
19505
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19507
# Transform the output of nm in a proper C declaration
19508
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19510
# Transform the output of nm in a C name address pair
19511
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19513
# This is the shared library runtime path variable.
19514
runpath_var=$runpath_var
19516
# This is the shared library path variable.
19517
shlibpath_var=$shlibpath_var
19519
# Is shlibpath searched before the hard-coded library search path?
19520
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19522
# How to hardcode a shared library path into an executable.
19523
hardcode_action=$hardcode_action_RC
19525
# Whether we should hardcode library paths into libraries.
19526
hardcode_into_libs=$hardcode_into_libs
19528
# Flag to hardcode \$libdir into a binary during linking.
19529
# This must work even if \$libdir does not exist.
19530
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19532
# If ld is used when linking, flag to hardcode \$libdir into
19533
# a binary during linking. This must work even if \$libdir does
19535
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19537
# Whether we need a single -rpath flag with a separated argument.
19538
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19540
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19541
# resulting binary.
19542
hardcode_direct=$hardcode_direct_RC
19544
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19545
# resulting binary.
19546
hardcode_minus_L=$hardcode_minus_L_RC
19548
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19549
# the resulting binary.
19550
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19552
# Set to yes if building a shared library automatically hardcodes DIR into the library
19553
# and all subsequent libraries and executables linked against it.
19554
hardcode_automatic=$hardcode_automatic_RC
19556
# Variables whose values should be saved in libtool wrapper scripts and
19557
# restored at relink time.
19558
variables_saved_for_relink="$variables_saved_for_relink"
19560
# Whether libtool must link a program against all its dependency libraries.
19561
link_all_deplibs=$link_all_deplibs_RC
19563
# Compile-time system search path for libraries
19564
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19566
# Run-time system search path for libraries
19567
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19569
# Fix the shell variable \$srcfile for the compiler.
19570
fix_srcfile_path="$fix_srcfile_path_RC"
19572
# Set to yes if exported symbols are required.
19573
always_export_symbols=$always_export_symbols_RC
19575
# The commands to list exported symbols.
19576
export_symbols_cmds=$lt_export_symbols_cmds_RC
19578
# The commands to extract the exported symbol list from a shared archive.
19579
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19581
# Symbols that should not be listed in the preloaded symbols.
19582
exclude_expsyms=$lt_exclude_expsyms_RC
19584
# Symbols that must always be exported.
19585
include_expsyms=$lt_include_expsyms_RC
19587
# ### END LIBTOOL TAG CONFIG: $tagname
19593
# If there is no Makefile yet, we rely on a make rule to execute
19594
# `config.status --recheck' to rerun these tests and create the
19595
# libtool script then.
19596
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19597
if test -f "$ltmain_in"; then
19598
test -f Makefile && make "$ltmain"
19604
ac_cpp='$CXXCPP $CPPFLAGS'
19605
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19606
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19607
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19614
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19615
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19616
{ (exit 1); exit 1; }; }
19620
# Append the new tag name to the list of available tags.
19621
if test -n "$tagname" ; then
19622
available_tags="$available_tags $tagname"
19628
# Now substitute the updated list of available tags.
19629
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19630
mv "${ofile}T" "$ofile"
19634
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19635
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19636
{ (exit 1); exit 1; }; }
19642
# This can be used to rebuild libtool when needed
19643
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19645
# Always use our own libtool.
19646
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19648
# Prevent multiple expansion
19673
if test -z "$PKG_CONFIG"; then
19674
# Extract the first word of "pkg-config", so it can be a program name with args.
19675
set dummy pkg-config; ac_word=$2
19676
echo "$as_me:$LINENO: checking for $ac_word" >&5
19677
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19678
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19679
echo $ECHO_N "(cached) $ECHO_C" >&6
19681
case $PKG_CONFIG in
19683
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19686
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19687
for as_dir in $PATH
19690
test -z "$as_dir" && as_dir=.
19691
for ac_exec_ext in '' $ac_executable_extensions; do
19692
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19693
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19694
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19700
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19704
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19706
if test -n "$PKG_CONFIG"; then
19707
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19708
echo "${ECHO_T}$PKG_CONFIG" >&6
19710
echo "$as_me:$LINENO: result: no" >&5
19711
echo "${ECHO_T}no" >&6
19716
if test "$PKG_CONFIG" = "no" ; then
19717
echo "*** The pkg-config script could not be found. Make sure it is"
19718
echo "*** in your path, or set the PKG_CONFIG environment variable"
19719
echo "*** to the full path to pkg-config."
19720
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19722
PKG_CONFIG_MIN_VERSION=0.9.0
19723
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19724
echo "$as_me:$LINENO: checking for glib-2.0 >= 2.0.7 gtk+-2.0 >= 2.0.6 sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.4.0" >&5
19725
echo $ECHO_N "checking for glib-2.0 >= 2.0.7 gtk+-2.0 >= 2.0.6 sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.4.0... $ECHO_C" >&6
19727
if $PKG_CONFIG --exists "glib-2.0 >= 2.0.7 gtk+-2.0 >= 2.0.6 sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.4.0" ; then
19728
echo "$as_me:$LINENO: result: yes" >&5
19729
echo "${ECHO_T}yes" >&6
19732
echo "$as_me:$LINENO: checking GTKMM_CFLAGS" >&5
19733
echo $ECHO_N "checking GTKMM_CFLAGS... $ECHO_C" >&6
19734
GTKMM_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.0.7 gtk+-2.0 >= 2.0.6 sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.4.0"`
19735
echo "$as_me:$LINENO: result: $GTKMM_CFLAGS" >&5
19736
echo "${ECHO_T}$GTKMM_CFLAGS" >&6
19738
echo "$as_me:$LINENO: checking GTKMM_LIBS" >&5
19739
echo $ECHO_N "checking GTKMM_LIBS... $ECHO_C" >&6
19740
GTKMM_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.0.7 gtk+-2.0 >= 2.0.6 sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.4.0"`
19741
echo "$as_me:$LINENO: result: $GTKMM_LIBS" >&5
19742
echo "${ECHO_T}$GTKMM_LIBS" >&6
19746
## If we have a custom action on failure, don't print errors, but
19747
## do set a variable so people can do so.
19748
GTKMM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.0.7 gtk+-2.0 >= 2.0.6 sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.4.0"`
19749
echo $GTKMM_PKG_ERRORS
19755
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19756
echo "*** See http://www.freedesktop.org/software/pkgconfig"
19760
if test $succeeded = yes; then
19763
{ { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= 2.0.7 gtk+-2.0 >= 2.0.6 sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
19764
echo "$as_me: error: Library requirements (glib-2.0 >= 2.0.7 gtk+-2.0 >= 2.0.6 sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
19765
{ (exit 1); exit 1; }; }
19771
if test -z "$PKG_CONFIG"; then
19772
# Extract the first word of "pkg-config", so it can be a program name with args.
19773
set dummy pkg-config; ac_word=$2
19774
echo "$as_me:$LINENO: checking for $ac_word" >&5
19775
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19776
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19777
echo $ECHO_N "(cached) $ECHO_C" >&6
19779
case $PKG_CONFIG in
19781
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19784
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19785
for as_dir in $PATH
19788
test -z "$as_dir" && as_dir=.
19789
for ac_exec_ext in '' $ac_executable_extensions; do
19790
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19791
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19792
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19798
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19802
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19804
if test -n "$PKG_CONFIG"; then
19805
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19806
echo "${ECHO_T}$PKG_CONFIG" >&6
19808
echo "$as_me:$LINENO: result: no" >&5
19809
echo "${ECHO_T}no" >&6
19814
if test "$PKG_CONFIG" = "no" ; then
19815
echo "*** The pkg-config script could not be found. Make sure it is"
19816
echo "*** in your path, or set the PKG_CONFIG environment variable"
19817
echo "*** to the full path to pkg-config."
19818
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19820
PKG_CONFIG_MIN_VERSION=0.9.0
19821
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19822
echo "$as_me:$LINENO: checking for gtkmm-2.4 >= 2.4.0" >&5
19823
echo $ECHO_N "checking for gtkmm-2.4 >= 2.4.0... $ECHO_C" >&6
19825
if $PKG_CONFIG --exists "gtkmm-2.4 >= 2.4.0" ; then
19826
echo "$as_me:$LINENO: result: yes" >&5
19827
echo "${ECHO_T}yes" >&6
19830
echo "$as_me:$LINENO: checking GTKMM_CFLAGS" >&5
19831
echo $ECHO_N "checking GTKMM_CFLAGS... $ECHO_C" >&6
19832
GTKMM_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4 >= 2.4.0"`
19833
echo "$as_me:$LINENO: result: $GTKMM_CFLAGS" >&5
19834
echo "${ECHO_T}$GTKMM_CFLAGS" >&6
19836
echo "$as_me:$LINENO: checking GTKMM_LIBS" >&5
19837
echo $ECHO_N "checking GTKMM_LIBS... $ECHO_C" >&6
19838
GTKMM_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4 >= 2.4.0"`
19839
echo "$as_me:$LINENO: result: $GTKMM_LIBS" >&5
19840
echo "${ECHO_T}$GTKMM_LIBS" >&6
19844
## If we have a custom action on failure, don't print errors, but
19845
## do set a variable so people can do so.
19846
GTKMM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkmm-2.4 >= 2.4.0"`
19847
echo $GTKMM_PKG_ERRORS
19853
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19854
echo "*** See http://www.freedesktop.org/software/pkgconfig"
19858
if test $succeeded = yes; then
19861
{ { echo "$as_me:$LINENO: error: Library requirements (gtkmm-2.4 >= 2.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
19862
echo "$as_me: error: Library requirements (gtkmm-2.4 >= 2.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
19863
{ (exit 1); exit 1; }; }
19872
if test -z "$PKG_CONFIG"; then
19873
# Extract the first word of "pkg-config", so it can be a program name with args.
19874
set dummy pkg-config; ac_word=$2
19875
echo "$as_me:$LINENO: checking for $ac_word" >&5
19876
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19877
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19878
echo $ECHO_N "(cached) $ECHO_C" >&6
19880
case $PKG_CONFIG in
19882
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19885
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19886
for as_dir in $PATH
19889
test -z "$as_dir" && as_dir=.
19890
for ac_exec_ext in '' $ac_executable_extensions; do
19891
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19892
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19893
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19899
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19903
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19905
if test -n "$PKG_CONFIG"; then
19906
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19907
echo "${ECHO_T}$PKG_CONFIG" >&6
19909
echo "$as_me:$LINENO: result: no" >&5
19910
echo "${ECHO_T}no" >&6
19915
if test "$PKG_CONFIG" = "no" ; then
19916
echo "*** The pkg-config script could not be found. Make sure it is"
19917
echo "*** in your path, or set the PKG_CONFIG environment variable"
19918
echo "*** to the full path to pkg-config."
19919
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19921
PKG_CONFIG_MIN_VERSION=0.9.0
19922
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19923
echo "$as_me:$LINENO: checking for libxml++-1.0" >&5
19924
echo $ECHO_N "checking for libxml++-1.0... $ECHO_C" >&6
19926
if $PKG_CONFIG --exists "libxml++-1.0" ; then
19927
echo "$as_me:$LINENO: result: yes" >&5
19928
echo "${ECHO_T}yes" >&6
19931
echo "$as_me:$LINENO: checking XMLPP_CFLAGS" >&5
19932
echo $ECHO_N "checking XMLPP_CFLAGS... $ECHO_C" >&6
19933
XMLPP_CFLAGS=`$PKG_CONFIG --cflags "libxml++-1.0"`
19934
echo "$as_me:$LINENO: result: $XMLPP_CFLAGS" >&5
19935
echo "${ECHO_T}$XMLPP_CFLAGS" >&6
19937
echo "$as_me:$LINENO: checking XMLPP_LIBS" >&5
19938
echo $ECHO_N "checking XMLPP_LIBS... $ECHO_C" >&6
19939
XMLPP_LIBS=`$PKG_CONFIG --libs "libxml++-1.0"`
19940
echo "$as_me:$LINENO: result: $XMLPP_LIBS" >&5
19941
echo "${ECHO_T}$XMLPP_LIBS" >&6
19945
## If we have a custom action on failure, don't print errors, but
19946
## do set a variable so people can do so.
19947
XMLPP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml++-1.0"`
19948
echo $XMLPP_PKG_ERRORS
19954
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19955
echo "*** See http://www.freedesktop.org/software/pkgconfig"
19959
if test $succeeded = yes; then
19962
{ { echo "$as_me:$LINENO: error: Library requirements (libxml++-1.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
19963
echo "$as_me: error: Library requirements (libxml++-1.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
19964
{ (exit 1); exit 1; }; }
19975
CXXFLAGS="$CXXFLAGS -Wall"
19977
ac_config_files="$ac_config_files Makefile libbuffy/Makefile src/Makefile"
19979
cat >confcache <<\_ACEOF
19980
# This file is a shell script that caches the results of configure
19981
# tests run on this system so they can be shared between configure
19982
# scripts and configure runs, see configure's option --config-cache.
19983
# It is not useful on other systems. If it contains results you don't
19984
# want to keep, you may remove or edit it.
19986
# config.status only pays attention to the cache file if you give it
19987
# the --recheck option to rerun configure.
19989
# `ac_cv_env_foo' variables (set or unset) will be overridden when
19990
# loading this file, other *unset* `ac_cv_foo' will be assigned the
19991
# following values.
19995
# The following way of writing the cache mishandles newlines in values,
19996
# but we know of no workaround that is simple, portable, and efficient.
19997
# So, don't put newlines in cache variables' values.
19998
# Ultrix sh set writes to stderr and can't be redirected directly,
19999
# and sets the high bit in the cache file unless we assign to the vars.
20002
case `(ac_space=' '; set | grep ac_space) 2>&1` in
20004
# `set' does not quote correctly, so add quotes (double-quote
20005
# substitution turns \\\\ into \\, and sed turns \\ into \).
20008
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20011
# `set' quotes correctly as required by POSIX, so do not add quotes.
20013
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20020
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20022
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20024
if diff $cache_file confcache >/dev/null 2>&1; then :; else
20025
if test -w $cache_file; then
20026
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20027
cat confcache >$cache_file
20029
echo "not updating unwritable cache $cache_file"
20034
test "x$prefix" = xNONE && prefix=$ac_default_prefix
20035
# Let make expand exec_prefix.
20036
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20038
# VPATH may cause trouble with some makes, so we remove $(srcdir),
20039
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20040
# trailing colons and then remove the whole line if VPATH becomes empty
20041
# (actually we leave an empty line to preserve line numbers).
20042
if test "x$srcdir" = x.; then
20043
ac_vpsub='/^[ ]*VPATH[ ]*=/{
20044
s/:*\$(srcdir):*/:/;
20045
s/:*\${srcdir}:*/:/;
20047
s/^\([^=]*=[ ]*\):*/\1/;
20053
DEFS=-DHAVE_CONFIG_H
20057
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20058
# 1. Remove the extension, and $U if already installed.
20059
ac_i=`echo "$ac_i" |
20060
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20062
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20063
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20065
LIBOBJS=$ac_libobjs
20067
LTLIBOBJS=$ac_ltlibobjs
20070
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20071
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20072
Usually this means the macro was only invoked conditionally." >&5
20073
echo "$as_me: error: conditional \"AMDEP\" was never defined.
20074
Usually this means the macro was only invoked conditionally." >&2;}
20075
{ (exit 1); exit 1; }; }
20077
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20078
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20079
Usually this means the macro was only invoked conditionally." >&5
20080
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20081
Usually this means the macro was only invoked conditionally." >&2;}
20082
{ (exit 1); exit 1; }; }
20084
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20085
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20086
Usually this means the macro was only invoked conditionally." >&5
20087
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20088
Usually this means the macro was only invoked conditionally." >&2;}
20089
{ (exit 1); exit 1; }; }
20091
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20092
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20093
Usually this means the macro was only invoked conditionally." >&5
20094
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20095
Usually this means the macro was only invoked conditionally." >&2;}
20096
{ (exit 1); exit 1; }; }
20099
: ${CONFIG_STATUS=./config.status}
20100
ac_clean_files_save=$ac_clean_files
20101
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20102
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20103
echo "$as_me: creating $CONFIG_STATUS" >&6;}
20104
cat >$CONFIG_STATUS <<_ACEOF
20106
# Generated by $as_me.
20107
# Run this file to recreate the current configuration.
20108
# Compiler output produced by configure, useful for debugging
20109
# configure, is in config.log if it exists.
20112
ac_cs_recheck=false
20114
SHELL=\${CONFIG_SHELL-$SHELL}
20117
cat >>$CONFIG_STATUS <<\_ACEOF
20118
## --------------------- ##
20119
## M4sh Initialization. ##
20120
## --------------------- ##
20122
# Be Bourne compatible
20123
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20126
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20127
# is contrary to our usage. Disable this feature.
20128
alias -g '${1+"$@"}'='"$@"'
20129
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20132
DUALCASE=1; export DUALCASE # for MKS sh
20134
# Support unset when possible.
20135
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20142
# Work around bugs in pre-3.0 UWIN ksh.
20143
$as_unset ENV MAIL MAILPATH
20150
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20151
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20152
LC_TELEPHONE LC_TIME
20154
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20155
eval $as_var=C; export $as_var
20161
# Required to use basename.
20162
if expr a : '\(a\)' >/dev/null 2>&1; then
20168
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20169
as_basename=basename
20175
# Name of the executable.
20176
as_me=`$as_basename "$0" ||
20177
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20178
X"$0" : 'X\(//\)$' \| \
20179
X"$0" : 'X\(/\)$' \| \
20180
. : '\(.\)' 2>/dev/null ||
20182
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20183
/^X\/\(\/\/\)$/{ s//\1/; q; }
20184
/^X\/\(\/\).*/{ s//\1/; q; }
20188
# PATH needs CR, and LINENO needs CR and PATH.
20189
# Avoid depending upon Character Ranges.
20190
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20191
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20192
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20193
as_cr_digits='0123456789'
20194
as_cr_alnum=$as_cr_Letters$as_cr_digits
20196
# The user is always right.
20197
if test "${PATH_SEPARATOR+set}" != set; then
20198
echo "#! /bin/sh" >conf$$.sh
20199
echo "exit 0" >>conf$$.sh
20201
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20210
as_lineno_1=$LINENO
20211
as_lineno_2=$LINENO
20212
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20213
test "x$as_lineno_1" != "x$as_lineno_2" &&
20214
test "x$as_lineno_3" = "x$as_lineno_2" || {
20215
# Find who we are. Look in the path if we contain no path at all
20218
*[\\/]* ) as_myself=$0 ;;
20219
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20220
for as_dir in $PATH
20223
test -z "$as_dir" && as_dir=.
20224
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20229
# We did not find ourselves, most probably we were run as `sh COMMAND'
20230
# in which case we are not to be found in the path.
20231
if test "x$as_myself" = x; then
20234
if test ! -f "$as_myself"; then
20235
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20236
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20237
{ (exit 1); exit 1; }; }
20239
case $CONFIG_SHELL in
20241
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20242
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20245
test -z "$as_dir" && as_dir=.
20246
for as_base in sh bash ksh sh5; do
20249
if ("$as_dir/$as_base" -c '
20250
as_lineno_1=$LINENO
20251
as_lineno_2=$LINENO
20252
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20253
test "x$as_lineno_1" != "x$as_lineno_2" &&
20254
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20255
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20256
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20257
CONFIG_SHELL=$as_dir/$as_base
20258
export CONFIG_SHELL
20259
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20267
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20268
# uniformly replaced by the line number. The first 'sed' inserts a
20269
# line-number line before each line; the second 'sed' does the real
20270
# work. The second script uses 'N' to pair each line-number line
20271
# with the numbered line, and appends trailing '-' during
20272
# substitution so that $LINENO is not a special case at line end.
20273
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20274
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20275
sed '=' <$as_myself |
20280
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20283
s,^['$as_cr_digits']*\n,,
20284
' >$as_me.lineno &&
20285
chmod +x $as_me.lineno ||
20286
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20287
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20288
{ (exit 1); exit 1; }; }
20290
# Don't try to exec as it changes $[0], causing all sort of problems
20291
# (the dirname of $[0] is not the place where we might find the
20292
# original and so on. Autoconf is especially sensible to this).
20294
# Exit status is that of the last command.
20299
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20300
*c*,-n*) ECHO_N= ECHO_C='
20302
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20303
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20306
if expr a : '\(a\)' >/dev/null 2>&1; then
20312
rm -f conf$$ conf$$.exe conf$$.file
20314
if ln -s conf$$.file conf$$ 2>/dev/null; then
20315
# We could just check for DJGPP; but this test a) works b) is more generic
20316
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20317
if test -f conf$$.exe; then
20318
# Don't use ln at all; we don't have any links
20323
elif ln conf$$.file conf$$ 2>/dev/null; then
20328
rm -f conf$$ conf$$.exe conf$$.file
20330
if mkdir -p . 2>/dev/null; then
20333
test -d ./-p && rmdir ./-p
20337
as_executable_p="test -f"
20339
# Sed expression to map a string onto a valid CPP name.
20340
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20342
# Sed expression to map a string onto a valid variable name.
20343
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20347
# We need space, tab and new line, in precisely that order.
20357
# Open the log real soon, to keep \$[0] and so on meaningful, and to
20358
# report actual input values of CONFIG_FILES etc. instead of their
20359
# values after options handling. Logging --version etc. is OK.
20363
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20364
## Running $as_me. ##
20369
This file was extended by buffy $as_me 0.5, which was
20370
generated by GNU Autoconf 2.59. Invocation command line was
20372
CONFIG_FILES = $CONFIG_FILES
20373
CONFIG_HEADERS = $CONFIG_HEADERS
20374
CONFIG_LINKS = $CONFIG_LINKS
20375
CONFIG_COMMANDS = $CONFIG_COMMANDS
20379
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20383
# Files that config.status was made for.
20384
if test -n "$ac_config_files"; then
20385
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20388
if test -n "$ac_config_headers"; then
20389
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20392
if test -n "$ac_config_links"; then
20393
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20396
if test -n "$ac_config_commands"; then
20397
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20400
cat >>$CONFIG_STATUS <<\_ACEOF
20403
\`$as_me' instantiates files from templates according to the
20404
current configuration.
20406
Usage: $0 [OPTIONS] [FILE]...
20408
-h, --help print this help, then exit
20409
-V, --version print version number, then exit
20410
-q, --quiet do not print progress messages
20411
-d, --debug don't remove temporary files
20412
--recheck update $as_me by reconfiguring in the same conditions
20413
--file=FILE[:TEMPLATE]
20414
instantiate the configuration file FILE
20415
--header=FILE[:TEMPLATE]
20416
instantiate the configuration header FILE
20418
Configuration files:
20421
Configuration headers:
20424
Configuration commands:
20427
Report bugs to <bug-autoconf@gnu.org>."
20430
cat >>$CONFIG_STATUS <<_ACEOF
20432
buffy config.status 0.5
20433
configured by $0, generated by GNU Autoconf 2.59,
20434
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20436
Copyright (C) 2003 Free Software Foundation, Inc.
20437
This config.status script is free software; the Free Software Foundation
20438
gives unlimited permission to copy, distribute and modify it."
20443
cat >>$CONFIG_STATUS <<\_ACEOF
20444
# If no file are specified by the user, then we need to provide default
20445
# value. By we need to know if files were specified by the user.
20451
ac_option=`expr "x$1" : 'x\([^=]*\)='`
20452
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20460
*) # This is not an option, so the user has probably given explicit
20463
ac_need_defaults=false;;
20467
# Handling of the options.
20469
cat >>$CONFIG_STATUS <<\_ACEOF
20470
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20472
--version | --vers* | -V )
20473
echo "$ac_cs_version"; exit 0 ;;
20475
# Conflict between --help and --header
20476
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
20477
Try \`$0 --help' for more information." >&5
20478
echo "$as_me: error: ambiguous option: $1
20479
Try \`$0 --help' for more information." >&2;}
20480
{ (exit 1); exit 1; }; };;
20481
--help | --hel | -h )
20482
echo "$ac_cs_usage"; exit 0 ;;
20483
--debug | --d* | -d )
20485
--file | --fil | --fi | --f )
20487
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20488
ac_need_defaults=false;;
20489
--header | --heade | --head | --hea )
20491
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20492
ac_need_defaults=false;;
20493
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
20494
| -silent | --silent | --silen | --sile | --sil | --si | --s)
20497
# This is an error.
20498
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20499
Try \`$0 --help' for more information." >&5
20500
echo "$as_me: error: unrecognized option: $1
20501
Try \`$0 --help' for more information." >&2;}
20502
{ (exit 1); exit 1; }; } ;;
20504
*) ac_config_targets="$ac_config_targets $1" ;;
20510
ac_configure_extra_args=
20512
if $ac_cs_silent; then
20514
ac_configure_extra_args="$ac_configure_extra_args --silent"
20518
cat >>$CONFIG_STATUS <<_ACEOF
20519
if \$ac_cs_recheck; then
20520
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20521
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20526
cat >>$CONFIG_STATUS <<_ACEOF
20528
# INIT-COMMANDS section.
20531
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20537
cat >>$CONFIG_STATUS <<\_ACEOF
20538
for ac_config_target in $ac_config_targets
20540
case "$ac_config_target" in
20541
# Handling of arguments.
20542
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20543
"libbuffy/Makefile" ) CONFIG_FILES="$CONFIG_FILES libbuffy/Makefile" ;;
20544
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20545
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20546
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20547
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20548
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20549
{ (exit 1); exit 1; }; };;
20553
# If the user did not use the arguments to specify the items to instantiate,
20554
# then the envvar interface is used. Set only those that are not.
20555
# We use the long form for the default assignment because of an extremely
20556
# bizarre bug on SunOS 4.1.3.
20557
if $ac_need_defaults; then
20558
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20559
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20560
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20563
# Have a temporary directory for convenience. Make it in the build tree
20564
# simply because there is no reason to put it here, and in addition,
20565
# creating and moving files from /tmp can sometimes cause problems.
20566
# Create a temporary directory, and hook for its removal unless debugging.
20569
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20570
trap '{ (exit 1); exit 1; }' 1 2 13 15
20573
# Create a (secure) tmp directory for tmp files.
20576
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20577
test -n "$tmp" && test -d "$tmp"
20580
tmp=./confstat$$-$RANDOM
20581
(umask 077 && mkdir $tmp)
20584
echo "$me: cannot create a temporary directory in ." >&2
20585
{ (exit 1); exit 1; }
20590
cat >>$CONFIG_STATUS <<_ACEOF
20593
# CONFIG_FILES section.
20596
# No need to generate the scripts if there are no CONFIG_FILES.
20597
# This happens for instance when ./config.status config.h
20598
if test -n "\$CONFIG_FILES"; then
20599
# Protect against being on the right side of a sed subst in config.status.
20600
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20601
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20602
s,@SHELL@,$SHELL,;t t
20603
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20604
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20605
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20606
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20607
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20608
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20609
s,@exec_prefix@,$exec_prefix,;t t
20610
s,@prefix@,$prefix,;t t
20611
s,@program_transform_name@,$program_transform_name,;t t
20612
s,@bindir@,$bindir,;t t
20613
s,@sbindir@,$sbindir,;t t
20614
s,@libexecdir@,$libexecdir,;t t
20615
s,@datadir@,$datadir,;t t
20616
s,@sysconfdir@,$sysconfdir,;t t
20617
s,@sharedstatedir@,$sharedstatedir,;t t
20618
s,@localstatedir@,$localstatedir,;t t
20619
s,@libdir@,$libdir,;t t
20620
s,@includedir@,$includedir,;t t
20621
s,@oldincludedir@,$oldincludedir,;t t
20622
s,@infodir@,$infodir,;t t
20623
s,@mandir@,$mandir,;t t
20624
s,@build_alias@,$build_alias,;t t
20625
s,@host_alias@,$host_alias,;t t
20626
s,@target_alias@,$target_alias,;t t
20627
s,@DEFS@,$DEFS,;t t
20628
s,@ECHO_C@,$ECHO_C,;t t
20629
s,@ECHO_N@,$ECHO_N,;t t
20630
s,@ECHO_T@,$ECHO_T,;t t
20631
s,@LIBS@,$LIBS,;t t
20632
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20633
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20634
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20635
s,@CYGPATH_W@,$CYGPATH_W,;t t
20636
s,@PACKAGE@,$PACKAGE,;t t
20637
s,@VERSION@,$VERSION,;t t
20638
s,@ACLOCAL@,$ACLOCAL,;t t
20639
s,@AUTOCONF@,$AUTOCONF,;t t
20640
s,@AUTOMAKE@,$AUTOMAKE,;t t
20641
s,@AUTOHEADER@,$AUTOHEADER,;t t
20642
s,@MAKEINFO@,$MAKEINFO,;t t
20643
s,@AMTAR@,$AMTAR,;t t
20644
s,@install_sh@,$install_sh,;t t
20645
s,@STRIP@,$STRIP,;t t
20646
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20647
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20648
s,@mkdir_p@,$mkdir_p,;t t
20650
s,@SET_MAKE@,$SET_MAKE,;t t
20651
s,@am__leading_dot@,$am__leading_dot,;t t
20653
s,@CXXFLAGS@,$CXXFLAGS,;t t
20654
s,@LDFLAGS@,$LDFLAGS,;t t
20655
s,@CPPFLAGS@,$CPPFLAGS,;t t
20656
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20657
s,@EXEEXT@,$EXEEXT,;t t
20658
s,@OBJEXT@,$OBJEXT,;t t
20659
s,@DEPDIR@,$DEPDIR,;t t
20660
s,@am__include@,$am__include,;t t
20661
s,@am__quote@,$am__quote,;t t
20662
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20663
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20664
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20665
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20666
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20667
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20668
s,@CXXCPP@,$CXXCPP,;t t
20670
s,@CFLAGS@,$CFLAGS,;t t
20671
s,@ac_ct_CC@,$ac_ct_CC,;t t
20672
s,@CCDEPMODE@,$CCDEPMODE,;t t
20673
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20674
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20675
s,@EGREP@,$EGREP,;t t
20676
s,@build@,$build,;t t
20677
s,@build_cpu@,$build_cpu,;t t
20678
s,@build_vendor@,$build_vendor,;t t
20679
s,@build_os@,$build_os,;t t
20680
s,@host@,$host,;t t
20681
s,@host_cpu@,$host_cpu,;t t
20682
s,@host_vendor@,$host_vendor,;t t
20683
s,@host_os@,$host_os,;t t
20684
s,@LN_S@,$LN_S,;t t
20685
s,@ECHO@,$ECHO,;t t
20687
s,@ac_ct_AR@,$ac_ct_AR,;t t
20688
s,@RANLIB@,$RANLIB,;t t
20689
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20692
s,@FFLAGS@,$FFLAGS,;t t
20693
s,@ac_ct_F77@,$ac_ct_F77,;t t
20694
s,@LIBTOOL@,$LIBTOOL,;t t
20695
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20696
s,@GTKMM_CFLAGS@,$GTKMM_CFLAGS,;t t
20697
s,@GTKMM_LIBS@,$GTKMM_LIBS,;t t
20698
s,@XMLPP_CFLAGS@,$XMLPP_CFLAGS,;t t
20699
s,@XMLPP_LIBS@,$XMLPP_LIBS,;t t
20700
s,@LIBOBJS@,$LIBOBJS,;t t
20701
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20706
cat >>$CONFIG_STATUS <<\_ACEOF
20707
# Split the substitutions into bite-sized pieces for seds with
20708
# small command number limits, like on Digital OSF/1 and HP-UX.
20709
ac_max_sed_lines=48
20710
ac_sed_frag=1 # Number of current file.
20711
ac_beg=1 # First line for current file.
20712
ac_end=$ac_max_sed_lines # Line after last line for current file.
20715
while $ac_more_lines; do
20716
if test $ac_beg -gt 1; then
20717
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20719
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20721
if test ! -s $tmp/subs.frag; then
20722
ac_more_lines=false
20724
# The purpose of the label and of the branching condition is to
20725
# speed up the sed processing (if there are no `@' at all, there
20726
# is no need to browse any of the substitutions).
20727
# These are the two extra sed commands mentioned above.
20729
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20730
if test -z "$ac_sed_cmds"; then
20731
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20733
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20735
ac_sed_frag=`expr $ac_sed_frag + 1`
20737
ac_end=`expr $ac_end + $ac_max_sed_lines`
20740
if test -z "$ac_sed_cmds"; then
20743
fi # test -n "$CONFIG_FILES"
20746
cat >>$CONFIG_STATUS <<\_ACEOF
20747
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20748
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20750
- | *:- | *:-:* ) # input from stdin
20752
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20753
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20754
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20755
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20756
* ) ac_file_in=$ac_file.in ;;
20759
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20760
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20761
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20762
X"$ac_file" : 'X\(//\)[^/]' \| \
20763
X"$ac_file" : 'X\(//\)$' \| \
20764
X"$ac_file" : 'X\(/\)' \| \
20765
. : '\(.\)' 2>/dev/null ||
20767
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20768
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20769
/^X\(\/\/\)$/{ s//\1/; q; }
20770
/^X\(\/\).*/{ s//\1/; q; }
20772
{ if $as_mkdir_p; then
20777
while test ! -d "$as_dir"; do
20778
as_dirs="$as_dir $as_dirs"
20779
as_dir=`(dirname "$as_dir") 2>/dev/null ||
20780
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20781
X"$as_dir" : 'X\(//\)[^/]' \| \
20782
X"$as_dir" : 'X\(//\)$' \| \
20783
X"$as_dir" : 'X\(/\)' \| \
20784
. : '\(.\)' 2>/dev/null ||
20786
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20787
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20788
/^X\(\/\/\)$/{ s//\1/; q; }
20789
/^X\(\/\).*/{ s//\1/; q; }
20792
test ! -n "$as_dirs" || mkdir $as_dirs
20793
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20794
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20795
{ (exit 1); exit 1; }; }; }
20799
if test "$ac_dir" != .; then
20800
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20801
# A "../" for each directory in $ac_dir_suffix.
20802
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20804
ac_dir_suffix= ac_top_builddir=
20808
.) # No --srcdir option. We are building in place.
20810
if test -z "$ac_top_builddir"; then
20813
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20815
[\\/]* | ?:[\\/]* ) # Absolute path.
20816
ac_srcdir=$srcdir$ac_dir_suffix;
20817
ac_top_srcdir=$srcdir ;;
20818
*) # Relative path.
20819
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20820
ac_top_srcdir=$ac_top_builddir$srcdir ;;
20823
# Do not use `cd foo && pwd` to compute absolute paths, because
20824
# the directories may not exist.
20826
.) ac_abs_builddir="$ac_dir";;
20829
.) ac_abs_builddir=`pwd`;;
20830
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20831
*) ac_abs_builddir=`pwd`/"$ac_dir";;
20834
case $ac_abs_builddir in
20835
.) ac_abs_top_builddir=${ac_top_builddir}.;;
20837
case ${ac_top_builddir}. in
20838
.) ac_abs_top_builddir=$ac_abs_builddir;;
20839
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20840
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20843
case $ac_abs_builddir in
20844
.) ac_abs_srcdir=$ac_srcdir;;
20847
.) ac_abs_srcdir=$ac_abs_builddir;;
20848
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20849
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20852
case $ac_abs_builddir in
20853
.) ac_abs_top_srcdir=$ac_top_srcdir;;
20855
case $ac_top_srcdir in
20856
.) ac_abs_top_srcdir=$ac_abs_builddir;;
20857
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20858
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20864
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20865
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20868
# Let's still pretend it is `configure' which instantiates (i.e., don't
20869
# use $as_me), people would be surprised to read:
20870
# /* config.h. Generated by config.status. */
20871
if test x"$ac_file" = x-; then
20874
configure_input="$ac_file. "
20876
configure_input=$configure_input"Generated from `echo $ac_file_in |
20877
sed 's,.*/,,'` by configure."
20879
# First look for the input files in the build tree, otherwise in the
20881
ac_file_inputs=`IFS=:
20882
for f in $ac_file_in; do
20884
-) echo $tmp/stdin ;;
20886
# Absolute (can't be DOS-style, as IFS=:)
20887
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20888
echo "$as_me: error: cannot find input file: $f" >&2;}
20889
{ (exit 1); exit 1; }; }
20892
if test -f "$f"; then
20895
elif test -f "$srcdir/$f"; then
20900
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20901
echo "$as_me: error: cannot find input file: $f" >&2;}
20902
{ (exit 1); exit 1; }; }
20905
done` || { (exit 1); exit 1; }
20907
if test x"$ac_file" != x-; then
20908
{ echo "$as_me:$LINENO: creating $ac_file" >&5
20909
echo "$as_me: creating $ac_file" >&6;}
20913
cat >>$CONFIG_STATUS <<_ACEOF
20917
cat >>$CONFIG_STATUS <<\_ACEOF
20919
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20920
s,@configure_input@,$configure_input,;t t
20921
s,@srcdir@,$ac_srcdir,;t t
20922
s,@abs_srcdir@,$ac_abs_srcdir,;t t
20923
s,@top_srcdir@,$ac_top_srcdir,;t t
20924
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20925
s,@builddir@,$ac_builddir,;t t
20926
s,@abs_builddir@,$ac_abs_builddir,;t t
20927
s,@top_builddir@,$ac_top_builddir,;t t
20928
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20929
s,@INSTALL@,$ac_INSTALL,;t t
20930
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20932
if test x"$ac_file" != x-; then
20933
mv $tmp/out $ac_file
20941
cat >>$CONFIG_STATUS <<\_ACEOF
20944
# CONFIG_HEADER section.
20947
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20948
# NAME is the cpp macro being defined and VALUE is the value it is being given.
20950
# ac_d sets the value in "#define NAME VALUE" lines.
20951
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20952
ac_dB='[ ].*$,\1#\2'
20955
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20956
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20957
ac_uB='$,\1#\2define\3'
20961
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20962
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20964
- | *:- | *:-:* ) # input from stdin
20966
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20967
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20968
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20969
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20970
* ) ac_file_in=$ac_file.in ;;
20973
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20974
echo "$as_me: creating $ac_file" >&6;}
20976
# First look for the input files in the build tree, otherwise in the
20978
ac_file_inputs=`IFS=:
20979
for f in $ac_file_in; do
20981
-) echo $tmp/stdin ;;
20983
# Absolute (can't be DOS-style, as IFS=:)
20984
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20985
echo "$as_me: error: cannot find input file: $f" >&2;}
20986
{ (exit 1); exit 1; }; }
20987
# Do quote $f, to prevent DOS paths from being IFS'd.
20990
if test -f "$f"; then
20993
elif test -f "$srcdir/$f"; then
20998
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20999
echo "$as_me: error: cannot find input file: $f" >&2;}
21000
{ (exit 1); exit 1; }; }
21003
done` || { (exit 1); exit 1; }
21004
# Remove the trailing spaces.
21005
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21009
# Transform confdefs.h into two sed scripts, `conftest.defines' and
21010
# `conftest.undefs', that substitutes the proper values into
21011
# config.h.in to produce config.h. The first handles `#define'
21012
# templates, and the second `#undef' templates.
21013
# And first: Protect against being on the right side of a sed subst in
21014
# config.status. Protect against being in an unquoted here document
21015
# in config.status.
21016
rm -f conftest.defines conftest.undefs
21017
# Using a here document instead of a string reduces the quoting nightmare.
21018
# Putting comments in sed scripts is not portable.
21020
# `end' is used to avoid that the second main sed command (meant for
21021
# 0-ary CPP macros) applies to n-ary macro definitions.
21022
# See the Autoconf documentation for `clear'.
21023
cat >confdef2sed.sed <<\_ACEOF
21028
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21030
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21033
# If some macros were called several times there might be several times
21034
# the same #defines, which is useless. Nevertheless, we may not want to
21035
# sort them, since we want the *last* AC-DEFINE to be honored.
21036
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21037
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21038
rm -f confdef2sed.sed
21040
# This sed command replaces #undef with comments. This is necessary, for
21041
# example, in the case of _POSIX_SOURCE, which is predefined and required
21042
# on some systems where configure will not decide to define it.
21043
cat >>conftest.undefs <<\_ACEOF
21044
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21047
# Break up conftest.defines because some shells have a limit on the size
21048
# of here documents, and old seds have small limits too (100 cmds).
21049
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21050
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21051
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21052
echo ' :' >>$CONFIG_STATUS
21053
rm -f conftest.tail
21054
while grep . conftest.defines >/dev/null
21056
# Write a limited-size here document to $tmp/defines.sed.
21057
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21058
# Speed up: don't consider the non `#define' lines.
21059
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21060
# Work around the forget-to-reset-the-flag bug.
21061
echo 't clr' >>$CONFIG_STATUS
21062
echo ': clr' >>$CONFIG_STATUS
21063
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21065
sed -f $tmp/defines.sed $tmp/in >$tmp/out
21067
mv $tmp/out $tmp/in
21069
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21070
rm -f conftest.defines
21071
mv conftest.tail conftest.defines
21073
rm -f conftest.defines
21074
echo ' fi # grep' >>$CONFIG_STATUS
21075
echo >>$CONFIG_STATUS
21077
# Break up conftest.undefs because some shells have a limit on the size
21078
# of here documents, and old seds have small limits too (100 cmds).
21079
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21080
rm -f conftest.tail
21081
while grep . conftest.undefs >/dev/null
21083
# Write a limited-size here document to $tmp/undefs.sed.
21084
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21085
# Speed up: don't consider the non `#undef'
21086
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21087
# Work around the forget-to-reset-the-flag bug.
21088
echo 't clr' >>$CONFIG_STATUS
21089
echo ': clr' >>$CONFIG_STATUS
21090
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21092
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21094
mv $tmp/out $tmp/in
21096
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21097
rm -f conftest.undefs
21098
mv conftest.tail conftest.undefs
21100
rm -f conftest.undefs
21102
cat >>$CONFIG_STATUS <<\_ACEOF
21103
# Let's still pretend it is `configure' which instantiates (i.e., don't
21104
# use $as_me), people would be surprised to read:
21105
# /* config.h. Generated by config.status. */
21106
if test x"$ac_file" = x-; then
21107
echo "/* Generated by configure. */" >$tmp/config.h
21109
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21111
cat $tmp/in >>$tmp/config.h
21113
if test x"$ac_file" != x-; then
21114
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21115
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21116
echo "$as_me: $ac_file is unchanged" >&6;}
21118
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21119
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21120
X"$ac_file" : 'X\(//\)[^/]' \| \
21121
X"$ac_file" : 'X\(//\)$' \| \
21122
X"$ac_file" : 'X\(/\)' \| \
21123
. : '\(.\)' 2>/dev/null ||
21125
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21126
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21127
/^X\(\/\/\)$/{ s//\1/; q; }
21128
/^X\(\/\).*/{ s//\1/; q; }
21130
{ if $as_mkdir_p; then
21135
while test ! -d "$as_dir"; do
21136
as_dirs="$as_dir $as_dirs"
21137
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21138
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21139
X"$as_dir" : 'X\(//\)[^/]' \| \
21140
X"$as_dir" : 'X\(//\)$' \| \
21141
X"$as_dir" : 'X\(/\)' \| \
21142
. : '\(.\)' 2>/dev/null ||
21144
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21145
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21146
/^X\(\/\/\)$/{ s//\1/; q; }
21147
/^X\(\/\).*/{ s//\1/; q; }
21150
test ! -n "$as_dirs" || mkdir $as_dirs
21151
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21152
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21153
{ (exit 1); exit 1; }; }; }
21156
mv $tmp/config.h $ac_file
21160
rm -f $tmp/config.h
21162
# Compute $ac_file's index in $config_headers.
21164
for _am_header in $config_headers :; do
21165
case $_am_header in
21166
$ac_file | $ac_file:* )
21169
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
21172
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21173
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21174
X$ac_file : 'X\(//\)[^/]' \| \
21175
X$ac_file : 'X\(//\)$' \| \
21176
X$ac_file : 'X\(/\)' \| \
21177
. : '\(.\)' 2>/dev/null ||
21179
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21180
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21181
/^X\(\/\/\)$/{ s//\1/; q; }
21182
/^X\(\/\).*/{ s//\1/; q; }
21183
s/.*/./; q'`/stamp-h$_am_stamp_count
21186
cat >>$CONFIG_STATUS <<\_ACEOF
21189
# CONFIG_COMMANDS section.
21191
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21192
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21193
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21194
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21195
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21196
X"$ac_dest" : 'X\(//\)[^/]' \| \
21197
X"$ac_dest" : 'X\(//\)$' \| \
21198
X"$ac_dest" : 'X\(/\)' \| \
21199
. : '\(.\)' 2>/dev/null ||
21201
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21202
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21203
/^X\(\/\/\)$/{ s//\1/; q; }
21204
/^X\(\/\).*/{ s//\1/; q; }
21206
{ if $as_mkdir_p; then
21211
while test ! -d "$as_dir"; do
21212
as_dirs="$as_dir $as_dirs"
21213
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21214
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21215
X"$as_dir" : 'X\(//\)[^/]' \| \
21216
X"$as_dir" : 'X\(//\)$' \| \
21217
X"$as_dir" : 'X\(/\)' \| \
21218
. : '\(.\)' 2>/dev/null ||
21220
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21221
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21222
/^X\(\/\/\)$/{ s//\1/; q; }
21223
/^X\(\/\).*/{ s//\1/; q; }
21226
test ! -n "$as_dirs" || mkdir $as_dirs
21227
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21228
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21229
{ (exit 1); exit 1; }; }; }
21233
if test "$ac_dir" != .; then
21234
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21235
# A "../" for each directory in $ac_dir_suffix.
21236
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21238
ac_dir_suffix= ac_top_builddir=
21242
.) # No --srcdir option. We are building in place.
21244
if test -z "$ac_top_builddir"; then
21247
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21249
[\\/]* | ?:[\\/]* ) # Absolute path.
21250
ac_srcdir=$srcdir$ac_dir_suffix;
21251
ac_top_srcdir=$srcdir ;;
21252
*) # Relative path.
21253
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21254
ac_top_srcdir=$ac_top_builddir$srcdir ;;
21257
# Do not use `cd foo && pwd` to compute absolute paths, because
21258
# the directories may not exist.
21260
.) ac_abs_builddir="$ac_dir";;
21263
.) ac_abs_builddir=`pwd`;;
21264
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21265
*) ac_abs_builddir=`pwd`/"$ac_dir";;
21268
case $ac_abs_builddir in
21269
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21271
case ${ac_top_builddir}. in
21272
.) ac_abs_top_builddir=$ac_abs_builddir;;
21273
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21274
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21277
case $ac_abs_builddir in
21278
.) ac_abs_srcdir=$ac_srcdir;;
21281
.) ac_abs_srcdir=$ac_abs_builddir;;
21282
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21283
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21286
case $ac_abs_builddir in
21287
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21289
case $ac_top_srcdir in
21290
.) ac_abs_top_srcdir=$ac_abs_builddir;;
21291
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21292
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21297
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21298
echo "$as_me: executing $ac_dest commands" >&6;}
21300
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21301
# Strip MF so we end up with the name of the file.
21302
mf=`echo "$mf" | sed -e 's/:.*$//'`
21303
# Check whether this is an Automake generated Makefile or not.
21304
# We used to match only the files named `Makefile.in', but
21305
# some people rename them; so instead we look at the file content.
21306
# Grep'ing the first line is not enough: some people post-process
21307
# each Makefile.in and add a new line on top of each file to say so.
21308
# So let's grep whole file.
21309
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21310
dirpart=`(dirname "$mf") 2>/dev/null ||
21311
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21312
X"$mf" : 'X\(//\)[^/]' \| \
21313
X"$mf" : 'X\(//\)$' \| \
21314
X"$mf" : 'X\(/\)' \| \
21315
. : '\(.\)' 2>/dev/null ||
21317
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21318
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21319
/^X\(\/\/\)$/{ s//\1/; q; }
21320
/^X\(\/\).*/{ s//\1/; q; }
21325
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21326
# Extract the definition of DEP_FILES from the Makefile without
21328
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21329
test -z "$DEPDIR" && continue
21330
# When using ansi2knr, U may be empty or an underscore; expand it
21331
U=`sed -n 's/^U = //p' < "$mf"`
21332
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21333
# We invoke sed twice because it is the simplest approach to
21334
# changing $(DEPDIR) to its actual value in the expansion.
21335
for file in `sed -n '
21336
/^DEP_FILES = .*\\\\$/ {
21345
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21346
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21347
# Make sure the directory exists.
21348
test -f "$dirpart/$file" && continue
21349
fdir=`(dirname "$file") 2>/dev/null ||
21350
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21351
X"$file" : 'X\(//\)[^/]' \| \
21352
X"$file" : 'X\(//\)$' \| \
21353
X"$file" : 'X\(/\)' \| \
21354
. : '\(.\)' 2>/dev/null ||
21356
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21357
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21358
/^X\(\/\/\)$/{ s//\1/; q; }
21359
/^X\(\/\).*/{ s//\1/; q; }
21361
{ if $as_mkdir_p; then
21362
mkdir -p $dirpart/$fdir
21364
as_dir=$dirpart/$fdir
21366
while test ! -d "$as_dir"; do
21367
as_dirs="$as_dir $as_dirs"
21368
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21369
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21370
X"$as_dir" : 'X\(//\)[^/]' \| \
21371
X"$as_dir" : 'X\(//\)$' \| \
21372
X"$as_dir" : 'X\(/\)' \| \
21373
. : '\(.\)' 2>/dev/null ||
21375
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21376
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21377
/^X\(\/\/\)$/{ s//\1/; q; }
21378
/^X\(\/\).*/{ s//\1/; q; }
21381
test ! -n "$as_dirs" || mkdir $as_dirs
21382
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21383
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21384
{ (exit 1); exit 1; }; }; }
21386
# echo "creating $dirpart/$file"
21387
echo '# dummy' > "$dirpart/$file"
21395
cat >>$CONFIG_STATUS <<\_ACEOF
21397
{ (exit 0); exit 0; }
21399
chmod +x $CONFIG_STATUS
21400
ac_clean_files=$ac_clean_files_save
21403
# configure is writing to config.log, and then calls config.status.
21404
# config.status does its own redirection, appending to config.log.
21405
# Unfortunately, on DOS this fails, as config.log is still kept open
21406
# by configure, so config.status won't be able to write to it; its
21407
# output is simply discarded. So we exec the FD to /dev/null,
21408
# effectively closing config.log, so it can be properly (re)opened and
21409
# appended to by config.status. When coming back to configure, we
21410
# need to make the FD available again.
21411
if test "$no_create" != yes; then
21413
ac_config_status_args=
21414
test "$silent" = yes &&
21415
ac_config_status_args="$ac_config_status_args --quiet"
21417
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21419
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
21420
# would make configure fail if this is the last instruction.
21421
$ac_cs_success || { (exit 1); exit 1; }