2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for libFS 3.0.0.
5
# Report bugs to <keithp@keithp.com>.
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='libFS'
426
PACKAGE_VERSION='3.0.0'
427
PACKAGE_STRING='libFS 3.0.0'
428
PACKAGE_BUGREPORT='keithp@keithp.com'
430
# Factoring default headers for most tests.
431
ac_includes_default="\
434
# include <sys/types.h>
437
# include <sys/stat.h>
448
# if !STDC_HEADERS && HAVE_MEMORY_H
454
# include <strings.h>
457
# include <inttypes.h>
467
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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG DEP_CFLAGS DEP_LIBS XTRANS_CFLAGS XTRANS_LIBS LIBOBJS LTLIBOBJS'
470
# Initialize some variables set by options.
472
ac_init_version=false
473
# The variables have the same names as the options, with
474
# dashes changed to underlines.
482
program_transform_name=s,x,x,
490
# Installation directory options.
491
# These are left unexpanded so users can "make install exec_prefix=/foo"
492
# and all the variables that are supposed to be based on exec_prefix
493
# by default will actually change.
494
# Use braces instead of parens because sh, perl, etc. also accept them.
495
bindir='${exec_prefix}/bin'
496
sbindir='${exec_prefix}/sbin'
497
libexecdir='${exec_prefix}/libexec'
498
datadir='${prefix}/share'
499
sysconfdir='${prefix}/etc'
500
sharedstatedir='${prefix}/com'
501
localstatedir='${prefix}/var'
502
libdir='${exec_prefix}/lib'
503
includedir='${prefix}/include'
504
oldincludedir='/usr/include'
505
infodir='${prefix}/info'
506
mandir='${prefix}/man'
511
# If the previous option needs an argument, assign it.
512
if test -n "$ac_prev"; then
513
eval "$ac_prev=\$ac_option"
518
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
# Accept the important Cygnus configure options, so we can diagnose typos.
524
-bindir | --bindir | --bindi | --bind | --bin | --bi)
526
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529
-build | --build | --buil | --bui | --bu)
530
ac_prev=build_alias ;;
531
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
532
build_alias=$ac_optarg ;;
534
-cache-file | --cache-file | --cache-fil | --cache-fi \
535
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536
ac_prev=cache_file ;;
537
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539
cache_file=$ac_optarg ;;
542
cache_file=config.cache ;;
544
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548
datadir=$ac_optarg ;;
550
-disable-* | --disable-*)
551
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552
# Reject names that are not valid shell variable names.
553
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
555
{ (exit 1); exit 1; }; }
556
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557
eval "enable_$ac_feature=no" ;;
559
-enable-* | --enable-*)
560
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561
# Reject names that are not valid shell variable names.
562
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
564
{ (exit 1); exit 1; }; }
565
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570
eval "enable_$ac_feature='$ac_optarg'" ;;
572
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574
| --exec | --exe | --ex)
575
ac_prev=exec_prefix ;;
576
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578
| --exec=* | --exe=* | --ex=*)
579
exec_prefix=$ac_optarg ;;
581
-gas | --gas | --ga | --g)
582
# Obsolete; use --with-gas.
585
-help | --help | --hel | --he | -h)
587
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588
ac_init_help=recursive ;;
589
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590
ac_init_help=short ;;
592
-host | --host | --hos | --ho)
593
ac_prev=host_alias ;;
594
-host=* | --host=* | --hos=* | --ho=*)
595
host_alias=$ac_optarg ;;
597
-includedir | --includedir | --includedi | --included | --include \
598
| --includ | --inclu | --incl | --inc)
599
ac_prev=includedir ;;
600
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601
| --includ=* | --inclu=* | --incl=* | --inc=*)
602
includedir=$ac_optarg ;;
604
-infodir | --infodir | --infodi | --infod | --info | --inf)
606
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607
infodir=$ac_optarg ;;
609
-libdir | --libdir | --libdi | --libd)
611
-libdir=* | --libdir=* | --libdi=* | --libd=*)
614
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615
| --libexe | --libex | --libe)
616
ac_prev=libexecdir ;;
617
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618
| --libexe=* | --libex=* | --libe=*)
619
libexecdir=$ac_optarg ;;
621
-localstatedir | --localstatedir | --localstatedi | --localstated \
622
| --localstate | --localstat | --localsta | --localst \
623
| --locals | --local | --loca | --loc | --lo)
624
ac_prev=localstatedir ;;
625
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
627
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628
localstatedir=$ac_optarg ;;
630
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636
# Obsolete; use --without-fp.
639
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
640
| --no-cr | --no-c | -n)
643
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
644
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649
| --oldin | --oldi | --old | --ol | --o)
650
ac_prev=oldincludedir ;;
651
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654
oldincludedir=$ac_optarg ;;
656
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661
-program-prefix | --program-prefix | --program-prefi | --program-pref \
662
| --program-pre | --program-pr | --program-p)
663
ac_prev=program_prefix ;;
664
-program-prefix=* | --program-prefix=* | --program-prefi=* \
665
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666
program_prefix=$ac_optarg ;;
668
-program-suffix | --program-suffix | --program-suffi | --program-suff \
669
| --program-suf | --program-su | --program-s)
670
ac_prev=program_suffix ;;
671
-program-suffix=* | --program-suffix=* | --program-suffi=* \
672
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673
program_suffix=$ac_optarg ;;
675
-program-transform-name | --program-transform-name \
676
| --program-transform-nam | --program-transform-na \
677
| --program-transform-n | --program-transform- \
678
| --program-transform | --program-transfor \
679
| --program-transfo | --program-transf \
680
| --program-trans | --program-tran \
681
| --progr-tra | --program-tr | --program-t)
682
ac_prev=program_transform_name ;;
683
-program-transform-name=* | --program-transform-name=* \
684
| --program-transform-nam=* | --program-transform-na=* \
685
| --program-transform-n=* | --program-transform-=* \
686
| --program-transform=* | --program-transfor=* \
687
| --program-transfo=* | --program-transf=* \
688
| --program-trans=* | --program-tran=* \
689
| --progr-tra=* | --program-tr=* | --program-t=*)
690
program_transform_name=$ac_optarg ;;
692
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
693
| -silent | --silent | --silen | --sile | --sil)
696
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700
sbindir=$ac_optarg ;;
702
-sharedstatedir | --sharedstatedir | --sharedstatedi \
703
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704
| --sharedst | --shareds | --shared | --share | --shar \
706
ac_prev=sharedstatedir ;;
707
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711
sharedstatedir=$ac_optarg ;;
713
-site | --site | --sit)
715
-site=* | --site=* | --sit=*)
718
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724
| --syscon | --sysco | --sysc | --sys | --sy)
725
ac_prev=sysconfdir ;;
726
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728
sysconfdir=$ac_optarg ;;
730
-target | --target | --targe | --targ | --tar | --ta | --t)
731
ac_prev=target_alias ;;
732
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733
target_alias=$ac_optarg ;;
735
-v | -verbose | --verbose | --verbos | --verbo | --verb)
738
-version | --version | --versio | --versi | --vers | -V)
742
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743
# Reject names that are not valid shell variable names.
744
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745
{ echo "$as_me: error: invalid package name: $ac_package" >&2
746
{ (exit 1); exit 1; }; }
747
ac_package=`echo $ac_package| sed 's/-/_/g'`
749
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752
eval "with_$ac_package='$ac_optarg'" ;;
754
-without-* | --without-*)
755
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756
# Reject names that are not valid shell variable names.
757
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758
{ echo "$as_me: error: invalid package name: $ac_package" >&2
759
{ (exit 1); exit 1; }; }
760
ac_package=`echo $ac_package | sed 's/-/_/g'`
761
eval "with_$ac_package=no" ;;
764
# Obsolete; use --with-x.
767
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768
| --x-incl | --x-inc | --x-in | --x-i)
769
ac_prev=x_includes ;;
770
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772
x_includes=$ac_optarg ;;
774
-x-libraries | --x-libraries | --x-librarie | --x-librari \
775
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776
ac_prev=x_libraries ;;
777
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779
x_libraries=$ac_optarg ;;
781
-*) { echo "$as_me: error: unrecognized option: $ac_option
782
Try \`$0 --help' for more information." >&2
783
{ (exit 1); exit 1; }; }
787
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788
# Reject names that are not valid shell variable names.
789
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791
{ (exit 1); exit 1; }; }
792
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793
eval "$ac_envvar='$ac_optarg'"
797
# FIXME: should be removed in autoconf 3.0.
798
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807
if test -n "$ac_prev"; then
808
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809
{ echo "$as_me: error: missing argument to $ac_option" >&2
810
{ (exit 1); exit 1; }; }
813
# Be sure to have absolute paths.
814
for ac_var in exec_prefix prefix
816
eval ac_val=$`echo $ac_var`
818
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820
{ (exit 1); exit 1; }; };;
824
# Be sure to have absolute paths.
825
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826
localstatedir libdir includedir oldincludedir infodir mandir
828
eval ac_val=$`echo $ac_var`
830
[\\/$]* | ?:[\\/]* ) ;;
831
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832
{ (exit 1); exit 1; }; };;
836
# There might be people who depend on the old broken behavior: `$host'
837
# used to hold the argument of --host etc.
838
# FIXME: To remove some day.
843
# FIXME: To remove some day.
844
if test "x$host_alias" != x; then
845
if test "x$build_alias" = x; then
846
cross_compiling=maybe
847
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848
If a cross compiler is detected then cross compile mode will be used." >&2
849
elif test "x$build_alias" != "x$host_alias"; then
855
test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
test "$silent" = yes && exec 6>/dev/null
860
# Find the source files, if location was not specified.
861
if test -z "$srcdir"; then
862
ac_srcdir_defaulted=yes
863
# Try the directory containing this script, then its parent.
864
ac_confdir=`(dirname "$0") 2>/dev/null ||
865
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866
X"$0" : 'X\(//\)[^/]' \| \
867
X"$0" : 'X\(//\)$' \| \
868
X"$0" : 'X\(/\)' \| \
869
. : '\(.\)' 2>/dev/null ||
871
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
873
/^X\(\/\/\)$/{ s//\1/; q; }
874
/^X\(\/\).*/{ s//\1/; q; }
877
if test ! -r $srcdir/$ac_unique_file; then
881
ac_srcdir_defaulted=no
883
if test ! -r $srcdir/$ac_unique_file; then
884
if test "$ac_srcdir_defaulted" = yes; then
885
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886
{ (exit 1); exit 1; }; }
888
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889
{ (exit 1); exit 1; }; }
892
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894
{ (exit 1); exit 1; }; }
895
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896
ac_env_build_alias_set=${build_alias+set}
897
ac_env_build_alias_value=$build_alias
898
ac_cv_env_build_alias_set=${build_alias+set}
899
ac_cv_env_build_alias_value=$build_alias
900
ac_env_host_alias_set=${host_alias+set}
901
ac_env_host_alias_value=$host_alias
902
ac_cv_env_host_alias_set=${host_alias+set}
903
ac_cv_env_host_alias_value=$host_alias
904
ac_env_target_alias_set=${target_alias+set}
905
ac_env_target_alias_value=$target_alias
906
ac_cv_env_target_alias_set=${target_alias+set}
907
ac_cv_env_target_alias_value=$target_alias
908
ac_env_CC_set=${CC+set}
910
ac_cv_env_CC_set=${CC+set}
911
ac_cv_env_CC_value=$CC
912
ac_env_CFLAGS_set=${CFLAGS+set}
913
ac_env_CFLAGS_value=$CFLAGS
914
ac_cv_env_CFLAGS_set=${CFLAGS+set}
915
ac_cv_env_CFLAGS_value=$CFLAGS
916
ac_env_LDFLAGS_set=${LDFLAGS+set}
917
ac_env_LDFLAGS_value=$LDFLAGS
918
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919
ac_cv_env_LDFLAGS_value=$LDFLAGS
920
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921
ac_env_CPPFLAGS_value=$CPPFLAGS
922
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924
ac_env_CPP_set=${CPP+set}
925
ac_env_CPP_value=$CPP
926
ac_cv_env_CPP_set=${CPP+set}
927
ac_cv_env_CPP_value=$CPP
928
ac_env_CXX_set=${CXX+set}
929
ac_env_CXX_value=$CXX
930
ac_cv_env_CXX_set=${CXX+set}
931
ac_cv_env_CXX_value=$CXX
932
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933
ac_env_CXXFLAGS_value=$CXXFLAGS
934
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936
ac_env_CXXCPP_set=${CXXCPP+set}
937
ac_env_CXXCPP_value=$CXXCPP
938
ac_cv_env_CXXCPP_set=${CXXCPP+set}
939
ac_cv_env_CXXCPP_value=$CXXCPP
940
ac_env_F77_set=${F77+set}
941
ac_env_F77_value=$F77
942
ac_cv_env_F77_set=${F77+set}
943
ac_cv_env_F77_value=$F77
944
ac_env_FFLAGS_set=${FFLAGS+set}
945
ac_env_FFLAGS_value=$FFLAGS
946
ac_cv_env_FFLAGS_set=${FFLAGS+set}
947
ac_cv_env_FFLAGS_value=$FFLAGS
948
ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
949
ac_env_PKG_CONFIG_value=$PKG_CONFIG
950
ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
951
ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
952
ac_env_DEP_CFLAGS_set=${DEP_CFLAGS+set}
953
ac_env_DEP_CFLAGS_value=$DEP_CFLAGS
954
ac_cv_env_DEP_CFLAGS_set=${DEP_CFLAGS+set}
955
ac_cv_env_DEP_CFLAGS_value=$DEP_CFLAGS
956
ac_env_DEP_LIBS_set=${DEP_LIBS+set}
957
ac_env_DEP_LIBS_value=$DEP_LIBS
958
ac_cv_env_DEP_LIBS_set=${DEP_LIBS+set}
959
ac_cv_env_DEP_LIBS_value=$DEP_LIBS
960
ac_env_XTRANS_CFLAGS_set=${XTRANS_CFLAGS+set}
961
ac_env_XTRANS_CFLAGS_value=$XTRANS_CFLAGS
962
ac_cv_env_XTRANS_CFLAGS_set=${XTRANS_CFLAGS+set}
963
ac_cv_env_XTRANS_CFLAGS_value=$XTRANS_CFLAGS
964
ac_env_XTRANS_LIBS_set=${XTRANS_LIBS+set}
965
ac_env_XTRANS_LIBS_value=$XTRANS_LIBS
966
ac_cv_env_XTRANS_LIBS_set=${XTRANS_LIBS+set}
967
ac_cv_env_XTRANS_LIBS_value=$XTRANS_LIBS
970
# Report the --help message.
972
if test "$ac_init_help" = "long"; then
973
# Omit some internal or obsolete options to make the list less imposing.
974
# This message is too long to be a string in the A/UX 3.1 sh.
976
\`configure' configures libFS 3.0.0 to adapt to many kinds of systems.
978
Usage: $0 [OPTION]... [VAR=VALUE]...
980
To assign environment variables (e.g., CC, CFLAGS...), specify them as
981
VAR=VALUE. See below for descriptions of some of the useful variables.
983
Defaults for the options are specified in brackets.
986
-h, --help display this help and exit
987
--help=short display options specific to this package
988
--help=recursive display the short help of all the included packages
989
-V, --version display version information and exit
990
-q, --quiet, --silent do not print \`checking...' messages
991
--cache-file=FILE cache test results in FILE [disabled]
992
-C, --config-cache alias for \`--cache-file=config.cache'
993
-n, --no-create do not create output files
994
--srcdir=DIR find the sources in DIR [configure dir or \`..']
999
Installation directories:
1000
--prefix=PREFIX install architecture-independent files in PREFIX
1001
[$ac_default_prefix]
1002
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1005
By default, \`make install' will install all the files in
1006
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1007
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1008
for instance \`--prefix=\$HOME'.
1010
For better control, use the options below.
1012
Fine tuning of the installation directories:
1013
--bindir=DIR user executables [EPREFIX/bin]
1014
--sbindir=DIR system admin executables [EPREFIX/sbin]
1015
--libexecdir=DIR program executables [EPREFIX/libexec]
1016
--datadir=DIR read-only architecture-independent data [PREFIX/share]
1017
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1018
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1019
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1020
--libdir=DIR object code libraries [EPREFIX/lib]
1021
--includedir=DIR C header files [PREFIX/include]
1022
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1023
--infodir=DIR info documentation [PREFIX/info]
1024
--mandir=DIR man documentation [PREFIX/man]
1030
--program-prefix=PREFIX prepend PREFIX to installed program names
1031
--program-suffix=SUFFIX append SUFFIX to installed program names
1032
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1035
--build=BUILD configure for building on BUILD [guessed]
1036
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1040
if test -n "$ac_init_help"; then
1041
case $ac_init_help in
1042
short | recursive ) echo "Configuration of libFS 3.0.0:";;
1047
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1048
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1049
--enable-maintainer-mode enable make rules and dependencies not useful
1050
(and sometimes confusing) to the casual installer
1051
--disable-dependency-tracking speeds up one-time build
1052
--enable-dependency-tracking do not reject slow dependency extractors
1053
--enable-shared[=PKGS]
1054
build shared libraries [default=yes]
1055
--enable-static[=PKGS]
1056
build static libraries [default=yes]
1057
--enable-fast-install[=PKGS]
1058
optimize for fast installation [default=yes]
1059
--disable-libtool-lock avoid locking (might break parallel builds)
1060
--disable-unix-transport
1061
--disable-tcp-transport
1065
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1066
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1067
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1068
--with-pic try to use only PIC/non-PIC objects [default=use
1071
include additional configurations [automatic]
1073
Some influential environment variables:
1074
CC C compiler command
1075
CFLAGS C compiler flags
1076
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1077
nonstandard directory <lib dir>
1078
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1079
headers in a nonstandard directory <include dir>
1081
CXX C++ compiler command
1082
CXXFLAGS C++ compiler flags
1083
CXXCPP C++ preprocessor
1084
F77 Fortran 77 compiler command
1085
FFLAGS Fortran 77 compiler flags
1086
PKG_CONFIG path to pkg-config utility
1087
DEP_CFLAGS C compiler flags for DEP, overriding pkg-config
1088
DEP_LIBS linker flags for DEP, overriding pkg-config
1090
C compiler flags for XTRANS, overriding pkg-config
1091
XTRANS_LIBS linker flags for XTRANS, overriding pkg-config
1093
Use these variables to override the choices made by `configure' or to help
1094
it to find libraries and programs with nonstandard names/locations.
1096
Report bugs to <keithp@keithp.com>.
1100
if test "$ac_init_help" = "recursive"; then
1101
# If there are subdirs, report their specific --help.
1103
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1104
test -d $ac_dir || continue
1107
if test "$ac_dir" != .; then
1108
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1109
# A "../" for each directory in $ac_dir_suffix.
1110
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1112
ac_dir_suffix= ac_top_builddir=
1116
.) # No --srcdir option. We are building in place.
1118
if test -z "$ac_top_builddir"; then
1121
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1123
[\\/]* | ?:[\\/]* ) # Absolute path.
1124
ac_srcdir=$srcdir$ac_dir_suffix;
1125
ac_top_srcdir=$srcdir ;;
1127
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1128
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1131
# Do not use `cd foo && pwd` to compute absolute paths, because
1132
# the directories may not exist.
1134
.) ac_abs_builddir="$ac_dir";;
1137
.) ac_abs_builddir=`pwd`;;
1138
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1139
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1142
case $ac_abs_builddir in
1143
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1145
case ${ac_top_builddir}. in
1146
.) ac_abs_top_builddir=$ac_abs_builddir;;
1147
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1148
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1151
case $ac_abs_builddir in
1152
.) ac_abs_srcdir=$ac_srcdir;;
1155
.) ac_abs_srcdir=$ac_abs_builddir;;
1156
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1157
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1160
case $ac_abs_builddir in
1161
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1163
case $ac_top_srcdir in
1164
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1165
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1166
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1171
# Check for guested configure; otherwise get Cygnus style configure.
1172
if test -f $ac_srcdir/configure.gnu; then
1174
$SHELL $ac_srcdir/configure.gnu --help=recursive
1175
elif test -f $ac_srcdir/configure; then
1177
$SHELL $ac_srcdir/configure --help=recursive
1178
elif test -f $ac_srcdir/configure.ac ||
1179
test -f $ac_srcdir/configure.in; then
1181
$ac_configure --help
1183
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1189
test -n "$ac_init_help" && exit 0
1190
if $ac_init_version; then
1192
libFS configure 3.0.0
1193
generated by GNU Autoconf 2.59
1195
Copyright (C) 2003 Free Software Foundation, Inc.
1196
This configure script is free software; the Free Software Foundation
1197
gives unlimited permission to copy, distribute and modify it.
1203
This file contains any messages produced by compilers while
1204
running configure, to aid debugging if configure makes a mistake.
1206
It was created by libFS $as_me 3.0.0, which was
1207
generated by GNU Autoconf 2.59. Invocation command line was
1218
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1219
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1220
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1221
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1222
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1224
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1225
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1227
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1228
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1229
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1230
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1231
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1232
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1233
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1237
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1241
test -z "$as_dir" && as_dir=.
1242
echo "PATH: $as_dir"
1257
# Keep a trace of the command line.
1258
# Strip out --no-create and --no-recursion so they do not pile up.
1259
# Strip out --silent because we don't want to record it for future runs.
1260
# Also quote any args containing shell meta-characters.
1261
# Make two passes to allow for proper duplicate-argument suppression.
1266
ac_must_keep_next=false
1272
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1273
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1274
| -silent | --silent | --silen | --sile | --sil)
1276
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1277
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1280
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1282
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1283
if test $ac_must_keep_next = true; then
1284
ac_must_keep_next=false # Got value, back to normal.
1287
*=* | --config-cache | -C | -disable-* | --disable-* \
1288
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1289
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1290
| -with-* | --with-* | -without-* | --without-* | --x)
1291
case "$ac_configure_args0 " in
1292
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1295
-* ) ac_must_keep_next=true ;;
1298
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1299
# Get rid of the leading space.
1305
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1306
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1308
# When interrupted or exit'd, cleanup temporary files, and complete
1309
# config.log. We remove comments because anyway the quotes in there
1310
# would cause problems or look ugly.
1311
# WARNING: Be sure not to use single quotes in there, as some shells,
1312
# such as our DU 5.0 friend, will then `close' the trap.
1313
trap 'exit_status=$?
1314
# Save into config.log some information that might help in debugging.
1319
## ---------------- ##
1320
## Cache variables. ##
1321
## ---------------- ##
1324
# The following way of writing the cache mishandles newlines in values,
1327
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1330
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1331
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1335
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1342
## ----------------- ##
1343
## Output variables. ##
1344
## ----------------- ##
1347
for ac_var in $ac_subst_vars
1349
eval ac_val=$`echo $ac_var`
1350
echo "$ac_var='"'"'$ac_val'"'"'"
1354
if test -n "$ac_subst_files"; then
1361
for ac_var in $ac_subst_files
1363
eval ac_val=$`echo $ac_var`
1364
echo "$ac_var='"'"'$ac_val'"'"'"
1369
if test -s confdefs.h; then
1376
sed "/^$/d" confdefs.h | sort
1379
test "$ac_signal" != 0 &&
1380
echo "$as_me: caught signal $ac_signal"
1381
echo "$as_me: exit $exit_status"
1383
rm -f core *.core &&
1384
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1387
for ac_signal in 1 2 13 15; do
1388
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1392
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1393
rm -rf conftest* confdefs.h
1394
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1397
# Predefined preprocessor variables.
1399
cat >>confdefs.h <<_ACEOF
1400
#define PACKAGE_NAME "$PACKAGE_NAME"
1404
cat >>confdefs.h <<_ACEOF
1405
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1409
cat >>confdefs.h <<_ACEOF
1410
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1414
cat >>confdefs.h <<_ACEOF
1415
#define PACKAGE_STRING "$PACKAGE_STRING"
1419
cat >>confdefs.h <<_ACEOF
1420
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1424
# Let the site file select an alternate cache file if it wants to.
1425
# Prefer explicitly selected file to automatically selected ones.
1426
if test -z "$CONFIG_SITE"; then
1427
if test "x$prefix" != xNONE; then
1428
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1430
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1433
for ac_site_file in $CONFIG_SITE; do
1434
if test -r "$ac_site_file"; then
1435
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1436
echo "$as_me: loading site script $ac_site_file" >&6;}
1437
sed 's/^/| /' "$ac_site_file" >&5
1442
if test -r "$cache_file"; then
1443
# Some versions of bash will fail to source /dev/null (special
1444
# files actually), so we avoid doing that.
1445
if test -f "$cache_file"; then
1446
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1447
echo "$as_me: loading cache $cache_file" >&6;}
1449
[\\/]* | ?:[\\/]* ) . $cache_file;;
1450
*) . ./$cache_file;;
1454
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1455
echo "$as_me: creating cache $cache_file" >&6;}
1459
# Check that the precious variables saved in the cache have kept the same
1461
ac_cache_corrupted=false
1462
for ac_var in `(set) 2>&1 |
1463
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1464
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1465
eval ac_new_set=\$ac_env_${ac_var}_set
1466
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1467
eval ac_new_val="\$ac_env_${ac_var}_value"
1468
case $ac_old_set,$ac_new_set in
1470
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1471
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1472
ac_cache_corrupted=: ;;
1474
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1475
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1476
ac_cache_corrupted=: ;;
1479
if test "x$ac_old_val" != "x$ac_new_val"; then
1480
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1481
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1482
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1483
echo "$as_me: former value: $ac_old_val" >&2;}
1484
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1485
echo "$as_me: current value: $ac_new_val" >&2;}
1486
ac_cache_corrupted=:
1489
# Pass precious variables to config.status.
1490
if test "$ac_new_set" = set; then
1492
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1493
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1494
*) ac_arg=$ac_var=$ac_new_val ;;
1496
case " $ac_configure_args " in
1497
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1498
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1502
if $ac_cache_corrupted; then
1503
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1504
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1505
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1506
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1507
{ (exit 1); exit 1; }; }
1511
ac_cpp='$CPP $CPPFLAGS'
1512
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1542
am__api_version="1.9"
1544
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1545
if test -f $ac_dir/install-sh; then
1547
ac_install_sh="$ac_aux_dir/install-sh -c"
1549
elif test -f $ac_dir/install.sh; then
1551
ac_install_sh="$ac_aux_dir/install.sh -c"
1553
elif test -f $ac_dir/shtool; then
1555
ac_install_sh="$ac_aux_dir/shtool install -c"
1559
if test -z "$ac_aux_dir"; then
1560
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1562
{ (exit 1); exit 1; }; }
1564
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1565
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1566
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568
# Find a good install program. We prefer a C program (faster),
1569
# so one script is as good as another. But avoid the broken or
1570
# incompatible versions:
1571
# SysV /etc/install, /usr/sbin/install
1572
# SunOS /usr/etc/install
1573
# IRIX /sbin/install
1575
# AmigaOS /C/install, which installs bootblocks on floppy discs
1576
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1577
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1578
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1579
# OS/2's system install, which has a completely different semantic
1580
# ./install, which can be erroneously created by make from ./install.sh.
1581
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1582
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1583
if test -z "$INSTALL"; then
1584
if test "${ac_cv_path_install+set}" = set; then
1585
echo $ECHO_N "(cached) $ECHO_C" >&6
1587
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591
test -z "$as_dir" && as_dir=.
1592
# Account for people who put trailing slashes in PATH elements.
1594
./ | .// | /cC/* | \
1595
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1596
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1599
# OSF1 and SCO ODT 3.0 have their own names for install.
1600
# Don't use installbsd from OSF since it installs stuff as root
1602
for ac_prog in ginstall scoinst install; do
1603
for ac_exec_ext in '' $ac_executable_extensions; do
1604
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1605
if test $ac_prog = install &&
1606
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1607
# AIX install. It has an incompatible calling convention.
1609
elif test $ac_prog = install &&
1610
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1611
# program-specific install script used by HP pwplus--don't use.
1614
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1626
if test "${ac_cv_path_install+set}" = set; then
1627
INSTALL=$ac_cv_path_install
1629
# As a last resort, use the slow shell script. We don't cache a
1630
# path for INSTALL within a source directory, because that will
1631
# break other packages using the cache if that directory is
1632
# removed, or if the path is relative.
1633
INSTALL=$ac_install_sh
1636
echo "$as_me:$LINENO: result: $INSTALL" >&5
1637
echo "${ECHO_T}$INSTALL" >&6
1639
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1640
# It thinks the first close brace ends the variable substitution.
1641
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1643
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1645
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1647
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1648
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1651
echo timestamp > conftest.file
1652
# Do `set' in a subshell so we don't clobber the current shell's
1653
# arguments. Must try -L first in case configure is actually a
1654
# symlink; some systems play weird games with the mod time of symlinks
1655
# (eg FreeBSD returns the mod time of the symlink's containing
1658
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1659
if test "$*" = "X"; then
1661
set X `ls -t $srcdir/configure conftest.file`
1664
if test "$*" != "X $srcdir/configure conftest.file" \
1665
&& test "$*" != "X conftest.file $srcdir/configure"; then
1667
# If neither matched, then we have a broken ls. This can happen
1668
# if, for instance, CONFIG_SHELL is bash and it inherits a
1669
# broken ls alias from the environment. This has actually
1670
# happened. Such a system could not be considered "sane".
1671
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1672
alias in your environment" >&5
1673
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1674
alias in your environment" >&2;}
1675
{ (exit 1); exit 1; }; }
1678
test "$2" = conftest.file
1684
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1685
Check your system clock" >&5
1686
echo "$as_me: error: newly created file is older than distributed files!
1687
Check your system clock" >&2;}
1688
{ (exit 1); exit 1; }; }
1690
echo "$as_me:$LINENO: result: yes" >&5
1691
echo "${ECHO_T}yes" >&6
1692
test "$program_prefix" != NONE &&
1693
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1694
# Use a double $ so make ignores it.
1695
test "$program_suffix" != NONE &&
1696
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1697
# Double any \ or $. echo might interpret backslashes.
1698
# By default was `s,x,x', remove it if useless.
1699
cat <<\_ACEOF >conftest.sed
1700
s/[\\$]/&&/g;s/;s,x,x,$//
1702
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1705
# expand $ac_aux_dir to an absolute path
1706
am_aux_dir=`cd $ac_aux_dir && pwd`
1708
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1709
# Use eval to expand $SHELL
1710
if eval "$MISSING --run true"; then
1711
am_missing_run="$MISSING --run "
1714
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1715
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1718
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1719
# We used to keeping the `.' as first argument, in order to
1720
# allow $(mkdir_p) to be used without argument. As in
1721
# $(mkdir_p) $(somedir)
1722
# where $(somedir) is conditionally defined. However this is wrong
1724
# 1. if the package is installed by a user who cannot write `.'
1725
# make install will fail,
1726
# 2. the above comment should most certainly read
1727
# $(mkdir_p) $(DESTDIR)$(somedir)
1728
# so it does not work when $(somedir) is undefined and
1729
# $(DESTDIR) is not.
1730
# To support the latter case, we have to write
1731
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1732
# so the `.' trick is pointless.
1733
mkdir_p='mkdir -p --'
1735
# On NextStep and OpenStep, the `mkdir' command does not
1736
# recognize any option. It will interpret all options as
1737
# directories to create, and then abort because `.' already
1739
for d in ./-p ./--version;
1741
test -d $d && rmdir $d
1743
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1744
if test -f "$ac_aux_dir/mkinstalldirs"; then
1745
mkdir_p='$(mkinstalldirs)'
1747
mkdir_p='$(install_sh) -d'
1751
for ac_prog in gawk mawk nawk awk
1753
# Extract the first word of "$ac_prog", so it can be a program name with args.
1754
set dummy $ac_prog; ac_word=$2
1755
echo "$as_me:$LINENO: checking for $ac_word" >&5
1756
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757
if test "${ac_cv_prog_AWK+set}" = set; then
1758
echo $ECHO_N "(cached) $ECHO_C" >&6
1760
if test -n "$AWK"; then
1761
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1763
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767
test -z "$as_dir" && as_dir=.
1768
for ac_exec_ext in '' $ac_executable_extensions; do
1769
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770
ac_cv_prog_AWK="$ac_prog"
1771
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1780
if test -n "$AWK"; then
1781
echo "$as_me:$LINENO: result: $AWK" >&5
1782
echo "${ECHO_T}$AWK" >&6
1784
echo "$as_me:$LINENO: result: no" >&5
1785
echo "${ECHO_T}no" >&6
1788
test -n "$AWK" && break
1791
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1792
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1793
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1794
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1795
echo $ECHO_N "(cached) $ECHO_C" >&6
1797
cat >conftest.make <<\_ACEOF
1799
@echo 'ac_maketemp="$(MAKE)"'
1801
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1802
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1803
if test -n "$ac_maketemp"; then
1804
eval ac_cv_prog_make_${ac_make}_set=yes
1806
eval ac_cv_prog_make_${ac_make}_set=no
1810
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1811
echo "$as_me:$LINENO: result: yes" >&5
1812
echo "${ECHO_T}yes" >&6
1815
echo "$as_me:$LINENO: result: no" >&5
1816
echo "${ECHO_T}no" >&6
1817
SET_MAKE="MAKE=${MAKE-make}"
1820
rm -rf .tst 2>/dev/null
1821
mkdir .tst 2>/dev/null
1822
if test -d .tst; then
1827
rmdir .tst 2>/dev/null
1829
# test to see if srcdir already configured
1830
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1831
test -f $srcdir/config.status; then
1832
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1833
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1834
{ (exit 1); exit 1; }; }
1837
# test whether we have cygpath
1838
if test -z "$CYGPATH_W"; then
1839
if (cygpath --version) >/dev/null 2>/dev/null; then
1840
CYGPATH_W='cygpath -w'
1847
# Define the identity of the package.
1852
cat >>confdefs.h <<_ACEOF
1853
#define PACKAGE "$PACKAGE"
1857
cat >>confdefs.h <<_ACEOF
1858
#define VERSION "$VERSION"
1861
# Some tools Automake needs.
1863
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1866
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1869
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1872
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1875
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1877
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1879
# Installed binaries are usually stripped using `strip' when the user
1880
# run `make install-strip'. However `strip' might not be the right
1881
# tool to use in cross-compilation environments, therefore Automake
1882
# will honor the `STRIP' environment variable to overrule this program.
1883
if test "$cross_compiling" != no; then
1884
if test -n "$ac_tool_prefix"; then
1885
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1886
set dummy ${ac_tool_prefix}strip; ac_word=$2
1887
echo "$as_me:$LINENO: checking for $ac_word" >&5
1888
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889
if test "${ac_cv_prog_STRIP+set}" = set; then
1890
echo $ECHO_N "(cached) $ECHO_C" >&6
1892
if test -n "$STRIP"; then
1893
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1895
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899
test -z "$as_dir" && as_dir=.
1900
for ac_exec_ext in '' $ac_executable_extensions; do
1901
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1903
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911
STRIP=$ac_cv_prog_STRIP
1912
if test -n "$STRIP"; then
1913
echo "$as_me:$LINENO: result: $STRIP" >&5
1914
echo "${ECHO_T}$STRIP" >&6
1916
echo "$as_me:$LINENO: result: no" >&5
1917
echo "${ECHO_T}no" >&6
1921
if test -z "$ac_cv_prog_STRIP"; then
1923
# Extract the first word of "strip", so it can be a program name with args.
1924
set dummy strip; ac_word=$2
1925
echo "$as_me:$LINENO: checking for $ac_word" >&5
1926
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1927
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1928
echo $ECHO_N "(cached) $ECHO_C" >&6
1930
if test -n "$ac_ct_STRIP"; then
1931
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1933
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937
test -z "$as_dir" && as_dir=.
1938
for ac_exec_ext in '' $ac_executable_extensions; do
1939
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1940
ac_cv_prog_ac_ct_STRIP="strip"
1941
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1950
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1951
if test -n "$ac_ct_STRIP"; then
1952
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1953
echo "${ECHO_T}$ac_ct_STRIP" >&6
1955
echo "$as_me:$LINENO: result: no" >&5
1956
echo "${ECHO_T}no" >&6
1961
STRIP="$ac_cv_prog_STRIP"
1965
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1967
# We need awk for the "check" target. The system "awk" is bad on
1969
# Always define AMTAR for backward compatibility.
1971
AMTAR=${AMTAR-"${am_missing_run}tar"}
1973
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1979
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1980
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1981
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1982
if test "${enable_maintainer_mode+set}" = set; then
1983
enableval="$enable_maintainer_mode"
1984
USE_MAINTAINER_MODE=$enableval
1986
USE_MAINTAINER_MODE=no
1988
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1989
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1992
if test $USE_MAINTAINER_MODE = yes; then
1993
MAINTAINER_MODE_TRUE=
1994
MAINTAINER_MODE_FALSE='#'
1996
MAINTAINER_MODE_TRUE='#'
1997
MAINTAINER_MODE_FALSE=
2000
MAINT=$MAINTAINER_MODE_TRUE
2004
ac_config_headers="$ac_config_headers config.h"
2009
ac_cpp='$CPP $CPPFLAGS'
2010
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2011
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2012
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2013
if test -n "$ac_tool_prefix"; then
2014
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2015
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2016
echo "$as_me:$LINENO: checking for $ac_word" >&5
2017
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018
if test "${ac_cv_prog_CC+set}" = set; then
2019
echo $ECHO_N "(cached) $ECHO_C" >&6
2021
if test -n "$CC"; then
2022
ac_cv_prog_CC="$CC" # Let the user override the test.
2024
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028
test -z "$as_dir" && as_dir=.
2029
for ac_exec_ext in '' $ac_executable_extensions; do
2030
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2032
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041
if test -n "$CC"; then
2042
echo "$as_me:$LINENO: result: $CC" >&5
2043
echo "${ECHO_T}$CC" >&6
2045
echo "$as_me:$LINENO: result: no" >&5
2046
echo "${ECHO_T}no" >&6
2050
if test -z "$ac_cv_prog_CC"; then
2052
# Extract the first word of "gcc", so it can be a program name with args.
2053
set dummy gcc; 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_ac_ct_CC+set}" = set; then
2057
echo $ECHO_N "(cached) $ECHO_C" >&6
2059
if test -n "$ac_ct_CC"; then
2060
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_ac_ct_CC="gcc"
2070
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2079
if test -n "$ac_ct_CC"; then
2080
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2081
echo "${ECHO_T}$ac_ct_CC" >&6
2083
echo "$as_me:$LINENO: result: no" >&5
2084
echo "${ECHO_T}no" >&6
2092
if test -z "$CC"; then
2093
if test -n "$ac_tool_prefix"; then
2094
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2095
set dummy ${ac_tool_prefix}cc; 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_CC+set}" = set; then
2099
echo $ECHO_N "(cached) $ECHO_C" >&6
2101
if test -n "$CC"; then
2102
ac_cv_prog_CC="$CC" # 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_CC="${ac_tool_prefix}cc"
2112
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121
if test -n "$CC"; then
2122
echo "$as_me:$LINENO: result: $CC" >&5
2123
echo "${ECHO_T}$CC" >&6
2125
echo "$as_me:$LINENO: result: no" >&5
2126
echo "${ECHO_T}no" >&6
2130
if test -z "$ac_cv_prog_CC"; then
2132
# Extract the first word of "cc", so it can be a program name with args.
2133
set dummy cc; ac_word=$2
2134
echo "$as_me:$LINENO: checking for $ac_word" >&5
2135
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2136
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2137
echo $ECHO_N "(cached) $ECHO_C" >&6
2139
if test -n "$ac_ct_CC"; then
2140
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2142
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146
test -z "$as_dir" && as_dir=.
2147
for ac_exec_ext in '' $ac_executable_extensions; do
2148
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2149
ac_cv_prog_ac_ct_CC="cc"
2150
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2159
if test -n "$ac_ct_CC"; then
2160
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2161
echo "${ECHO_T}$ac_ct_CC" >&6
2163
echo "$as_me:$LINENO: result: no" >&5
2164
echo "${ECHO_T}no" >&6
2173
if test -z "$CC"; then
2174
# Extract the first word of "cc", so it can be a program name with args.
2175
set dummy cc; ac_word=$2
2176
echo "$as_me:$LINENO: checking for $ac_word" >&5
2177
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2178
if test "${ac_cv_prog_CC+set}" = set; then
2179
echo $ECHO_N "(cached) $ECHO_C" >&6
2181
if test -n "$CC"; then
2182
ac_cv_prog_CC="$CC" # Let the user override the test.
2185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189
test -z "$as_dir" && as_dir=.
2190
for ac_exec_ext in '' $ac_executable_extensions; do
2191
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2192
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2193
ac_prog_rejected=yes
2197
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203
if test $ac_prog_rejected = yes; then
2204
# We found a bogon in the path, so make sure we never use it.
2205
set dummy $ac_cv_prog_CC
2207
if test $# != 0; then
2208
# We chose a different compiler from the bogus one.
2209
# However, it has the same basename, so the bogon will be chosen
2210
# first if we set CC to just the basename; use the full file name.
2212
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2218
if test -n "$CC"; then
2219
echo "$as_me:$LINENO: result: $CC" >&5
2220
echo "${ECHO_T}$CC" >&6
2222
echo "$as_me:$LINENO: result: no" >&5
2223
echo "${ECHO_T}no" >&6
2227
if test -z "$CC"; then
2228
if test -n "$ac_tool_prefix"; then
2231
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2232
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2233
echo "$as_me:$LINENO: checking for $ac_word" >&5
2234
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2235
if test "${ac_cv_prog_CC+set}" = set; then
2236
echo $ECHO_N "(cached) $ECHO_C" >&6
2238
if test -n "$CC"; then
2239
ac_cv_prog_CC="$CC" # Let the user override the test.
2241
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245
test -z "$as_dir" && as_dir=.
2246
for ac_exec_ext in '' $ac_executable_extensions; do
2247
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2248
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2249
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258
if test -n "$CC"; then
2259
echo "$as_me:$LINENO: result: $CC" >&5
2260
echo "${ECHO_T}$CC" >&6
2262
echo "$as_me:$LINENO: result: no" >&5
2263
echo "${ECHO_T}no" >&6
2266
test -n "$CC" && break
2269
if test -z "$CC"; then
2273
# Extract the first word of "$ac_prog", so it can be a program name with args.
2274
set dummy $ac_prog; ac_word=$2
2275
echo "$as_me:$LINENO: checking for $ac_word" >&5
2276
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2277
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2278
echo $ECHO_N "(cached) $ECHO_C" >&6
2280
if test -n "$ac_ct_CC"; then
2281
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2283
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287
test -z "$as_dir" && as_dir=.
2288
for ac_exec_ext in '' $ac_executable_extensions; do
2289
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2290
ac_cv_prog_ac_ct_CC="$ac_prog"
2291
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2300
if test -n "$ac_ct_CC"; then
2301
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2302
echo "${ECHO_T}$ac_ct_CC" >&6
2304
echo "$as_me:$LINENO: result: no" >&5
2305
echo "${ECHO_T}no" >&6
2308
test -n "$ac_ct_CC" && break
2317
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2318
See \`config.log' for more details." >&5
2319
echo "$as_me: error: no acceptable C compiler found in \$PATH
2320
See \`config.log' for more details." >&2;}
2321
{ (exit 1); exit 1; }; }
2323
# Provide some information about the compiler.
2324
echo "$as_me:$LINENO:" \
2325
"checking for C compiler version" >&5
2326
ac_compiler=`set X $ac_compile; echo $2`
2327
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2328
(eval $ac_compiler --version </dev/null >&5) 2>&5
2330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331
(exit $ac_status); }
2332
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2333
(eval $ac_compiler -v </dev/null >&5) 2>&5
2335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336
(exit $ac_status); }
2337
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2338
(eval $ac_compiler -V </dev/null >&5) 2>&5
2340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341
(exit $ac_status); }
2343
cat >conftest.$ac_ext <<_ACEOF
2346
cat confdefs.h >>conftest.$ac_ext
2347
cat >>conftest.$ac_ext <<_ACEOF
2348
/* end confdefs.h. */
2358
ac_clean_files_save=$ac_clean_files
2359
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2360
# Try to create an executable without -o first, disregard a.out.
2361
# It will help us diagnose broken compilers, and finding out an intuition
2363
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2364
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2365
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2366
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2367
(eval $ac_link_default) 2>&5
2369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370
(exit $ac_status); }; then
2371
# Find the output, starting from the most likely. This scheme is
2372
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2375
# Be careful to initialize this variable, since it used to be cached.
2376
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2378
# b.out is created by i960 compilers.
2379
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2381
test -f "$ac_file" || continue
2383
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2386
# This is the source file.
2389
# We found the default executable, but exeext='' is most
2393
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2394
# FIXME: I believe we export ac_cv_exeext for Libtool,
2395
# but it would be cool to find out if it's true. Does anybody
2396
# maintain Libtool? --akim.
2404
echo "$as_me: failed program was:" >&5
2405
sed 's/^/| /' conftest.$ac_ext >&5
2407
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2408
See \`config.log' for more details." >&5
2409
echo "$as_me: error: C compiler cannot create executables
2410
See \`config.log' for more details." >&2;}
2411
{ (exit 77); exit 77; }; }
2414
ac_exeext=$ac_cv_exeext
2415
echo "$as_me:$LINENO: result: $ac_file" >&5
2416
echo "${ECHO_T}$ac_file" >&6
2418
# Check the compiler produces executables we can run. If not, either
2419
# the compiler is broken, or we cross compile.
2420
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2421
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2422
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2423
# If not cross compiling, check that we can run a simple program.
2424
if test "$cross_compiling" != yes; then
2425
if { ac_try='./$ac_file'
2426
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430
(exit $ac_status); }; }; then
2433
if test "$cross_compiling" = maybe; then
2436
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2437
If you meant to cross compile, use \`--host'.
2438
See \`config.log' for more details." >&5
2439
echo "$as_me: error: cannot run C compiled programs.
2440
If you meant to cross compile, use \`--host'.
2441
See \`config.log' for more details." >&2;}
2442
{ (exit 1); exit 1; }; }
2446
echo "$as_me:$LINENO: result: yes" >&5
2447
echo "${ECHO_T}yes" >&6
2449
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2450
ac_clean_files=$ac_clean_files_save
2451
# Check the compiler produces executables we can run. If not, either
2452
# the compiler is broken, or we cross compile.
2453
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2454
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2455
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2456
echo "${ECHO_T}$cross_compiling" >&6
2458
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2459
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2460
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2461
(eval $ac_link) 2>&5
2463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464
(exit $ac_status); }; then
2465
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2466
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2467
# work properly (i.e., refer to `conftest.exe'), while it won't with
2469
for ac_file in conftest.exe conftest conftest.*; do
2470
test -f "$ac_file" || continue
2472
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2473
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2480
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2481
See \`config.log' for more details." >&5
2482
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2483
See \`config.log' for more details." >&2;}
2484
{ (exit 1); exit 1; }; }
2487
rm -f conftest$ac_cv_exeext
2488
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2489
echo "${ECHO_T}$ac_cv_exeext" >&6
2491
rm -f conftest.$ac_ext
2492
EXEEXT=$ac_cv_exeext
2494
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2495
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2496
if test "${ac_cv_objext+set}" = set; then
2497
echo $ECHO_N "(cached) $ECHO_C" >&6
2499
cat >conftest.$ac_ext <<_ACEOF
2502
cat confdefs.h >>conftest.$ac_ext
2503
cat >>conftest.$ac_ext <<_ACEOF
2504
/* end confdefs.h. */
2514
rm -f conftest.o conftest.obj
2515
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2516
(eval $ac_compile) 2>&5
2518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519
(exit $ac_status); }; then
2520
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2522
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2523
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2528
echo "$as_me: failed program was:" >&5
2529
sed 's/^/| /' conftest.$ac_ext >&5
2531
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2532
See \`config.log' for more details." >&5
2533
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2534
See \`config.log' for more details." >&2;}
2535
{ (exit 1); exit 1; }; }
2538
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2540
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2541
echo "${ECHO_T}$ac_cv_objext" >&6
2542
OBJEXT=$ac_cv_objext
2544
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2545
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2546
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2547
echo $ECHO_N "(cached) $ECHO_C" >&6
2549
cat >conftest.$ac_ext <<_ACEOF
2552
cat confdefs.h >>conftest.$ac_ext
2553
cat >>conftest.$ac_ext <<_ACEOF
2554
/* end confdefs.h. */
2567
rm -f conftest.$ac_objext
2568
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569
(eval $ac_compile) 2>conftest.er1
2571
grep -v '^ *+' conftest.er1 >conftest.err
2573
cat conftest.err >&5
2574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575
(exit $ac_status); } &&
2576
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2577
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581
(exit $ac_status); }; } &&
2582
{ ac_try='test -s conftest.$ac_objext'
2583
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587
(exit $ac_status); }; }; then
2590
echo "$as_me: failed program was:" >&5
2591
sed 's/^/| /' conftest.$ac_ext >&5
2595
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2596
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2599
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2600
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2601
GCC=`test $ac_compiler_gnu = yes && echo yes`
2602
ac_test_CFLAGS=${CFLAGS+set}
2603
ac_save_CFLAGS=$CFLAGS
2605
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2606
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2607
if test "${ac_cv_prog_cc_g+set}" = set; then
2608
echo $ECHO_N "(cached) $ECHO_C" >&6
2610
cat >conftest.$ac_ext <<_ACEOF
2613
cat confdefs.h >>conftest.$ac_ext
2614
cat >>conftest.$ac_ext <<_ACEOF
2615
/* end confdefs.h. */
2625
rm -f conftest.$ac_objext
2626
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2627
(eval $ac_compile) 2>conftest.er1
2629
grep -v '^ *+' conftest.er1 >conftest.err
2631
cat conftest.err >&5
2632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633
(exit $ac_status); } &&
2634
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2635
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639
(exit $ac_status); }; } &&
2640
{ ac_try='test -s conftest.$ac_objext'
2641
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645
(exit $ac_status); }; }; then
2648
echo "$as_me: failed program was:" >&5
2649
sed 's/^/| /' conftest.$ac_ext >&5
2653
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2655
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2656
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2657
if test "$ac_test_CFLAGS" = set; then
2658
CFLAGS=$ac_save_CFLAGS
2659
elif test $ac_cv_prog_cc_g = yes; then
2660
if test "$GCC" = yes; then
2666
if test "$GCC" = yes; then
2672
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2673
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2674
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2675
echo $ECHO_N "(cached) $ECHO_C" >&6
2677
ac_cv_prog_cc_stdc=no
2679
cat >conftest.$ac_ext <<_ACEOF
2682
cat confdefs.h >>conftest.$ac_ext
2683
cat >>conftest.$ac_ext <<_ACEOF
2684
/* end confdefs.h. */
2687
#include <sys/types.h>
2688
#include <sys/stat.h>
2689
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2690
struct buf { int x; };
2691
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2692
static char *e (p, i)
2698
static char *f (char * (*g) (char **, int), char **p, ...)
2703
s = g (p, va_arg (v,int));
2708
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2709
function prototypes and stuff, but not '\xHH' hex character constants.
2710
These don't provoke an error unfortunately, instead are silently treated
2711
as 'x'. The following induces an error, until -std1 is added to get
2712
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2713
array size at least. It's necessary to write '\x00'==0 to get something
2714
that's true only with -std1. */
2715
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2717
int test (int i, double x);
2718
struct s1 {int (*f) (int a);};
2719
struct s2 {int (*f) (double a);};
2720
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2726
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2731
# Don't try gcc -ansi; that turns off useful extensions and
2732
# breaks some systems' header files.
2733
# AIX -qlanglvl=ansi
2734
# Ultrix and OSF/1 -std1
2735
# HP-UX 10.20 and later -Ae
2736
# HP-UX older versions -Aa -D_HPUX_SOURCE
2737
# SVR4 -Xc -D__EXTENSIONS__
2738
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2740
CC="$ac_save_CC $ac_arg"
2741
rm -f conftest.$ac_objext
2742
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2743
(eval $ac_compile) 2>conftest.er1
2745
grep -v '^ *+' conftest.er1 >conftest.err
2747
cat conftest.err >&5
2748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749
(exit $ac_status); } &&
2750
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2751
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755
(exit $ac_status); }; } &&
2756
{ ac_try='test -s conftest.$ac_objext'
2757
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761
(exit $ac_status); }; }; then
2762
ac_cv_prog_cc_stdc=$ac_arg
2765
echo "$as_me: failed program was:" >&5
2766
sed 's/^/| /' conftest.$ac_ext >&5
2769
rm -f conftest.err conftest.$ac_objext
2771
rm -f conftest.$ac_ext conftest.$ac_objext
2776
case "x$ac_cv_prog_cc_stdc" in
2778
echo "$as_me:$LINENO: result: none needed" >&5
2779
echo "${ECHO_T}none needed" >&6 ;;
2781
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2782
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2783
CC="$CC $ac_cv_prog_cc_stdc" ;;
2786
# Some people use a C++ compiler to compile C. Since we use `exit',
2787
# in C++ we need to declare it. In case someone uses the same compiler
2788
# for both compiling C and C++ we need to have the C++ compiler decide
2789
# the declaration of exit, since it's the most demanding environment.
2790
cat >conftest.$ac_ext <<_ACEOF
2795
rm -f conftest.$ac_objext
2796
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2797
(eval $ac_compile) 2>conftest.er1
2799
grep -v '^ *+' conftest.er1 >conftest.err
2801
cat conftest.err >&5
2802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803
(exit $ac_status); } &&
2804
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2805
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809
(exit $ac_status); }; } &&
2810
{ ac_try='test -s conftest.$ac_objext'
2811
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815
(exit $ac_status); }; }; then
2816
for ac_declaration in \
2818
'extern "C" void std::exit (int) throw (); using std::exit;' \
2819
'extern "C" void std::exit (int); using std::exit;' \
2820
'extern "C" void exit (int) throw ();' \
2821
'extern "C" void exit (int);' \
2824
cat >conftest.$ac_ext <<_ACEOF
2827
cat confdefs.h >>conftest.$ac_ext
2828
cat >>conftest.$ac_ext <<_ACEOF
2829
/* end confdefs.h. */
2840
rm -f conftest.$ac_objext
2841
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2842
(eval $ac_compile) 2>conftest.er1
2844
grep -v '^ *+' conftest.er1 >conftest.err
2846
cat conftest.err >&5
2847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848
(exit $ac_status); } &&
2849
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2850
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854
(exit $ac_status); }; } &&
2855
{ ac_try='test -s conftest.$ac_objext'
2856
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860
(exit $ac_status); }; }; then
2863
echo "$as_me: failed program was:" >&5
2864
sed 's/^/| /' conftest.$ac_ext >&5
2868
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2869
cat >conftest.$ac_ext <<_ACEOF
2872
cat confdefs.h >>conftest.$ac_ext
2873
cat >>conftest.$ac_ext <<_ACEOF
2874
/* end confdefs.h. */
2884
rm -f conftest.$ac_objext
2885
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886
(eval $ac_compile) 2>conftest.er1
2888
grep -v '^ *+' conftest.er1 >conftest.err
2890
cat conftest.err >&5
2891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892
(exit $ac_status); } &&
2893
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2894
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898
(exit $ac_status); }; } &&
2899
{ ac_try='test -s conftest.$ac_objext'
2900
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904
(exit $ac_status); }; }; then
2907
echo "$as_me: failed program was:" >&5
2908
sed 's/^/| /' conftest.$ac_ext >&5
2911
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2914
if test -n "$ac_declaration"; then
2915
echo '#ifdef __cplusplus' >>confdefs.h
2916
echo $ac_declaration >>confdefs.h
2917
echo '#endif' >>confdefs.h
2921
echo "$as_me: failed program was:" >&5
2922
sed 's/^/| /' conftest.$ac_ext >&5
2925
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2927
ac_cpp='$CPP $CPPFLAGS'
2928
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2929
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2930
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2931
DEPDIR="${am__leading_dot}deps"
2933
ac_config_commands="$ac_config_commands depfiles"
2936
am_make=${MAKE-make}
2937
cat > confinc << 'END'
2942
# If we don't find an include directive, just comment out the code.
2943
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2944
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2948
# First try GNU make style include.
2949
echo "include confinc" > confmf
2950
# We grep out `Entering directory' and `Leaving directory'
2951
# messages which can occur if `w' ends up in MAKEFLAGS.
2952
# In particular we don't look at `^make:' because GNU make might
2953
# be invoked under some other name (usually "gmake"), in which
2954
# case it prints its new name instead of `make'.
2955
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2960
# Now try BSD make style include.
2961
if test "$am__include" = "#"; then
2962
echo '.include "confinc"' > confmf
2963
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2964
am__include=.include
2971
echo "$as_me:$LINENO: result: $_am_result" >&5
2972
echo "${ECHO_T}$_am_result" >&6
2973
rm -f confinc confmf
2975
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2976
if test "${enable_dependency_tracking+set}" = set; then
2977
enableval="$enable_dependency_tracking"
2980
if test "x$enable_dependency_tracking" != xno; then
2981
am_depcomp="$ac_aux_dir/depcomp"
2986
if test "x$enable_dependency_tracking" != xno; then
2997
depcc="$CC" am_compiler_list=
2999
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3000
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3001
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3002
echo $ECHO_N "(cached) $ECHO_C" >&6
3004
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3005
# We make a subdir and do the tests there. Otherwise we can end up
3006
# making bogus files that we don't know about and never remove. For
3007
# instance it was reported that on HP-UX the gcc test will end up
3008
# making a dummy file named `D' -- because `-MD' means `put the output
3011
# Copy depcomp to subdir because otherwise we won't find it if we're
3012
# using a relative directory.
3013
cp "$am_depcomp" conftest.dir
3015
# We will build objects and dependencies in a subdirectory because
3016
# it helps to detect inapplicable dependency modes. For instance
3017
# both Tru64's cc and ICC support -MD to output dependencies as a
3018
# side effect of compilation, but ICC will put the dependencies in
3019
# the current directory while Tru64 will put them in the object
3023
am_cv_CC_dependencies_compiler_type=none
3024
if test "$am_compiler_list" = ""; then
3025
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3027
for depmode in $am_compiler_list; do
3028
# Setup a source with many dependencies, because some compilers
3029
# like to wrap large dependency lists on column 80 (with \), and
3030
# we should not choose a depcomp mode which is confused by this.
3032
# We need to recreate these files for each test, as the compiler may
3033
# overwrite some of them when testing with obscure command lines.
3034
# This happens at least with the AIX C compiler.
3036
for i in 1 2 3 4 5 6; do
3037
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3038
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3039
# Solaris 8's {/usr,}/bin/sh.
3040
touch sub/conftst$i.h
3042
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3046
# after this tag, mechanisms are not by side-effect, so they'll
3047
# only be used when explicitly requested
3048
if test "x$enable_dependency_tracking" = xyes; then
3056
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3057
# mode. It turns out that the SunPro C++ compiler does not properly
3058
# handle `-M -o', and we need to detect this.
3059
if depmode=$depmode \
3060
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3061
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3062
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3063
>/dev/null 2>conftest.err &&
3064
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3065
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3066
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3067
# icc doesn't choke on unknown options, it will just issue warnings
3068
# or remarks (even with -Werror). So we grep stderr for any message
3069
# that says an option was ignored or not supported.
3070
# When given -MP, icc 7.0 and 7.1 complain thusly:
3071
# icc: Command line warning: ignoring option '-M'; no argument required
3072
# The diagnosis changed in icc 8.0:
3073
# icc: Command line remark: option '-MP' not supported
3074
if (grep 'ignoring option' conftest.err ||
3075
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3076
am_cv_CC_dependencies_compiler_type=$depmode
3085
am_cv_CC_dependencies_compiler_type=none
3089
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3090
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3091
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3096
test "x$enable_dependency_tracking" != xno \
3097
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3099
am__fastdepCC_FALSE='#'
3101
am__fastdepCC_TRUE='#'
3102
am__fastdepCC_FALSE=
3106
# Check whether --enable-shared or --disable-shared was given.
3107
if test "${enable_shared+set}" = set; then
3108
enableval="$enable_shared"
3109
p=${PACKAGE-default}
3111
yes) enable_shared=yes ;;
3112
no) enable_shared=no ;;
3115
# Look at the argument we got. We use all the common list separators.
3116
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3117
for pkg in $enableval; do
3119
if test "X$pkg" = "X$p"; then
3130
# Check whether --enable-static or --disable-static was given.
3131
if test "${enable_static+set}" = set; then
3132
enableval="$enable_static"
3133
p=${PACKAGE-default}
3135
yes) enable_static=yes ;;
3136
no) enable_static=no ;;
3139
# Look at the argument we got. We use all the common list separators.
3140
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3141
for pkg in $enableval; do
3143
if test "X$pkg" = "X$p"; then
3154
# Check whether --enable-fast-install or --disable-fast-install was given.
3155
if test "${enable_fast_install+set}" = set; then
3156
enableval="$enable_fast_install"
3157
p=${PACKAGE-default}
3159
yes) enable_fast_install=yes ;;
3160
no) enable_fast_install=no ;;
3162
enable_fast_install=no
3163
# Look at the argument we got. We use all the common list separators.
3164
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3165
for pkg in $enableval; do
3167
if test "X$pkg" = "X$p"; then
3168
enable_fast_install=yes
3175
enable_fast_install=yes
3178
# Make sure we can run config.sub.
3179
$ac_config_sub sun4 >/dev/null 2>&1 ||
3180
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3181
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3182
{ (exit 1); exit 1; }; }
3184
echo "$as_me:$LINENO: checking build system type" >&5
3185
echo $ECHO_N "checking build system type... $ECHO_C" >&6
3186
if test "${ac_cv_build+set}" = set; then
3187
echo $ECHO_N "(cached) $ECHO_C" >&6
3189
ac_cv_build_alias=$build_alias
3190
test -z "$ac_cv_build_alias" &&
3191
ac_cv_build_alias=`$ac_config_guess`
3192
test -z "$ac_cv_build_alias" &&
3193
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3194
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3195
{ (exit 1); exit 1; }; }
3196
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3197
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3198
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3199
{ (exit 1); exit 1; }; }
3202
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3203
echo "${ECHO_T}$ac_cv_build" >&6
3205
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3206
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3207
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3210
echo "$as_me:$LINENO: checking host system type" >&5
3211
echo $ECHO_N "checking host system type... $ECHO_C" >&6
3212
if test "${ac_cv_host+set}" = set; then
3213
echo $ECHO_N "(cached) $ECHO_C" >&6
3215
ac_cv_host_alias=$host_alias
3216
test -z "$ac_cv_host_alias" &&
3217
ac_cv_host_alias=$ac_cv_build_alias
3218
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3219
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3220
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3221
{ (exit 1); exit 1; }; }
3224
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3225
echo "${ECHO_T}$ac_cv_host" >&6
3227
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3228
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3229
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3232
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3233
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3234
if test "${lt_cv_path_SED+set}" = set; then
3235
echo $ECHO_N "(cached) $ECHO_C" >&6
3237
# Loop through the user's path and test for sed and gsed.
3238
# Then use that list of sed's as ones to test for truncation.
3239
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243
test -z "$as_dir" && as_dir=.
3244
for lt_ac_prog in sed gsed; do
3245
for ac_exec_ext in '' $ac_executable_extensions; do
3246
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3247
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3254
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3255
# along with /bin/sed that truncates output.
3256
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3257
test ! -f $lt_ac_sed && break
3258
cat /dev/null > conftest.in
3260
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3261
# Check for GNU sed and select it if it is found.
3262
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3263
lt_cv_path_SED=$lt_ac_sed
3267
cat conftest.in conftest.in >conftest.tmp
3268
mv conftest.tmp conftest.in
3269
cp conftest.in conftest.nl
3271
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3272
cmp -s conftest.out conftest.nl || break
3273
# 10000 chars as input seems more than enough
3274
test $lt_ac_count -gt 10 && break
3275
lt_ac_count=`expr $lt_ac_count + 1`
3276
if test $lt_ac_count -gt $lt_ac_max; then
3277
lt_ac_max=$lt_ac_count
3278
lt_cv_path_SED=$lt_ac_sed
3286
echo "$as_me:$LINENO: result: $SED" >&5
3287
echo "${ECHO_T}$SED" >&6
3289
echo "$as_me:$LINENO: checking for egrep" >&5
3290
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3291
if test "${ac_cv_prog_egrep+set}" = set; then
3292
echo $ECHO_N "(cached) $ECHO_C" >&6
3294
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3295
then ac_cv_prog_egrep='grep -E'
3296
else ac_cv_prog_egrep='egrep'
3299
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3300
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3301
EGREP=$ac_cv_prog_egrep
3305
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3306
if test "${with_gnu_ld+set}" = set; then
3307
withval="$with_gnu_ld"
3308
test "$withval" = no || with_gnu_ld=yes
3313
if test "$GCC" = yes; then
3314
# Check if gcc -print-prog-name=ld gives a path.
3315
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3316
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3319
# gcc leaves a trailing carriage return which upsets mingw
3320
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3322
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3325
# Accept absolute paths.
3327
re_direlt='/[^/][^/]*/\.\./'
3328
# Canonicalize the pathname of ld
3329
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3330
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3331
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3333
test -z "$LD" && LD="$ac_prog"
3336
# If it fails, then pretend we aren't using GCC.
3340
# If it is relative, then search for the first ld in PATH.
3344
elif test "$with_gnu_ld" = yes; then
3345
echo "$as_me:$LINENO: checking for GNU ld" >&5
3346
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3348
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3349
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3351
if test "${lt_cv_path_LD+set}" = set; then
3352
echo $ECHO_N "(cached) $ECHO_C" >&6
3354
if test -z "$LD"; then
3355
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3356
for ac_dir in $PATH; do
3358
test -z "$ac_dir" && ac_dir=.
3359
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3360
lt_cv_path_LD="$ac_dir/$ac_prog"
3361
# Check to see if the program is GNU ld. I'd rather use --version,
3362
# but apparently some GNU ld's only accept -v.
3363
# Break only if it was the GNU/non-GNU ld that we prefer.
3364
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3365
*GNU* | *'with BFD'*)
3366
test "$with_gnu_ld" != no && break
3369
test "$with_gnu_ld" != yes && break
3376
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3381
if test -n "$LD"; then
3382
echo "$as_me:$LINENO: result: $LD" >&5
3383
echo "${ECHO_T}$LD" >&6
3385
echo "$as_me:$LINENO: result: no" >&5
3386
echo "${ECHO_T}no" >&6
3388
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3389
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3390
{ (exit 1); exit 1; }; }
3391
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3392
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3393
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3394
echo $ECHO_N "(cached) $ECHO_C" >&6
3396
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3397
case `$LD -v 2>&1 </dev/null` in
3398
*GNU* | *'with BFD'*)
3399
lt_cv_prog_gnu_ld=yes
3402
lt_cv_prog_gnu_ld=no
3406
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3407
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3408
with_gnu_ld=$lt_cv_prog_gnu_ld
3411
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3412
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3413
if test "${lt_cv_ld_reload_flag+set}" = set; then
3414
echo $ECHO_N "(cached) $ECHO_C" >&6
3416
lt_cv_ld_reload_flag='-r'
3418
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3419
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3420
reload_flag=$lt_cv_ld_reload_flag
3421
case $reload_flag in
3423
*) reload_flag=" $reload_flag" ;;
3425
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3427
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3428
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3429
if test "${lt_cv_path_NM+set}" = set; then
3430
echo $ECHO_N "(cached) $ECHO_C" >&6
3432
if test -n "$NM"; then
3433
# Let the user override the test.
3436
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3437
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3439
test -z "$ac_dir" && ac_dir=.
3440
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3441
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3442
# Check to see if the nm accepts a BSD-compat flag.
3443
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3444
# nm: unknown option "B" ignored
3445
# Tru64's nm complains that /dev/null is an invalid object file
3446
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3447
*/dev/null* | *'Invalid file or object type'*)
3448
lt_cv_path_NM="$tmp_nm -B"
3452
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3454
lt_cv_path_NM="$tmp_nm -p"
3458
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3459
continue # so that we can try to find one that supports BSD flags
3466
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3469
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3470
echo "${ECHO_T}$lt_cv_path_NM" >&6
3473
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3474
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3476
if test "$LN_S" = "ln -s"; then
3477
echo "$as_me:$LINENO: result: yes" >&5
3478
echo "${ECHO_T}yes" >&6
3480
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3481
echo "${ECHO_T}no, using $LN_S" >&6
3484
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3485
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3486
if test "${lt_cv_deplibs_check_method+set}" = set; then
3487
echo $ECHO_N "(cached) $ECHO_C" >&6
3489
lt_cv_file_magic_cmd='$MAGIC_CMD'
3490
lt_cv_file_magic_test_file=
3491
lt_cv_deplibs_check_method='unknown'
3492
# Need to set the preceding variable on all platforms that support
3493
# interlibrary dependencies.
3494
# 'none' -- dependencies not supported.
3495
# `unknown' -- same as none, but documents that we really don't know.
3496
# 'pass_all' -- all dependencies passed with no checks.
3497
# 'test_compile' -- check by making test program.
3498
# 'file_magic [[regex]]' -- check by looking for files in library path
3499
# which responds to the $file_magic_cmd with a given extended regex.
3500
# If you have `file' or equivalent on your system and you're not sure
3501
# whether `pass_all' will *always* work, you probably want this one.
3505
lt_cv_deplibs_check_method=pass_all
3509
lt_cv_deplibs_check_method=pass_all
3513
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3514
lt_cv_file_magic_cmd='/usr/bin/file -L'
3515
lt_cv_file_magic_test_file=/shlib/libc.so
3519
# func_win32_libid is a shell function defined in ltmain.sh
3520
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3521
lt_cv_file_magic_cmd='func_win32_libid'
3525
# Base MSYS/MinGW do not provide the 'file' command needed by
3526
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
3527
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3528
lt_cv_file_magic_cmd='$OBJDUMP -f'
3531
darwin* | rhapsody*)
3532
lt_cv_deplibs_check_method=pass_all
3535
freebsd* | kfreebsd*-gnu)
3536
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3539
# Not sure whether the presence of OpenBSD here was a mistake.
3540
# Let's accept both of them until this is cleared up.
3541
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3542
lt_cv_file_magic_cmd=/usr/bin/file
3543
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3547
lt_cv_deplibs_check_method=pass_all
3552
lt_cv_deplibs_check_method=pass_all
3555
hpux10.20* | hpux11*)
3556
lt_cv_file_magic_cmd=/usr/bin/file
3559
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3560
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3563
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]'
3564
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3567
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3568
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3573
irix5* | irix6* | nonstopux*)
3575
*-32|*"-32 ") libmagic=32-bit;;
3576
*-n32|*"-n32 ") libmagic=N32;;
3577
*-64|*"-64 ") libmagic=64-bit;;
3578
*) libmagic=never-match;;
3580
lt_cv_deplibs_check_method=pass_all
3583
# This must be Linux ELF.
3585
lt_cv_deplibs_check_method=pass_all
3588
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3589
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3590
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3592
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3597
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3598
lt_cv_file_magic_cmd=/usr/bin/file
3599
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3603
lt_cv_deplibs_check_method=unknown
3607
lt_cv_file_magic_cmd=/usr/bin/file
3608
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3609
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3610
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3612
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3616
osf3* | osf4* | osf5*)
3617
lt_cv_deplibs_check_method=pass_all
3621
lt_cv_deplibs_check_method=pass_all
3625
lt_cv_deplibs_check_method=pass_all
3628
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3629
case $host_vendor in
3631
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]'
3632
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3635
lt_cv_deplibs_check_method=pass_all
3638
lt_cv_file_magic_cmd='/bin/file'
3639
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3642
lt_cv_file_magic_cmd='/bin/file'
3643
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3644
lt_cv_file_magic_test_file=/lib/libc.so
3647
lt_cv_deplibs_check_method=pass_all
3652
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3653
lt_cv_deplibs_check_method=pass_all
3658
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3659
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3660
file_magic_cmd=$lt_cv_file_magic_cmd
3661
deplibs_check_method=$lt_cv_deplibs_check_method
3662
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3667
# If no C compiler was specified, use CC.
3670
# Allow CC to be a program name with arguments.
3674
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3675
if test "${enable_libtool_lock+set}" = set; then
3676
enableval="$enable_libtool_lock"
3679
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3681
# Some flags need to be propagated to the compiler or linker for good
3685
# Find out which ABI we are using.
3686
echo 'int i;' > conftest.$ac_ext
3687
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3688
(eval $ac_compile) 2>&5
3690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691
(exit $ac_status); }; then
3692
case `/usr/bin/file conftest.$ac_objext` in
3704
# Find out which ABI we are using.
3705
echo '#line 3705 "configure"' > conftest.$ac_ext
3706
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3707
(eval $ac_compile) 2>&5
3709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710
(exit $ac_status); }; then
3711
if test "$lt_cv_prog_gnu_ld" = yes; then
3712
case `/usr/bin/file conftest.$ac_objext` in
3714
LD="${LD-ld} -melf32bsmip"
3717
LD="${LD-ld} -melf32bmipn32"
3720
LD="${LD-ld} -melf64bmip"
3724
case `/usr/bin/file conftest.$ac_objext` in
3740
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3741
# Find out which ABI we are using.
3742
echo 'int i;' > conftest.$ac_ext
3743
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3744
(eval $ac_compile) 2>&5
3746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747
(exit $ac_status); }; then
3748
case "`/usr/bin/file conftest.o`" in
3752
LD="${LD-ld} -m elf_i386"
3754
ppc64-*linux*|powerpc64-*linux*)
3755
LD="${LD-ld} -m elf32ppclinux"
3758
LD="${LD-ld} -m elf_s390"
3761
LD="${LD-ld} -m elf32_sparc"
3768
LD="${LD-ld} -m elf_x86_64"
3770
ppc*-*linux*|powerpc*-*linux*)
3771
LD="${LD-ld} -m elf64ppc"
3774
LD="${LD-ld} -m elf64_s390"
3777
LD="${LD-ld} -m elf64_sparc"
3787
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
3788
SAVE_CFLAGS="$CFLAGS"
3789
CFLAGS="$CFLAGS -belf"
3790
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3791
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3792
if test "${lt_cv_cc_needs_belf+set}" = set; then
3793
echo $ECHO_N "(cached) $ECHO_C" >&6
3796
ac_cpp='$CPP $CPPFLAGS'
3797
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3801
cat >conftest.$ac_ext <<_ACEOF
3804
cat confdefs.h >>conftest.$ac_ext
3805
cat >>conftest.$ac_ext <<_ACEOF
3806
/* end confdefs.h. */
3816
rm -f conftest.$ac_objext conftest$ac_exeext
3817
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3818
(eval $ac_link) 2>conftest.er1
3820
grep -v '^ *+' conftest.er1 >conftest.err
3822
cat conftest.err >&5
3823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824
(exit $ac_status); } &&
3825
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3826
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830
(exit $ac_status); }; } &&
3831
{ ac_try='test -s conftest$ac_exeext'
3832
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836
(exit $ac_status); }; }; then
3837
lt_cv_cc_needs_belf=yes
3839
echo "$as_me: failed program was:" >&5
3840
sed 's/^/| /' conftest.$ac_ext >&5
3842
lt_cv_cc_needs_belf=no
3844
rm -f conftest.err conftest.$ac_objext \
3845
conftest$ac_exeext conftest.$ac_ext
3847
ac_cpp='$CPP $CPPFLAGS'
3848
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3854
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3855
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3856
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3857
CFLAGS="$SAVE_CFLAGS"
3863
need_locks="$enable_libtool_lock"
3867
ac_cpp='$CPP $CPPFLAGS'
3868
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3869
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3870
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3871
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3872
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3873
# On Suns, sometimes $CPP names a directory.
3874
if test -n "$CPP" && test -d "$CPP"; then
3877
if test -z "$CPP"; then
3878
if test "${ac_cv_prog_CPP+set}" = set; then
3879
echo $ECHO_N "(cached) $ECHO_C" >&6
3881
# Double quotes because CPP needs to be expanded
3882
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3885
for ac_c_preproc_warn_flag in '' yes
3887
# Use a header file that comes with gcc, so configuring glibc
3888
# with a fresh cross-compiler works.
3889
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3890
# <limits.h> exists even on freestanding compilers.
3891
# On the NeXT, cc -E runs the code through the compiler's parser,
3892
# not just through cpp. "Syntax error" is here to catch this case.
3893
cat >conftest.$ac_ext <<_ACEOF
3896
cat confdefs.h >>conftest.$ac_ext
3897
cat >>conftest.$ac_ext <<_ACEOF
3898
/* end confdefs.h. */
3900
# include <limits.h>
3902
# include <assert.h>
3906
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3907
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3909
grep -v '^ *+' conftest.er1 >conftest.err
3911
cat conftest.err >&5
3912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913
(exit $ac_status); } >/dev/null; then
3914
if test -s conftest.err; then
3915
ac_cpp_err=$ac_c_preproc_warn_flag
3916
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3923
if test -z "$ac_cpp_err"; then
3926
echo "$as_me: failed program was:" >&5
3927
sed 's/^/| /' conftest.$ac_ext >&5
3929
# Broken: fails on valid input.
3932
rm -f conftest.err conftest.$ac_ext
3934
# OK, works on sane cases. Now check whether non-existent headers
3935
# can be detected and how.
3936
cat >conftest.$ac_ext <<_ACEOF
3939
cat confdefs.h >>conftest.$ac_ext
3940
cat >>conftest.$ac_ext <<_ACEOF
3941
/* end confdefs.h. */
3942
#include <ac_nonexistent.h>
3944
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3945
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3947
grep -v '^ *+' conftest.er1 >conftest.err
3949
cat conftest.err >&5
3950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951
(exit $ac_status); } >/dev/null; then
3952
if test -s conftest.err; then
3953
ac_cpp_err=$ac_c_preproc_warn_flag
3954
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3961
if test -z "$ac_cpp_err"; then
3962
# Broken: success on invalid input.
3965
echo "$as_me: failed program was:" >&5
3966
sed 's/^/| /' conftest.$ac_ext >&5
3968
# Passes both tests.
3972
rm -f conftest.err conftest.$ac_ext
3975
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3976
rm -f conftest.err conftest.$ac_ext
3977
if $ac_preproc_ok; then
3989
echo "$as_me:$LINENO: result: $CPP" >&5
3990
echo "${ECHO_T}$CPP" >&6
3992
for ac_c_preproc_warn_flag in '' yes
3994
# Use a header file that comes with gcc, so configuring glibc
3995
# with a fresh cross-compiler works.
3996
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3997
# <limits.h> exists even on freestanding compilers.
3998
# On the NeXT, cc -E runs the code through the compiler's parser,
3999
# not just through cpp. "Syntax error" is here to catch this case.
4000
cat >conftest.$ac_ext <<_ACEOF
4003
cat confdefs.h >>conftest.$ac_ext
4004
cat >>conftest.$ac_ext <<_ACEOF
4005
/* end confdefs.h. */
4007
# include <limits.h>
4009
# include <assert.h>
4013
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4014
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4016
grep -v '^ *+' conftest.er1 >conftest.err
4018
cat conftest.err >&5
4019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020
(exit $ac_status); } >/dev/null; then
4021
if test -s conftest.err; then
4022
ac_cpp_err=$ac_c_preproc_warn_flag
4023
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4030
if test -z "$ac_cpp_err"; then
4033
echo "$as_me: failed program was:" >&5
4034
sed 's/^/| /' conftest.$ac_ext >&5
4036
# Broken: fails on valid input.
4039
rm -f conftest.err conftest.$ac_ext
4041
# OK, works on sane cases. Now check whether non-existent headers
4042
# can be detected and how.
4043
cat >conftest.$ac_ext <<_ACEOF
4046
cat confdefs.h >>conftest.$ac_ext
4047
cat >>conftest.$ac_ext <<_ACEOF
4048
/* end confdefs.h. */
4049
#include <ac_nonexistent.h>
4051
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4052
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4054
grep -v '^ *+' conftest.er1 >conftest.err
4056
cat conftest.err >&5
4057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058
(exit $ac_status); } >/dev/null; then
4059
if test -s conftest.err; then
4060
ac_cpp_err=$ac_c_preproc_warn_flag
4061
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4068
if test -z "$ac_cpp_err"; then
4069
# Broken: success on invalid input.
4072
echo "$as_me: failed program was:" >&5
4073
sed 's/^/| /' conftest.$ac_ext >&5
4075
# Passes both tests.
4079
rm -f conftest.err conftest.$ac_ext
4082
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4083
rm -f conftest.err conftest.$ac_ext
4084
if $ac_preproc_ok; then
4087
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4088
See \`config.log' for more details." >&5
4089
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4090
See \`config.log' for more details." >&2;}
4091
{ (exit 1); exit 1; }; }
4095
ac_cpp='$CPP $CPPFLAGS'
4096
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4097
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4098
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4102
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4103
if test "${ac_cv_header_stdc+set}" = set; then
4104
echo $ECHO_N "(cached) $ECHO_C" >&6
4106
cat >conftest.$ac_ext <<_ACEOF
4109
cat confdefs.h >>conftest.$ac_ext
4110
cat >>conftest.$ac_ext <<_ACEOF
4111
/* end confdefs.h. */
4125
rm -f conftest.$ac_objext
4126
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4127
(eval $ac_compile) 2>conftest.er1
4129
grep -v '^ *+' conftest.er1 >conftest.err
4131
cat conftest.err >&5
4132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133
(exit $ac_status); } &&
4134
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4135
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139
(exit $ac_status); }; } &&
4140
{ ac_try='test -s conftest.$ac_objext'
4141
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145
(exit $ac_status); }; }; then
4146
ac_cv_header_stdc=yes
4148
echo "$as_me: failed program was:" >&5
4149
sed 's/^/| /' conftest.$ac_ext >&5
4151
ac_cv_header_stdc=no
4153
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4155
if test $ac_cv_header_stdc = yes; then
4156
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4157
cat >conftest.$ac_ext <<_ACEOF
4160
cat confdefs.h >>conftest.$ac_ext
4161
cat >>conftest.$ac_ext <<_ACEOF
4162
/* end confdefs.h. */
4166
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4167
$EGREP "memchr" >/dev/null 2>&1; then
4170
ac_cv_header_stdc=no
4176
if test $ac_cv_header_stdc = yes; then
4177
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4178
cat >conftest.$ac_ext <<_ACEOF
4181
cat confdefs.h >>conftest.$ac_ext
4182
cat >>conftest.$ac_ext <<_ACEOF
4183
/* end confdefs.h. */
4187
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4188
$EGREP "free" >/dev/null 2>&1; then
4191
ac_cv_header_stdc=no
4197
if test $ac_cv_header_stdc = yes; then
4198
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4199
if test "$cross_compiling" = yes; then
4202
cat >conftest.$ac_ext <<_ACEOF
4205
cat confdefs.h >>conftest.$ac_ext
4206
cat >>conftest.$ac_ext <<_ACEOF
4207
/* end confdefs.h. */
4209
#if ((' ' & 0x0FF) == 0x020)
4210
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4211
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4213
# define ISLOWER(c) \
4214
(('a' <= (c) && (c) <= 'i') \
4215
|| ('j' <= (c) && (c) <= 'r') \
4216
|| ('s' <= (c) && (c) <= 'z'))
4217
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4220
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4225
for (i = 0; i < 256; i++)
4226
if (XOR (islower (i), ISLOWER (i))
4227
|| toupper (i) != TOUPPER (i))
4232
rm -f conftest$ac_exeext
4233
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4234
(eval $ac_link) 2>&5
4236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4238
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242
(exit $ac_status); }; }; then
4245
echo "$as_me: program exited with status $ac_status" >&5
4246
echo "$as_me: failed program was:" >&5
4247
sed 's/^/| /' conftest.$ac_ext >&5
4250
ac_cv_header_stdc=no
4252
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4256
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4257
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4258
if test $ac_cv_header_stdc = yes; then
4260
cat >>confdefs.h <<\_ACEOF
4261
#define STDC_HEADERS 1
4266
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4276
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4277
inttypes.h stdint.h unistd.h
4279
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4280
echo "$as_me:$LINENO: checking for $ac_header" >&5
4281
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4282
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4283
echo $ECHO_N "(cached) $ECHO_C" >&6
4285
cat >conftest.$ac_ext <<_ACEOF
4288
cat confdefs.h >>conftest.$ac_ext
4289
cat >>conftest.$ac_ext <<_ACEOF
4290
/* end confdefs.h. */
4291
$ac_includes_default
4293
#include <$ac_header>
4295
rm -f conftest.$ac_objext
4296
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4297
(eval $ac_compile) 2>conftest.er1
4299
grep -v '^ *+' conftest.er1 >conftest.err
4301
cat conftest.err >&5
4302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303
(exit $ac_status); } &&
4304
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4305
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309
(exit $ac_status); }; } &&
4310
{ ac_try='test -s conftest.$ac_objext'
4311
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315
(exit $ac_status); }; }; then
4316
eval "$as_ac_Header=yes"
4318
echo "$as_me: failed program was:" >&5
4319
sed 's/^/| /' conftest.$ac_ext >&5
4321
eval "$as_ac_Header=no"
4323
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4325
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4326
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4327
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4328
cat >>confdefs.h <<_ACEOF
4329
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4338
for ac_header in dlfcn.h
4340
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4341
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4342
echo "$as_me:$LINENO: checking for $ac_header" >&5
4343
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4344
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4345
echo $ECHO_N "(cached) $ECHO_C" >&6
4347
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4348
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4350
# Is the header compilable?
4351
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4352
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4353
cat >conftest.$ac_ext <<_ACEOF
4356
cat confdefs.h >>conftest.$ac_ext
4357
cat >>conftest.$ac_ext <<_ACEOF
4358
/* end confdefs.h. */
4359
$ac_includes_default
4360
#include <$ac_header>
4362
rm -f conftest.$ac_objext
4363
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364
(eval $ac_compile) 2>conftest.er1
4366
grep -v '^ *+' conftest.er1 >conftest.err
4368
cat conftest.err >&5
4369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370
(exit $ac_status); } &&
4371
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4372
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376
(exit $ac_status); }; } &&
4377
{ ac_try='test -s conftest.$ac_objext'
4378
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382
(exit $ac_status); }; }; then
4383
ac_header_compiler=yes
4385
echo "$as_me: failed program was:" >&5
4386
sed 's/^/| /' conftest.$ac_ext >&5
4388
ac_header_compiler=no
4390
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4391
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4392
echo "${ECHO_T}$ac_header_compiler" >&6
4394
# Is the header present?
4395
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4396
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4397
cat >conftest.$ac_ext <<_ACEOF
4400
cat confdefs.h >>conftest.$ac_ext
4401
cat >>conftest.$ac_ext <<_ACEOF
4402
/* end confdefs.h. */
4403
#include <$ac_header>
4405
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4406
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4408
grep -v '^ *+' conftest.er1 >conftest.err
4410
cat conftest.err >&5
4411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412
(exit $ac_status); } >/dev/null; then
4413
if test -s conftest.err; then
4414
ac_cpp_err=$ac_c_preproc_warn_flag
4415
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4422
if test -z "$ac_cpp_err"; then
4423
ac_header_preproc=yes
4425
echo "$as_me: failed program was:" >&5
4426
sed 's/^/| /' conftest.$ac_ext >&5
4428
ac_header_preproc=no
4430
rm -f conftest.err conftest.$ac_ext
4431
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4432
echo "${ECHO_T}$ac_header_preproc" >&6
4434
# So? What about this header?
4435
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4437
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4438
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4439
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4440
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4441
ac_header_preproc=yes
4444
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4445
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4446
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4447
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4448
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4449
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4450
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4451
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4452
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4453
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4454
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4455
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4458
## -------------------------------- ##
4459
## Report this to keithp@keithp.com ##
4460
## -------------------------------- ##
4463
sed "s/^/$as_me: WARNING: /" >&2
4466
echo "$as_me:$LINENO: checking for $ac_header" >&5
4467
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4468
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4469
echo $ECHO_N "(cached) $ECHO_C" >&6
4471
eval "$as_ac_Header=\$ac_header_preproc"
4473
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4474
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4477
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4478
cat >>confdefs.h <<_ACEOF
4479
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4487
ac_cpp='$CXXCPP $CPPFLAGS'
4488
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4489
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4490
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4491
if test -n "$ac_tool_prefix"; then
4492
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4494
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4495
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4496
echo "$as_me:$LINENO: checking for $ac_word" >&5
4497
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4498
if test "${ac_cv_prog_CXX+set}" = set; then
4499
echo $ECHO_N "(cached) $ECHO_C" >&6
4501
if test -n "$CXX"; then
4502
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4504
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508
test -z "$as_dir" && as_dir=.
4509
for ac_exec_ext in '' $ac_executable_extensions; do
4510
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4511
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4512
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521
if test -n "$CXX"; then
4522
echo "$as_me:$LINENO: result: $CXX" >&5
4523
echo "${ECHO_T}$CXX" >&6
4525
echo "$as_me:$LINENO: result: no" >&5
4526
echo "${ECHO_T}no" >&6
4529
test -n "$CXX" && break
4532
if test -z "$CXX"; then
4534
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4536
# Extract the first word of "$ac_prog", so it can be a program name with args.
4537
set dummy $ac_prog; ac_word=$2
4538
echo "$as_me:$LINENO: checking for $ac_word" >&5
4539
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4540
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4541
echo $ECHO_N "(cached) $ECHO_C" >&6
4543
if test -n "$ac_ct_CXX"; then
4544
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4546
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550
test -z "$as_dir" && as_dir=.
4551
for ac_exec_ext in '' $ac_executable_extensions; do
4552
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4553
ac_cv_prog_ac_ct_CXX="$ac_prog"
4554
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4562
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4563
if test -n "$ac_ct_CXX"; then
4564
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4565
echo "${ECHO_T}$ac_ct_CXX" >&6
4567
echo "$as_me:$LINENO: result: no" >&5
4568
echo "${ECHO_T}no" >&6
4571
test -n "$ac_ct_CXX" && break
4573
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4579
# Provide some information about the compiler.
4580
echo "$as_me:$LINENO:" \
4581
"checking for C++ compiler version" >&5
4582
ac_compiler=`set X $ac_compile; echo $2`
4583
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4584
(eval $ac_compiler --version </dev/null >&5) 2>&5
4586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587
(exit $ac_status); }
4588
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4589
(eval $ac_compiler -v </dev/null >&5) 2>&5
4591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592
(exit $ac_status); }
4593
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4594
(eval $ac_compiler -V </dev/null >&5) 2>&5
4596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597
(exit $ac_status); }
4599
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4600
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4601
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4602
echo $ECHO_N "(cached) $ECHO_C" >&6
4604
cat >conftest.$ac_ext <<_ACEOF
4607
cat confdefs.h >>conftest.$ac_ext
4608
cat >>conftest.$ac_ext <<_ACEOF
4609
/* end confdefs.h. */
4622
rm -f conftest.$ac_objext
4623
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4624
(eval $ac_compile) 2>conftest.er1
4626
grep -v '^ *+' conftest.er1 >conftest.err
4628
cat conftest.err >&5
4629
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630
(exit $ac_status); } &&
4631
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4632
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636
(exit $ac_status); }; } &&
4637
{ ac_try='test -s conftest.$ac_objext'
4638
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642
(exit $ac_status); }; }; then
4645
echo "$as_me: failed program was:" >&5
4646
sed 's/^/| /' conftest.$ac_ext >&5
4650
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4651
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4654
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4655
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4656
GXX=`test $ac_compiler_gnu = yes && echo yes`
4657
ac_test_CXXFLAGS=${CXXFLAGS+set}
4658
ac_save_CXXFLAGS=$CXXFLAGS
4660
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4661
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4662
if test "${ac_cv_prog_cxx_g+set}" = set; then
4663
echo $ECHO_N "(cached) $ECHO_C" >&6
4665
cat >conftest.$ac_ext <<_ACEOF
4668
cat confdefs.h >>conftest.$ac_ext
4669
cat >>conftest.$ac_ext <<_ACEOF
4670
/* end confdefs.h. */
4680
rm -f conftest.$ac_objext
4681
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4682
(eval $ac_compile) 2>conftest.er1
4684
grep -v '^ *+' conftest.er1 >conftest.err
4686
cat conftest.err >&5
4687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688
(exit $ac_status); } &&
4689
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4690
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694
(exit $ac_status); }; } &&
4695
{ ac_try='test -s conftest.$ac_objext'
4696
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700
(exit $ac_status); }; }; then
4701
ac_cv_prog_cxx_g=yes
4703
echo "$as_me: failed program was:" >&5
4704
sed 's/^/| /' conftest.$ac_ext >&5
4708
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4710
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4711
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4712
if test "$ac_test_CXXFLAGS" = set; then
4713
CXXFLAGS=$ac_save_CXXFLAGS
4714
elif test $ac_cv_prog_cxx_g = yes; then
4715
if test "$GXX" = yes; then
4721
if test "$GXX" = yes; then
4727
for ac_declaration in \
4729
'extern "C" void std::exit (int) throw (); using std::exit;' \
4730
'extern "C" void std::exit (int); using std::exit;' \
4731
'extern "C" void exit (int) throw ();' \
4732
'extern "C" void exit (int);' \
4735
cat >conftest.$ac_ext <<_ACEOF
4738
cat confdefs.h >>conftest.$ac_ext
4739
cat >>conftest.$ac_ext <<_ACEOF
4740
/* end confdefs.h. */
4751
rm -f conftest.$ac_objext
4752
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753
(eval $ac_compile) 2>conftest.er1
4755
grep -v '^ *+' conftest.er1 >conftest.err
4757
cat conftest.err >&5
4758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759
(exit $ac_status); } &&
4760
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4761
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765
(exit $ac_status); }; } &&
4766
{ ac_try='test -s conftest.$ac_objext'
4767
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771
(exit $ac_status); }; }; then
4774
echo "$as_me: failed program was:" >&5
4775
sed 's/^/| /' conftest.$ac_ext >&5
4779
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4780
cat >conftest.$ac_ext <<_ACEOF
4783
cat confdefs.h >>conftest.$ac_ext
4784
cat >>conftest.$ac_ext <<_ACEOF
4785
/* end confdefs.h. */
4795
rm -f conftest.$ac_objext
4796
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4797
(eval $ac_compile) 2>conftest.er1
4799
grep -v '^ *+' conftest.er1 >conftest.err
4801
cat conftest.err >&5
4802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803
(exit $ac_status); } &&
4804
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4805
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809
(exit $ac_status); }; } &&
4810
{ ac_try='test -s conftest.$ac_objext'
4811
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815
(exit $ac_status); }; }; then
4818
echo "$as_me: failed program was:" >&5
4819
sed 's/^/| /' conftest.$ac_ext >&5
4822
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4825
if test -n "$ac_declaration"; then
4826
echo '#ifdef __cplusplus' >>confdefs.h
4827
echo $ac_declaration >>confdefs.h
4828
echo '#endif' >>confdefs.h
4832
ac_cpp='$CXXCPP $CPPFLAGS'
4833
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4834
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4835
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4837
depcc="$CXX" am_compiler_list=
4839
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4840
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4841
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4842
echo $ECHO_N "(cached) $ECHO_C" >&6
4844
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4845
# We make a subdir and do the tests there. Otherwise we can end up
4846
# making bogus files that we don't know about and never remove. For
4847
# instance it was reported that on HP-UX the gcc test will end up
4848
# making a dummy file named `D' -- because `-MD' means `put the output
4851
# Copy depcomp to subdir because otherwise we won't find it if we're
4852
# using a relative directory.
4853
cp "$am_depcomp" conftest.dir
4855
# We will build objects and dependencies in a subdirectory because
4856
# it helps to detect inapplicable dependency modes. For instance
4857
# both Tru64's cc and ICC support -MD to output dependencies as a
4858
# side effect of compilation, but ICC will put the dependencies in
4859
# the current directory while Tru64 will put them in the object
4863
am_cv_CXX_dependencies_compiler_type=none
4864
if test "$am_compiler_list" = ""; then
4865
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4867
for depmode in $am_compiler_list; do
4868
# Setup a source with many dependencies, because some compilers
4869
# like to wrap large dependency lists on column 80 (with \), and
4870
# we should not choose a depcomp mode which is confused by this.
4872
# We need to recreate these files for each test, as the compiler may
4873
# overwrite some of them when testing with obscure command lines.
4874
# This happens at least with the AIX C compiler.
4876
for i in 1 2 3 4 5 6; do
4877
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4878
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4879
# Solaris 8's {/usr,}/bin/sh.
4880
touch sub/conftst$i.h
4882
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4886
# after this tag, mechanisms are not by side-effect, so they'll
4887
# only be used when explicitly requested
4888
if test "x$enable_dependency_tracking" = xyes; then
4896
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4897
# mode. It turns out that the SunPro C++ compiler does not properly
4898
# handle `-M -o', and we need to detect this.
4899
if depmode=$depmode \
4900
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4901
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4902
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4903
>/dev/null 2>conftest.err &&
4904
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4905
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4906
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4907
# icc doesn't choke on unknown options, it will just issue warnings
4908
# or remarks (even with -Werror). So we grep stderr for any message
4909
# that says an option was ignored or not supported.
4910
# When given -MP, icc 7.0 and 7.1 complain thusly:
4911
# icc: Command line warning: ignoring option '-M'; no argument required
4912
# The diagnosis changed in icc 8.0:
4913
# icc: Command line remark: option '-MP' not supported
4914
if (grep 'ignoring option' conftest.err ||
4915
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4916
am_cv_CXX_dependencies_compiler_type=$depmode
4925
am_cv_CXX_dependencies_compiler_type=none
4929
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4930
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4931
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4936
test "x$enable_dependency_tracking" != xno \
4937
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4938
am__fastdepCXX_TRUE=
4939
am__fastdepCXX_FALSE='#'
4941
am__fastdepCXX_TRUE='#'
4942
am__fastdepCXX_FALSE=
4947
ac_cpp='$CXXCPP $CPPFLAGS'
4948
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4949
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4950
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4951
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4952
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4953
if test -z "$CXXCPP"; then
4954
if test "${ac_cv_prog_CXXCPP+set}" = set; then
4955
echo $ECHO_N "(cached) $ECHO_C" >&6
4957
# Double quotes because CXXCPP needs to be expanded
4958
for CXXCPP in "$CXX -E" "/lib/cpp"
4961
for ac_cxx_preproc_warn_flag in '' yes
4963
# Use a header file that comes with gcc, so configuring glibc
4964
# with a fresh cross-compiler works.
4965
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4966
# <limits.h> exists even on freestanding compilers.
4967
# On the NeXT, cc -E runs the code through the compiler's parser,
4968
# not just through cpp. "Syntax error" is here to catch this case.
4969
cat >conftest.$ac_ext <<_ACEOF
4972
cat confdefs.h >>conftest.$ac_ext
4973
cat >>conftest.$ac_ext <<_ACEOF
4974
/* end confdefs.h. */
4976
# include <limits.h>
4978
# include <assert.h>
4982
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4983
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4985
grep -v '^ *+' conftest.er1 >conftest.err
4987
cat conftest.err >&5
4988
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989
(exit $ac_status); } >/dev/null; then
4990
if test -s conftest.err; then
4991
ac_cpp_err=$ac_cxx_preproc_warn_flag
4992
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4999
if test -z "$ac_cpp_err"; then
5002
echo "$as_me: failed program was:" >&5
5003
sed 's/^/| /' conftest.$ac_ext >&5
5005
# Broken: fails on valid input.
5008
rm -f conftest.err conftest.$ac_ext
5010
# OK, works on sane cases. Now check whether non-existent headers
5011
# can be detected and how.
5012
cat >conftest.$ac_ext <<_ACEOF
5015
cat confdefs.h >>conftest.$ac_ext
5016
cat >>conftest.$ac_ext <<_ACEOF
5017
/* end confdefs.h. */
5018
#include <ac_nonexistent.h>
5020
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5021
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5023
grep -v '^ *+' conftest.er1 >conftest.err
5025
cat conftest.err >&5
5026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027
(exit $ac_status); } >/dev/null; then
5028
if test -s conftest.err; then
5029
ac_cpp_err=$ac_cxx_preproc_warn_flag
5030
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5037
if test -z "$ac_cpp_err"; then
5038
# Broken: success on invalid input.
5041
echo "$as_me: failed program was:" >&5
5042
sed 's/^/| /' conftest.$ac_ext >&5
5044
# Passes both tests.
5048
rm -f conftest.err conftest.$ac_ext
5051
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5052
rm -f conftest.err conftest.$ac_ext
5053
if $ac_preproc_ok; then
5058
ac_cv_prog_CXXCPP=$CXXCPP
5061
CXXCPP=$ac_cv_prog_CXXCPP
5063
ac_cv_prog_CXXCPP=$CXXCPP
5065
echo "$as_me:$LINENO: result: $CXXCPP" >&5
5066
echo "${ECHO_T}$CXXCPP" >&6
5068
for ac_cxx_preproc_warn_flag in '' yes
5070
# Use a header file that comes with gcc, so configuring glibc
5071
# with a fresh cross-compiler works.
5072
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5073
# <limits.h> exists even on freestanding compilers.
5074
# On the NeXT, cc -E runs the code through the compiler's parser,
5075
# not just through cpp. "Syntax error" is here to catch this case.
5076
cat >conftest.$ac_ext <<_ACEOF
5079
cat confdefs.h >>conftest.$ac_ext
5080
cat >>conftest.$ac_ext <<_ACEOF
5081
/* end confdefs.h. */
5083
# include <limits.h>
5085
# include <assert.h>
5089
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5090
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5092
grep -v '^ *+' conftest.er1 >conftest.err
5094
cat conftest.err >&5
5095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096
(exit $ac_status); } >/dev/null; then
5097
if test -s conftest.err; then
5098
ac_cpp_err=$ac_cxx_preproc_warn_flag
5099
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5106
if test -z "$ac_cpp_err"; then
5109
echo "$as_me: failed program was:" >&5
5110
sed 's/^/| /' conftest.$ac_ext >&5
5112
# Broken: fails on valid input.
5115
rm -f conftest.err conftest.$ac_ext
5117
# OK, works on sane cases. Now check whether non-existent headers
5118
# can be detected and how.
5119
cat >conftest.$ac_ext <<_ACEOF
5122
cat confdefs.h >>conftest.$ac_ext
5123
cat >>conftest.$ac_ext <<_ACEOF
5124
/* end confdefs.h. */
5125
#include <ac_nonexistent.h>
5127
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5128
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5130
grep -v '^ *+' conftest.er1 >conftest.err
5132
cat conftest.err >&5
5133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134
(exit $ac_status); } >/dev/null; then
5135
if test -s conftest.err; then
5136
ac_cpp_err=$ac_cxx_preproc_warn_flag
5137
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5144
if test -z "$ac_cpp_err"; then
5145
# Broken: success on invalid input.
5148
echo "$as_me: failed program was:" >&5
5149
sed 's/^/| /' conftest.$ac_ext >&5
5151
# Passes both tests.
5155
rm -f conftest.err conftest.$ac_ext
5158
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5159
rm -f conftest.err conftest.$ac_ext
5160
if $ac_preproc_ok; then
5163
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5164
See \`config.log' for more details." >&5
5165
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5166
See \`config.log' for more details." >&2;}
5167
{ (exit 1); exit 1; }; }
5171
ac_cpp='$CXXCPP $CPPFLAGS'
5172
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5173
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5174
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5178
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5179
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5180
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5181
if test -n "$ac_tool_prefix"; then
5182
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5184
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5185
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5186
echo "$as_me:$LINENO: checking for $ac_word" >&5
5187
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5188
if test "${ac_cv_prog_F77+set}" = set; then
5189
echo $ECHO_N "(cached) $ECHO_C" >&6
5191
if test -n "$F77"; then
5192
ac_cv_prog_F77="$F77" # Let the user override the test.
5194
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198
test -z "$as_dir" && as_dir=.
5199
for ac_exec_ext in '' $ac_executable_extensions; do
5200
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5202
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211
if test -n "$F77"; then
5212
echo "$as_me:$LINENO: result: $F77" >&5
5213
echo "${ECHO_T}$F77" >&6
5215
echo "$as_me:$LINENO: result: no" >&5
5216
echo "${ECHO_T}no" >&6
5219
test -n "$F77" && break
5222
if test -z "$F77"; then
5224
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5226
# Extract the first word of "$ac_prog", so it can be a program name with args.
5227
set dummy $ac_prog; ac_word=$2
5228
echo "$as_me:$LINENO: checking for $ac_word" >&5
5229
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5230
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5231
echo $ECHO_N "(cached) $ECHO_C" >&6
5233
if test -n "$ac_ct_F77"; then
5234
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5236
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240
test -z "$as_dir" && as_dir=.
5241
for ac_exec_ext in '' $ac_executable_extensions; do
5242
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243
ac_cv_prog_ac_ct_F77="$ac_prog"
5244
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5253
if test -n "$ac_ct_F77"; then
5254
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5255
echo "${ECHO_T}$ac_ct_F77" >&6
5257
echo "$as_me:$LINENO: result: no" >&5
5258
echo "${ECHO_T}no" >&6
5261
test -n "$ac_ct_F77" && break
5268
# Provide some information about the compiler.
5269
echo "$as_me:5269:" \
5270
"checking for Fortran 77 compiler version" >&5
5271
ac_compiler=`set X $ac_compile; echo $2`
5272
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5273
(eval $ac_compiler --version </dev/null >&5) 2>&5
5275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276
(exit $ac_status); }
5277
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5278
(eval $ac_compiler -v </dev/null >&5) 2>&5
5280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281
(exit $ac_status); }
5282
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5283
(eval $ac_compiler -V </dev/null >&5) 2>&5
5285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286
(exit $ac_status); }
5289
# If we don't use `.F' as extension, the preprocessor is not run on the
5290
# input file. (Note that this only needs to work for GNU compilers.)
5293
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5294
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5295
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5296
echo $ECHO_N "(cached) $ECHO_C" >&6
5298
cat >conftest.$ac_ext <<_ACEOF
5306
rm -f conftest.$ac_objext
5307
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5308
(eval $ac_compile) 2>conftest.er1
5310
grep -v '^ *+' conftest.er1 >conftest.err
5312
cat conftest.err >&5
5313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314
(exit $ac_status); } &&
5315
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5316
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320
(exit $ac_status); }; } &&
5321
{ ac_try='test -s conftest.$ac_objext'
5322
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326
(exit $ac_status); }; }; then
5329
echo "$as_me: failed program was:" >&5
5330
sed 's/^/| /' conftest.$ac_ext >&5
5334
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5335
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5338
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5339
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5341
ac_test_FFLAGS=${FFLAGS+set}
5342
ac_save_FFLAGS=$FFLAGS
5344
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5345
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5346
if test "${ac_cv_prog_f77_g+set}" = set; then
5347
echo $ECHO_N "(cached) $ECHO_C" >&6
5350
cat >conftest.$ac_ext <<_ACEOF
5355
rm -f conftest.$ac_objext
5356
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5357
(eval $ac_compile) 2>conftest.er1
5359
grep -v '^ *+' conftest.er1 >conftest.err
5361
cat conftest.err >&5
5362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363
(exit $ac_status); } &&
5364
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5365
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369
(exit $ac_status); }; } &&
5370
{ ac_try='test -s conftest.$ac_objext'
5371
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375
(exit $ac_status); }; }; then
5376
ac_cv_prog_f77_g=yes
5378
echo "$as_me: failed program was:" >&5
5379
sed 's/^/| /' conftest.$ac_ext >&5
5383
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5386
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5387
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5388
if test "$ac_test_FFLAGS" = set; then
5389
FFLAGS=$ac_save_FFLAGS
5390
elif test $ac_cv_prog_f77_g = yes; then
5391
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5397
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5404
G77=`test $ac_compiler_gnu = yes && echo yes`
5406
ac_cpp='$CPP $CPPFLAGS'
5407
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5408
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5409
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5413
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5415
# find the maximum length of command line arguments
5416
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5417
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5418
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5419
echo $ECHO_N "(cached) $ECHO_C" >&6
5426
# On DJGPP, this test can blow up pretty badly due to problems in libc
5427
# (any single argument exceeding 2000 bytes causes a buffer overrun
5428
# during glob expansion). Even if it were fixed, the result of this
5429
# check would be larger than it should be.
5430
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5434
# Under GNU Hurd, this test is not required because there is
5435
# no limit to the length of command line arguments.
5436
# Libtool will interpret -1 as no limit whatsoever
5437
lt_cv_sys_max_cmd_len=-1;
5441
# On Win9x/ME, this test blows up -- it succeeds, but takes
5442
# about 5 minutes as the teststring grows exponentially.
5443
# Worse, since 9x/ME are not pre-emptively multitasking,
5444
# you end up with a "frozen" computer, even though with patience
5445
# the test eventually succeeds (with a max line length of 256k).
5446
# Instead, let's just punt: use the minimum linelength reported by
5447
# all of the supported platforms: 8192 (on NT/2K/XP).
5448
lt_cv_sys_max_cmd_len=8192;
5452
# On AmigaOS with pdksh, this test takes hours, literally.
5453
# So we just punt and use a minimum line length of 8192.
5454
lt_cv_sys_max_cmd_len=8192;
5458
# If test is not a shell built-in, we'll probably end up computing a
5459
# maximum length that is only half of the actual maximum length, but
5461
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5462
= "XX$teststring") >/dev/null 2>&1 &&
5463
new_result=`expr "X$teststring" : ".*" 2>&1` &&
5464
lt_cv_sys_max_cmd_len=$new_result &&
5465
test $i != 17 # 1/2 MB should be enough
5468
teststring=$teststring$teststring
5471
# Add a significant safety factor because C++ compilers can tack on massive
5472
# amounts of additional arguments before passing them to the linker.
5473
# It appears as though 1/2 is a usable value.
5474
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5480
if test -n $lt_cv_sys_max_cmd_len ; then
5481
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5482
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5484
echo "$as_me:$LINENO: result: none" >&5
5485
echo "${ECHO_T}none" >&6
5491
# Check for command to grab the raw symbol name followed by C symbol from nm.
5492
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5493
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5494
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5495
echo $ECHO_N "(cached) $ECHO_C" >&6
5498
# These are sane defaults that work on at least a few old systems.
5499
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5501
# Character class describing NM global symbol codes.
5502
symcode='[BCDEGRST]'
5504
# Regexp to match symbols that can be accessed directly from C.
5505
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5507
# Transform the above into a raw symbol and a C symbol.
5508
symxfrm='\1 \2\3 \3'
5510
# Transform an extracted symbol line into a proper C declaration
5511
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5513
# Transform an extracted symbol line into symbol name and symbol address
5514
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'"
5516
# Define system-specific variables.
5521
cygwin* | mingw* | pw32*)
5522
symcode='[ABCDGISTW]'
5524
hpux*) # Its linker distinguishes data from code symbols
5525
if test "$host_cpu" = ia64; then
5526
symcode='[ABCDEGRST]'
5528
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5529
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'"
5532
symcode='[BCDEGRST]'
5535
symcode='[BCDEGQRST]'
5545
# Handle CRLF in mingw tool chain
5549
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5553
# If we're using GNU nm, then use its standard symbol codes.
5554
case `$NM -V 2>&1` in
5555
*GNU* | *'with BFD'*)
5556
symcode='[ABCDGIRSTW]' ;;
5559
# Try without a prefix undercore, then with it.
5560
for ac_symprfx in "" "_"; do
5562
# Write the raw and C identifiers.
5563
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5565
# Check to see that the pipe works correctly.
5569
cat > conftest.$ac_ext <<EOF
5574
void nm_test_func(){}
5578
int main(){nm_test_var='a';nm_test_func();return(0);}
5581
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5582
(eval $ac_compile) 2>&5
5584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585
(exit $ac_status); }; then
5586
# Now try to grab the symbols.
5588
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5589
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592
(exit $ac_status); } && test -s "$nlist"; then
5593
# Try sorting and uniquifying the output.
5594
if sort "$nlist" | uniq > "$nlist"T; then
5595
mv -f "$nlist"T "$nlist"
5600
# Make sure that we snagged all the symbols we need.
5601
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5602
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5603
cat <<EOF > conftest.$ac_ext
5609
# Now generate the symbol file.
5610
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5612
cat <<EOF >> conftest.$ac_ext
5613
#if defined (__STDC__) && __STDC__
5614
# define lt_ptr_t void *
5616
# define lt_ptr_t char *
5620
/* The mapping between symbol names and symbols. */
5625
lt_preloaded_symbols[] =
5628
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5629
cat <<\EOF >> conftest.$ac_ext
5637
# Now try linking the two files.
5638
mv conftest.$ac_objext conftstm.$ac_objext
5639
lt_save_LIBS="$LIBS"
5640
lt_save_CFLAGS="$CFLAGS"
5641
LIBS="conftstm.$ac_objext"
5642
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5643
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5644
(eval $ac_link) 2>&5
5646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647
(exit $ac_status); } && test -s conftest${ac_exeext}; then
5650
LIBS="$lt_save_LIBS"
5651
CFLAGS="$lt_save_CFLAGS"
5653
echo "cannot find nm_test_func in $nlist" >&5
5656
echo "cannot find nm_test_var in $nlist" >&5
5659
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5662
echo "$progname: failed program was:" >&5
5663
cat conftest.$ac_ext >&5
5665
rm -f conftest* conftst*
5667
# Do not use the global_symbol_pipe unless it works.
5668
if test "$pipe_works" = yes; then
5671
lt_cv_sys_global_symbol_pipe=
5677
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5678
lt_cv_sys_global_symbol_to_cdecl=
5680
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5681
echo "$as_me:$LINENO: result: failed" >&5
5682
echo "${ECHO_T}failed" >&6
5684
echo "$as_me:$LINENO: result: ok" >&5
5685
echo "${ECHO_T}ok" >&6
5688
echo "$as_me:$LINENO: checking for objdir" >&5
5689
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5690
if test "${lt_cv_objdir+set}" = set; then
5691
echo $ECHO_N "(cached) $ECHO_C" >&6
5693
rm -f .libs 2>/dev/null
5694
mkdir .libs 2>/dev/null
5695
if test -d .libs; then
5698
# MS-DOS does not allow filenames that begin with a dot.
5701
rmdir .libs 2>/dev/null
5703
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5704
echo "${ECHO_T}$lt_cv_objdir" >&6
5705
objdir=$lt_cv_objdir
5713
# AIX sometimes has problems with the GCC collect2 program. For some
5714
# reason, if we set the COLLECT_NAMES environment variable, the problems
5715
# vanish in a puff of smoke.
5716
if test "X${COLLECT_NAMES+set}" != Xset; then
5718
export COLLECT_NAMES
5723
# Sed substitution that helps us do robust quoting. It backslashifies
5724
# metacharacters that are still active within double-quoted strings.
5725
Xsed='sed -e s/^X//'
5726
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5728
# Same as above, but do not quote variable references.
5729
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5731
# Sed substitution to delay expansion of an escaped shell variable in a
5732
# double_quote_subst'ed string.
5733
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5735
# Sed substitution to avoid accidental globbing in evaled expressions
5736
no_glob_subst='s/\*/\\\*/g'
5742
default_ofile=libtool
5743
can_build_shared=yes
5745
# All known linkers require a `.a' archive for static linking (except M$VC,
5746
# which needs '.lib').
5748
ltmain="$ac_aux_dir/ltmain.sh"
5749
ofile="$default_ofile"
5750
with_gnu_ld="$lt_cv_prog_gnu_ld"
5752
if test -n "$ac_tool_prefix"; then
5753
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5754
set dummy ${ac_tool_prefix}ar; ac_word=$2
5755
echo "$as_me:$LINENO: checking for $ac_word" >&5
5756
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5757
if test "${ac_cv_prog_AR+set}" = set; then
5758
echo $ECHO_N "(cached) $ECHO_C" >&6
5760
if test -n "$AR"; then
5761
ac_cv_prog_AR="$AR" # Let the user override the test.
5763
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767
test -z "$as_dir" && as_dir=.
5768
for ac_exec_ext in '' $ac_executable_extensions; do
5769
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770
ac_cv_prog_AR="${ac_tool_prefix}ar"
5771
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5780
if test -n "$AR"; then
5781
echo "$as_me:$LINENO: result: $AR" >&5
5782
echo "${ECHO_T}$AR" >&6
5784
echo "$as_me:$LINENO: result: no" >&5
5785
echo "${ECHO_T}no" >&6
5789
if test -z "$ac_cv_prog_AR"; then
5791
# Extract the first word of "ar", so it can be a program name with args.
5792
set dummy ar; ac_word=$2
5793
echo "$as_me:$LINENO: checking for $ac_word" >&5
5794
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5795
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5796
echo $ECHO_N "(cached) $ECHO_C" >&6
5798
if test -n "$ac_ct_AR"; then
5799
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5801
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805
test -z "$as_dir" && as_dir=.
5806
for ac_exec_ext in '' $ac_executable_extensions; do
5807
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5808
ac_cv_prog_ac_ct_AR="ar"
5809
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5815
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5818
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5819
if test -n "$ac_ct_AR"; then
5820
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5821
echo "${ECHO_T}$ac_ct_AR" >&6
5823
echo "$as_me:$LINENO: result: no" >&5
5824
echo "${ECHO_T}no" >&6
5832
if test -n "$ac_tool_prefix"; then
5833
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5834
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5835
echo "$as_me:$LINENO: checking for $ac_word" >&5
5836
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5837
if test "${ac_cv_prog_RANLIB+set}" = set; then
5838
echo $ECHO_N "(cached) $ECHO_C" >&6
5840
if test -n "$RANLIB"; then
5841
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5843
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847
test -z "$as_dir" && as_dir=.
5848
for ac_exec_ext in '' $ac_executable_extensions; do
5849
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5851
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5859
RANLIB=$ac_cv_prog_RANLIB
5860
if test -n "$RANLIB"; then
5861
echo "$as_me:$LINENO: result: $RANLIB" >&5
5862
echo "${ECHO_T}$RANLIB" >&6
5864
echo "$as_me:$LINENO: result: no" >&5
5865
echo "${ECHO_T}no" >&6
5869
if test -z "$ac_cv_prog_RANLIB"; then
5870
ac_ct_RANLIB=$RANLIB
5871
# Extract the first word of "ranlib", so it can be a program name with args.
5872
set dummy ranlib; ac_word=$2
5873
echo "$as_me:$LINENO: checking for $ac_word" >&5
5874
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5875
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5876
echo $ECHO_N "(cached) $ECHO_C" >&6
5878
if test -n "$ac_ct_RANLIB"; then
5879
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5881
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885
test -z "$as_dir" && as_dir=.
5886
for ac_exec_ext in '' $ac_executable_extensions; do
5887
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5888
ac_cv_prog_ac_ct_RANLIB="ranlib"
5889
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5895
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5898
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5899
if test -n "$ac_ct_RANLIB"; then
5900
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5901
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5903
echo "$as_me:$LINENO: result: no" >&5
5904
echo "${ECHO_T}no" >&6
5907
RANLIB=$ac_ct_RANLIB
5909
RANLIB="$ac_cv_prog_RANLIB"
5912
if test -n "$ac_tool_prefix"; then
5913
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5914
set dummy ${ac_tool_prefix}strip; ac_word=$2
5915
echo "$as_me:$LINENO: checking for $ac_word" >&5
5916
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5917
if test "${ac_cv_prog_STRIP+set}" = set; then
5918
echo $ECHO_N "(cached) $ECHO_C" >&6
5920
if test -n "$STRIP"; then
5921
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5923
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927
test -z "$as_dir" && as_dir=.
5928
for ac_exec_ext in '' $ac_executable_extensions; do
5929
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5931
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939
STRIP=$ac_cv_prog_STRIP
5940
if test -n "$STRIP"; then
5941
echo "$as_me:$LINENO: result: $STRIP" >&5
5942
echo "${ECHO_T}$STRIP" >&6
5944
echo "$as_me:$LINENO: result: no" >&5
5945
echo "${ECHO_T}no" >&6
5949
if test -z "$ac_cv_prog_STRIP"; then
5951
# Extract the first word of "strip", so it can be a program name with args.
5952
set dummy strip; ac_word=$2
5953
echo "$as_me:$LINENO: checking for $ac_word" >&5
5954
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5955
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5956
echo $ECHO_N "(cached) $ECHO_C" >&6
5958
if test -n "$ac_ct_STRIP"; then
5959
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5961
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965
test -z "$as_dir" && as_dir=.
5966
for ac_exec_ext in '' $ac_executable_extensions; do
5967
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5968
ac_cv_prog_ac_ct_STRIP="strip"
5969
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5975
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5978
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5979
if test -n "$ac_ct_STRIP"; then
5980
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5981
echo "${ECHO_T}$ac_ct_STRIP" >&6
5983
echo "$as_me:$LINENO: result: no" >&5
5984
echo "${ECHO_T}no" >&6
5989
STRIP="$ac_cv_prog_STRIP"
5994
old_CFLAGS="$CFLAGS"
5996
# Set sane defaults for various variables
5997
test -z "$AR" && AR=ar
5998
test -z "$AR_FLAGS" && AR_FLAGS=cru
5999
test -z "$AS" && AS=as
6000
test -z "$CC" && CC=cc
6001
test -z "$LTCC" && LTCC=$CC
6002
test -z "$DLLTOOL" && DLLTOOL=dlltool
6003
test -z "$LD" && LD=ld
6004
test -z "$LN_S" && LN_S="ln -s"
6005
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6006
test -z "$NM" && NM=nm
6007
test -z "$SED" && SED=sed
6008
test -z "$OBJDUMP" && OBJDUMP=objdump
6009
test -z "$RANLIB" && RANLIB=:
6010
test -z "$STRIP" && STRIP=:
6011
test -z "$ac_objext" && ac_objext=o
6013
# Determine commands to create old-style static archives.
6014
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6015
old_postinstall_cmds='chmod 644 $oldlib'
6016
old_postuninstall_cmds=
6018
if test -n "$RANLIB"; then
6021
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6024
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6027
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6030
# Only perform the check for file, if the check method requires it
6031
case $deplibs_check_method in
6033
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6034
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6035
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6036
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6037
echo $ECHO_N "(cached) $ECHO_C" >&6
6041
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6044
lt_save_MAGIC_CMD="$MAGIC_CMD"
6045
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6046
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6047
for ac_dir in $ac_dummy; do
6049
test -z "$ac_dir" && ac_dir=.
6050
if test -f $ac_dir/${ac_tool_prefix}file; then
6051
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6052
if test -n "$file_magic_test_file"; then
6053
case $deplibs_check_method in
6055
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6056
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6057
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6058
$EGREP "$file_magic_regex" > /dev/null; then
6063
*** Warning: the command libtool uses to detect shared libraries,
6064
*** $file_magic_cmd, produces output that libtool cannot recognize.
6065
*** The result is that libtool may fail to recognize shared libraries
6066
*** as such. This will affect the creation of libtool libraries that
6067
*** depend on shared libraries, but programs linked with such libtool
6068
*** libraries will work regardless of this problem. Nevertheless, you
6069
*** may want to report the problem to your system manager and/or to
6070
*** bug-libtool@gnu.org
6080
MAGIC_CMD="$lt_save_MAGIC_CMD"
6085
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6086
if test -n "$MAGIC_CMD"; then
6087
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6088
echo "${ECHO_T}$MAGIC_CMD" >&6
6090
echo "$as_me:$LINENO: result: no" >&5
6091
echo "${ECHO_T}no" >&6
6094
if test -z "$lt_cv_path_MAGIC_CMD"; then
6095
if test -n "$ac_tool_prefix"; then
6096
echo "$as_me:$LINENO: checking for file" >&5
6097
echo $ECHO_N "checking for file... $ECHO_C" >&6
6098
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6099
echo $ECHO_N "(cached) $ECHO_C" >&6
6103
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6106
lt_save_MAGIC_CMD="$MAGIC_CMD"
6107
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6108
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6109
for ac_dir in $ac_dummy; do
6111
test -z "$ac_dir" && ac_dir=.
6112
if test -f $ac_dir/file; then
6113
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6114
if test -n "$file_magic_test_file"; then
6115
case $deplibs_check_method in
6117
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6118
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6119
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6120
$EGREP "$file_magic_regex" > /dev/null; then
6125
*** Warning: the command libtool uses to detect shared libraries,
6126
*** $file_magic_cmd, produces output that libtool cannot recognize.
6127
*** The result is that libtool may fail to recognize shared libraries
6128
*** as such. This will affect the creation of libtool libraries that
6129
*** depend on shared libraries, but programs linked with such libtool
6130
*** libraries will work regardless of this problem. Nevertheless, you
6131
*** may want to report the problem to your system manager and/or to
6132
*** bug-libtool@gnu.org
6142
MAGIC_CMD="$lt_save_MAGIC_CMD"
6147
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6148
if test -n "$MAGIC_CMD"; then
6149
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6150
echo "${ECHO_T}$MAGIC_CMD" >&6
6152
echo "$as_me:$LINENO: result: no" >&5
6153
echo "${ECHO_T}no" >&6
6168
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6169
if test "${enable_libtool_lock+set}" = set; then
6170
enableval="$enable_libtool_lock"
6173
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6176
# Check whether --with-pic or --without-pic was given.
6177
if test "${with_pic+set}" = set; then
6183
test -z "$pic_mode" && pic_mode=default
6185
# Use C for the default configuration in the libtool script
6189
ac_cpp='$CPP $CPPFLAGS'
6190
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6192
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6195
# Source file extension for C test sources.
6198
# Object file extension for compiled C test sources.
6202
# Code to be used in simple compile tests
6203
lt_simple_compile_test_code="int some_variable = 0;\n"
6205
# Code to be used in simple link tests
6206
lt_simple_link_test_code='int main(){return(0);}\n'
6209
# If no C compiler was specified, use CC.
6212
# Allow CC to be a program name with arguments.
6217
# Check for any special shared library compilation flags.
6220
if test "$GCC" = no; then
6223
lt_prog_cc_shlib='-belf'
6227
if test -n "$lt_prog_cc_shlib"; then
6228
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6229
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6230
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6232
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6233
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6234
lt_cv_prog_cc_can_build_shared=no
6240
# Check to make sure the static flag actually works.
6242
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6243
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6244
if test "${lt_prog_compiler_static_works+set}" = set; then
6245
echo $ECHO_N "(cached) $ECHO_C" >&6
6247
lt_prog_compiler_static_works=no
6248
save_LDFLAGS="$LDFLAGS"
6249
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6250
printf "$lt_simple_link_test_code" > conftest.$ac_ext
6251
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6252
# The compiler can only warn and ignore the option if not recognized
6253
# So say no if there are warnings
6254
if test -s conftest.err; then
6255
# Append any errors to the config.log.
6256
cat conftest.err 1>&5
6258
lt_prog_compiler_static_works=yes
6262
LDFLAGS="$save_LDFLAGS"
6265
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6266
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6268
if test x"$lt_prog_compiler_static_works" = xyes; then
6271
lt_prog_compiler_static=
6277
lt_prog_compiler_no_builtin_flag=
6279
if test "$GCC" = yes; then
6280
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6283
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6284
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6285
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6286
echo $ECHO_N "(cached) $ECHO_C" >&6
6288
lt_cv_prog_compiler_rtti_exceptions=no
6289
ac_outfile=conftest.$ac_objext
6290
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6291
lt_compiler_flag="-fno-rtti -fno-exceptions"
6292
# Insert the option either (1) after the last *FLAGS variable, or
6293
# (2) before a word containing "conftest.", or (3) at the end.
6294
# Note that $ac_compile itself does not contain backslashes and begins
6295
# with a dollar sign (not a hyphen), so the echo should work correctly.
6296
# The option is referenced via a variable to avoid confusing sed.
6297
lt_compile=`echo "$ac_compile" | $SED \
6298
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6299
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6300
-e 's:$: $lt_compiler_flag:'`
6301
(eval echo "\"\$as_me:6301: $lt_compile\"" >&5)
6302
(eval "$lt_compile" 2>conftest.err)
6304
cat conftest.err >&5
6305
echo "$as_me:6305: \$? = $ac_status" >&5
6306
if (exit $ac_status) && test -s "$ac_outfile"; then
6307
# The compiler can only warn and ignore the option if not recognized
6308
# So say no if there are warnings
6309
if test ! -s conftest.err; then
6310
lt_cv_prog_compiler_rtti_exceptions=yes
6316
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6317
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6319
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6320
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6327
lt_prog_compiler_wl=
6328
lt_prog_compiler_pic=
6329
lt_prog_compiler_static=
6331
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6332
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6334
if test "$GCC" = yes; then
6335
lt_prog_compiler_wl='-Wl,'
6336
lt_prog_compiler_static='-static'
6340
# All AIX code is PIC.
6341
if test "$host_cpu" = ia64; then
6342
# AIX 5 now supports IA64 processor
6343
lt_prog_compiler_static='-Bstatic'
6348
# FIXME: we need at least 68020 code to build shared libraries, but
6349
# adding the `-m68020' flag to GCC prevents building anything better,
6351
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6354
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6355
# PIC is the default for these OSes.
6358
mingw* | pw32* | os2*)
6359
# This hack is so that the source file can tell whether it is being
6360
# built for inclusion in a dll (and should export symbols for example).
6361
lt_prog_compiler_pic='-DDLL_EXPORT'
6364
darwin* | rhapsody*)
6365
# PIC is the default on this platform
6366
# Common symbols not allowed in MH_DYLIB files
6367
lt_prog_compiler_pic='-fno-common'
6371
# Just because we use GCC doesn't mean we suddenly get shared libraries
6372
# on systems that don't support them.
6373
lt_prog_compiler_can_build_shared=no
6378
if test -d /usr/nec; then
6379
lt_prog_compiler_pic=-Kconform_pic
6384
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6391
lt_prog_compiler_pic='-fPIC'
6397
lt_prog_compiler_pic='-fPIC'
6401
# PORTME Check for flag to pass linker flags through the system compiler.
6404
lt_prog_compiler_wl='-Wl,'
6405
if test "$host_cpu" = ia64; then
6406
# AIX 5 now supports IA64 processor
6407
lt_prog_compiler_static='-Bstatic'
6409
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6413
mingw* | pw32* | os2*)
6414
# This hack is so that the source file can tell whether it is being
6415
# built for inclusion in a dll (and should export symbols for example).
6416
lt_prog_compiler_pic='-DDLL_EXPORT'
6419
hpux9* | hpux10* | hpux11*)
6420
lt_prog_compiler_wl='-Wl,'
6421
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6428
lt_prog_compiler_pic='+Z'
6431
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6432
lt_prog_compiler_static='${wl}-a ${wl}archive'
6435
irix5* | irix6* | nonstopux*)
6436
lt_prog_compiler_wl='-Wl,'
6437
# PIC (with -KPIC) is the default.
6438
lt_prog_compiler_static='-non_shared'
6442
lt_prog_compiler_pic='-KPIC'
6443
lt_prog_compiler_static='-Bstatic'
6449
lt_prog_compiler_wl='-Wl,'
6450
lt_prog_compiler_pic='-KPIC'
6451
lt_prog_compiler_static='-static'
6454
lt_prog_compiler_wl='-Wl,'
6455
# All Alpha code is PIC.
6456
lt_prog_compiler_static='-non_shared'
6461
osf3* | osf4* | osf5*)
6462
lt_prog_compiler_wl='-Wl,'
6463
# All OSF/1 code is PIC.
6464
lt_prog_compiler_static='-non_shared'
6468
lt_prog_compiler_pic='-Kpic'
6469
lt_prog_compiler_static='-dn'
6473
lt_prog_compiler_wl='-Wl,'
6474
lt_prog_compiler_pic='-KPIC'
6475
lt_prog_compiler_static='-Bstatic'
6479
lt_prog_compiler_wl='-Qoption ld '
6480
lt_prog_compiler_pic='-PIC'
6481
lt_prog_compiler_static='-Bstatic'
6484
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6485
lt_prog_compiler_wl='-Wl,'
6486
lt_prog_compiler_pic='-KPIC'
6487
lt_prog_compiler_static='-Bstatic'
6491
if test -d /usr/nec ;then
6492
lt_prog_compiler_pic='-Kconform_pic'
6493
lt_prog_compiler_static='-Bstatic'
6498
lt_prog_compiler_pic='-pic'
6499
lt_prog_compiler_static='-Bstatic'
6503
lt_prog_compiler_can_build_shared=no
6508
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6509
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6512
# Check to make sure the PIC flag actually works.
6514
if test -n "$lt_prog_compiler_pic"; then
6516
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6517
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6518
if test "${lt_prog_compiler_pic_works+set}" = set; then
6519
echo $ECHO_N "(cached) $ECHO_C" >&6
6521
lt_prog_compiler_pic_works=no
6522
ac_outfile=conftest.$ac_objext
6523
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6524
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6525
# Insert the option either (1) after the last *FLAGS variable, or
6526
# (2) before a word containing "conftest.", or (3) at the end.
6527
# Note that $ac_compile itself does not contain backslashes and begins
6528
# with a dollar sign (not a hyphen), so the echo should work correctly.
6529
# The option is referenced via a variable to avoid confusing sed.
6530
lt_compile=`echo "$ac_compile" | $SED \
6531
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6532
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6533
-e 's:$: $lt_compiler_flag:'`
6534
(eval echo "\"\$as_me:6534: $lt_compile\"" >&5)
6535
(eval "$lt_compile" 2>conftest.err)
6537
cat conftest.err >&5
6538
echo "$as_me:6538: \$? = $ac_status" >&5
6539
if (exit $ac_status) && test -s "$ac_outfile"; then
6540
# The compiler can only warn and ignore the option if not recognized
6541
# So say no if there are warnings
6542
if test ! -s conftest.err; then
6543
lt_prog_compiler_pic_works=yes
6549
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6550
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6552
if test x"$lt_prog_compiler_pic_works" = xyes; then
6553
case $lt_prog_compiler_pic in
6555
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6558
lt_prog_compiler_pic=
6559
lt_prog_compiler_can_build_shared=no
6564
# For platforms which do not support PIC, -DPIC is meaningless:
6566
lt_prog_compiler_pic=
6569
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6573
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6574
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6575
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6576
echo $ECHO_N "(cached) $ECHO_C" >&6
6578
lt_cv_prog_compiler_c_o=no
6579
$rm -r conftest 2>/dev/null
6583
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6585
lt_compiler_flag="-o out/conftest2.$ac_objext"
6586
# Insert the option either (1) after the last *FLAGS variable, or
6587
# (2) before a word containing "conftest.", or (3) at the end.
6588
# Note that $ac_compile itself does not contain backslashes and begins
6589
# with a dollar sign (not a hyphen), so the echo should work correctly.
6590
lt_compile=`echo "$ac_compile" | $SED \
6591
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6592
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6593
-e 's:$: $lt_compiler_flag:'`
6594
(eval echo "\"\$as_me:6594: $lt_compile\"" >&5)
6595
(eval "$lt_compile" 2>out/conftest.err)
6597
cat out/conftest.err >&5
6598
echo "$as_me:6598: \$? = $ac_status" >&5
6599
if (exit $ac_status) && test -s out/conftest2.$ac_objext
6601
# The compiler can only warn and ignore the option if not recognized
6602
# So say no if there are warnings
6603
if test ! -s out/conftest.err; then
6604
lt_cv_prog_compiler_c_o=yes
6609
# SGI C++ compiler will create directory out/ii_files/ for
6610
# template instantiation
6611
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6612
$rm out/* && rmdir out
6618
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6619
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6622
hard_links="nottested"
6623
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6624
# do not overwrite the value of need_locks provided by the user
6625
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6626
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6629
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6631
ln conftest.a conftest.b 2>&5 || hard_links=no
6632
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6633
echo "$as_me:$LINENO: result: $hard_links" >&5
6634
echo "${ECHO_T}$hard_links" >&6
6635
if test "$hard_links" = no; then
6636
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6637
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6644
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6645
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6648
allow_undefined_flag=
6649
enable_shared_with_static_runtimes=no
6651
archive_expsym_cmds=
6652
old_archive_From_new_cmds=
6653
old_archive_from_expsyms_cmds=
6654
export_dynamic_flag_spec=
6655
whole_archive_flag_spec=
6656
thread_safe_flag_spec=
6657
hardcode_libdir_flag_spec=
6658
hardcode_libdir_flag_spec_ld=
6659
hardcode_libdir_separator=
6662
hardcode_shlibpath_var=unsupported
6663
link_all_deplibs=unknown
6664
hardcode_automatic=no
6667
always_export_symbols=no
6668
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6669
# include_expsyms should be a list of space-separated symbols to be *always*
6670
# included in the symbol list
6672
# exclude_expsyms can be an extended regexp of symbols to exclude
6673
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6674
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6675
# as well as any symbol that contains `d'.
6676
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6677
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6678
# platforms (ab)use it in PIC code, but their linkers get confused if
6679
# the symbol is explicitly referenced. Since portable code cannot
6680
# rely on this symbol name, it's probably fine to never include it in
6681
# preloaded symbol tables.
6682
extract_expsyms_cmds=
6685
cygwin* | mingw* | pw32*)
6686
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6687
# When not using gcc, we currently assume that we are using
6688
# Microsoft Visual C++.
6689
if test "$GCC" != yes; then
6699
if test "$with_gnu_ld" = yes; then
6700
# If archive_cmds runs LD, not CC, wlarc should be empty
6703
# See if GNU ld supports shared libraries.
6705
aix3* | aix4* | aix5*)
6706
# On AIX/PPC, the GNU linker is very broken
6707
if test "$host_cpu" != ia64; then
6711
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6712
*** to be unable to reliably create shared libraries on AIX.
6713
*** Therefore, libtool is disabling shared libraries support. If you
6714
*** really care for shared libraries, you may want to modify your PATH
6715
*** so that a non-GNU linker is found, and then restart.
6722
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)'
6723
hardcode_libdir_flag_spec='-L$libdir'
6724
hardcode_minus_L=yes
6726
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6727
# that the semantics of dynamic libraries on AmigaOS, at least up
6728
# to version 4, is to share data among multiple programs linked
6729
# with the same dynamic library. Since this doesn't match the
6730
# behavior of shared libraries on other platforms, we can't use
6736
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6737
allow_undefined_flag=unsupported
6738
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6739
# support --undefined. This deserves some investigation. FIXME
6740
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6746
cygwin* | mingw* | pw32*)
6747
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6748
# as there is no search path for DLLs.
6749
hardcode_libdir_flag_spec='-L$libdir'
6750
allow_undefined_flag=unsupported
6751
always_export_symbols=no
6752
enable_shared_with_static_runtimes=yes
6753
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6755
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6756
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6757
# If the export-symbols file already is a .def file (1st line
6758
# is EXPORTS), use it as is; otherwise, prepend...
6759
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6760
cp $export_symbols $output_objdir/$soname.def;
6762
echo EXPORTS > $output_objdir/$soname.def;
6763
cat $export_symbols >> $output_objdir/$soname.def;
6765
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6771
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6772
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6773
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6776
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6777
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6782
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6786
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6787
*** create shared libraries on Solaris systems. Therefore, libtool
6788
*** is disabling shared libraries support. We urge you to upgrade GNU
6789
*** binutils to release 2.9.1 or newer. Another option is to modify
6790
*** your PATH or compiler configuration so that the native linker is
6791
*** used, and then restart.
6794
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6795
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6796
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6803
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6806
hardcode_shlibpath_var=no
6810
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6811
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6812
archive_cmds="$tmp_archive_cmds"
6813
supports_anon_versioning=no
6814
case `$LD -v 2>/dev/null` in
6815
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6816
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6817
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6818
*\ 2.11.*) ;; # other 2.11 versions
6819
*) supports_anon_versioning=yes ;;
6821
if test $supports_anon_versioning = yes; then
6822
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6823
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6824
$echo "local: *; };" >> $output_objdir/$libname.ver~
6825
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6827
archive_expsym_cmds="$tmp_archive_cmds"
6836
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6837
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6838
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6845
if test "$ld_shlibs" = yes; then
6846
runpath_var=LD_RUN_PATH
6847
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6848
export_dynamic_flag_spec='${wl}--export-dynamic'
6849
# ancient GNU ld didn't support --whole-archive et. al.
6850
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6851
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6853
whole_archive_flag_spec=
6857
# PORTME fill in a description of your system's linker (not GNU ld)
6860
allow_undefined_flag=unsupported
6861
always_export_symbols=yes
6862
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'
6863
# Note: this linker hardcodes the directories in LIBPATH if there
6864
# are no directories specified by -L.
6865
hardcode_minus_L=yes
6866
if test "$GCC" = yes && test -z "$link_static_flag"; then
6867
# Neither direct hardcoding nor static linking is supported with a
6869
hardcode_direct=unsupported
6874
if test "$host_cpu" = ia64; then
6875
# On IA64, the linker does run time linking by default, so we don't
6876
# have to do anything special.
6877
aix_use_runtimelinking=no
6878
exp_sym_flag='-Bexport'
6881
# If we're using GNU nm, then we don't want the "-C" option.
6882
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6883
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6884
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'
6886
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'
6888
aix_use_runtimelinking=no
6890
# Test if we are trying to use run time linking or normal
6891
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6892
# need to do runtime linking.
6893
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6894
for ld_flag in $LDFLAGS; do
6895
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6896
aix_use_runtimelinking=yes
6902
exp_sym_flag='-bexport'
6903
no_entry_flag='-bnoentry'
6906
# When large executables or shared objects are built, AIX ld can
6907
# have problems creating the table of contents. If linking a library
6908
# or program results in "error TOC overflow" add -mminimal-toc to
6909
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6910
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6914
hardcode_libdir_separator=':'
6915
link_all_deplibs=yes
6917
if test "$GCC" = yes; then
6918
case $host_os in aix4.012|aix4.012.*)
6919
# We only want to do this on AIX 4.2 and lower, the check
6920
# below for broken collect2 doesn't work under 4.3+
6921
collect2name=`${CC} -print-prog-name=collect2`
6922
if test -f "$collect2name" && \
6923
strings "$collect2name" | grep resolve_lib_name >/dev/null
6925
# We have reworked collect2
6928
# We have old collect2
6929
hardcode_direct=unsupported
6930
# It fails to find uninstalled libraries when the uninstalled
6931
# path is not listed in the libpath. Setting hardcode_minus_L
6932
# to unsupported forces relinking
6933
hardcode_minus_L=yes
6934
hardcode_libdir_flag_spec='-L$libdir'
6935
hardcode_libdir_separator=
6938
shared_flag='-shared'
6941
if test "$host_cpu" = ia64; then
6942
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6943
# chokes on -Wl,-G. The following line is correct:
6946
if test "$aix_use_runtimelinking" = yes; then
6947
shared_flag='${wl}-G'
6949
shared_flag='${wl}-bM:SRE'
6954
# It seems that -bexpall does not export symbols beginning with
6955
# underscore (_), so it is better to generate a list of symbols to export.
6956
always_export_symbols=yes
6957
if test "$aix_use_runtimelinking" = yes; then
6958
# Warning - without using the other runtime loading flags (-brtl),
6959
# -berok will link without error, but may produce a broken library.
6960
allow_undefined_flag='-berok'
6961
# Determine the default libpath from the value encoded in an empty executable.
6962
cat >conftest.$ac_ext <<_ACEOF
6965
cat confdefs.h >>conftest.$ac_ext
6966
cat >>conftest.$ac_ext <<_ACEOF
6967
/* end confdefs.h. */
6977
rm -f conftest.$ac_objext conftest$ac_exeext
6978
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6979
(eval $ac_link) 2>conftest.er1
6981
grep -v '^ *+' conftest.er1 >conftest.err
6983
cat conftest.err >&5
6984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985
(exit $ac_status); } &&
6986
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6987
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991
(exit $ac_status); }; } &&
6992
{ ac_try='test -s conftest$ac_exeext'
6993
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997
(exit $ac_status); }; }; then
6999
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7001
# Check for a 64-bit object if we didn't find anything.
7002
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; }
7005
echo "$as_me: failed program was:" >&5
7006
sed 's/^/| /' conftest.$ac_ext >&5
7009
rm -f conftest.err conftest.$ac_objext \
7010
conftest$ac_exeext conftest.$ac_ext
7011
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7013
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7014
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"
7016
if test "$host_cpu" = ia64; then
7017
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7018
allow_undefined_flag="-z nodefs"
7019
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"
7021
# Determine the default libpath from the value encoded in an empty executable.
7022
cat >conftest.$ac_ext <<_ACEOF
7025
cat confdefs.h >>conftest.$ac_ext
7026
cat >>conftest.$ac_ext <<_ACEOF
7027
/* end confdefs.h. */
7037
rm -f conftest.$ac_objext conftest$ac_exeext
7038
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7039
(eval $ac_link) 2>conftest.er1
7041
grep -v '^ *+' conftest.er1 >conftest.err
7043
cat conftest.err >&5
7044
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045
(exit $ac_status); } &&
7046
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7047
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051
(exit $ac_status); }; } &&
7052
{ ac_try='test -s conftest$ac_exeext'
7053
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057
(exit $ac_status); }; }; then
7059
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7061
# Check for a 64-bit object if we didn't find anything.
7062
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; }
7065
echo "$as_me: failed program was:" >&5
7066
sed 's/^/| /' conftest.$ac_ext >&5
7069
rm -f conftest.err conftest.$ac_objext \
7070
conftest$ac_exeext conftest.$ac_ext
7071
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7073
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7074
# Warning - without using the other run time loading flags,
7075
# -berok will link without error, but may produce a broken library.
7076
no_undefined_flag=' ${wl}-bernotok'
7077
allow_undefined_flag=' ${wl}-berok'
7078
# -bexpall does not export symbols beginning with underscore (_)
7079
always_export_symbols=yes
7080
# Exported symbols can be pulled into shared objects from archives
7081
whole_archive_flag_spec=' '
7082
archive_cmds_need_lc=yes
7083
# This is similar to how AIX traditionally builds it's shared libraries.
7084
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'
7090
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)'
7091
hardcode_libdir_flag_spec='-L$libdir'
7092
hardcode_minus_L=yes
7093
# see comment about different semantics on the GNU ld section
7098
export_dynamic_flag_spec=-rdynamic
7101
cygwin* | mingw* | pw32*)
7102
# When not using gcc, we currently assume that we are using
7103
# Microsoft Visual C++.
7104
# hardcode_libdir_flag_spec is actually meaningless, as there is
7105
# no search path for DLLs.
7106
hardcode_libdir_flag_spec=' '
7107
allow_undefined_flag=unsupported
7108
# Tell ltmain to make .lib files, not .a files.
7110
# Tell ltmain to make .dll files, not .so files.
7112
# FIXME: Setting linknames here is a bad hack.
7113
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7114
# The linker will automatically build a .lib file if we build a DLL.
7115
old_archive_From_new_cmds='true'
7116
# FIXME: Should let the user specify the lib program.
7117
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7118
fix_srcfile_path='`cygpath -w "$srcfile"`'
7119
enable_shared_with_static_runtimes=yes
7122
darwin* | rhapsody*)
7123
if test "$GXX" = yes ; then
7124
archive_cmds_need_lc=no
7126
rhapsody* | darwin1.[012])
7127
allow_undefined_flag='-undefined suppress'
7130
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7131
allow_undefined_flag='-flat_namespace -undefined suppress'
7133
case ${MACOSX_DEPLOYMENT_TARGET} in
7135
allow_undefined_flag='-flat_namespace -undefined suppress'
7138
allow_undefined_flag='-undefined dynamic_lookup'
7144
lt_int_apple_cc_single_mod=no
7145
output_verbose_link_cmd='echo'
7146
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7147
lt_int_apple_cc_single_mod=yes
7149
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7150
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7152
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'
7154
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7155
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7156
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7157
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}'
7159
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}'
7161
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}'
7163
hardcode_automatic=yes
7164
hardcode_shlibpath_var=unsupported
7165
whole_archive_flag_spec='-all_load $convenience'
7166
link_all_deplibs=yes
7173
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7174
hardcode_libdir_flag_spec='-L$libdir'
7175
hardcode_shlibpath_var=no
7182
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7183
# support. Future versions do this automatically, but an explicit c++rt0.o
7184
# does not break anything, and helps significantly (at the cost of a little
7187
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7188
hardcode_libdir_flag_spec='-R$libdir'
7190
hardcode_shlibpath_var=no
7193
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7195
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7197
hardcode_minus_L=yes
7198
hardcode_shlibpath_var=no
7201
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7202
freebsd* | kfreebsd*-gnu)
7203
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7204
hardcode_libdir_flag_spec='-R$libdir'
7206
hardcode_shlibpath_var=no
7210
if test "$GCC" = yes; then
7211
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'
7213
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'
7215
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7216
hardcode_libdir_separator=:
7219
# hardcode_minus_L: Not really in the search PATH,
7220
# but as the default location of the library.
7221
hardcode_minus_L=yes
7222
export_dynamic_flag_spec='${wl}-E'
7226
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7229
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7232
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7238
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7241
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7245
if test "$with_gnu_ld" = no; then
7248
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7249
hardcode_libdir_flag_spec_ld='+b $libdir'
7250
hardcode_libdir_separator=:
7252
hardcode_shlibpath_var=no
7255
hardcode_libdir_flag_spec='-L$libdir'
7257
hardcode_shlibpath_var=no
7259
# hardcode_minus_L: Not really in the search PATH,
7260
# but as the default location of the library.
7261
hardcode_minus_L=yes
7264
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7265
hardcode_libdir_separator=:
7267
export_dynamic_flag_spec='${wl}-E'
7269
# hardcode_minus_L: Not really in the search PATH,
7270
# but as the default location of the library.
7271
hardcode_minus_L=yes
7277
irix5* | irix6* | nonstopux*)
7278
if test "$GCC" = yes; then
7279
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'
7281
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'
7282
hardcode_libdir_flag_spec_ld='-rpath $libdir'
7284
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7285
hardcode_libdir_separator=:
7286
link_all_deplibs=yes
7289
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7290
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7291
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7293
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7295
hardcode_libdir_flag_spec='-R$libdir'
7297
hardcode_shlibpath_var=no
7301
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7303
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7304
hardcode_libdir_separator=:
7305
hardcode_shlibpath_var=no
7310
hardcode_shlibpath_var=no
7311
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7312
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7313
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7314
export_dynamic_flag_spec='${wl}-E'
7317
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7318
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7319
hardcode_libdir_flag_spec='-R$libdir'
7322
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7323
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7330
hardcode_libdir_flag_spec='-L$libdir'
7331
hardcode_minus_L=yes
7332
allow_undefined_flag=unsupported
7333
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'
7334
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7338
if test "$GCC" = yes; then
7339
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7340
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'
7342
allow_undefined_flag=' -expect_unresolved \*'
7343
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'
7345
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7346
hardcode_libdir_separator=:
7349
osf4* | osf5*) # as osf3* with the addition of -msym flag
7350
if test "$GCC" = yes; then
7351
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7352
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'
7353
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7355
allow_undefined_flag=' -expect_unresolved \*'
7356
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'
7357
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7358
$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'
7360
# Both c and cxx compiler support -rpath directly
7361
hardcode_libdir_flag_spec='-rpath $libdir'
7363
hardcode_libdir_separator=:
7367
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7368
hardcode_shlibpath_var=no
7369
export_dynamic_flag_spec='${wl}-Bexport'
7370
runpath_var=LD_RUN_PATH
7371
hardcode_runpath_var=yes
7375
no_undefined_flag=' -z text'
7376
if test "$GCC" = yes; then
7377
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7378
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7379
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7381
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7382
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7383
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7385
hardcode_libdir_flag_spec='-R$libdir'
7386
hardcode_shlibpath_var=no
7388
solaris2.[0-5] | solaris2.[0-5].*) ;;
7389
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
7390
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7392
link_all_deplibs=yes
7396
if test "x$host_vendor" = xsequent; then
7397
# Use $CC to link under sequent, because it throws in some extra .o
7398
# files that make .init and .fini sections work.
7399
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7401
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7403
hardcode_libdir_flag_spec='-L$libdir'
7405
hardcode_minus_L=yes
7406
hardcode_shlibpath_var=no
7410
case $host_vendor in
7412
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7413
hardcode_direct=yes # is this really true???
7416
## LD is ld it makes a PLAMLIB
7417
## CC just makes a GrossModule.
7418
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7419
reload_cmds='$CC -r -o $output$reload_objs'
7423
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7424
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7427
runpath_var='LD_RUN_PATH'
7428
hardcode_shlibpath_var=no
7432
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7433
hardcode_shlibpath_var=no
7434
export_dynamic_flag_spec='-Bexport'
7438
if test -d /usr/nec; then
7439
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7440
hardcode_shlibpath_var=no
7441
runpath_var=LD_RUN_PATH
7442
hardcode_runpath_var=yes
7448
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7451
hardcode_shlibpath_var=no
7452
hardcode_runpath_var=yes
7453
runpath_var=LD_RUN_PATH
7456
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7457
no_undefined_flag='${wl}-z ${wl}text'
7458
if test "$GCC" = yes; then
7459
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7461
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7463
runpath_var='LD_RUN_PATH'
7464
hardcode_shlibpath_var=no
7468
no_undefined_flag=' -z text'
7469
# $CC -shared without GNU ld will not create a library from C++
7470
# object files and a static libstdc++, better avoid it by now
7471
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7472
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7473
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7474
hardcode_libdir_flag_spec=
7475
hardcode_shlibpath_var=no
7476
runpath_var='LD_RUN_PATH'
7480
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7481
hardcode_libdir_flag_spec='-L$libdir'
7482
hardcode_shlibpath_var=no
7491
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7492
echo "${ECHO_T}$ld_shlibs" >&6
7493
test "$ld_shlibs" = no && can_build_shared=no
7495
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7496
if test "$GCC" = yes; then
7497
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7501
# Do we need to explicitly link libc?
7503
case "x$archive_cmds_need_lc" in
7505
# Assume -lc should be added
7506
archive_cmds_need_lc=yes
7508
if test "$enable_shared" = yes && test "$GCC" = yes; then
7509
case $archive_cmds in
7511
# FIXME: we may have to deal with multi-command sequences.
7514
# Test whether the compiler implicitly links with -lc since on some
7515
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7516
# to ld, don't add -lc before -lgcc.
7517
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7518
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7520
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7522
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523
(eval $ac_compile) 2>&5
7525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526
(exit $ac_status); } 2>conftest.err; then
7529
libobjs=conftest.$ac_objext
7531
wl=$lt_prog_compiler_wl
7537
lt_save_allow_undefined_flag=$allow_undefined_flag
7538
allow_undefined_flag=
7539
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7540
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543
(exit $ac_status); }
7545
archive_cmds_need_lc=no
7547
archive_cmds_need_lc=yes
7549
allow_undefined_flag=$lt_save_allow_undefined_flag
7551
cat conftest.err 1>&5
7554
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7555
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7562
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7563
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7565
libname_spec='lib$name'
7573
shlibpath_overrides_runpath=unknown
7575
dynamic_linker="$host_os ld.so"
7576
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7577
if test "$GCC" = yes; then
7578
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7579
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7580
# if the path contains ";" then we assume it to be the separator
7581
# otherwise default to the standard path separator (i.e. ":") - it is
7582
# assumed that no part of a normal pathname contains ";" but that should
7583
# okay in the real world where ";" in dirpaths is itself problematic.
7584
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7586
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7589
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7591
need_lib_prefix=unknown
7592
hardcode_into_libs=no
7594
# when you set need_version to no, make sure it does not cause -set_version
7595
# flags to be left without arguments
7596
need_version=unknown
7601
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7602
shlibpath_var=LIBPATH
7604
# AIX 3 has no versioning support, so we append a major version to the name.
7605
soname_spec='${libname}${release}${shared_ext}$major'
7612
hardcode_into_libs=yes
7613
if test "$host_cpu" = ia64; then
7614
# AIX 5 supports IA64
7615
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7616
shlibpath_var=LD_LIBRARY_PATH
7618
# With GCC up to 2.95.x, collect2 would create an import file
7619
# for dependence libraries. The import file would start with
7620
# the line `#! .'. This would cause the generated library to
7621
# depend on `.', always an invalid library. This was fixed in
7622
# development snapshots of GCC prior to 3.0.
7624
aix4 | aix4.[01] | aix4.[01].*)
7625
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7627
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7634
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7635
# soname into executable. Probably we can add versioning support to
7636
# collect2, so additional links can be useful in future.
7637
if test "$aix_use_runtimelinking" = yes; then
7638
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7639
# instead of lib<name>.a to let people know that these are not
7640
# typical AIX shared libraries.
7641
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7643
# We preserve .a as extension for shared libraries through AIX4.2
7644
# and later when we are not doing run time linking.
7645
library_names_spec='${libname}${release}.a $libname.a'
7646
soname_spec='${libname}${release}${shared_ext}$major'
7648
shlibpath_var=LIBPATH
7653
library_names_spec='$libname.ixlibrary $libname.a'
7654
# Create ${libname}_ixlibrary.a entries in /sys/libs.
7655
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'
7659
library_names_spec='${libname}${shared_ext}'
7660
dynamic_linker="$host_os ld.so"
7661
shlibpath_var=LIBRARY_PATH
7667
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7668
soname_spec='${libname}${release}${shared_ext}$major'
7669
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7670
shlibpath_var=LD_LIBRARY_PATH
7671
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7672
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7673
# the default ld.so.conf also contains /usr/contrib/lib and
7674
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7675
# libtool to hard-code these into programs
7678
cygwin* | mingw* | pw32*)
7679
version_type=windows
7684
case $GCC,$host_os in
7685
yes,cygwin* | yes,mingw* | yes,pw32*)
7686
library_names_spec='$libname.dll.a'
7687
# DLL is installed to $(libdir)/../bin by postinstall_cmds
7688
postinstall_cmds='base_file=`basename \${file}`~
7689
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7690
dldir=$destdir/`dirname \$dlpath`~
7691
test -d \$dldir || mkdir -p \$dldir~
7692
$install_prog $dir/$dlname \$dldir/$dlname'
7693
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7694
dlpath=$dir/\$dldll~
7696
shlibpath_overrides_runpath=yes
7700
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
7701
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7702
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7705
# MinGW DLLs use traditional 'lib' prefix
7706
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7707
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7708
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7709
# It is most probably a Windows format PATH printed by
7710
# mingw gcc, but we are running on Cygwin. Gcc prints its search
7711
# path with ; separators, and with drive letters. We can handle the
7712
# drive letters (cygwin fileutils understands them), so leave them,
7713
# especially as we might pass files found there to a mingw objdump,
7714
# which wouldn't understand a cygwinified path. Ahh.
7715
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7717
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7721
# pw32 DLLs use 'pw' prefix rather than 'lib'
7722
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7728
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7731
dynamic_linker='Win32 ld.exe'
7732
# FIXME: first we should search . and the directory the executable is in
7736
darwin* | rhapsody*)
7737
dynamic_linker="$host_os dyld"
7741
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7742
soname_spec='${libname}${release}${major}$shared_ext'
7743
shlibpath_overrides_runpath=yes
7744
shlibpath_var=DYLD_LIBRARY_PATH
7745
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7746
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7747
if test "$GCC" = yes; then
7748
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"`
7750
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7752
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7759
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7760
soname_spec='${libname}${release}${shared_ext}$major'
7761
shlibpath_var=LD_LIBRARY_PATH
7772
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7773
soname_spec='${libname}${release}${shared_ext}$major'
7774
shlibpath_var=LD_LIBRARY_PATH
7775
shlibpath_overrides_runpath=no
7776
hardcode_into_libs=yes
7777
dynamic_linker='GNU ld.so'
7781
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7782
version_type=freebsd-$objformat
7783
case $version_type in
7785
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7790
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7794
shlibpath_var=LD_LIBRARY_PATH
7797
shlibpath_overrides_runpath=yes
7799
freebsd3.01* | freebsdelf3.01*)
7800
shlibpath_overrides_runpath=yes
7801
hardcode_into_libs=yes
7804
shlibpath_overrides_runpath=no
7805
hardcode_into_libs=yes
7814
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7815
soname_spec='${libname}${release}${shared_ext}$major'
7816
shlibpath_var=LD_LIBRARY_PATH
7817
hardcode_into_libs=yes
7820
hpux9* | hpux10* | hpux11*)
7821
# Give a soname corresponding to the major version so that dld.sl refuses to
7822
# link against other versions.
7829
hardcode_into_libs=yes
7830
dynamic_linker="$host_os dld.so"
7831
shlibpath_var=LD_LIBRARY_PATH
7832
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7833
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7834
soname_spec='${libname}${release}${shared_ext}$major'
7835
if test "X$HPUX_IA64_MODE" = X32; then
7836
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7838
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7840
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7844
hardcode_into_libs=yes
7845
dynamic_linker="$host_os dld.sl"
7846
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7847
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7848
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7849
soname_spec='${libname}${release}${shared_ext}$major'
7850
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7851
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7855
dynamic_linker="$host_os dld.sl"
7856
shlibpath_var=SHLIB_PATH
7857
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7858
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7859
soname_spec='${libname}${release}${shared_ext}$major'
7862
# HP-UX runs *really* slowly unless shared libraries are mode 555.
7863
postinstall_cmds='chmod 555 $lib'
7866
irix5* | irix6* | nonstopux*)
7868
nonstopux*) version_type=nonstopux ;;
7870
if test "$lt_cv_prog_gnu_ld" = yes; then
7878
soname_spec='${libname}${release}${shared_ext}$major'
7879
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7881
irix5* | nonstopux*)
7885
case $LD in # libtool.m4 will add one of these switches to LD
7886
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7887
libsuff= shlibsuff= libmagic=32-bit;;
7888
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7889
libsuff=32 shlibsuff=N32 libmagic=N32;;
7890
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7891
libsuff=64 shlibsuff=64 libmagic=64-bit;;
7892
*) libsuff= shlibsuff= libmagic=never-match;;
7896
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7897
shlibpath_overrides_runpath=no
7898
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7899
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7900
hardcode_into_libs=yes
7903
# No shared lib support for Linux oldld, aout, or coff.
7904
linux*oldld* | linux*aout* | linux*coff*)
7908
# This must be Linux ELF.
7913
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7914
soname_spec='${libname}${release}${shared_ext}$major'
7915
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7916
shlibpath_var=LD_LIBRARY_PATH
7917
shlibpath_overrides_runpath=no
7918
# This implies no fast_install, which is unacceptable.
7919
# Some rework will be needed to allow for fast_install
7920
# before this can be enabled.
7921
hardcode_into_libs=yes
7923
# Append ld.so.conf contents to the search path
7924
if test -f /etc/ld.so.conf; then
7925
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7926
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7929
# We used to test for /lib/ld.so.1 and disable shared libraries on
7930
# powerpc, because MkLinux only supported shared libraries with the
7931
# GNU dynamic linker. Since this was broken with cross compilers,
7932
# most powerpc-linux boxes support dynamic linking these days and
7933
# people can always --disable-shared, the test was removed, and we
7934
# assume the GNU/Linux dynamic linker is in use.
7935
dynamic_linker='GNU/Linux ld.so'
7942
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7943
soname_spec='${libname}${release}${shared_ext}$major'
7944
shlibpath_var=LD_LIBRARY_PATH
7945
shlibpath_overrides_runpath=no
7946
hardcode_into_libs=yes
7947
dynamic_linker='NetBSD ld.elf_so'
7954
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7955
soname_spec='${libname}${release}${shared_ext}$major'
7956
shlibpath_var=LD_LIBRARY_PATH
7957
shlibpath_overrides_runpath=no
7958
hardcode_into_libs=yes
7959
dynamic_linker='GNU ld.so'
7966
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7967
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7968
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7969
dynamic_linker='NetBSD (a.out) ld.so'
7971
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7972
soname_spec='${libname}${release}${shared_ext}$major'
7973
dynamic_linker='NetBSD ld.elf_so'
7975
shlibpath_var=LD_LIBRARY_PATH
7976
shlibpath_overrides_runpath=yes
7977
hardcode_into_libs=yes
7982
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7983
shlibpath_var=LD_LIBRARY_PATH
7984
shlibpath_overrides_runpath=yes
7991
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7992
soname_spec='${libname}${release}${shared_ext}$major'
7993
shlibpath_var=LD_LIBRARY_PATH
7994
shlibpath_overrides_runpath=yes
8001
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8002
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8003
shlibpath_var=LD_LIBRARY_PATH
8004
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8006
openbsd2.[89] | openbsd2.[89].*)
8007
shlibpath_overrides_runpath=no
8010
shlibpath_overrides_runpath=yes
8014
shlibpath_overrides_runpath=yes
8019
libname_spec='$name'
8022
library_names_spec='$libname${shared_ext} $libname.a'
8023
dynamic_linker='OS/2 ld.exe'
8024
shlibpath_var=LIBPATH
8027
osf3* | osf4* | osf5*)
8031
soname_spec='${libname}${release}${shared_ext}$major'
8032
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8033
shlibpath_var=LD_LIBRARY_PATH
8034
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8035
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8040
soname_spec='${libname}${release}${shared_ext}$major'
8041
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8042
shlibpath_var=LD_LIBRARY_PATH
8049
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8050
soname_spec='${libname}${release}${shared_ext}$major'
8051
shlibpath_var=LD_LIBRARY_PATH
8052
shlibpath_overrides_runpath=yes
8053
hardcode_into_libs=yes
8054
# ldd complains unless libraries are executable
8055
postinstall_cmds='chmod +x $lib'
8060
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8061
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8062
shlibpath_var=LD_LIBRARY_PATH
8063
shlibpath_overrides_runpath=yes
8064
if test "$with_gnu_ld" = yes; then
8070
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8072
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8073
soname_spec='${libname}${release}${shared_ext}$major'
8074
shlibpath_var=LD_LIBRARY_PATH
8075
case $host_vendor in
8077
shlibpath_overrides_runpath=no
8079
export_dynamic_flag_spec='${wl}-Blargedynsym'
8080
runpath_var=LD_RUN_PATH
8088
shlibpath_overrides_runpath=no
8089
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8095
if test -d /usr/nec ;then
8097
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8098
soname_spec='$libname${shared_ext}.$major'
8099
shlibpath_var=LD_LIBRARY_PATH
8105
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8106
soname_spec='${libname}${release}${shared_ext}$major'
8107
shlibpath_var=LD_LIBRARY_PATH
8114
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8115
echo "${ECHO_T}$dynamic_linker" >&6
8116
test "$dynamic_linker" = no && can_build_shared=no
8118
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8119
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8121
if test -n "$hardcode_libdir_flag_spec" || \
8122
test -n "$runpath_var " || \
8123
test "X$hardcode_automatic"="Xyes" ; then
8125
# We can hardcode non-existant directories.
8126
if test "$hardcode_direct" != no &&
8127
# If the only mechanism to avoid hardcoding is shlibpath_var, we
8128
# have to relink, otherwise we might link with an installed library
8129
# when we should be linking with a yet-to-be-installed one
8130
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8131
test "$hardcode_minus_L" != no; then
8132
# Linking always hardcodes the temporary library directory.
8133
hardcode_action=relink
8135
# We can link without hardcoding, and we can hardcode nonexisting dirs.
8136
hardcode_action=immediate
8139
# We cannot hardcode anything, or else we can only hardcode existing
8141
hardcode_action=unsupported
8143
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8144
echo "${ECHO_T}$hardcode_action" >&6
8146
if test "$hardcode_action" = relink; then
8147
# Fast installation is not supported
8148
enable_fast_install=no
8149
elif test "$shlibpath_overrides_runpath" = yes ||
8150
test "$enable_shared" = no; then
8151
# Fast installation is not necessary
8152
enable_fast_install=needless
8157
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8158
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8159
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8160
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8161
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8162
echo "$as_me:$LINENO: result: yes" >&5
8163
echo "${ECHO_T}yes" >&6
8165
# FIXME - insert some real tests, host_os isn't really good enough
8168
if test -n "$STRIP" ; then
8169
striplib="$STRIP -x"
8170
echo "$as_me:$LINENO: result: yes" >&5
8171
echo "${ECHO_T}yes" >&6
8173
echo "$as_me:$LINENO: result: no" >&5
8174
echo "${ECHO_T}no" >&6
8178
echo "$as_me:$LINENO: result: no" >&5
8179
echo "${ECHO_T}no" >&6
8184
if test "x$enable_dlopen" != xyes; then
8185
enable_dlopen=unknown
8186
enable_dlopen_self=unknown
8187
enable_dlopen_self_static=unknown
8194
lt_cv_dlopen="load_add_on"
8196
lt_cv_dlopen_self=yes
8200
lt_cv_dlopen="LoadLibrary"
8205
lt_cv_dlopen="dlopen"
8210
# if libdl is installed we need to link against it
8211
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8212
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8213
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8214
echo $ECHO_N "(cached) $ECHO_C" >&6
8216
ac_check_lib_save_LIBS=$LIBS
8218
cat >conftest.$ac_ext <<_ACEOF
8221
cat confdefs.h >>conftest.$ac_ext
8222
cat >>conftest.$ac_ext <<_ACEOF
8223
/* end confdefs.h. */
8225
/* Override any gcc2 internal prototype to avoid an error. */
8229
/* We use char because int might match the return type of a gcc2
8230
builtin and then its argument prototype would still apply. */
8240
rm -f conftest.$ac_objext conftest$ac_exeext
8241
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8242
(eval $ac_link) 2>conftest.er1
8244
grep -v '^ *+' conftest.er1 >conftest.err
8246
cat conftest.err >&5
8247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248
(exit $ac_status); } &&
8249
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8250
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254
(exit $ac_status); }; } &&
8255
{ ac_try='test -s conftest$ac_exeext'
8256
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260
(exit $ac_status); }; }; then
8261
ac_cv_lib_dl_dlopen=yes
8263
echo "$as_me: failed program was:" >&5
8264
sed 's/^/| /' conftest.$ac_ext >&5
8266
ac_cv_lib_dl_dlopen=no
8268
rm -f conftest.err conftest.$ac_objext \
8269
conftest$ac_exeext conftest.$ac_ext
8270
LIBS=$ac_check_lib_save_LIBS
8272
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8273
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8274
if test $ac_cv_lib_dl_dlopen = yes; then
8275
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8280
lt_cv_dlopen_self=yes
8287
echo "$as_me:$LINENO: checking for shl_load" >&5
8288
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8289
if test "${ac_cv_func_shl_load+set}" = set; then
8290
echo $ECHO_N "(cached) $ECHO_C" >&6
8292
cat >conftest.$ac_ext <<_ACEOF
8295
cat confdefs.h >>conftest.$ac_ext
8296
cat >>conftest.$ac_ext <<_ACEOF
8297
/* end confdefs.h. */
8298
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8299
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8300
#define shl_load innocuous_shl_load
8302
/* System header to define __stub macros and hopefully few prototypes,
8303
which can conflict with char shl_load (); below.
8304
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8305
<limits.h> exists even on freestanding compilers. */
8308
# include <limits.h>
8310
# include <assert.h>
8315
/* Override any gcc2 internal prototype to avoid an error. */
8320
/* We use char because int might match the return type of a gcc2
8321
builtin and then its argument prototype would still apply. */
8323
/* The GNU C library defines this for functions which it implements
8324
to always fail with ENOSYS. Some functions are actually named
8325
something starting with __ and the normal name is an alias. */
8326
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8329
char (*f) () = shl_load;
8338
return f != shl_load;
8343
rm -f conftest.$ac_objext conftest$ac_exeext
8344
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8345
(eval $ac_link) 2>conftest.er1
8347
grep -v '^ *+' conftest.er1 >conftest.err
8349
cat conftest.err >&5
8350
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351
(exit $ac_status); } &&
8352
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8353
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357
(exit $ac_status); }; } &&
8358
{ ac_try='test -s conftest$ac_exeext'
8359
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363
(exit $ac_status); }; }; then
8364
ac_cv_func_shl_load=yes
8366
echo "$as_me: failed program was:" >&5
8367
sed 's/^/| /' conftest.$ac_ext >&5
8369
ac_cv_func_shl_load=no
8371
rm -f conftest.err conftest.$ac_objext \
8372
conftest$ac_exeext conftest.$ac_ext
8374
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8375
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8376
if test $ac_cv_func_shl_load = yes; then
8377
lt_cv_dlopen="shl_load"
8379
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8380
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8381
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8382
echo $ECHO_N "(cached) $ECHO_C" >&6
8384
ac_check_lib_save_LIBS=$LIBS
8386
cat >conftest.$ac_ext <<_ACEOF
8389
cat confdefs.h >>conftest.$ac_ext
8390
cat >>conftest.$ac_ext <<_ACEOF
8391
/* end confdefs.h. */
8393
/* Override any gcc2 internal prototype to avoid an error. */
8397
/* We use char because int might match the return type of a gcc2
8398
builtin and then its argument prototype would still apply. */
8408
rm -f conftest.$ac_objext conftest$ac_exeext
8409
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8410
(eval $ac_link) 2>conftest.er1
8412
grep -v '^ *+' conftest.er1 >conftest.err
8414
cat conftest.err >&5
8415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416
(exit $ac_status); } &&
8417
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8418
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422
(exit $ac_status); }; } &&
8423
{ ac_try='test -s conftest$ac_exeext'
8424
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8427
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428
(exit $ac_status); }; }; then
8429
ac_cv_lib_dld_shl_load=yes
8431
echo "$as_me: failed program was:" >&5
8432
sed 's/^/| /' conftest.$ac_ext >&5
8434
ac_cv_lib_dld_shl_load=no
8436
rm -f conftest.err conftest.$ac_objext \
8437
conftest$ac_exeext conftest.$ac_ext
8438
LIBS=$ac_check_lib_save_LIBS
8440
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8441
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8442
if test $ac_cv_lib_dld_shl_load = yes; then
8443
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8445
echo "$as_me:$LINENO: checking for dlopen" >&5
8446
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8447
if test "${ac_cv_func_dlopen+set}" = set; then
8448
echo $ECHO_N "(cached) $ECHO_C" >&6
8450
cat >conftest.$ac_ext <<_ACEOF
8453
cat confdefs.h >>conftest.$ac_ext
8454
cat >>conftest.$ac_ext <<_ACEOF
8455
/* end confdefs.h. */
8456
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8457
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8458
#define dlopen innocuous_dlopen
8460
/* System header to define __stub macros and hopefully few prototypes,
8461
which can conflict with char dlopen (); below.
8462
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8463
<limits.h> exists even on freestanding compilers. */
8466
# include <limits.h>
8468
# include <assert.h>
8473
/* Override any gcc2 internal prototype to avoid an error. */
8478
/* We use char because int might match the return type of a gcc2
8479
builtin and then its argument prototype would still apply. */
8481
/* The GNU C library defines this for functions which it implements
8482
to always fail with ENOSYS. Some functions are actually named
8483
something starting with __ and the normal name is an alias. */
8484
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8487
char (*f) () = dlopen;
8501
rm -f conftest.$ac_objext conftest$ac_exeext
8502
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8503
(eval $ac_link) 2>conftest.er1
8505
grep -v '^ *+' conftest.er1 >conftest.err
8507
cat conftest.err >&5
8508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509
(exit $ac_status); } &&
8510
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8511
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515
(exit $ac_status); }; } &&
8516
{ ac_try='test -s conftest$ac_exeext'
8517
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521
(exit $ac_status); }; }; then
8522
ac_cv_func_dlopen=yes
8524
echo "$as_me: failed program was:" >&5
8525
sed 's/^/| /' conftest.$ac_ext >&5
8527
ac_cv_func_dlopen=no
8529
rm -f conftest.err conftest.$ac_objext \
8530
conftest$ac_exeext conftest.$ac_ext
8532
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8533
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8534
if test $ac_cv_func_dlopen = yes; then
8535
lt_cv_dlopen="dlopen"
8537
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8538
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8539
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8540
echo $ECHO_N "(cached) $ECHO_C" >&6
8542
ac_check_lib_save_LIBS=$LIBS
8544
cat >conftest.$ac_ext <<_ACEOF
8547
cat confdefs.h >>conftest.$ac_ext
8548
cat >>conftest.$ac_ext <<_ACEOF
8549
/* end confdefs.h. */
8551
/* Override any gcc2 internal prototype to avoid an error. */
8555
/* We use char because int might match the return type of a gcc2
8556
builtin and then its argument prototype would still apply. */
8566
rm -f conftest.$ac_objext conftest$ac_exeext
8567
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8568
(eval $ac_link) 2>conftest.er1
8570
grep -v '^ *+' conftest.er1 >conftest.err
8572
cat conftest.err >&5
8573
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574
(exit $ac_status); } &&
8575
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8576
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8579
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580
(exit $ac_status); }; } &&
8581
{ ac_try='test -s conftest$ac_exeext'
8582
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586
(exit $ac_status); }; }; then
8587
ac_cv_lib_dl_dlopen=yes
8589
echo "$as_me: failed program was:" >&5
8590
sed 's/^/| /' conftest.$ac_ext >&5
8592
ac_cv_lib_dl_dlopen=no
8594
rm -f conftest.err conftest.$ac_objext \
8595
conftest$ac_exeext conftest.$ac_ext
8596
LIBS=$ac_check_lib_save_LIBS
8598
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8599
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8600
if test $ac_cv_lib_dl_dlopen = yes; then
8601
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8603
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8604
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8605
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8606
echo $ECHO_N "(cached) $ECHO_C" >&6
8608
ac_check_lib_save_LIBS=$LIBS
8610
cat >conftest.$ac_ext <<_ACEOF
8613
cat confdefs.h >>conftest.$ac_ext
8614
cat >>conftest.$ac_ext <<_ACEOF
8615
/* end confdefs.h. */
8617
/* Override any gcc2 internal prototype to avoid an error. */
8621
/* We use char because int might match the return type of a gcc2
8622
builtin and then its argument prototype would still apply. */
8632
rm -f conftest.$ac_objext conftest$ac_exeext
8633
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8634
(eval $ac_link) 2>conftest.er1
8636
grep -v '^ *+' conftest.er1 >conftest.err
8638
cat conftest.err >&5
8639
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640
(exit $ac_status); } &&
8641
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8642
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646
(exit $ac_status); }; } &&
8647
{ ac_try='test -s conftest$ac_exeext'
8648
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652
(exit $ac_status); }; }; then
8653
ac_cv_lib_svld_dlopen=yes
8655
echo "$as_me: failed program was:" >&5
8656
sed 's/^/| /' conftest.$ac_ext >&5
8658
ac_cv_lib_svld_dlopen=no
8660
rm -f conftest.err conftest.$ac_objext \
8661
conftest$ac_exeext conftest.$ac_ext
8662
LIBS=$ac_check_lib_save_LIBS
8664
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8665
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8666
if test $ac_cv_lib_svld_dlopen = yes; then
8667
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8669
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8670
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8671
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8672
echo $ECHO_N "(cached) $ECHO_C" >&6
8674
ac_check_lib_save_LIBS=$LIBS
8676
cat >conftest.$ac_ext <<_ACEOF
8679
cat confdefs.h >>conftest.$ac_ext
8680
cat >>conftest.$ac_ext <<_ACEOF
8681
/* end confdefs.h. */
8683
/* Override any gcc2 internal prototype to avoid an error. */
8687
/* We use char because int might match the return type of a gcc2
8688
builtin and then its argument prototype would still apply. */
8698
rm -f conftest.$ac_objext conftest$ac_exeext
8699
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8700
(eval $ac_link) 2>conftest.er1
8702
grep -v '^ *+' conftest.er1 >conftest.err
8704
cat conftest.err >&5
8705
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706
(exit $ac_status); } &&
8707
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8708
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712
(exit $ac_status); }; } &&
8713
{ ac_try='test -s conftest$ac_exeext'
8714
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718
(exit $ac_status); }; }; then
8719
ac_cv_lib_dld_dld_link=yes
8721
echo "$as_me: failed program was:" >&5
8722
sed 's/^/| /' conftest.$ac_ext >&5
8724
ac_cv_lib_dld_dld_link=no
8726
rm -f conftest.err conftest.$ac_objext \
8727
conftest$ac_exeext conftest.$ac_ext
8728
LIBS=$ac_check_lib_save_LIBS
8730
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8731
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8732
if test $ac_cv_lib_dld_dld_link = yes; then
8733
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8754
if test "x$lt_cv_dlopen" != xno; then
8760
case $lt_cv_dlopen in
8762
save_CPPFLAGS="$CPPFLAGS"
8763
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8765
save_LDFLAGS="$LDFLAGS"
8766
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8769
LIBS="$lt_cv_dlopen_libs $LIBS"
8771
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8772
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8773
if test "${lt_cv_dlopen_self+set}" = set; then
8774
echo $ECHO_N "(cached) $ECHO_C" >&6
8776
if test "$cross_compiling" = yes; then :
8777
lt_cv_dlopen_self=cross
8779
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8780
lt_status=$lt_dlunknown
8781
cat > conftest.$ac_ext <<EOF
8782
#line 8782 "configure"
8783
#include "confdefs.h"
8792
# define LT_DLGLOBAL RTLD_GLOBAL
8795
# define LT_DLGLOBAL DL_GLOBAL
8797
# define LT_DLGLOBAL 0
8801
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8802
find out it does not work in some platform. */
8803
#ifndef LT_DLLAZY_OR_NOW
8805
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8808
# define LT_DLLAZY_OR_NOW DL_LAZY
8811
# define LT_DLLAZY_OR_NOW RTLD_NOW
8814
# define LT_DLLAZY_OR_NOW DL_NOW
8816
# define LT_DLLAZY_OR_NOW 0
8824
extern "C" void exit (int);
8827
void fnord() { int i=42;}
8830
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8831
int status = $lt_dlunknown;
8835
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8836
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8837
/* dlclose (self); */
8843
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8844
(eval $ac_link) 2>&5
8846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8848
(./conftest; exit; ) 2>/dev/null
8851
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8852
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8853
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8856
# compilation failed
8857
lt_cv_dlopen_self=no
8864
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8865
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8867
if test "x$lt_cv_dlopen_self" = xyes; then
8868
LDFLAGS="$LDFLAGS $link_static_flag"
8869
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8870
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8871
if test "${lt_cv_dlopen_self_static+set}" = set; then
8872
echo $ECHO_N "(cached) $ECHO_C" >&6
8874
if test "$cross_compiling" = yes; then :
8875
lt_cv_dlopen_self_static=cross
8877
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8878
lt_status=$lt_dlunknown
8879
cat > conftest.$ac_ext <<EOF
8880
#line 8880 "configure"
8881
#include "confdefs.h"
8890
# define LT_DLGLOBAL RTLD_GLOBAL
8893
# define LT_DLGLOBAL DL_GLOBAL
8895
# define LT_DLGLOBAL 0
8899
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8900
find out it does not work in some platform. */
8901
#ifndef LT_DLLAZY_OR_NOW
8903
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8906
# define LT_DLLAZY_OR_NOW DL_LAZY
8909
# define LT_DLLAZY_OR_NOW RTLD_NOW
8912
# define LT_DLLAZY_OR_NOW DL_NOW
8914
# define LT_DLLAZY_OR_NOW 0
8922
extern "C" void exit (int);
8925
void fnord() { int i=42;}
8928
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8929
int status = $lt_dlunknown;
8933
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8934
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8935
/* dlclose (self); */
8941
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942
(eval $ac_link) 2>&5
8944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8946
(./conftest; exit; ) 2>/dev/null
8949
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8950
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8951
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8954
# compilation failed
8955
lt_cv_dlopen_self_static=no
8962
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8963
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8966
CPPFLAGS="$save_CPPFLAGS"
8967
LDFLAGS="$save_LDFLAGS"
8972
case $lt_cv_dlopen_self in
8973
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8974
*) enable_dlopen_self=unknown ;;
8977
case $lt_cv_dlopen_self_static in
8978
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8979
*) enable_dlopen_self_static=unknown ;;
8984
# Report which librarie types wil actually be built
8985
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8986
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8987
echo "$as_me:$LINENO: result: $can_build_shared" >&5
8988
echo "${ECHO_T}$can_build_shared" >&6
8990
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8991
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8992
test "$can_build_shared" = "no" && enable_shared=no
8994
# On AIX, shared libraries and static libraries use the same namespace, and
8995
# are all built from PIC.
8998
test "$enable_shared" = yes && enable_static=no
8999
if test -n "$RANLIB"; then
9000
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9001
postinstall_cmds='$RANLIB $lib'
9006
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9007
test "$enable_shared" = yes && enable_static=no
9010
darwin* | rhapsody*)
9011
if test "$GCC" = yes; then
9012
archive_cmds_need_lc=no
9014
rhapsody* | darwin1.[012])
9015
allow_undefined_flag='-undefined suppress'
9018
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9019
allow_undefined_flag='-flat_namespace -undefined suppress'
9021
case ${MACOSX_DEPLOYMENT_TARGET} in
9023
allow_undefined_flag='-flat_namespace -undefined suppress'
9026
allow_undefined_flag='-undefined dynamic_lookup'
9032
output_verbose_link_cmd='echo'
9033
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9034
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9035
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9036
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}'
9037
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}'
9039
hardcode_automatic=yes
9040
hardcode_shlibpath_var=unsupported
9041
whole_archive_flag_spec='-all_load $convenience'
9042
link_all_deplibs=yes
9048
echo "$as_me:$LINENO: result: $enable_shared" >&5
9049
echo "${ECHO_T}$enable_shared" >&6
9051
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9052
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9053
# Make sure either enable_shared or enable_static is yes.
9054
test "$enable_shared" = yes || enable_static=yes
9055
echo "$as_me:$LINENO: result: $enable_static" >&5
9056
echo "${ECHO_T}$enable_static" >&6
9058
# The else clause should only fire when bootstrapping the
9059
# libtool distribution, otherwise you forgot to ship ltmain.sh
9060
# with your package, and you will get complaints that there are
9061
# no rules to generate ltmain.sh.
9062
if test -f "$ltmain"; then
9063
# See if we are running on zsh, and set the options which allow our commands through
9064
# without removal of \ escapes.
9065
if test -n "${ZSH_VERSION+set}" ; then
9066
setopt NO_GLOB_SUBST
9068
# Now quote all the things that may contain metacharacters while being
9069
# careful not to overquote the AC_SUBSTed values. We take copies of the
9070
# variables and quote the copies for generation of the libtool script.
9071
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9073
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9074
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9075
deplibs_check_method reload_flag reload_cmds need_locks \
9076
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9077
lt_cv_sys_global_symbol_to_c_name_address \
9078
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9079
old_postinstall_cmds old_postuninstall_cmds \
9083
lt_prog_compiler_wl \
9084
lt_prog_compiler_pic \
9085
lt_prog_compiler_static \
9086
lt_prog_compiler_no_builtin_flag \
9087
export_dynamic_flag_spec \
9088
thread_safe_flag_spec \
9089
whole_archive_flag_spec \
9090
enable_shared_with_static_runtimes \
9092
old_archive_from_new_cmds \
9097
compiler_lib_search_path \
9099
archive_expsym_cmds \
9101
postuninstall_cmds \
9102
old_archive_from_expsyms_cmds \
9103
allow_undefined_flag \
9105
export_symbols_cmds \
9106
hardcode_libdir_flag_spec \
9107
hardcode_libdir_flag_spec_ld \
9108
hardcode_libdir_separator \
9109
hardcode_automatic \
9111
module_expsym_cmds \
9112
lt_cv_prog_compiler_c_o \
9117
old_archive_cmds | \
9118
old_archive_from_new_cmds | \
9120
archive_expsym_cmds | \
9122
module_expsym_cmds | \
9123
old_archive_from_expsyms_cmds | \
9124
export_symbols_cmds | \
9125
extract_expsyms_cmds | reload_cmds | finish_cmds | \
9126
postinstall_cmds | postuninstall_cmds | \
9127
old_postinstall_cmds | old_postuninstall_cmds | \
9128
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9129
# Double-quote double-evaled strings.
9130
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9133
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9139
*'\$0 --fallback-echo"')
9140
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9145
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9147
{ echo "$as_me:$LINENO: creating $ofile" >&5
9148
echo "$as_me: creating $ofile" >&6;}
9150
cat <<__EOF__ >> "$cfgfile"
9153
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9154
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9155
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9157
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9158
# Free Software Foundation, Inc.
9160
# This file is part of GNU Libtool:
9161
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9163
# This program is free software; you can redistribute it and/or modify
9164
# it under the terms of the GNU General Public License as published by
9165
# the Free Software Foundation; either version 2 of the License, or
9166
# (at your option) any later version.
9168
# This program is distributed in the hope that it will be useful, but
9169
# WITHOUT ANY WARRANTY; without even the implied warranty of
9170
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9171
# General Public License for more details.
9173
# You should have received a copy of the GNU General Public License
9174
# along with this program; if not, write to the Free Software
9175
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9177
# As a special exception to the GNU General Public License, if you
9178
# distribute this file as part of a program that contains a
9179
# configuration script generated by Autoconf, you may include it under
9180
# the same distribution terms that you use for the rest of that program.
9182
# A sed program that does not truncate output.
9185
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9186
Xsed="$SED -e s/^X//"
9188
# The HP-UX ksh and POSIX shell print the target directory to stdout
9190
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9192
# The names of the tagged configurations supported by this script.
9195
# ### BEGIN LIBTOOL CONFIG
9197
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9199
# Shell to use when invoking shell scripts.
9202
# Whether or not to build shared libraries.
9203
build_libtool_libs=$enable_shared
9205
# Whether or not to build static libraries.
9206
build_old_libs=$enable_static
9208
# Whether or not to add -lc for building shared libraries.
9209
build_libtool_need_lc=$archive_cmds_need_lc
9211
# Whether or not to disallow shared libs when runtime libs are static
9212
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9214
# Whether or not to optimize for fast installation.
9215
fast_install=$enable_fast_install
9218
host_alias=$host_alias
9221
# An echo program that does not interpret backslashes.
9226
AR_FLAGS=$lt_AR_FLAGS
9231
# A language-specific compiler.
9234
# Is the compiler the GNU C compiler?
9240
# The linker used to build libraries.
9243
# Whether we need hard or soft links.
9246
# A BSD-compatible nm program.
9249
# A symbol stripping program
9252
# Used to examine libraries when file_magic_cmd begins "file"
9253
MAGIC_CMD=$MAGIC_CMD
9255
# Used on cygwin: DLL creation program.
9258
# Used on cygwin: object dumper.
9261
# Used on cygwin: assembler.
9264
# The name of the directory that contains temporary libtool files.
9267
# How to create reloadable object files.
9268
reload_flag=$lt_reload_flag
9269
reload_cmds=$lt_reload_cmds
9271
# How to pass a linker flag through the compiler.
9272
wl=$lt_lt_prog_compiler_wl
9274
# Object file suffix (normally "o").
9277
# Old archive suffix (normally "a").
9280
# Shared library suffix (normally ".so").
9281
shrext_cmds='$shrext_cmds'
9283
# Executable file suffix (normally "").
9286
# Additional compiler flags for building library objects.
9287
pic_flag=$lt_lt_prog_compiler_pic
9290
# What is the maximum length of a command?
9291
max_cmd_len=$lt_cv_sys_max_cmd_len
9293
# Does compiler simultaneously support -c and -o options?
9294
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9296
# Must we lock files when doing compilation ?
9297
need_locks=$lt_need_locks
9299
# Do we need the lib prefix for modules?
9300
need_lib_prefix=$need_lib_prefix
9302
# Do we need a version for libraries?
9303
need_version=$need_version
9305
# Whether dlopen is supported.
9306
dlopen_support=$enable_dlopen
9308
# Whether dlopen of programs is supported.
9309
dlopen_self=$enable_dlopen_self
9311
# Whether dlopen of statically linked programs is supported.
9312
dlopen_self_static=$enable_dlopen_self_static
9314
# Compiler flag to prevent dynamic linking.
9315
link_static_flag=$lt_lt_prog_compiler_static
9317
# Compiler flag to turn off builtin functions.
9318
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9320
# Compiler flag to allow reflexive dlopens.
9321
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9323
# Compiler flag to generate shared objects directly from archives.
9324
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9326
# Compiler flag to generate thread-safe objects.
9327
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9329
# Library versioning type.
9330
version_type=$version_type
9332
# Format of library name prefix.
9333
libname_spec=$lt_libname_spec
9335
# List of archive names. First name is the real one, the rest are links.
9336
# The last name is the one that the linker finds with -lNAME.
9337
library_names_spec=$lt_library_names_spec
9339
# The coded name of the library, if different from the real name.
9340
soname_spec=$lt_soname_spec
9342
# Commands used to build and install an old-style archive.
9344
old_archive_cmds=$lt_old_archive_cmds
9345
old_postinstall_cmds=$lt_old_postinstall_cmds
9346
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9348
# Create an old-style archive from a shared archive.
9349
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9351
# Create a temporary old-style archive to link instead of a shared archive.
9352
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9354
# Commands used to build and install a shared archive.
9355
archive_cmds=$lt_archive_cmds
9356
archive_expsym_cmds=$lt_archive_expsym_cmds
9357
postinstall_cmds=$lt_postinstall_cmds
9358
postuninstall_cmds=$lt_postuninstall_cmds
9360
# Commands used to build a loadable module (assumed same as above if empty)
9361
module_cmds=$lt_module_cmds
9362
module_expsym_cmds=$lt_module_expsym_cmds
9364
# Commands to strip libraries.
9365
old_striplib=$lt_old_striplib
9366
striplib=$lt_striplib
9368
# Dependencies to place before the objects being linked to create a
9370
predep_objects=$lt_predep_objects
9372
# Dependencies to place after the objects being linked to create a
9374
postdep_objects=$lt_postdep_objects
9376
# Dependencies to place before the objects being linked to create a
9380
# Dependencies to place after the objects being linked to create a
9382
postdeps=$lt_postdeps
9384
# The library search path used internally by the compiler when linking
9386
compiler_lib_search_path=$lt_compiler_lib_search_path
9388
# Method to check whether dependent libraries are shared objects.
9389
deplibs_check_method=$lt_deplibs_check_method
9391
# Command to use when deplibs_check_method == file_magic.
9392
file_magic_cmd=$lt_file_magic_cmd
9394
# Flag that allows shared libraries with undefined symbols to be built.
9395
allow_undefined_flag=$lt_allow_undefined_flag
9397
# Flag that forces no undefined symbols.
9398
no_undefined_flag=$lt_no_undefined_flag
9400
# Commands used to finish a libtool library installation in a directory.
9401
finish_cmds=$lt_finish_cmds
9403
# Same as above, but a single script fragment to be evaled but not shown.
9404
finish_eval=$lt_finish_eval
9406
# Take the output of nm and produce a listing of raw symbols and C names.
9407
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9409
# Transform the output of nm in a proper C declaration
9410
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9412
# Transform the output of nm in a C name address pair
9413
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9415
# This is the shared library runtime path variable.
9416
runpath_var=$runpath_var
9418
# This is the shared library path variable.
9419
shlibpath_var=$shlibpath_var
9421
# Is shlibpath searched before the hard-coded library search path?
9422
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9424
# How to hardcode a shared library path into an executable.
9425
hardcode_action=$hardcode_action
9427
# Whether we should hardcode library paths into libraries.
9428
hardcode_into_libs=$hardcode_into_libs
9430
# Flag to hardcode \$libdir into a binary during linking.
9431
# This must work even if \$libdir does not exist.
9432
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9434
# If ld is used when linking, flag to hardcode \$libdir into
9435
# a binary during linking. This must work even if \$libdir does
9437
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9439
# Whether we need a single -rpath flag with a separated argument.
9440
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9442
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9444
hardcode_direct=$hardcode_direct
9446
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9448
hardcode_minus_L=$hardcode_minus_L
9450
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9451
# the resulting binary.
9452
hardcode_shlibpath_var=$hardcode_shlibpath_var
9454
# Set to yes if building a shared library automatically hardcodes DIR into the library
9455
# and all subsequent libraries and executables linked against it.
9456
hardcode_automatic=$hardcode_automatic
9458
# Variables whose values should be saved in libtool wrapper scripts and
9459
# restored at relink time.
9460
variables_saved_for_relink="$variables_saved_for_relink"
9462
# Whether libtool must link a program against all its dependency libraries.
9463
link_all_deplibs=$link_all_deplibs
9465
# Compile-time system search path for libraries
9466
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9468
# Run-time system search path for libraries
9469
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9471
# Fix the shell variable \$srcfile for the compiler.
9472
fix_srcfile_path="$fix_srcfile_path"
9474
# Set to yes if exported symbols are required.
9475
always_export_symbols=$always_export_symbols
9477
# The commands to list exported symbols.
9478
export_symbols_cmds=$lt_export_symbols_cmds
9480
# The commands to extract the exported symbol list from a shared archive.
9481
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9483
# Symbols that should not be listed in the preloaded symbols.
9484
exclude_expsyms=$lt_exclude_expsyms
9486
# Symbols that must always be exported.
9487
include_expsyms=$lt_include_expsyms
9489
# ### END LIBTOOL CONFIG
9496
cat <<\EOF >> "$cfgfile"
9498
# AIX sometimes has problems with the GCC collect2 program. For some
9499
# reason, if we set the COLLECT_NAMES environment variable, the problems
9500
# vanish in a puff of smoke.
9501
if test "X${COLLECT_NAMES+set}" != Xset; then
9503
export COLLECT_NAMES
9509
# We use sed instead of cat because bash on DJGPP gets confused if
9510
# if finds mixed CR/LF and LF-only lines. Since sed operates in
9511
# text mode, it properly converts lines to CR/LF. This bash problem
9512
# is reportedly fixed, but why not run on old versions too?
9513
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9515
mv -f "$cfgfile" "$ofile" || \
9516
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9520
# If there is no Makefile yet, we rely on a make rule to execute
9521
# `config.status --recheck' to rerun these tests and create the
9522
# libtool script then.
9523
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9524
if test -f "$ltmain_in"; then
9525
test -f Makefile && make "$ltmain"
9531
ac_cpp='$CPP $CPPFLAGS'
9532
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9533
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9534
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9539
# Check whether --with-tags or --without-tags was given.
9540
if test "${with_tags+set}" = set; then
9541
withval="$with_tags"
9545
if test -f "$ltmain" && test -n "$tagnames"; then
9546
if test ! -f "${ofile}"; then
9547
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9548
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9551
if test -z "$LTCC"; then
9552
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9553
if test -z "$LTCC"; then
9554
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9555
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9557
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9558
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9562
# Extract list of available tagged configurations in $ofile.
9563
# Note that this assumes the entire list is on one line.
9564
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9566
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9567
for tagname in $tagnames; do
9569
# Check whether tagname contains only valid characters
9570
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9572
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9573
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9574
{ (exit 1); exit 1; }; }
9578
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9580
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9581
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9582
{ (exit 1); exit 1; }; }
9585
# Update the list of available tags.
9586
if test -n "$tagname"; then
9587
echo appending configuration tag \"$tagname\" to $ofile
9591
if test -n "$CXX" && test "X$CXX" != "Xno"; then
9593
ac_cpp='$CXXCPP $CPPFLAGS'
9594
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9595
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9596
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9601
archive_cmds_need_lc_CXX=no
9602
allow_undefined_flag_CXX=
9603
always_export_symbols_CXX=no
9604
archive_expsym_cmds_CXX=
9605
export_dynamic_flag_spec_CXX=
9606
hardcode_direct_CXX=no
9607
hardcode_libdir_flag_spec_CXX=
9608
hardcode_libdir_flag_spec_ld_CXX=
9609
hardcode_libdir_separator_CXX=
9610
hardcode_minus_L_CXX=no
9611
hardcode_automatic_CXX=no
9613
module_expsym_cmds_CXX=
9614
link_all_deplibs_CXX=unknown
9615
old_archive_cmds_CXX=$old_archive_cmds
9616
no_undefined_flag_CXX=
9617
whole_archive_flag_spec_CXX=
9618
enable_shared_with_static_runtimes_CXX=no
9620
# Dependencies to place before and after the object being linked:
9622
postdep_objects_CXX=
9625
compiler_lib_search_path_CXX=
9627
# Source file extension for C++ test sources.
9630
# Object file extension for compiled C++ test sources.
9634
# Code to be used in simple compile tests
9635
lt_simple_compile_test_code="int some_variable = 0;\n"
9637
# Code to be used in simple link tests
9638
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9640
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9642
# If no C compiler was specified, use CC.
9645
# Allow CC to be a program name with arguments.
9649
# Allow CC to be a program name with arguments.
9654
lt_save_with_gnu_ld=$with_gnu_ld
9655
lt_save_path_LD=$lt_cv_path_LD
9656
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9657
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9659
unset lt_cv_prog_gnu_ld
9661
if test -n "${lt_cv_path_LDCXX+set}"; then
9662
lt_cv_path_LD=$lt_cv_path_LDCXX
9666
test -z "${LDCXX+set}" || LD=$LDCXX
9670
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9672
# We don't want -fno-exception wen compiling C++ code, so set the
9673
# no_builtin_flag separately
9674
if test "$GXX" = yes; then
9675
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9677
lt_prog_compiler_no_builtin_flag_CXX=
9680
if test "$GXX" = yes; then
9681
# Set up default GNU C++ configuration
9684
# Check whether --with-gnu-ld or --without-gnu-ld was given.
9685
if test "${with_gnu_ld+set}" = set; then
9686
withval="$with_gnu_ld"
9687
test "$withval" = no || with_gnu_ld=yes
9692
if test "$GCC" = yes; then
9693
# Check if gcc -print-prog-name=ld gives a path.
9694
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9695
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9698
# gcc leaves a trailing carriage return which upsets mingw
9699
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9701
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9704
# Accept absolute paths.
9706
re_direlt='/[^/][^/]*/\.\./'
9707
# Canonicalize the pathname of ld
9708
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9709
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9710
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9712
test -z "$LD" && LD="$ac_prog"
9715
# If it fails, then pretend we aren't using GCC.
9719
# If it is relative, then search for the first ld in PATH.
9723
elif test "$with_gnu_ld" = yes; then
9724
echo "$as_me:$LINENO: checking for GNU ld" >&5
9725
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9727
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9728
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9730
if test "${lt_cv_path_LD+set}" = set; then
9731
echo $ECHO_N "(cached) $ECHO_C" >&6
9733
if test -z "$LD"; then
9734
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9735
for ac_dir in $PATH; do
9737
test -z "$ac_dir" && ac_dir=.
9738
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9739
lt_cv_path_LD="$ac_dir/$ac_prog"
9740
# Check to see if the program is GNU ld. I'd rather use --version,
9741
# but apparently some GNU ld's only accept -v.
9742
# Break only if it was the GNU/non-GNU ld that we prefer.
9743
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9744
*GNU* | *'with BFD'*)
9745
test "$with_gnu_ld" != no && break
9748
test "$with_gnu_ld" != yes && break
9755
lt_cv_path_LD="$LD" # Let the user override the test with a path.
9760
if test -n "$LD"; then
9761
echo "$as_me:$LINENO: result: $LD" >&5
9762
echo "${ECHO_T}$LD" >&6
9764
echo "$as_me:$LINENO: result: no" >&5
9765
echo "${ECHO_T}no" >&6
9767
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9768
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9769
{ (exit 1); exit 1; }; }
9770
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9771
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9772
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9773
echo $ECHO_N "(cached) $ECHO_C" >&6
9775
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
9776
case `$LD -v 2>&1 </dev/null` in
9777
*GNU* | *'with BFD'*)
9778
lt_cv_prog_gnu_ld=yes
9781
lt_cv_prog_gnu_ld=no
9785
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9786
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9787
with_gnu_ld=$lt_cv_prog_gnu_ld
9791
# Check if GNU C++ uses GNU ld as the underlying linker, since the
9792
# archiving commands below assume that GNU ld is being used.
9793
if test "$with_gnu_ld" = yes; then
9794
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9795
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'
9797
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9798
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9800
# If archive_cmds runs LD, not CC, wlarc should be empty
9801
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9802
# investigate it a little bit more. (MM)
9805
# ancient GNU ld didn't support --whole-archive et. al.
9806
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9807
grep 'no-whole-archive' > /dev/null; then
9808
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9810
whole_archive_flag_spec_CXX=
9816
# A generic and very simple default shared library creation
9817
# command for GNU C++ for the case where it uses the native
9818
# linker, instead of GNU ld. If possible, this setting should
9819
# overridden to take advantage of the native linker features on
9820
# the platform it is being used on.
9821
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9824
# Commands to make compiler produce verbose output that lists
9825
# what "hidden" libraries, object files and flags are used when
9826
# linking a shared library.
9827
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9835
# PORTME: fill in a description of your system's C++ link characteristics
9836
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9837
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9841
# FIXME: insert proper C++ library support
9845
if test "$host_cpu" = ia64; then
9846
# On IA64, the linker does run time linking by default, so we don't
9847
# have to do anything special.
9848
aix_use_runtimelinking=no
9849
exp_sym_flag='-Bexport'
9852
aix_use_runtimelinking=no
9854
# Test if we are trying to use run time linking or normal
9855
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9856
# need to do runtime linking.
9857
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9858
for ld_flag in $LDFLAGS; do
9861
aix_use_runtimelinking=yes
9868
exp_sym_flag='-bexport'
9869
no_entry_flag='-bnoentry'
9872
# When large executables or shared objects are built, AIX ld can
9873
# have problems creating the table of contents. If linking a library
9874
# or program results in "error TOC overflow" add -mminimal-toc to
9875
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9876
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9879
hardcode_direct_CXX=yes
9880
hardcode_libdir_separator_CXX=':'
9881
link_all_deplibs_CXX=yes
9883
if test "$GXX" = yes; then
9884
case $host_os in aix4.012|aix4.012.*)
9885
# We only want to do this on AIX 4.2 and lower, the check
9886
# below for broken collect2 doesn't work under 4.3+
9887
collect2name=`${CC} -print-prog-name=collect2`
9888
if test -f "$collect2name" && \
9889
strings "$collect2name" | grep resolve_lib_name >/dev/null
9891
# We have reworked collect2
9892
hardcode_direct_CXX=yes
9894
# We have old collect2
9895
hardcode_direct_CXX=unsupported
9896
# It fails to find uninstalled libraries when the uninstalled
9897
# path is not listed in the libpath. Setting hardcode_minus_L
9898
# to unsupported forces relinking
9899
hardcode_minus_L_CXX=yes
9900
hardcode_libdir_flag_spec_CXX='-L$libdir'
9901
hardcode_libdir_separator_CXX=
9904
shared_flag='-shared'
9907
if test "$host_cpu" = ia64; then
9908
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9909
# chokes on -Wl,-G. The following line is correct:
9912
if test "$aix_use_runtimelinking" = yes; then
9913
shared_flag='${wl}-G'
9915
shared_flag='${wl}-bM:SRE'
9920
# It seems that -bexpall does not export symbols beginning with
9921
# underscore (_), so it is better to generate a list of symbols to export.
9922
always_export_symbols_CXX=yes
9923
if test "$aix_use_runtimelinking" = yes; then
9924
# Warning - without using the other runtime loading flags (-brtl),
9925
# -berok will link without error, but may produce a broken library.
9926
allow_undefined_flag_CXX='-berok'
9927
# Determine the default libpath from the value encoded in an empty executable.
9928
cat >conftest.$ac_ext <<_ACEOF
9931
cat confdefs.h >>conftest.$ac_ext
9932
cat >>conftest.$ac_ext <<_ACEOF
9933
/* end confdefs.h. */
9943
rm -f conftest.$ac_objext conftest$ac_exeext
9944
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9945
(eval $ac_link) 2>conftest.er1
9947
grep -v '^ *+' conftest.er1 >conftest.err
9949
cat conftest.err >&5
9950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951
(exit $ac_status); } &&
9952
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9953
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957
(exit $ac_status); }; } &&
9958
{ ac_try='test -s conftest$ac_exeext'
9959
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963
(exit $ac_status); }; }; then
9965
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9967
# Check for a 64-bit object if we didn't find anything.
9968
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; }
9971
echo "$as_me: failed program was:" >&5
9972
sed 's/^/| /' conftest.$ac_ext >&5
9975
rm -f conftest.err conftest.$ac_objext \
9976
conftest$ac_exeext conftest.$ac_ext
9977
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9979
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9981
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"
9983
if test "$host_cpu" = ia64; then
9984
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9985
allow_undefined_flag_CXX="-z nodefs"
9986
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"
9988
# Determine the default libpath from the value encoded in an empty executable.
9989
cat >conftest.$ac_ext <<_ACEOF
9992
cat confdefs.h >>conftest.$ac_ext
9993
cat >>conftest.$ac_ext <<_ACEOF
9994
/* end confdefs.h. */
10004
rm -f conftest.$ac_objext conftest$ac_exeext
10005
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10006
(eval $ac_link) 2>conftest.er1
10008
grep -v '^ *+' conftest.er1 >conftest.err
10010
cat conftest.err >&5
10011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012
(exit $ac_status); } &&
10013
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10014
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015
(eval $ac_try) 2>&5
10017
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018
(exit $ac_status); }; } &&
10019
{ ac_try='test -s conftest$ac_exeext'
10020
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021
(eval $ac_try) 2>&5
10023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024
(exit $ac_status); }; }; then
10026
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10028
# Check for a 64-bit object if we didn't find anything.
10029
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; }
10032
echo "$as_me: failed program was:" >&5
10033
sed 's/^/| /' conftest.$ac_ext >&5
10036
rm -f conftest.err conftest.$ac_objext \
10037
conftest$ac_exeext conftest.$ac_ext
10038
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10040
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10041
# Warning - without using the other run time loading flags,
10042
# -berok will link without error, but may produce a broken library.
10043
no_undefined_flag_CXX=' ${wl}-bernotok'
10044
allow_undefined_flag_CXX=' ${wl}-berok'
10045
# -bexpall does not export symbols beginning with underscore (_)
10046
always_export_symbols_CXX=yes
10047
# Exported symbols can be pulled into shared objects from archives
10048
whole_archive_flag_spec_CXX=' '
10049
archive_cmds_need_lc_CXX=yes
10050
# This is similar to how AIX traditionally builds it's shared libraries.
10051
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'
10056
case $cc_basename in
10058
# FIXME: insert proper C++ library support
10064
cygwin* | mingw* | pw32*)
10065
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10066
# as there is no search path for DLLs.
10067
hardcode_libdir_flag_spec_CXX='-L$libdir'
10068
allow_undefined_flag_CXX=unsupported
10069
always_export_symbols_CXX=no
10070
enable_shared_with_static_runtimes_CXX=yes
10072
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10073
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'
10074
# If the export-symbols file already is a .def file (1st line
10075
# is EXPORTS), use it as is; otherwise, prepend...
10076
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10077
cp $export_symbols $output_objdir/$soname.def;
10079
echo EXPORTS > $output_objdir/$soname.def;
10080
cat $export_symbols >> $output_objdir/$soname.def;
10082
$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'
10088
darwin* | rhapsody*)
10089
if test "$GXX" = yes; then
10090
archive_cmds_need_lc_CXX=no
10092
rhapsody* | darwin1.[012])
10093
allow_undefined_flag_CXX='-undefined suppress'
10096
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10097
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10099
case ${MACOSX_DEPLOYMENT_TARGET} in
10101
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10104
allow_undefined_flag_CXX='-undefined dynamic_lookup'
10110
lt_int_apple_cc_single_mod=no
10111
output_verbose_link_cmd='echo'
10112
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10113
lt_int_apple_cc_single_mod=yes
10115
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10116
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10118
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'
10120
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10122
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10123
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10124
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}'
10126
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}'
10128
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}'
10129
hardcode_direct_CXX=no
10130
hardcode_automatic_CXX=yes
10131
hardcode_shlibpath_var_CXX=unsupported
10132
whole_archive_flag_spec_CXX='-all_load $convenience'
10133
link_all_deplibs_CXX=yes
10140
case $cc_basename in
10142
# FIXME: insert proper C++ library support
10146
# Green Hills C++ Compiler
10147
# FIXME: insert proper C++ library support
10151
# FIXME: insert proper C++ library support
10157
# C++ shared libraries reported to be fairly broken before switch to ELF
10161
archive_cmds_need_lc_CXX=no
10163
freebsd* | kfreebsd*-gnu)
10164
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10171
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10172
hardcode_libdir_separator_CXX=:
10173
export_dynamic_flag_spec_CXX='${wl}-E'
10174
hardcode_direct_CXX=yes
10175
hardcode_minus_L_CXX=yes # Not in the search PATH,
10176
# but as the default
10177
# location of the library.
10179
case $cc_basename in
10181
# FIXME: insert proper C++ library support
10185
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'
10186
# Commands to make compiler produce verbose output that lists
10187
# what "hidden" libraries, object files and flags are used when
10188
# linking a shared library.
10190
# There doesn't appear to be a way to prevent this compiler from
10191
# explicitly linking system object files so we need to strip them
10192
# from the output so that they don't get included in the library
10194
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'
10197
if test "$GXX" = yes; then
10198
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'
10200
# FIXME: insert proper C++ library support
10207
if test $with_gnu_ld = no; then
10208
case "$host_cpu" in
10210
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10211
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10212
hardcode_libdir_separator_CXX=:
10215
hardcode_libdir_flag_spec_CXX='-L$libdir'
10218
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10219
hardcode_libdir_separator_CXX=:
10220
export_dynamic_flag_spec_CXX='${wl}-E'
10224
case "$host_cpu" in
10226
hardcode_direct_CXX=no
10227
hardcode_shlibpath_var_CXX=no
10230
hardcode_direct_CXX=no
10231
hardcode_shlibpath_var_CXX=no
10232
hardcode_minus_L_CXX=yes # Not in the search PATH,
10233
# but as the default
10234
# location of the library.
10237
hardcode_direct_CXX=yes
10238
hardcode_minus_L_CXX=yes # Not in the search PATH,
10239
# but as the default
10240
# location of the library.
10244
case $cc_basename in
10246
# FIXME: insert proper C++ library support
10250
case "$host_cpu" in
10252
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10255
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10258
# Commands to make compiler produce verbose output that lists
10259
# what "hidden" libraries, object files and flags are used when
10260
# linking a shared library.
10262
# There doesn't appear to be a way to prevent this compiler from
10263
# explicitly linking system object files so we need to strip them
10264
# from the output so that they don't get included in the library
10266
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'
10269
if test "$GXX" = yes; then
10270
if test $with_gnu_ld = no; then
10271
case "$host_cpu" in
10273
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10276
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'
10281
# FIXME: insert proper C++ library support
10288
case $cc_basename in
10291
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'
10293
# Archives containing C++ object files must be created using
10294
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
10295
# necessary to make sure instantiated templates are included
10297
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10300
if test "$GXX" = yes; then
10301
if test "$with_gnu_ld" = no; then
10302
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'
10304
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'
10307
link_all_deplibs_CXX=yes
10310
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10311
hardcode_libdir_separator_CXX=:
10314
case $cc_basename in
10316
# Kuck and Associates, Inc. (KAI) C++ Compiler
10318
# KCC will only create a shared library if the output file
10319
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10320
# to its proper name (with version) after linking.
10321
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'
10322
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'
10323
# Commands to make compiler produce verbose output that lists
10324
# what "hidden" libraries, object files and flags are used when
10325
# linking a shared library.
10327
# There doesn't appear to be a way to prevent this compiler from
10328
# explicitly linking system object files so we need to strip them
10329
# from the output so that they don't get included in the library
10331
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'
10333
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10334
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10336
# Archives containing C++ object files must be created using
10337
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10338
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10343
archive_cmds_need_lc_CXX=no
10344
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10345
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'
10346
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10347
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10348
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10352
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10353
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'
10355
runpath_var=LD_RUN_PATH
10356
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10357
hardcode_libdir_separator_CXX=:
10359
# Commands to make compiler produce verbose output that lists
10360
# what "hidden" libraries, object files and flags are used when
10361
# linking a shared library.
10363
# There doesn't appear to be a way to prevent this compiler from
10364
# explicitly linking system object files so we need to strip them
10365
# from the output so that they don't get included in the library
10367
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'
10372
# FIXME: insert proper C++ library support
10376
# FIXME: insert proper C++ library support
10380
case $cc_basename in
10382
# FIXME: insert proper C++ library support
10386
# FIXME: insert proper C++ library support
10391
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10392
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10393
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10395
hardcode_libdir_flag_spec_CXX='-R$libdir'
10396
hardcode_direct_CXX=yes
10397
hardcode_shlibpath_var_CXX=no
10399
# Workaround some broken pre-1.5 toolchains
10400
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10403
case $cc_basename in
10405
# Kuck and Associates, Inc. (KAI) C++ Compiler
10407
# KCC will only create a shared library if the output file
10408
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10409
# to its proper name (with version) after linking.
10410
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'
10412
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10413
hardcode_libdir_separator_CXX=:
10415
# Archives containing C++ object files must be created using
10416
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10417
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10421
# Rational C++ 2.4.1
10422
# FIXME: insert proper C++ library support
10426
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10427
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'
10429
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10430
hardcode_libdir_separator_CXX=:
10432
# Commands to make compiler produce verbose output that lists
10433
# what "hidden" libraries, object files and flags are used when
10434
# linking a shared library.
10436
# There doesn't appear to be a way to prevent this compiler from
10437
# explicitly linking system object files so we need to strip them
10438
# from the output so that they don't get included in the library
10440
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'
10443
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10444
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10445
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'
10447
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10448
hardcode_libdir_separator_CXX=:
10450
# Commands to make compiler produce verbose output that lists
10451
# what "hidden" libraries, object files and flags are used when
10452
# linking a shared library.
10453
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10456
# FIXME: insert proper C++ library support
10463
case $cc_basename in
10465
# Kuck and Associates, Inc. (KAI) C++ Compiler
10467
# KCC will only create a shared library if the output file
10468
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10469
# to its proper name (with version) after linking.
10470
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'
10472
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10473
hardcode_libdir_separator_CXX=:
10475
# Archives containing C++ object files must be created using
10476
# the KAI C++ compiler.
10477
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10480
# Rational C++ 2.4.1
10481
# FIXME: insert proper C++ library support
10485
allow_undefined_flag_CXX=' -expect_unresolved \*'
10486
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'
10487
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10488
echo "-hidden">> $lib.exp~
10489
$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~
10492
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10493
hardcode_libdir_separator_CXX=:
10495
# Commands to make compiler produce verbose output that lists
10496
# what "hidden" libraries, object files and flags are used when
10497
# linking a shared library.
10499
# There doesn't appear to be a way to prevent this compiler from
10500
# explicitly linking system object files so we need to strip them
10501
# from the output so that they don't get included in the library
10503
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'
10506
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10507
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10508
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'
10510
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10511
hardcode_libdir_separator_CXX=:
10513
# Commands to make compiler produce verbose output that lists
10514
# what "hidden" libraries, object files and flags are used when
10515
# linking a shared library.
10516
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10519
# FIXME: insert proper C++ library support
10526
# FIXME: insert proper C++ library support
10530
archive_cmds_need_lc_CXX=no
10531
case $cc_basename in
10533
# FIXME: insert proper C++ library support
10537
# FIXME: insert proper C++ library support
10543
case $cc_basename in
10546
# FIXME: insert proper C++ library support
10551
# FIXME: insert proper C++ library support
10555
# FIXME: insert proper C++ library support
10561
case $cc_basename in
10563
# Sun C++ 4.2, 5.x and Centerline C++
10564
no_undefined_flag_CXX=' -zdefs'
10565
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10566
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10567
$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'
10569
hardcode_libdir_flag_spec_CXX='-R$libdir'
10570
hardcode_shlibpath_var_CXX=no
10572
solaris2.0-5 | solaris2.0-5.*) ;;
10574
# The C++ compiler is used as linker so we must use $wl
10575
# flag to pass the commands to the underlying system
10577
# Supported since Solaris 2.6 (maybe 2.5.1?)
10578
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10581
link_all_deplibs_CXX=yes
10583
# Commands to make compiler produce verbose output that lists
10584
# what "hidden" libraries, object files and flags are used when
10585
# linking a shared library.
10587
# There doesn't appear to be a way to prevent this compiler from
10588
# explicitly linking system object files so we need to strip them
10589
# from the output so that they don't get included in the library
10591
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'
10593
# Archives containing C++ object files must be created using
10594
# "CC -xar", where "CC" is the Sun C++ compiler. This is
10595
# necessary to make sure instantiated templates are included
10597
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10600
# Green Hills C++ Compiler
10601
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10603
# The C++ compiler must be used to create the archive.
10604
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10607
# GNU C++ compiler with Solaris linker
10608
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10609
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10610
if $CC --version | grep -v '^2\.7' > /dev/null; then
10611
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10612
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10613
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10615
# Commands to make compiler produce verbose output that lists
10616
# what "hidden" libraries, object files and flags are used when
10617
# linking a shared library.
10618
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10620
# g++ 2.7 appears to require `-G' NOT `-shared' on this
10622
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10623
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10624
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10626
# Commands to make compiler produce verbose output that lists
10627
# what "hidden" libraries, object files and flags are used when
10628
# linking a shared library.
10629
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10632
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10637
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10638
archive_cmds_need_lc_CXX=no
10641
case $cc_basename in
10643
# NonStop-UX NCC 3.20
10644
# FIXME: insert proper C++ library support
10648
# FIXME: insert proper C++ library support
10654
# FIXME: insert proper C++ library support
10658
# FIXME: insert proper C++ library support
10662
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10663
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10664
test "$ld_shlibs_CXX" = no && can_build_shared=no
10670
cat > conftest.$ac_ext <<EOF
10674
Foo (void) { a = 0; }
10680
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10681
(eval $ac_compile) 2>&5
10683
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684
(exit $ac_status); }; then
10685
# Parse the compiler output and extract the necessary
10686
# objects, libraries and library flags.
10688
# Sentinel used to keep track of whether or not we are before
10689
# the conftest object file.
10690
pre_test_object_deps_done=no
10692
# The `*' in the case matches for architectures that use `case' in
10693
# $output_verbose_cmd can trigger glob expansion during the loop
10694
# eval without this substitution.
10695
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10697
for p in `eval $output_verbose_link_cmd`; do
10701
# Some compilers place space between "-{L,R}" and the path.
10702
# Remove the space.
10703
if test $p = "-L" \
10704
|| test $p = "-R"; then
10711
if test "$pre_test_object_deps_done" = no; then
10714
# Internal compiler library paths should come after those
10715
# provided the user. The postdeps already come after the
10716
# user supplied libs so there is no need to process them.
10717
if test -z "$compiler_lib_search_path_CXX"; then
10718
compiler_lib_search_path_CXX="${prev}${p}"
10720
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10723
# The "-l" case would never come before the object being
10724
# linked, so don't bother handling this case.
10727
if test -z "$postdeps_CXX"; then
10728
postdeps_CXX="${prev}${p}"
10730
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10736
# This assumes that the test object file only shows up
10737
# once in the compiler output.
10738
if test "$p" = "conftest.$objext"; then
10739
pre_test_object_deps_done=yes
10743
if test "$pre_test_object_deps_done" = no; then
10744
if test -z "$predep_objects_CXX"; then
10745
predep_objects_CXX="$p"
10747
predep_objects_CXX="$predep_objects_CXX $p"
10750
if test -z "$postdep_objects_CXX"; then
10751
postdep_objects_CXX="$p"
10753
postdep_objects_CXX="$postdep_objects_CXX $p"
10758
*) ;; # Ignore the rest.
10766
echo "libtool.m4: error: problem compiling CXX test program"
10769
$rm -f confest.$objext
10771
case " $postdeps_CXX " in
10772
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10775
lt_prog_compiler_wl_CXX=
10776
lt_prog_compiler_pic_CXX=
10777
lt_prog_compiler_static_CXX=
10779
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10780
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10782
# C++ specific cases for pic, static, wl, etc.
10783
if test "$GXX" = yes; then
10784
lt_prog_compiler_wl_CXX='-Wl,'
10785
lt_prog_compiler_static_CXX='-static'
10789
# All AIX code is PIC.
10790
if test "$host_cpu" = ia64; then
10791
# AIX 5 now supports IA64 processor
10792
lt_prog_compiler_static_CXX='-Bstatic'
10796
# FIXME: we need at least 68020 code to build shared libraries, but
10797
# adding the `-m68020' flag to GCC prevents building anything better,
10799
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10801
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10802
# PIC is the default for these OSes.
10804
mingw* | os2* | pw32*)
10805
# This hack is so that the source file can tell whether it is being
10806
# built for inclusion in a dll (and should export symbols for example).
10807
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10809
darwin* | rhapsody*)
10810
# PIC is the default on this platform
10811
# Common symbols not allowed in MH_DYLIB files
10812
lt_prog_compiler_pic_CXX='-fno-common'
10815
# DJGPP does not support shared libraries at all
10816
lt_prog_compiler_pic_CXX=
10819
if test -d /usr/nec; then
10820
lt_prog_compiler_pic_CXX=-Kconform_pic
10824
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10825
# not for PA HP-UX.
10826
case "$host_cpu" in
10830
lt_prog_compiler_pic_CXX='-fPIC'
10835
lt_prog_compiler_pic_CXX='-fPIC'
10841
# All AIX code is PIC.
10842
if test "$host_cpu" = ia64; then
10843
# AIX 5 now supports IA64 processor
10844
lt_prog_compiler_static_CXX='-Bstatic'
10846
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10850
case $cc_basename in
10852
# Green Hills C++ Compiler
10853
# _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"
10858
case $cc_basename in
10860
lt_prog_compiler_pic_CXX='-KPIC'
10863
# Green Hills C++ Compiler
10864
lt_prog_compiler_pic_CXX='-pic'
10870
freebsd* | kfreebsd*-gnu)
10871
# FreeBSD uses GNU C++
10873
hpux9* | hpux10* | hpux11*)
10874
case $cc_basename in
10876
lt_prog_compiler_wl_CXX='-Wl,'
10877
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10878
if test "$host_cpu" != ia64; then
10879
lt_prog_compiler_pic_CXX='+Z'
10883
lt_prog_compiler_wl_CXX='-Wl,'
10884
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10885
case "$host_cpu" in
10890
lt_prog_compiler_pic_CXX='+Z'
10898
irix5* | irix6* | nonstopux*)
10899
case $cc_basename in
10901
lt_prog_compiler_wl_CXX='-Wl,'
10902
lt_prog_compiler_static_CXX='-non_shared'
10903
# CC pic flag -KPIC is the default.
10910
case $cc_basename in
10913
lt_prog_compiler_wl_CXX='--backend -Wl,'
10914
lt_prog_compiler_pic_CXX='-fPIC'
10918
lt_prog_compiler_wl_CXX='-Wl,'
10919
lt_prog_compiler_pic_CXX='-KPIC'
10920
lt_prog_compiler_static_CXX='-static'
10924
# Make sure the PIC flag is empty. It appears that all Alpha
10925
# Linux and Compaq Tru64 Unix objects are PIC.
10926
lt_prog_compiler_pic_CXX=
10927
lt_prog_compiler_static_CXX='-non_shared'
10938
case $cc_basename in
10940
lt_prog_compiler_pic_CXX='-W c,exportall'
10946
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10948
osf3* | osf4* | osf5*)
10949
case $cc_basename in
10951
lt_prog_compiler_wl_CXX='--backend -Wl,'
10954
# Rational C++ 2.4.1
10955
lt_prog_compiler_pic_CXX='-pic'
10958
# Digital/Compaq C++
10959
lt_prog_compiler_wl_CXX='-Wl,'
10960
# Make sure the PIC flag is empty. It appears that all Alpha
10961
# Linux and Compaq Tru64 Unix objects are PIC.
10962
lt_prog_compiler_pic_CXX=
10963
lt_prog_compiler_static_CXX='-non_shared'
10972
case $cc_basename in
10974
lt_prog_compiler_pic_CXX='-fPIC'
10981
case $cc_basename in
10983
# Sun C++ 4.2, 5.x and Centerline C++
10984
lt_prog_compiler_pic_CXX='-KPIC'
10985
lt_prog_compiler_static_CXX='-Bstatic'
10986
lt_prog_compiler_wl_CXX='-Qoption ld '
10989
# Green Hills C++ Compiler
10990
lt_prog_compiler_pic_CXX='-PIC'
10997
case $cc_basename in
11000
lt_prog_compiler_pic_CXX='-pic'
11001
lt_prog_compiler_static_CXX='-Bstatic'
11005
lt_prog_compiler_pic_CXX='-pic'
11012
case $cc_basename in
11014
# NonStop-UX NCC 3.20
11015
lt_prog_compiler_pic_CXX='-KPIC'
11026
lt_prog_compiler_can_build_shared_CXX=no
11031
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11032
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11035
# Check to make sure the PIC flag actually works.
11037
if test -n "$lt_prog_compiler_pic_CXX"; then
11039
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11040
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11041
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11042
echo $ECHO_N "(cached) $ECHO_C" >&6
11044
lt_prog_compiler_pic_works_CXX=no
11045
ac_outfile=conftest.$ac_objext
11046
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11047
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11048
# Insert the option either (1) after the last *FLAGS variable, or
11049
# (2) before a word containing "conftest.", or (3) at the end.
11050
# Note that $ac_compile itself does not contain backslashes and begins
11051
# with a dollar sign (not a hyphen), so the echo should work correctly.
11052
# The option is referenced via a variable to avoid confusing sed.
11053
lt_compile=`echo "$ac_compile" | $SED \
11054
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11055
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11056
-e 's:$: $lt_compiler_flag:'`
11057
(eval echo "\"\$as_me:11057: $lt_compile\"" >&5)
11058
(eval "$lt_compile" 2>conftest.err)
11060
cat conftest.err >&5
11061
echo "$as_me:11061: \$? = $ac_status" >&5
11062
if (exit $ac_status) && test -s "$ac_outfile"; then
11063
# The compiler can only warn and ignore the option if not recognized
11064
# So say no if there are warnings
11065
if test ! -s conftest.err; then
11066
lt_prog_compiler_pic_works_CXX=yes
11072
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11073
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11075
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11076
case $lt_prog_compiler_pic_CXX in
11078
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11081
lt_prog_compiler_pic_CXX=
11082
lt_prog_compiler_can_build_shared_CXX=no
11087
# For platforms which do not support PIC, -DPIC is meaningless:
11089
lt_prog_compiler_pic_CXX=
11092
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11096
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11097
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11098
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11099
echo $ECHO_N "(cached) $ECHO_C" >&6
11101
lt_cv_prog_compiler_c_o_CXX=no
11102
$rm -r conftest 2>/dev/null
11106
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11108
lt_compiler_flag="-o out/conftest2.$ac_objext"
11109
# Insert the option either (1) after the last *FLAGS variable, or
11110
# (2) before a word containing "conftest.", or (3) at the end.
11111
# Note that $ac_compile itself does not contain backslashes and begins
11112
# with a dollar sign (not a hyphen), so the echo should work correctly.
11113
lt_compile=`echo "$ac_compile" | $SED \
11114
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11115
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11116
-e 's:$: $lt_compiler_flag:'`
11117
(eval echo "\"\$as_me:11117: $lt_compile\"" >&5)
11118
(eval "$lt_compile" 2>out/conftest.err)
11120
cat out/conftest.err >&5
11121
echo "$as_me:11121: \$? = $ac_status" >&5
11122
if (exit $ac_status) && test -s out/conftest2.$ac_objext
11124
# The compiler can only warn and ignore the option if not recognized
11125
# So say no if there are warnings
11126
if test ! -s out/conftest.err; then
11127
lt_cv_prog_compiler_c_o_CXX=yes
11132
# SGI C++ compiler will create directory out/ii_files/ for
11133
# template instantiation
11134
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11135
$rm out/* && rmdir out
11141
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11142
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11145
hard_links="nottested"
11146
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11147
# do not overwrite the value of need_locks provided by the user
11148
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11149
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11152
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11154
ln conftest.a conftest.b 2>&5 || hard_links=no
11155
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11156
echo "$as_me:$LINENO: result: $hard_links" >&5
11157
echo "${ECHO_T}$hard_links" >&6
11158
if test "$hard_links" = no; then
11159
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11160
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11167
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11168
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11170
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11173
# If we're using GNU nm, then we don't want the "-C" option.
11174
# -C means demangle to AIX nm, but means don't demangle with GNU nm
11175
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11176
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'
11178
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'
11182
export_symbols_cmds_CXX="$ltdll_cmds"
11185
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11188
link_all_deplibs_CXX=no
11191
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11195
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11196
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11197
test "$ld_shlibs_CXX" = no && can_build_shared=no
11199
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11200
if test "$GCC" = yes; then
11201
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11205
# Do we need to explicitly link libc?
11207
case "x$archive_cmds_need_lc_CXX" in
11209
# Assume -lc should be added
11210
archive_cmds_need_lc_CXX=yes
11212
if test "$enable_shared" = yes && test "$GCC" = yes; then
11213
case $archive_cmds_CXX in
11215
# FIXME: we may have to deal with multi-command sequences.
11218
# Test whether the compiler implicitly links with -lc since on some
11219
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11220
# to ld, don't add -lc before -lgcc.
11221
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11222
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11224
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11226
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11227
(eval $ac_compile) 2>&5
11229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230
(exit $ac_status); } 2>conftest.err; then
11233
libobjs=conftest.$ac_objext
11235
wl=$lt_prog_compiler_wl_CXX
11241
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11242
allow_undefined_flag_CXX=
11243
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11244
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247
(exit $ac_status); }
11249
archive_cmds_need_lc_CXX=no
11251
archive_cmds_need_lc_CXX=yes
11253
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11255
cat conftest.err 1>&5
11258
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11259
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11266
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11267
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11268
library_names_spec=
11269
libname_spec='lib$name'
11273
postuninstall_cmds=
11277
shlibpath_overrides_runpath=unknown
11279
dynamic_linker="$host_os ld.so"
11280
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11281
if test "$GCC" = yes; then
11282
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11283
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11284
# if the path contains ";" then we assume it to be the separator
11285
# otherwise default to the standard path separator (i.e. ":") - it is
11286
# assumed that no part of a normal pathname contains ";" but that should
11287
# okay in the real world where ";" in dirpaths is itself problematic.
11288
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11290
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11293
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11295
need_lib_prefix=unknown
11296
hardcode_into_libs=no
11298
# when you set need_version to no, make sure it does not cause -set_version
11299
# flags to be left without arguments
11300
need_version=unknown
11305
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11306
shlibpath_var=LIBPATH
11308
# AIX 3 has no versioning support, so we append a major version to the name.
11309
soname_spec='${libname}${release}${shared_ext}$major'
11316
hardcode_into_libs=yes
11317
if test "$host_cpu" = ia64; then
11318
# AIX 5 supports IA64
11319
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11320
shlibpath_var=LD_LIBRARY_PATH
11322
# With GCC up to 2.95.x, collect2 would create an import file
11323
# for dependence libraries. The import file would start with
11324
# the line `#! .'. This would cause the generated library to
11325
# depend on `.', always an invalid library. This was fixed in
11326
# development snapshots of GCC prior to 3.0.
11328
aix4 | aix4.[01] | aix4.[01].*)
11329
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11331
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11334
can_build_shared=no
11338
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11339
# soname into executable. Probably we can add versioning support to
11340
# collect2, so additional links can be useful in future.
11341
if test "$aix_use_runtimelinking" = yes; then
11342
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11343
# instead of lib<name>.a to let people know that these are not
11344
# typical AIX shared libraries.
11345
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347
# We preserve .a as extension for shared libraries through AIX4.2
11348
# and later when we are not doing run time linking.
11349
library_names_spec='${libname}${release}.a $libname.a'
11350
soname_spec='${libname}${release}${shared_ext}$major'
11352
shlibpath_var=LIBPATH
11357
library_names_spec='$libname.ixlibrary $libname.a'
11358
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11359
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'
11363
library_names_spec='${libname}${shared_ext}'
11364
dynamic_linker="$host_os ld.so"
11365
shlibpath_var=LIBRARY_PATH
11371
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11372
soname_spec='${libname}${release}${shared_ext}$major'
11373
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11374
shlibpath_var=LD_LIBRARY_PATH
11375
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11376
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11377
# the default ld.so.conf also contains /usr/contrib/lib and
11378
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11379
# libtool to hard-code these into programs
11382
cygwin* | mingw* | pw32*)
11383
version_type=windows
11388
case $GCC,$host_os in
11389
yes,cygwin* | yes,mingw* | yes,pw32*)
11390
library_names_spec='$libname.dll.a'
11391
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11392
postinstall_cmds='base_file=`basename \${file}`~
11393
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11394
dldir=$destdir/`dirname \$dlpath`~
11395
test -d \$dldir || mkdir -p \$dldir~
11396
$install_prog $dir/$dlname \$dldir/$dlname'
11397
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11398
dlpath=$dir/\$dldll~
11400
shlibpath_overrides_runpath=yes
11404
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11405
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11406
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11409
# MinGW DLLs use traditional 'lib' prefix
11410
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11411
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11412
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11413
# It is most probably a Windows format PATH printed by
11414
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11415
# path with ; separators, and with drive letters. We can handle the
11416
# drive letters (cygwin fileutils understands them), so leave them,
11417
# especially as we might pass files found there to a mingw objdump,
11418
# which wouldn't understand a cygwinified path. Ahh.
11419
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11421
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11425
# pw32 DLLs use 'pw' prefix rather than 'lib'
11426
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11432
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11435
dynamic_linker='Win32 ld.exe'
11436
# FIXME: first we should search . and the directory the executable is in
11440
darwin* | rhapsody*)
11441
dynamic_linker="$host_os dyld"
11442
version_type=darwin
11445
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11446
soname_spec='${libname}${release}${major}$shared_ext'
11447
shlibpath_overrides_runpath=yes
11448
shlibpath_var=DYLD_LIBRARY_PATH
11449
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11450
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11451
if test "$GCC" = yes; then
11452
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"`
11454
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11456
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11463
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11464
soname_spec='${libname}${release}${shared_ext}$major'
11465
shlibpath_var=LD_LIBRARY_PATH
11476
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11477
soname_spec='${libname}${release}${shared_ext}$major'
11478
shlibpath_var=LD_LIBRARY_PATH
11479
shlibpath_overrides_runpath=no
11480
hardcode_into_libs=yes
11481
dynamic_linker='GNU ld.so'
11485
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11486
version_type=freebsd-$objformat
11487
case $version_type in
11489
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11494
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11498
shlibpath_var=LD_LIBRARY_PATH
11501
shlibpath_overrides_runpath=yes
11503
freebsd3.01* | freebsdelf3.01*)
11504
shlibpath_overrides_runpath=yes
11505
hardcode_into_libs=yes
11508
shlibpath_overrides_runpath=no
11509
hardcode_into_libs=yes
11518
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11519
soname_spec='${libname}${release}${shared_ext}$major'
11520
shlibpath_var=LD_LIBRARY_PATH
11521
hardcode_into_libs=yes
11524
hpux9* | hpux10* | hpux11*)
11525
# Give a soname corresponding to the major version so that dld.sl refuses to
11526
# link against other versions.
11530
case "$host_cpu" in
11533
hardcode_into_libs=yes
11534
dynamic_linker="$host_os dld.so"
11535
shlibpath_var=LD_LIBRARY_PATH
11536
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11537
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11538
soname_spec='${libname}${release}${shared_ext}$major'
11539
if test "X$HPUX_IA64_MODE" = X32; then
11540
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11542
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11544
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11548
hardcode_into_libs=yes
11549
dynamic_linker="$host_os dld.sl"
11550
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11551
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11552
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11553
soname_spec='${libname}${release}${shared_ext}$major'
11554
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11555
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11559
dynamic_linker="$host_os dld.sl"
11560
shlibpath_var=SHLIB_PATH
11561
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11562
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11563
soname_spec='${libname}${release}${shared_ext}$major'
11566
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11567
postinstall_cmds='chmod 555 $lib'
11570
irix5* | irix6* | nonstopux*)
11572
nonstopux*) version_type=nonstopux ;;
11574
if test "$lt_cv_prog_gnu_ld" = yes; then
11582
soname_spec='${libname}${release}${shared_ext}$major'
11583
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11585
irix5* | nonstopux*)
11586
libsuff= shlibsuff=
11589
case $LD in # libtool.m4 will add one of these switches to LD
11590
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11591
libsuff= shlibsuff= libmagic=32-bit;;
11592
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11593
libsuff=32 shlibsuff=N32 libmagic=N32;;
11594
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11595
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11596
*) libsuff= shlibsuff= libmagic=never-match;;
11600
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11601
shlibpath_overrides_runpath=no
11602
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11603
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11604
hardcode_into_libs=yes
11607
# No shared lib support for Linux oldld, aout, or coff.
11608
linux*oldld* | linux*aout* | linux*coff*)
11612
# This must be Linux ELF.
11617
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11618
soname_spec='${libname}${release}${shared_ext}$major'
11619
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11620
shlibpath_var=LD_LIBRARY_PATH
11621
shlibpath_overrides_runpath=no
11622
# This implies no fast_install, which is unacceptable.
11623
# Some rework will be needed to allow for fast_install
11624
# before this can be enabled.
11625
hardcode_into_libs=yes
11627
# Append ld.so.conf contents to the search path
11628
if test -f /etc/ld.so.conf; then
11629
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11630
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11633
# We used to test for /lib/ld.so.1 and disable shared libraries on
11634
# powerpc, because MkLinux only supported shared libraries with the
11635
# GNU dynamic linker. Since this was broken with cross compilers,
11636
# most powerpc-linux boxes support dynamic linking these days and
11637
# people can always --disable-shared, the test was removed, and we
11638
# assume the GNU/Linux dynamic linker is in use.
11639
dynamic_linker='GNU/Linux ld.so'
11646
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11647
soname_spec='${libname}${release}${shared_ext}$major'
11648
shlibpath_var=LD_LIBRARY_PATH
11649
shlibpath_overrides_runpath=no
11650
hardcode_into_libs=yes
11651
dynamic_linker='NetBSD ld.elf_so'
11658
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11659
soname_spec='${libname}${release}${shared_ext}$major'
11660
shlibpath_var=LD_LIBRARY_PATH
11661
shlibpath_overrides_runpath=no
11662
hardcode_into_libs=yes
11663
dynamic_linker='GNU ld.so'
11670
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11671
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11672
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11673
dynamic_linker='NetBSD (a.out) ld.so'
11675
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11676
soname_spec='${libname}${release}${shared_ext}$major'
11677
dynamic_linker='NetBSD ld.elf_so'
11679
shlibpath_var=LD_LIBRARY_PATH
11680
shlibpath_overrides_runpath=yes
11681
hardcode_into_libs=yes
11686
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11687
shlibpath_var=LD_LIBRARY_PATH
11688
shlibpath_overrides_runpath=yes
11695
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11696
soname_spec='${libname}${release}${shared_ext}$major'
11697
shlibpath_var=LD_LIBRARY_PATH
11698
shlibpath_overrides_runpath=yes
11705
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11706
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11707
shlibpath_var=LD_LIBRARY_PATH
11708
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11710
openbsd2.[89] | openbsd2.[89].*)
11711
shlibpath_overrides_runpath=no
11714
shlibpath_overrides_runpath=yes
11718
shlibpath_overrides_runpath=yes
11723
libname_spec='$name'
11726
library_names_spec='$libname${shared_ext} $libname.a'
11727
dynamic_linker='OS/2 ld.exe'
11728
shlibpath_var=LIBPATH
11731
osf3* | osf4* | osf5*)
11735
soname_spec='${libname}${release}${shared_ext}$major'
11736
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11737
shlibpath_var=LD_LIBRARY_PATH
11738
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11739
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11744
soname_spec='${libname}${release}${shared_ext}$major'
11745
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11746
shlibpath_var=LD_LIBRARY_PATH
11753
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11754
soname_spec='${libname}${release}${shared_ext}$major'
11755
shlibpath_var=LD_LIBRARY_PATH
11756
shlibpath_overrides_runpath=yes
11757
hardcode_into_libs=yes
11758
# ldd complains unless libraries are executable
11759
postinstall_cmds='chmod +x $lib'
11764
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11765
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11766
shlibpath_var=LD_LIBRARY_PATH
11767
shlibpath_overrides_runpath=yes
11768
if test "$with_gnu_ld" = yes; then
11774
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11776
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11777
soname_spec='${libname}${release}${shared_ext}$major'
11778
shlibpath_var=LD_LIBRARY_PATH
11779
case $host_vendor in
11781
shlibpath_overrides_runpath=no
11783
export_dynamic_flag_spec='${wl}-Blargedynsym'
11784
runpath_var=LD_RUN_PATH
11792
shlibpath_overrides_runpath=no
11793
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11799
if test -d /usr/nec ;then
11801
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11802
soname_spec='$libname${shared_ext}.$major'
11803
shlibpath_var=LD_LIBRARY_PATH
11809
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810
soname_spec='${libname}${release}${shared_ext}$major'
11811
shlibpath_var=LD_LIBRARY_PATH
11818
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11819
echo "${ECHO_T}$dynamic_linker" >&6
11820
test "$dynamic_linker" = no && can_build_shared=no
11822
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11823
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11824
hardcode_action_CXX=
11825
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11826
test -n "$runpath_var CXX" || \
11827
test "X$hardcode_automatic_CXX"="Xyes" ; then
11829
# We can hardcode non-existant directories.
11830
if test "$hardcode_direct_CXX" != no &&
11831
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11832
# have to relink, otherwise we might link with an installed library
11833
# when we should be linking with a yet-to-be-installed one
11834
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11835
test "$hardcode_minus_L_CXX" != no; then
11836
# Linking always hardcodes the temporary library directory.
11837
hardcode_action_CXX=relink
11839
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11840
hardcode_action_CXX=immediate
11843
# We cannot hardcode anything, or else we can only hardcode existing
11845
hardcode_action_CXX=unsupported
11847
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11848
echo "${ECHO_T}$hardcode_action_CXX" >&6
11850
if test "$hardcode_action_CXX" = relink; then
11851
# Fast installation is not supported
11852
enable_fast_install=no
11853
elif test "$shlibpath_overrides_runpath" = yes ||
11854
test "$enable_shared" = no; then
11855
# Fast installation is not necessary
11856
enable_fast_install=needless
11861
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11862
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11863
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11864
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11865
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11866
echo "$as_me:$LINENO: result: yes" >&5
11867
echo "${ECHO_T}yes" >&6
11869
# FIXME - insert some real tests, host_os isn't really good enough
11872
if test -n "$STRIP" ; then
11873
striplib="$STRIP -x"
11874
echo "$as_me:$LINENO: result: yes" >&5
11875
echo "${ECHO_T}yes" >&6
11877
echo "$as_me:$LINENO: result: no" >&5
11878
echo "${ECHO_T}no" >&6
11882
echo "$as_me:$LINENO: result: no" >&5
11883
echo "${ECHO_T}no" >&6
11888
if test "x$enable_dlopen" != xyes; then
11889
enable_dlopen=unknown
11890
enable_dlopen_self=unknown
11891
enable_dlopen_self_static=unknown
11898
lt_cv_dlopen="load_add_on"
11900
lt_cv_dlopen_self=yes
11904
lt_cv_dlopen="LoadLibrary"
11909
lt_cv_dlopen="dlopen"
11914
# if libdl is installed we need to link against it
11915
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11916
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11917
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11918
echo $ECHO_N "(cached) $ECHO_C" >&6
11920
ac_check_lib_save_LIBS=$LIBS
11922
cat >conftest.$ac_ext <<_ACEOF
11925
cat confdefs.h >>conftest.$ac_ext
11926
cat >>conftest.$ac_ext <<_ACEOF
11927
/* end confdefs.h. */
11929
/* Override any gcc2 internal prototype to avoid an error. */
11933
/* We use char because int might match the return type of a gcc2
11934
builtin and then its argument prototype would still apply. */
11944
rm -f conftest.$ac_objext conftest$ac_exeext
11945
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11946
(eval $ac_link) 2>conftest.er1
11948
grep -v '^ *+' conftest.er1 >conftest.err
11950
cat conftest.err >&5
11951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952
(exit $ac_status); } &&
11953
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11954
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955
(eval $ac_try) 2>&5
11957
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958
(exit $ac_status); }; } &&
11959
{ ac_try='test -s conftest$ac_exeext'
11960
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961
(eval $ac_try) 2>&5
11963
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964
(exit $ac_status); }; }; then
11965
ac_cv_lib_dl_dlopen=yes
11967
echo "$as_me: failed program was:" >&5
11968
sed 's/^/| /' conftest.$ac_ext >&5
11970
ac_cv_lib_dl_dlopen=no
11972
rm -f conftest.err conftest.$ac_objext \
11973
conftest$ac_exeext conftest.$ac_ext
11974
LIBS=$ac_check_lib_save_LIBS
11976
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11977
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11978
if test $ac_cv_lib_dl_dlopen = yes; then
11979
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11982
lt_cv_dlopen="dyld"
11984
lt_cv_dlopen_self=yes
11991
echo "$as_me:$LINENO: checking for shl_load" >&5
11992
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11993
if test "${ac_cv_func_shl_load+set}" = set; then
11994
echo $ECHO_N "(cached) $ECHO_C" >&6
11996
cat >conftest.$ac_ext <<_ACEOF
11999
cat confdefs.h >>conftest.$ac_ext
12000
cat >>conftest.$ac_ext <<_ACEOF
12001
/* end confdefs.h. */
12002
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12003
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12004
#define shl_load innocuous_shl_load
12006
/* System header to define __stub macros and hopefully few prototypes,
12007
which can conflict with char shl_load (); below.
12008
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12009
<limits.h> exists even on freestanding compilers. */
12012
# include <limits.h>
12014
# include <assert.h>
12019
/* Override any gcc2 internal prototype to avoid an error. */
12024
/* We use char because int might match the return type of a gcc2
12025
builtin and then its argument prototype would still apply. */
12027
/* The GNU C library defines this for functions which it implements
12028
to always fail with ENOSYS. Some functions are actually named
12029
something starting with __ and the normal name is an alias. */
12030
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12033
char (*f) () = shl_load;
12042
return f != shl_load;
12047
rm -f conftest.$ac_objext conftest$ac_exeext
12048
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12049
(eval $ac_link) 2>conftest.er1
12051
grep -v '^ *+' conftest.er1 >conftest.err
12053
cat conftest.err >&5
12054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055
(exit $ac_status); } &&
12056
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12057
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058
(eval $ac_try) 2>&5
12060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061
(exit $ac_status); }; } &&
12062
{ ac_try='test -s conftest$ac_exeext'
12063
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064
(eval $ac_try) 2>&5
12066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067
(exit $ac_status); }; }; then
12068
ac_cv_func_shl_load=yes
12070
echo "$as_me: failed program was:" >&5
12071
sed 's/^/| /' conftest.$ac_ext >&5
12073
ac_cv_func_shl_load=no
12075
rm -f conftest.err conftest.$ac_objext \
12076
conftest$ac_exeext conftest.$ac_ext
12078
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12079
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12080
if test $ac_cv_func_shl_load = yes; then
12081
lt_cv_dlopen="shl_load"
12083
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12084
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12085
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12086
echo $ECHO_N "(cached) $ECHO_C" >&6
12088
ac_check_lib_save_LIBS=$LIBS
12090
cat >conftest.$ac_ext <<_ACEOF
12093
cat confdefs.h >>conftest.$ac_ext
12094
cat >>conftest.$ac_ext <<_ACEOF
12095
/* end confdefs.h. */
12097
/* Override any gcc2 internal prototype to avoid an error. */
12101
/* We use char because int might match the return type of a gcc2
12102
builtin and then its argument prototype would still apply. */
12112
rm -f conftest.$ac_objext conftest$ac_exeext
12113
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114
(eval $ac_link) 2>conftest.er1
12116
grep -v '^ *+' conftest.er1 >conftest.err
12118
cat conftest.err >&5
12119
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120
(exit $ac_status); } &&
12121
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12122
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123
(eval $ac_try) 2>&5
12125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126
(exit $ac_status); }; } &&
12127
{ ac_try='test -s conftest$ac_exeext'
12128
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12129
(eval $ac_try) 2>&5
12131
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132
(exit $ac_status); }; }; then
12133
ac_cv_lib_dld_shl_load=yes
12135
echo "$as_me: failed program was:" >&5
12136
sed 's/^/| /' conftest.$ac_ext >&5
12138
ac_cv_lib_dld_shl_load=no
12140
rm -f conftest.err conftest.$ac_objext \
12141
conftest$ac_exeext conftest.$ac_ext
12142
LIBS=$ac_check_lib_save_LIBS
12144
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12145
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12146
if test $ac_cv_lib_dld_shl_load = yes; then
12147
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12149
echo "$as_me:$LINENO: checking for dlopen" >&5
12150
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12151
if test "${ac_cv_func_dlopen+set}" = set; then
12152
echo $ECHO_N "(cached) $ECHO_C" >&6
12154
cat >conftest.$ac_ext <<_ACEOF
12157
cat confdefs.h >>conftest.$ac_ext
12158
cat >>conftest.$ac_ext <<_ACEOF
12159
/* end confdefs.h. */
12160
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12161
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12162
#define dlopen innocuous_dlopen
12164
/* System header to define __stub macros and hopefully few prototypes,
12165
which can conflict with char dlopen (); below.
12166
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12167
<limits.h> exists even on freestanding compilers. */
12170
# include <limits.h>
12172
# include <assert.h>
12177
/* Override any gcc2 internal prototype to avoid an error. */
12182
/* We use char because int might match the return type of a gcc2
12183
builtin and then its argument prototype would still apply. */
12185
/* The GNU C library defines this for functions which it implements
12186
to always fail with ENOSYS. Some functions are actually named
12187
something starting with __ and the normal name is an alias. */
12188
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12191
char (*f) () = dlopen;
12200
return f != dlopen;
12205
rm -f conftest.$ac_objext conftest$ac_exeext
12206
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12207
(eval $ac_link) 2>conftest.er1
12209
grep -v '^ *+' conftest.er1 >conftest.err
12211
cat conftest.err >&5
12212
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213
(exit $ac_status); } &&
12214
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12215
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216
(eval $ac_try) 2>&5
12218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219
(exit $ac_status); }; } &&
12220
{ ac_try='test -s conftest$ac_exeext'
12221
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222
(eval $ac_try) 2>&5
12224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225
(exit $ac_status); }; }; then
12226
ac_cv_func_dlopen=yes
12228
echo "$as_me: failed program was:" >&5
12229
sed 's/^/| /' conftest.$ac_ext >&5
12231
ac_cv_func_dlopen=no
12233
rm -f conftest.err conftest.$ac_objext \
12234
conftest$ac_exeext conftest.$ac_ext
12236
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12237
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12238
if test $ac_cv_func_dlopen = yes; then
12239
lt_cv_dlopen="dlopen"
12241
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12242
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12243
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12244
echo $ECHO_N "(cached) $ECHO_C" >&6
12246
ac_check_lib_save_LIBS=$LIBS
12248
cat >conftest.$ac_ext <<_ACEOF
12251
cat confdefs.h >>conftest.$ac_ext
12252
cat >>conftest.$ac_ext <<_ACEOF
12253
/* end confdefs.h. */
12255
/* Override any gcc2 internal prototype to avoid an error. */
12259
/* We use char because int might match the return type of a gcc2
12260
builtin and then its argument prototype would still apply. */
12270
rm -f conftest.$ac_objext conftest$ac_exeext
12271
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12272
(eval $ac_link) 2>conftest.er1
12274
grep -v '^ *+' conftest.er1 >conftest.err
12276
cat conftest.err >&5
12277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278
(exit $ac_status); } &&
12279
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12280
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281
(eval $ac_try) 2>&5
12283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284
(exit $ac_status); }; } &&
12285
{ ac_try='test -s conftest$ac_exeext'
12286
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287
(eval $ac_try) 2>&5
12289
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290
(exit $ac_status); }; }; then
12291
ac_cv_lib_dl_dlopen=yes
12293
echo "$as_me: failed program was:" >&5
12294
sed 's/^/| /' conftest.$ac_ext >&5
12296
ac_cv_lib_dl_dlopen=no
12298
rm -f conftest.err conftest.$ac_objext \
12299
conftest$ac_exeext conftest.$ac_ext
12300
LIBS=$ac_check_lib_save_LIBS
12302
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12303
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12304
if test $ac_cv_lib_dl_dlopen = yes; then
12305
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12307
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12308
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12309
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12310
echo $ECHO_N "(cached) $ECHO_C" >&6
12312
ac_check_lib_save_LIBS=$LIBS
12313
LIBS="-lsvld $LIBS"
12314
cat >conftest.$ac_ext <<_ACEOF
12317
cat confdefs.h >>conftest.$ac_ext
12318
cat >>conftest.$ac_ext <<_ACEOF
12319
/* end confdefs.h. */
12321
/* Override any gcc2 internal prototype to avoid an error. */
12325
/* We use char because int might match the return type of a gcc2
12326
builtin and then its argument prototype would still apply. */
12336
rm -f conftest.$ac_objext conftest$ac_exeext
12337
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12338
(eval $ac_link) 2>conftest.er1
12340
grep -v '^ *+' conftest.er1 >conftest.err
12342
cat conftest.err >&5
12343
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344
(exit $ac_status); } &&
12345
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12346
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347
(eval $ac_try) 2>&5
12349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350
(exit $ac_status); }; } &&
12351
{ ac_try='test -s conftest$ac_exeext'
12352
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353
(eval $ac_try) 2>&5
12355
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356
(exit $ac_status); }; }; then
12357
ac_cv_lib_svld_dlopen=yes
12359
echo "$as_me: failed program was:" >&5
12360
sed 's/^/| /' conftest.$ac_ext >&5
12362
ac_cv_lib_svld_dlopen=no
12364
rm -f conftest.err conftest.$ac_objext \
12365
conftest$ac_exeext conftest.$ac_ext
12366
LIBS=$ac_check_lib_save_LIBS
12368
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12369
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12370
if test $ac_cv_lib_svld_dlopen = yes; then
12371
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12373
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12374
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12375
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12376
echo $ECHO_N "(cached) $ECHO_C" >&6
12378
ac_check_lib_save_LIBS=$LIBS
12380
cat >conftest.$ac_ext <<_ACEOF
12383
cat confdefs.h >>conftest.$ac_ext
12384
cat >>conftest.$ac_ext <<_ACEOF
12385
/* end confdefs.h. */
12387
/* Override any gcc2 internal prototype to avoid an error. */
12391
/* We use char because int might match the return type of a gcc2
12392
builtin and then its argument prototype would still apply. */
12402
rm -f conftest.$ac_objext conftest$ac_exeext
12403
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12404
(eval $ac_link) 2>conftest.er1
12406
grep -v '^ *+' conftest.er1 >conftest.err
12408
cat conftest.err >&5
12409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410
(exit $ac_status); } &&
12411
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12412
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413
(eval $ac_try) 2>&5
12415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416
(exit $ac_status); }; } &&
12417
{ ac_try='test -s conftest$ac_exeext'
12418
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419
(eval $ac_try) 2>&5
12421
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422
(exit $ac_status); }; }; then
12423
ac_cv_lib_dld_dld_link=yes
12425
echo "$as_me: failed program was:" >&5
12426
sed 's/^/| /' conftest.$ac_ext >&5
12428
ac_cv_lib_dld_dld_link=no
12430
rm -f conftest.err conftest.$ac_objext \
12431
conftest$ac_exeext conftest.$ac_ext
12432
LIBS=$ac_check_lib_save_LIBS
12434
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12435
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12436
if test $ac_cv_lib_dld_dld_link = yes; then
12437
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12458
if test "x$lt_cv_dlopen" != xno; then
12464
case $lt_cv_dlopen in
12466
save_CPPFLAGS="$CPPFLAGS"
12467
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12469
save_LDFLAGS="$LDFLAGS"
12470
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12473
LIBS="$lt_cv_dlopen_libs $LIBS"
12475
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12476
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12477
if test "${lt_cv_dlopen_self+set}" = set; then
12478
echo $ECHO_N "(cached) $ECHO_C" >&6
12480
if test "$cross_compiling" = yes; then :
12481
lt_cv_dlopen_self=cross
12483
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12484
lt_status=$lt_dlunknown
12485
cat > conftest.$ac_ext <<EOF
12486
#line 12486 "configure"
12487
#include "confdefs.h"
12496
# define LT_DLGLOBAL RTLD_GLOBAL
12499
# define LT_DLGLOBAL DL_GLOBAL
12501
# define LT_DLGLOBAL 0
12505
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12506
find out it does not work in some platform. */
12507
#ifndef LT_DLLAZY_OR_NOW
12509
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12512
# define LT_DLLAZY_OR_NOW DL_LAZY
12515
# define LT_DLLAZY_OR_NOW RTLD_NOW
12518
# define LT_DLLAZY_OR_NOW DL_NOW
12520
# define LT_DLLAZY_OR_NOW 0
12528
extern "C" void exit (int);
12531
void fnord() { int i=42;}
12534
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12535
int status = $lt_dlunknown;
12539
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12540
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12541
/* dlclose (self); */
12547
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12548
(eval $ac_link) 2>&5
12550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12552
(./conftest; exit; ) 2>/dev/null
12554
case x$lt_status in
12555
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12556
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12557
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12560
# compilation failed
12561
lt_cv_dlopen_self=no
12568
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12569
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12571
if test "x$lt_cv_dlopen_self" = xyes; then
12572
LDFLAGS="$LDFLAGS $link_static_flag"
12573
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12574
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12575
if test "${lt_cv_dlopen_self_static+set}" = set; then
12576
echo $ECHO_N "(cached) $ECHO_C" >&6
12578
if test "$cross_compiling" = yes; then :
12579
lt_cv_dlopen_self_static=cross
12581
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12582
lt_status=$lt_dlunknown
12583
cat > conftest.$ac_ext <<EOF
12584
#line 12584 "configure"
12585
#include "confdefs.h"
12594
# define LT_DLGLOBAL RTLD_GLOBAL
12597
# define LT_DLGLOBAL DL_GLOBAL
12599
# define LT_DLGLOBAL 0
12603
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12604
find out it does not work in some platform. */
12605
#ifndef LT_DLLAZY_OR_NOW
12607
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12610
# define LT_DLLAZY_OR_NOW DL_LAZY
12613
# define LT_DLLAZY_OR_NOW RTLD_NOW
12616
# define LT_DLLAZY_OR_NOW DL_NOW
12618
# define LT_DLLAZY_OR_NOW 0
12626
extern "C" void exit (int);
12629
void fnord() { int i=42;}
12632
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12633
int status = $lt_dlunknown;
12637
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12638
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12639
/* dlclose (self); */
12645
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12646
(eval $ac_link) 2>&5
12648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12650
(./conftest; exit; ) 2>/dev/null
12652
case x$lt_status in
12653
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12654
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12655
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12658
# compilation failed
12659
lt_cv_dlopen_self_static=no
12666
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12667
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12670
CPPFLAGS="$save_CPPFLAGS"
12671
LDFLAGS="$save_LDFLAGS"
12676
case $lt_cv_dlopen_self in
12677
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12678
*) enable_dlopen_self=unknown ;;
12681
case $lt_cv_dlopen_self_static in
12682
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12683
*) enable_dlopen_self_static=unknown ;;
12688
# The else clause should only fire when bootstrapping the
12689
# libtool distribution, otherwise you forgot to ship ltmain.sh
12690
# with your package, and you will get complaints that there are
12691
# no rules to generate ltmain.sh.
12692
if test -f "$ltmain"; then
12693
# See if we are running on zsh, and set the options which allow our commands through
12694
# without removal of \ escapes.
12695
if test -n "${ZSH_VERSION+set}" ; then
12696
setopt NO_GLOB_SUBST
12698
# Now quote all the things that may contain metacharacters while being
12699
# careful not to overquote the AC_SUBSTed values. We take copies of the
12700
# variables and quote the copies for generation of the libtool script.
12701
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12703
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12704
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12705
deplibs_check_method reload_flag reload_cmds need_locks \
12706
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12707
lt_cv_sys_global_symbol_to_c_name_address \
12708
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12709
old_postinstall_cmds old_postuninstall_cmds \
12713
lt_prog_compiler_wl_CXX \
12714
lt_prog_compiler_pic_CXX \
12715
lt_prog_compiler_static_CXX \
12716
lt_prog_compiler_no_builtin_flag_CXX \
12717
export_dynamic_flag_spec_CXX \
12718
thread_safe_flag_spec_CXX \
12719
whole_archive_flag_spec_CXX \
12720
enable_shared_with_static_runtimes_CXX \
12721
old_archive_cmds_CXX \
12722
old_archive_from_new_cmds_CXX \
12723
predep_objects_CXX \
12724
postdep_objects_CXX \
12727
compiler_lib_search_path_CXX \
12729
archive_expsym_cmds_CXX \
12730
postinstall_cmds_CXX \
12731
postuninstall_cmds_CXX \
12732
old_archive_from_expsyms_cmds_CXX \
12733
allow_undefined_flag_CXX \
12734
no_undefined_flag_CXX \
12735
export_symbols_cmds_CXX \
12736
hardcode_libdir_flag_spec_CXX \
12737
hardcode_libdir_flag_spec_ld_CXX \
12738
hardcode_libdir_separator_CXX \
12739
hardcode_automatic_CXX \
12741
module_expsym_cmds_CXX \
12742
lt_cv_prog_compiler_c_o_CXX \
12743
exclude_expsyms_CXX \
12744
include_expsyms_CXX; do
12747
old_archive_cmds_CXX | \
12748
old_archive_from_new_cmds_CXX | \
12749
archive_cmds_CXX | \
12750
archive_expsym_cmds_CXX | \
12751
module_cmds_CXX | \
12752
module_expsym_cmds_CXX | \
12753
old_archive_from_expsyms_cmds_CXX | \
12754
export_symbols_cmds_CXX | \
12755
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12756
postinstall_cmds | postuninstall_cmds | \
12757
old_postinstall_cmds | old_postuninstall_cmds | \
12758
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12759
# Double-quote double-evaled strings.
12760
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12763
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12769
*'\$0 --fallback-echo"')
12770
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12776
cat <<__EOF__ >> "$cfgfile"
12777
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12779
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12781
# Shell to use when invoking shell scripts.
12784
# Whether or not to build shared libraries.
12785
build_libtool_libs=$enable_shared
12787
# Whether or not to build static libraries.
12788
build_old_libs=$enable_static
12790
# Whether or not to add -lc for building shared libraries.
12791
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12793
# Whether or not to disallow shared libs when runtime libs are static
12794
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12796
# Whether or not to optimize for fast installation.
12797
fast_install=$enable_fast_install
12800
host_alias=$host_alias
12803
# An echo program that does not interpret backslashes.
12808
AR_FLAGS=$lt_AR_FLAGS
12813
# A language-specific compiler.
12814
CC=$lt_compiler_CXX
12816
# Is the compiler the GNU C compiler?
12822
# The linker used to build libraries.
12825
# Whether we need hard or soft links.
12828
# A BSD-compatible nm program.
12831
# A symbol stripping program
12834
# Used to examine libraries when file_magic_cmd begins "file"
12835
MAGIC_CMD=$MAGIC_CMD
12837
# Used on cygwin: DLL creation program.
12840
# Used on cygwin: object dumper.
12843
# Used on cygwin: assembler.
12846
# The name of the directory that contains temporary libtool files.
12849
# How to create reloadable object files.
12850
reload_flag=$lt_reload_flag
12851
reload_cmds=$lt_reload_cmds
12853
# How to pass a linker flag through the compiler.
12854
wl=$lt_lt_prog_compiler_wl_CXX
12856
# Object file suffix (normally "o").
12857
objext="$ac_objext"
12859
# Old archive suffix (normally "a").
12862
# Shared library suffix (normally ".so").
12863
shrext_cmds='$shrext_cmds'
12865
# Executable file suffix (normally "").
12868
# Additional compiler flags for building library objects.
12869
pic_flag=$lt_lt_prog_compiler_pic_CXX
12872
# What is the maximum length of a command?
12873
max_cmd_len=$lt_cv_sys_max_cmd_len
12875
# Does compiler simultaneously support -c and -o options?
12876
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12878
# Must we lock files when doing compilation ?
12879
need_locks=$lt_need_locks
12881
# Do we need the lib prefix for modules?
12882
need_lib_prefix=$need_lib_prefix
12884
# Do we need a version for libraries?
12885
need_version=$need_version
12887
# Whether dlopen is supported.
12888
dlopen_support=$enable_dlopen
12890
# Whether dlopen of programs is supported.
12891
dlopen_self=$enable_dlopen_self
12893
# Whether dlopen of statically linked programs is supported.
12894
dlopen_self_static=$enable_dlopen_self_static
12896
# Compiler flag to prevent dynamic linking.
12897
link_static_flag=$lt_lt_prog_compiler_static_CXX
12899
# Compiler flag to turn off builtin functions.
12900
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12902
# Compiler flag to allow reflexive dlopens.
12903
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12905
# Compiler flag to generate shared objects directly from archives.
12906
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12908
# Compiler flag to generate thread-safe objects.
12909
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12911
# Library versioning type.
12912
version_type=$version_type
12914
# Format of library name prefix.
12915
libname_spec=$lt_libname_spec
12917
# List of archive names. First name is the real one, the rest are links.
12918
# The last name is the one that the linker finds with -lNAME.
12919
library_names_spec=$lt_library_names_spec
12921
# The coded name of the library, if different from the real name.
12922
soname_spec=$lt_soname_spec
12924
# Commands used to build and install an old-style archive.
12926
old_archive_cmds=$lt_old_archive_cmds_CXX
12927
old_postinstall_cmds=$lt_old_postinstall_cmds
12928
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12930
# Create an old-style archive from a shared archive.
12931
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12933
# Create a temporary old-style archive to link instead of a shared archive.
12934
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12936
# Commands used to build and install a shared archive.
12937
archive_cmds=$lt_archive_cmds_CXX
12938
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12939
postinstall_cmds=$lt_postinstall_cmds
12940
postuninstall_cmds=$lt_postuninstall_cmds
12942
# Commands used to build a loadable module (assumed same as above if empty)
12943
module_cmds=$lt_module_cmds_CXX
12944
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12946
# Commands to strip libraries.
12947
old_striplib=$lt_old_striplib
12948
striplib=$lt_striplib
12950
# Dependencies to place before the objects being linked to create a
12952
predep_objects=$lt_predep_objects_CXX
12954
# Dependencies to place after the objects being linked to create a
12956
postdep_objects=$lt_postdep_objects_CXX
12958
# Dependencies to place before the objects being linked to create a
12960
predeps=$lt_predeps_CXX
12962
# Dependencies to place after the objects being linked to create a
12964
postdeps=$lt_postdeps_CXX
12966
# The library search path used internally by the compiler when linking
12967
# a shared library.
12968
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12970
# Method to check whether dependent libraries are shared objects.
12971
deplibs_check_method=$lt_deplibs_check_method
12973
# Command to use when deplibs_check_method == file_magic.
12974
file_magic_cmd=$lt_file_magic_cmd
12976
# Flag that allows shared libraries with undefined symbols to be built.
12977
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12979
# Flag that forces no undefined symbols.
12980
no_undefined_flag=$lt_no_undefined_flag_CXX
12982
# Commands used to finish a libtool library installation in a directory.
12983
finish_cmds=$lt_finish_cmds
12985
# Same as above, but a single script fragment to be evaled but not shown.
12986
finish_eval=$lt_finish_eval
12988
# Take the output of nm and produce a listing of raw symbols and C names.
12989
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12991
# Transform the output of nm in a proper C declaration
12992
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12994
# Transform the output of nm in a C name address pair
12995
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12997
# This is the shared library runtime path variable.
12998
runpath_var=$runpath_var
13000
# This is the shared library path variable.
13001
shlibpath_var=$shlibpath_var
13003
# Is shlibpath searched before the hard-coded library search path?
13004
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13006
# How to hardcode a shared library path into an executable.
13007
hardcode_action=$hardcode_action_CXX
13009
# Whether we should hardcode library paths into libraries.
13010
hardcode_into_libs=$hardcode_into_libs
13012
# Flag to hardcode \$libdir into a binary during linking.
13013
# This must work even if \$libdir does not exist.
13014
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13016
# If ld is used when linking, flag to hardcode \$libdir into
13017
# a binary during linking. This must work even if \$libdir does
13019
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13021
# Whether we need a single -rpath flag with a separated argument.
13022
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13024
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13025
# resulting binary.
13026
hardcode_direct=$hardcode_direct_CXX
13028
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13029
# resulting binary.
13030
hardcode_minus_L=$hardcode_minus_L_CXX
13032
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13033
# the resulting binary.
13034
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13036
# Set to yes if building a shared library automatically hardcodes DIR into the library
13037
# and all subsequent libraries and executables linked against it.
13038
hardcode_automatic=$hardcode_automatic_CXX
13040
# Variables whose values should be saved in libtool wrapper scripts and
13041
# restored at relink time.
13042
variables_saved_for_relink="$variables_saved_for_relink"
13044
# Whether libtool must link a program against all its dependency libraries.
13045
link_all_deplibs=$link_all_deplibs_CXX
13047
# Compile-time system search path for libraries
13048
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13050
# Run-time system search path for libraries
13051
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13053
# Fix the shell variable \$srcfile for the compiler.
13054
fix_srcfile_path="$fix_srcfile_path_CXX"
13056
# Set to yes if exported symbols are required.
13057
always_export_symbols=$always_export_symbols_CXX
13059
# The commands to list exported symbols.
13060
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13062
# The commands to extract the exported symbol list from a shared archive.
13063
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13065
# Symbols that should not be listed in the preloaded symbols.
13066
exclude_expsyms=$lt_exclude_expsyms_CXX
13068
# Symbols that must always be exported.
13069
include_expsyms=$lt_include_expsyms_CXX
13071
# ### END LIBTOOL TAG CONFIG: $tagname
13077
# If there is no Makefile yet, we rely on a make rule to execute
13078
# `config.status --recheck' to rerun these tests and create the
13079
# libtool script then.
13080
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13081
if test -f "$ltmain_in"; then
13082
test -f Makefile && make "$ltmain"
13088
ac_cpp='$CPP $CPPFLAGS'
13089
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13090
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13091
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13097
with_gnu_ldcxx=$with_gnu_ld
13098
with_gnu_ld=$lt_save_with_gnu_ld
13099
lt_cv_path_LDCXX=$lt_cv_path_LD
13100
lt_cv_path_LD=$lt_save_path_LD
13101
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13102
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13110
if test -n "$F77" && test "X$F77" != "Xno"; then
13113
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13114
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13115
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13118
archive_cmds_need_lc_F77=no
13119
allow_undefined_flag_F77=
13120
always_export_symbols_F77=no
13121
archive_expsym_cmds_F77=
13122
export_dynamic_flag_spec_F77=
13123
hardcode_direct_F77=no
13124
hardcode_libdir_flag_spec_F77=
13125
hardcode_libdir_flag_spec_ld_F77=
13126
hardcode_libdir_separator_F77=
13127
hardcode_minus_L_F77=no
13128
hardcode_automatic_F77=no
13130
module_expsym_cmds_F77=
13131
link_all_deplibs_F77=unknown
13132
old_archive_cmds_F77=$old_archive_cmds
13133
no_undefined_flag_F77=
13134
whole_archive_flag_spec_F77=
13135
enable_shared_with_static_runtimes_F77=no
13137
# Source file extension for f77 test sources.
13140
# Object file extension for compiled f77 test sources.
13144
# Code to be used in simple compile tests
13145
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13147
# Code to be used in simple link tests
13148
lt_simple_link_test_code=" program t\n end\n"
13150
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13152
# If no C compiler was specified, use CC.
13155
# Allow CC to be a program name with arguments.
13159
# Allow CC to be a program name with arguments.
13164
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13166
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13167
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13168
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13169
echo "${ECHO_T}$can_build_shared" >&6
13171
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13172
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13173
test "$can_build_shared" = "no" && enable_shared=no
13175
# On AIX, shared libraries and static libraries use the same namespace, and
13176
# are all built from PIC.
13179
test "$enable_shared" = yes && enable_static=no
13180
if test -n "$RANLIB"; then
13181
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13182
postinstall_cmds='$RANLIB $lib'
13186
test "$enable_shared" = yes && enable_static=no
13189
echo "$as_me:$LINENO: result: $enable_shared" >&5
13190
echo "${ECHO_T}$enable_shared" >&6
13192
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13193
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13194
# Make sure either enable_shared or enable_static is yes.
13195
test "$enable_shared" = yes || enable_static=yes
13196
echo "$as_me:$LINENO: result: $enable_static" >&5
13197
echo "${ECHO_T}$enable_static" >&6
13199
test "$ld_shlibs_F77" = no && can_build_shared=no
13204
lt_prog_compiler_wl_F77=
13205
lt_prog_compiler_pic_F77=
13206
lt_prog_compiler_static_F77=
13208
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13209
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13211
if test "$GCC" = yes; then
13212
lt_prog_compiler_wl_F77='-Wl,'
13213
lt_prog_compiler_static_F77='-static'
13217
# All AIX code is PIC.
13218
if test "$host_cpu" = ia64; then
13219
# AIX 5 now supports IA64 processor
13220
lt_prog_compiler_static_F77='-Bstatic'
13225
# FIXME: we need at least 68020 code to build shared libraries, but
13226
# adding the `-m68020' flag to GCC prevents building anything better,
13228
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13231
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13232
# PIC is the default for these OSes.
13235
mingw* | pw32* | os2*)
13236
# This hack is so that the source file can tell whether it is being
13237
# built for inclusion in a dll (and should export symbols for example).
13238
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13241
darwin* | rhapsody*)
13242
# PIC is the default on this platform
13243
# Common symbols not allowed in MH_DYLIB files
13244
lt_prog_compiler_pic_F77='-fno-common'
13248
# Just because we use GCC doesn't mean we suddenly get shared libraries
13249
# on systems that don't support them.
13250
lt_prog_compiler_can_build_shared_F77=no
13255
if test -d /usr/nec; then
13256
lt_prog_compiler_pic_F77=-Kconform_pic
13261
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13262
# not for PA HP-UX.
13263
case "$host_cpu" in
13268
lt_prog_compiler_pic_F77='-fPIC'
13274
lt_prog_compiler_pic_F77='-fPIC'
13278
# PORTME Check for flag to pass linker flags through the system compiler.
13281
lt_prog_compiler_wl_F77='-Wl,'
13282
if test "$host_cpu" = ia64; then
13283
# AIX 5 now supports IA64 processor
13284
lt_prog_compiler_static_F77='-Bstatic'
13286
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13290
mingw* | pw32* | os2*)
13291
# This hack is so that the source file can tell whether it is being
13292
# built for inclusion in a dll (and should export symbols for example).
13293
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13296
hpux9* | hpux10* | hpux11*)
13297
lt_prog_compiler_wl_F77='-Wl,'
13298
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13299
# not for PA HP-UX.
13300
case "$host_cpu" in
13305
lt_prog_compiler_pic_F77='+Z'
13308
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13309
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13312
irix5* | irix6* | nonstopux*)
13313
lt_prog_compiler_wl_F77='-Wl,'
13314
# PIC (with -KPIC) is the default.
13315
lt_prog_compiler_static_F77='-non_shared'
13319
lt_prog_compiler_pic_F77='-KPIC'
13320
lt_prog_compiler_static_F77='-Bstatic'
13326
lt_prog_compiler_wl_F77='-Wl,'
13327
lt_prog_compiler_pic_F77='-KPIC'
13328
lt_prog_compiler_static_F77='-static'
13331
lt_prog_compiler_wl_F77='-Wl,'
13332
# All Alpha code is PIC.
13333
lt_prog_compiler_static_F77='-non_shared'
13338
osf3* | osf4* | osf5*)
13339
lt_prog_compiler_wl_F77='-Wl,'
13340
# All OSF/1 code is PIC.
13341
lt_prog_compiler_static_F77='-non_shared'
13345
lt_prog_compiler_pic_F77='-Kpic'
13346
lt_prog_compiler_static_F77='-dn'
13350
lt_prog_compiler_wl_F77='-Wl,'
13351
lt_prog_compiler_pic_F77='-KPIC'
13352
lt_prog_compiler_static_F77='-Bstatic'
13356
lt_prog_compiler_wl_F77='-Qoption ld '
13357
lt_prog_compiler_pic_F77='-PIC'
13358
lt_prog_compiler_static_F77='-Bstatic'
13361
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13362
lt_prog_compiler_wl_F77='-Wl,'
13363
lt_prog_compiler_pic_F77='-KPIC'
13364
lt_prog_compiler_static_F77='-Bstatic'
13368
if test -d /usr/nec ;then
13369
lt_prog_compiler_pic_F77='-Kconform_pic'
13370
lt_prog_compiler_static_F77='-Bstatic'
13375
lt_prog_compiler_pic_F77='-pic'
13376
lt_prog_compiler_static_F77='-Bstatic'
13380
lt_prog_compiler_can_build_shared_F77=no
13385
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13386
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13389
# Check to make sure the PIC flag actually works.
13391
if test -n "$lt_prog_compiler_pic_F77"; then
13393
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13394
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13395
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13396
echo $ECHO_N "(cached) $ECHO_C" >&6
13398
lt_prog_compiler_pic_works_F77=no
13399
ac_outfile=conftest.$ac_objext
13400
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13401
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13402
# Insert the option either (1) after the last *FLAGS variable, or
13403
# (2) before a word containing "conftest.", or (3) at the end.
13404
# Note that $ac_compile itself does not contain backslashes and begins
13405
# with a dollar sign (not a hyphen), so the echo should work correctly.
13406
# The option is referenced via a variable to avoid confusing sed.
13407
lt_compile=`echo "$ac_compile" | $SED \
13408
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13409
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13410
-e 's:$: $lt_compiler_flag:'`
13411
(eval echo "\"\$as_me:13411: $lt_compile\"" >&5)
13412
(eval "$lt_compile" 2>conftest.err)
13414
cat conftest.err >&5
13415
echo "$as_me:13415: \$? = $ac_status" >&5
13416
if (exit $ac_status) && test -s "$ac_outfile"; then
13417
# The compiler can only warn and ignore the option if not recognized
13418
# So say no if there are warnings
13419
if test ! -s conftest.err; then
13420
lt_prog_compiler_pic_works_F77=yes
13426
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13427
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13429
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13430
case $lt_prog_compiler_pic_F77 in
13432
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13435
lt_prog_compiler_pic_F77=
13436
lt_prog_compiler_can_build_shared_F77=no
13441
# For platforms which do not support PIC, -DPIC is meaningless:
13443
lt_prog_compiler_pic_F77=
13446
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13450
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13451
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13452
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13453
echo $ECHO_N "(cached) $ECHO_C" >&6
13455
lt_cv_prog_compiler_c_o_F77=no
13456
$rm -r conftest 2>/dev/null
13460
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13462
lt_compiler_flag="-o out/conftest2.$ac_objext"
13463
# Insert the option either (1) after the last *FLAGS variable, or
13464
# (2) before a word containing "conftest.", or (3) at the end.
13465
# Note that $ac_compile itself does not contain backslashes and begins
13466
# with a dollar sign (not a hyphen), so the echo should work correctly.
13467
lt_compile=`echo "$ac_compile" | $SED \
13468
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13469
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13470
-e 's:$: $lt_compiler_flag:'`
13471
(eval echo "\"\$as_me:13471: $lt_compile\"" >&5)
13472
(eval "$lt_compile" 2>out/conftest.err)
13474
cat out/conftest.err >&5
13475
echo "$as_me:13475: \$? = $ac_status" >&5
13476
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13478
# The compiler can only warn and ignore the option if not recognized
13479
# So say no if there are warnings
13480
if test ! -s out/conftest.err; then
13481
lt_cv_prog_compiler_c_o_F77=yes
13486
# SGI C++ compiler will create directory out/ii_files/ for
13487
# template instantiation
13488
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13489
$rm out/* && rmdir out
13495
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13496
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13499
hard_links="nottested"
13500
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13501
# do not overwrite the value of need_locks provided by the user
13502
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13503
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13506
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13508
ln conftest.a conftest.b 2>&5 || hard_links=no
13509
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13510
echo "$as_me:$LINENO: result: $hard_links" >&5
13511
echo "${ECHO_T}$hard_links" >&6
13512
if test "$hard_links" = no; then
13513
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13514
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13521
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13522
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13525
allow_undefined_flag_F77=
13526
enable_shared_with_static_runtimes_F77=no
13528
archive_expsym_cmds_F77=
13529
old_archive_From_new_cmds_F77=
13530
old_archive_from_expsyms_cmds_F77=
13531
export_dynamic_flag_spec_F77=
13532
whole_archive_flag_spec_F77=
13533
thread_safe_flag_spec_F77=
13534
hardcode_libdir_flag_spec_F77=
13535
hardcode_libdir_flag_spec_ld_F77=
13536
hardcode_libdir_separator_F77=
13537
hardcode_direct_F77=no
13538
hardcode_minus_L_F77=no
13539
hardcode_shlibpath_var_F77=unsupported
13540
link_all_deplibs_F77=unknown
13541
hardcode_automatic_F77=no
13543
module_expsym_cmds_F77=
13544
always_export_symbols_F77=no
13545
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13546
# include_expsyms should be a list of space-separated symbols to be *always*
13547
# included in the symbol list
13548
include_expsyms_F77=
13549
# exclude_expsyms can be an extended regexp of symbols to exclude
13550
# it will be wrapped by ` (' and `)$', so one must not match beginning or
13551
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13552
# as well as any symbol that contains `d'.
13553
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13554
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13555
# platforms (ab)use it in PIC code, but their linkers get confused if
13556
# the symbol is explicitly referenced. Since portable code cannot
13557
# rely on this symbol name, it's probably fine to never include it in
13558
# preloaded symbol tables.
13559
extract_expsyms_cmds=
13562
cygwin* | mingw* | pw32*)
13563
# FIXME: the MSVC++ port hasn't been tested in a loooong time
13564
# When not using gcc, we currently assume that we are using
13565
# Microsoft Visual C++.
13566
if test "$GCC" != yes; then
13576
if test "$with_gnu_ld" = yes; then
13577
# If archive_cmds runs LD, not CC, wlarc should be empty
13580
# See if GNU ld supports shared libraries.
13582
aix3* | aix4* | aix5*)
13583
# On AIX/PPC, the GNU linker is very broken
13584
if test "$host_cpu" != ia64; then
13588
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13589
*** to be unable to reliably create shared libraries on AIX.
13590
*** Therefore, libtool is disabling shared libraries support. If you
13591
*** really care for shared libraries, you may want to modify your PATH
13592
*** so that a non-GNU linker is found, and then restart.
13599
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)'
13600
hardcode_libdir_flag_spec_F77='-L$libdir'
13601
hardcode_minus_L_F77=yes
13603
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13604
# that the semantics of dynamic libraries on AmigaOS, at least up
13605
# to version 4, is to share data among multiple programs linked
13606
# with the same dynamic library. Since this doesn't match the
13607
# behavior of shared libraries on other platforms, we can't use
13613
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13614
allow_undefined_flag_F77=unsupported
13615
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13616
# support --undefined. This deserves some investigation. FIXME
13617
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13623
cygwin* | mingw* | pw32*)
13624
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13625
# as there is no search path for DLLs.
13626
hardcode_libdir_flag_spec_F77='-L$libdir'
13627
allow_undefined_flag_F77=unsupported
13628
always_export_symbols_F77=no
13629
enable_shared_with_static_runtimes_F77=yes
13630
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13632
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13633
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13634
# If the export-symbols file already is a .def file (1st line
13635
# is EXPORTS), use it as is; otherwise, prepend...
13636
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13637
cp $export_symbols $output_objdir/$soname.def;
13639
echo EXPORTS > $output_objdir/$soname.def;
13640
cat $export_symbols >> $output_objdir/$soname.def;
13642
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13648
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13649
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13650
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13653
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13654
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13659
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13663
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13664
*** create shared libraries on Solaris systems. Therefore, libtool
13665
*** is disabling shared libraries support. We urge you to upgrade GNU
13666
*** binutils to release 2.9.1 or newer. Another option is to modify
13667
*** your PATH or compiler configuration so that the native linker is
13668
*** used, and then restart.
13671
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13672
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13673
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13680
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13682
hardcode_direct_F77=yes
13683
hardcode_shlibpath_var_F77=no
13687
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13688
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13689
archive_cmds_F77="$tmp_archive_cmds"
13690
supports_anon_versioning=no
13691
case `$LD -v 2>/dev/null` in
13692
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13693
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13694
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13695
*\ 2.11.*) ;; # other 2.11 versions
13696
*) supports_anon_versioning=yes ;;
13698
if test $supports_anon_versioning = yes; then
13699
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13700
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13701
$echo "local: *; };" >> $output_objdir/$libname.ver~
13702
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13704
archive_expsym_cmds_F77="$tmp_archive_cmds"
13706
link_all_deplibs_F77=no
13713
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13714
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13715
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13722
if test "$ld_shlibs_F77" = yes; then
13723
runpath_var=LD_RUN_PATH
13724
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13725
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13726
# ancient GNU ld didn't support --whole-archive et. al.
13727
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13728
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13730
whole_archive_flag_spec_F77=
13734
# PORTME fill in a description of your system's linker (not GNU ld)
13737
allow_undefined_flag_F77=unsupported
13738
always_export_symbols_F77=yes
13739
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'
13740
# Note: this linker hardcodes the directories in LIBPATH if there
13741
# are no directories specified by -L.
13742
hardcode_minus_L_F77=yes
13743
if test "$GCC" = yes && test -z "$link_static_flag"; then
13744
# Neither direct hardcoding nor static linking is supported with a
13746
hardcode_direct_F77=unsupported
13751
if test "$host_cpu" = ia64; then
13752
# On IA64, the linker does run time linking by default, so we don't
13753
# have to do anything special.
13754
aix_use_runtimelinking=no
13755
exp_sym_flag='-Bexport'
13758
# If we're using GNU nm, then we don't want the "-C" option.
13759
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13760
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13761
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'
13763
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'
13765
aix_use_runtimelinking=no
13767
# Test if we are trying to use run time linking or normal
13768
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13769
# need to do runtime linking.
13770
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13771
for ld_flag in $LDFLAGS; do
13772
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13773
aix_use_runtimelinking=yes
13779
exp_sym_flag='-bexport'
13780
no_entry_flag='-bnoentry'
13783
# When large executables or shared objects are built, AIX ld can
13784
# have problems creating the table of contents. If linking a library
13785
# or program results in "error TOC overflow" add -mminimal-toc to
13786
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13787
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13789
archive_cmds_F77=''
13790
hardcode_direct_F77=yes
13791
hardcode_libdir_separator_F77=':'
13792
link_all_deplibs_F77=yes
13794
if test "$GCC" = yes; then
13795
case $host_os in aix4.012|aix4.012.*)
13796
# We only want to do this on AIX 4.2 and lower, the check
13797
# below for broken collect2 doesn't work under 4.3+
13798
collect2name=`${CC} -print-prog-name=collect2`
13799
if test -f "$collect2name" && \
13800
strings "$collect2name" | grep resolve_lib_name >/dev/null
13802
# We have reworked collect2
13803
hardcode_direct_F77=yes
13805
# We have old collect2
13806
hardcode_direct_F77=unsupported
13807
# It fails to find uninstalled libraries when the uninstalled
13808
# path is not listed in the libpath. Setting hardcode_minus_L
13809
# to unsupported forces relinking
13810
hardcode_minus_L_F77=yes
13811
hardcode_libdir_flag_spec_F77='-L$libdir'
13812
hardcode_libdir_separator_F77=
13815
shared_flag='-shared'
13818
if test "$host_cpu" = ia64; then
13819
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13820
# chokes on -Wl,-G. The following line is correct:
13823
if test "$aix_use_runtimelinking" = yes; then
13824
shared_flag='${wl}-G'
13826
shared_flag='${wl}-bM:SRE'
13831
# It seems that -bexpall does not export symbols beginning with
13832
# underscore (_), so it is better to generate a list of symbols to export.
13833
always_export_symbols_F77=yes
13834
if test "$aix_use_runtimelinking" = yes; then
13835
# Warning - without using the other runtime loading flags (-brtl),
13836
# -berok will link without error, but may produce a broken library.
13837
allow_undefined_flag_F77='-berok'
13838
# Determine the default libpath from the value encoded in an empty executable.
13839
cat >conftest.$ac_ext <<_ACEOF
13844
rm -f conftest.$ac_objext conftest$ac_exeext
13845
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13846
(eval $ac_link) 2>conftest.er1
13848
grep -v '^ *+' conftest.er1 >conftest.err
13850
cat conftest.err >&5
13851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852
(exit $ac_status); } &&
13853
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13854
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855
(eval $ac_try) 2>&5
13857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858
(exit $ac_status); }; } &&
13859
{ ac_try='test -s conftest$ac_exeext'
13860
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861
(eval $ac_try) 2>&5
13863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864
(exit $ac_status); }; }; then
13866
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13868
# Check for a 64-bit object if we didn't find anything.
13869
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; }
13872
echo "$as_me: failed program was:" >&5
13873
sed 's/^/| /' conftest.$ac_ext >&5
13876
rm -f conftest.err conftest.$ac_objext \
13877
conftest$ac_exeext conftest.$ac_ext
13878
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13880
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13881
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"
13883
if test "$host_cpu" = ia64; then
13884
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13885
allow_undefined_flag_F77="-z nodefs"
13886
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"
13888
# Determine the default libpath from the value encoded in an empty executable.
13889
cat >conftest.$ac_ext <<_ACEOF
13894
rm -f conftest.$ac_objext conftest$ac_exeext
13895
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13896
(eval $ac_link) 2>conftest.er1
13898
grep -v '^ *+' conftest.er1 >conftest.err
13900
cat conftest.err >&5
13901
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902
(exit $ac_status); } &&
13903
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13904
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905
(eval $ac_try) 2>&5
13907
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908
(exit $ac_status); }; } &&
13909
{ ac_try='test -s conftest$ac_exeext'
13910
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911
(eval $ac_try) 2>&5
13913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914
(exit $ac_status); }; }; then
13916
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13918
# Check for a 64-bit object if we didn't find anything.
13919
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; }
13922
echo "$as_me: failed program was:" >&5
13923
sed 's/^/| /' conftest.$ac_ext >&5
13926
rm -f conftest.err conftest.$ac_objext \
13927
conftest$ac_exeext conftest.$ac_ext
13928
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13930
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13931
# Warning - without using the other run time loading flags,
13932
# -berok will link without error, but may produce a broken library.
13933
no_undefined_flag_F77=' ${wl}-bernotok'
13934
allow_undefined_flag_F77=' ${wl}-berok'
13935
# -bexpall does not export symbols beginning with underscore (_)
13936
always_export_symbols_F77=yes
13937
# Exported symbols can be pulled into shared objects from archives
13938
whole_archive_flag_spec_F77=' '
13939
archive_cmds_need_lc_F77=yes
13940
# This is similar to how AIX traditionally builds it's shared libraries.
13941
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'
13947
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)'
13948
hardcode_libdir_flag_spec_F77='-L$libdir'
13949
hardcode_minus_L_F77=yes
13950
# see comment about different semantics on the GNU ld section
13955
export_dynamic_flag_spec_F77=-rdynamic
13958
cygwin* | mingw* | pw32*)
13959
# When not using gcc, we currently assume that we are using
13960
# Microsoft Visual C++.
13961
# hardcode_libdir_flag_spec is actually meaningless, as there is
13962
# no search path for DLLs.
13963
hardcode_libdir_flag_spec_F77=' '
13964
allow_undefined_flag_F77=unsupported
13965
# Tell ltmain to make .lib files, not .a files.
13967
# Tell ltmain to make .dll files, not .so files.
13969
# FIXME: Setting linknames here is a bad hack.
13970
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13971
# The linker will automatically build a .lib file if we build a DLL.
13972
old_archive_From_new_cmds_F77='true'
13973
# FIXME: Should let the user specify the lib program.
13974
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13975
fix_srcfile_path='`cygpath -w "$srcfile"`'
13976
enable_shared_with_static_runtimes_F77=yes
13979
darwin* | rhapsody*)
13980
if test "$GXX" = yes ; then
13981
archive_cmds_need_lc_F77=no
13983
rhapsody* | darwin1.[012])
13984
allow_undefined_flag_F77='-undefined suppress'
13987
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13988
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13990
case ${MACOSX_DEPLOYMENT_TARGET} in
13992
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13995
allow_undefined_flag_F77='-undefined dynamic_lookup'
14001
lt_int_apple_cc_single_mod=no
14002
output_verbose_link_cmd='echo'
14003
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14004
lt_int_apple_cc_single_mod=yes
14006
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14007
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14009
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'
14011
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14012
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14013
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14014
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}'
14016
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}'
14018
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}'
14019
hardcode_direct_F77=no
14020
hardcode_automatic_F77=yes
14021
hardcode_shlibpath_var_F77=unsupported
14022
whole_archive_flag_spec_F77='-all_load $convenience'
14023
link_all_deplibs_F77=yes
14030
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14031
hardcode_libdir_flag_spec_F77='-L$libdir'
14032
hardcode_shlibpath_var_F77=no
14039
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14040
# support. Future versions do this automatically, but an explicit c++rt0.o
14041
# does not break anything, and helps significantly (at the cost of a little
14044
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14045
hardcode_libdir_flag_spec_F77='-R$libdir'
14046
hardcode_direct_F77=yes
14047
hardcode_shlibpath_var_F77=no
14050
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14052
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14053
hardcode_direct_F77=yes
14054
hardcode_minus_L_F77=yes
14055
hardcode_shlibpath_var_F77=no
14058
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14059
freebsd* | kfreebsd*-gnu)
14060
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14061
hardcode_libdir_flag_spec_F77='-R$libdir'
14062
hardcode_direct_F77=yes
14063
hardcode_shlibpath_var_F77=no
14067
if test "$GCC" = yes; then
14068
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'
14070
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'
14072
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14073
hardcode_libdir_separator_F77=:
14074
hardcode_direct_F77=yes
14076
# hardcode_minus_L: Not really in the search PATH,
14077
# but as the default location of the library.
14078
hardcode_minus_L_F77=yes
14079
export_dynamic_flag_spec_F77='${wl}-E'
14083
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14084
case "$host_cpu" in
14086
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14089
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14093
case "$host_cpu" in
14095
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14098
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14102
if test "$with_gnu_ld" = no; then
14103
case "$host_cpu" in
14105
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14106
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14107
hardcode_libdir_separator_F77=:
14108
hardcode_direct_F77=no
14109
hardcode_shlibpath_var_F77=no
14112
hardcode_libdir_flag_spec_F77='-L$libdir'
14113
hardcode_direct_F77=no
14114
hardcode_shlibpath_var_F77=no
14116
# hardcode_minus_L: Not really in the search PATH,
14117
# but as the default location of the library.
14118
hardcode_minus_L_F77=yes
14121
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14122
hardcode_libdir_separator_F77=:
14123
hardcode_direct_F77=yes
14124
export_dynamic_flag_spec_F77='${wl}-E'
14126
# hardcode_minus_L: Not really in the search PATH,
14127
# but as the default location of the library.
14128
hardcode_minus_L_F77=yes
14134
irix5* | irix6* | nonstopux*)
14135
if test "$GCC" = yes; then
14136
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'
14138
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'
14139
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14141
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14142
hardcode_libdir_separator_F77=:
14143
link_all_deplibs_F77=yes
14146
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14147
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14148
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14150
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14152
hardcode_libdir_flag_spec_F77='-R$libdir'
14153
hardcode_direct_F77=yes
14154
hardcode_shlibpath_var_F77=no
14158
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14159
hardcode_direct_F77=yes
14160
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14161
hardcode_libdir_separator_F77=:
14162
hardcode_shlibpath_var_F77=no
14166
hardcode_direct_F77=yes
14167
hardcode_shlibpath_var_F77=no
14168
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14169
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14170
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14171
export_dynamic_flag_spec_F77='${wl}-E'
14174
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14175
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14176
hardcode_libdir_flag_spec_F77='-R$libdir'
14179
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14180
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14187
hardcode_libdir_flag_spec_F77='-L$libdir'
14188
hardcode_minus_L_F77=yes
14189
allow_undefined_flag_F77=unsupported
14190
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'
14191
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14195
if test "$GCC" = yes; then
14196
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14197
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'
14199
allow_undefined_flag_F77=' -expect_unresolved \*'
14200
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'
14202
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14203
hardcode_libdir_separator_F77=:
14206
osf4* | osf5*) # as osf3* with the addition of -msym flag
14207
if test "$GCC" = yes; then
14208
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14209
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'
14210
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14212
allow_undefined_flag_F77=' -expect_unresolved \*'
14213
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'
14214
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~
14215
$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'
14217
# Both c and cxx compiler support -rpath directly
14218
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14220
hardcode_libdir_separator_F77=:
14224
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14225
hardcode_shlibpath_var_F77=no
14226
export_dynamic_flag_spec_F77='${wl}-Bexport'
14227
runpath_var=LD_RUN_PATH
14228
hardcode_runpath_var=yes
14232
no_undefined_flag_F77=' -z text'
14233
if test "$GCC" = yes; then
14234
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14235
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14236
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14238
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14239
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14240
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14242
hardcode_libdir_flag_spec_F77='-R$libdir'
14243
hardcode_shlibpath_var_F77=no
14245
solaris2.[0-5] | solaris2.[0-5].*) ;;
14246
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
14247
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14249
link_all_deplibs_F77=yes
14253
if test "x$host_vendor" = xsequent; then
14254
# Use $CC to link under sequent, because it throws in some extra .o
14255
# files that make .init and .fini sections work.
14256
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14258
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14260
hardcode_libdir_flag_spec_F77='-L$libdir'
14261
hardcode_direct_F77=yes
14262
hardcode_minus_L_F77=yes
14263
hardcode_shlibpath_var_F77=no
14267
case $host_vendor in
14269
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14270
hardcode_direct_F77=yes # is this really true???
14273
## LD is ld it makes a PLAMLIB
14274
## CC just makes a GrossModule.
14275
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14276
reload_cmds_F77='$CC -r -o $output$reload_objs'
14277
hardcode_direct_F77=no
14280
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14281
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14284
runpath_var='LD_RUN_PATH'
14285
hardcode_shlibpath_var_F77=no
14289
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14290
hardcode_shlibpath_var_F77=no
14291
export_dynamic_flag_spec_F77='-Bexport'
14295
if test -d /usr/nec; then
14296
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14297
hardcode_shlibpath_var_F77=no
14298
runpath_var=LD_RUN_PATH
14299
hardcode_runpath_var=yes
14305
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14306
hardcode_direct_F77=yes
14307
hardcode_minus_L_F77=no
14308
hardcode_shlibpath_var_F77=no
14309
hardcode_runpath_var=yes
14310
runpath_var=LD_RUN_PATH
14313
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14314
no_undefined_flag_F77='${wl}-z ${wl}text'
14315
if test "$GCC" = yes; then
14316
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14318
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14320
runpath_var='LD_RUN_PATH'
14321
hardcode_shlibpath_var_F77=no
14325
no_undefined_flag_F77=' -z text'
14326
# $CC -shared without GNU ld will not create a library from C++
14327
# object files and a static libstdc++, better avoid it by now
14328
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14329
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14330
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14331
hardcode_libdir_flag_spec_F77=
14332
hardcode_shlibpath_var_F77=no
14333
runpath_var='LD_RUN_PATH'
14337
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14338
hardcode_libdir_flag_spec_F77='-L$libdir'
14339
hardcode_shlibpath_var_F77=no
14348
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14349
echo "${ECHO_T}$ld_shlibs_F77" >&6
14350
test "$ld_shlibs_F77" = no && can_build_shared=no
14352
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14353
if test "$GCC" = yes; then
14354
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14358
# Do we need to explicitly link libc?
14360
case "x$archive_cmds_need_lc_F77" in
14362
# Assume -lc should be added
14363
archive_cmds_need_lc_F77=yes
14365
if test "$enable_shared" = yes && test "$GCC" = yes; then
14366
case $archive_cmds_F77 in
14368
# FIXME: we may have to deal with multi-command sequences.
14371
# Test whether the compiler implicitly links with -lc since on some
14372
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14373
# to ld, don't add -lc before -lgcc.
14374
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14375
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14377
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14379
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14380
(eval $ac_compile) 2>&5
14382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383
(exit $ac_status); } 2>conftest.err; then
14386
libobjs=conftest.$ac_objext
14388
wl=$lt_prog_compiler_wl_F77
14394
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14395
allow_undefined_flag_F77=
14396
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14397
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400
(exit $ac_status); }
14402
archive_cmds_need_lc_F77=no
14404
archive_cmds_need_lc_F77=yes
14406
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14408
cat conftest.err 1>&5
14411
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14412
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14419
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14420
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14421
library_names_spec=
14422
libname_spec='lib$name'
14426
postuninstall_cmds=
14430
shlibpath_overrides_runpath=unknown
14432
dynamic_linker="$host_os ld.so"
14433
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14434
if test "$GCC" = yes; then
14435
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14436
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14437
# if the path contains ";" then we assume it to be the separator
14438
# otherwise default to the standard path separator (i.e. ":") - it is
14439
# assumed that no part of a normal pathname contains ";" but that should
14440
# okay in the real world where ";" in dirpaths is itself problematic.
14441
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14443
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14446
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14448
need_lib_prefix=unknown
14449
hardcode_into_libs=no
14451
# when you set need_version to no, make sure it does not cause -set_version
14452
# flags to be left without arguments
14453
need_version=unknown
14458
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14459
shlibpath_var=LIBPATH
14461
# AIX 3 has no versioning support, so we append a major version to the name.
14462
soname_spec='${libname}${release}${shared_ext}$major'
14469
hardcode_into_libs=yes
14470
if test "$host_cpu" = ia64; then
14471
# AIX 5 supports IA64
14472
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14473
shlibpath_var=LD_LIBRARY_PATH
14475
# With GCC up to 2.95.x, collect2 would create an import file
14476
# for dependence libraries. The import file would start with
14477
# the line `#! .'. This would cause the generated library to
14478
# depend on `.', always an invalid library. This was fixed in
14479
# development snapshots of GCC prior to 3.0.
14481
aix4 | aix4.[01] | aix4.[01].*)
14482
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14484
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14487
can_build_shared=no
14491
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14492
# soname into executable. Probably we can add versioning support to
14493
# collect2, so additional links can be useful in future.
14494
if test "$aix_use_runtimelinking" = yes; then
14495
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14496
# instead of lib<name>.a to let people know that these are not
14497
# typical AIX shared libraries.
14498
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14500
# We preserve .a as extension for shared libraries through AIX4.2
14501
# and later when we are not doing run time linking.
14502
library_names_spec='${libname}${release}.a $libname.a'
14503
soname_spec='${libname}${release}${shared_ext}$major'
14505
shlibpath_var=LIBPATH
14510
library_names_spec='$libname.ixlibrary $libname.a'
14511
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14512
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'
14516
library_names_spec='${libname}${shared_ext}'
14517
dynamic_linker="$host_os ld.so"
14518
shlibpath_var=LIBRARY_PATH
14524
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525
soname_spec='${libname}${release}${shared_ext}$major'
14526
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14527
shlibpath_var=LD_LIBRARY_PATH
14528
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14529
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14530
# the default ld.so.conf also contains /usr/contrib/lib and
14531
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14532
# libtool to hard-code these into programs
14535
cygwin* | mingw* | pw32*)
14536
version_type=windows
14541
case $GCC,$host_os in
14542
yes,cygwin* | yes,mingw* | yes,pw32*)
14543
library_names_spec='$libname.dll.a'
14544
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14545
postinstall_cmds='base_file=`basename \${file}`~
14546
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14547
dldir=$destdir/`dirname \$dlpath`~
14548
test -d \$dldir || mkdir -p \$dldir~
14549
$install_prog $dir/$dlname \$dldir/$dlname'
14550
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14551
dlpath=$dir/\$dldll~
14553
shlibpath_overrides_runpath=yes
14557
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14558
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14559
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14562
# MinGW DLLs use traditional 'lib' prefix
14563
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14564
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14565
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14566
# It is most probably a Windows format PATH printed by
14567
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14568
# path with ; separators, and with drive letters. We can handle the
14569
# drive letters (cygwin fileutils understands them), so leave them,
14570
# especially as we might pass files found there to a mingw objdump,
14571
# which wouldn't understand a cygwinified path. Ahh.
14572
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14574
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14578
# pw32 DLLs use 'pw' prefix rather than 'lib'
14579
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14585
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14588
dynamic_linker='Win32 ld.exe'
14589
# FIXME: first we should search . and the directory the executable is in
14593
darwin* | rhapsody*)
14594
dynamic_linker="$host_os dyld"
14595
version_type=darwin
14598
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14599
soname_spec='${libname}${release}${major}$shared_ext'
14600
shlibpath_overrides_runpath=yes
14601
shlibpath_var=DYLD_LIBRARY_PATH
14602
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14603
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14604
if test "$GCC" = yes; then
14605
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"`
14607
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14609
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14616
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14617
soname_spec='${libname}${release}${shared_ext}$major'
14618
shlibpath_var=LD_LIBRARY_PATH
14629
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14630
soname_spec='${libname}${release}${shared_ext}$major'
14631
shlibpath_var=LD_LIBRARY_PATH
14632
shlibpath_overrides_runpath=no
14633
hardcode_into_libs=yes
14634
dynamic_linker='GNU ld.so'
14638
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14639
version_type=freebsd-$objformat
14640
case $version_type in
14642
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14647
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14651
shlibpath_var=LD_LIBRARY_PATH
14654
shlibpath_overrides_runpath=yes
14656
freebsd3.01* | freebsdelf3.01*)
14657
shlibpath_overrides_runpath=yes
14658
hardcode_into_libs=yes
14661
shlibpath_overrides_runpath=no
14662
hardcode_into_libs=yes
14671
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14672
soname_spec='${libname}${release}${shared_ext}$major'
14673
shlibpath_var=LD_LIBRARY_PATH
14674
hardcode_into_libs=yes
14677
hpux9* | hpux10* | hpux11*)
14678
# Give a soname corresponding to the major version so that dld.sl refuses to
14679
# link against other versions.
14683
case "$host_cpu" in
14686
hardcode_into_libs=yes
14687
dynamic_linker="$host_os dld.so"
14688
shlibpath_var=LD_LIBRARY_PATH
14689
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14690
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691
soname_spec='${libname}${release}${shared_ext}$major'
14692
if test "X$HPUX_IA64_MODE" = X32; then
14693
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14695
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14697
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14701
hardcode_into_libs=yes
14702
dynamic_linker="$host_os dld.sl"
14703
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14704
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14705
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14706
soname_spec='${libname}${release}${shared_ext}$major'
14707
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14708
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14712
dynamic_linker="$host_os dld.sl"
14713
shlibpath_var=SHLIB_PATH
14714
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14715
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14716
soname_spec='${libname}${release}${shared_ext}$major'
14719
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14720
postinstall_cmds='chmod 555 $lib'
14723
irix5* | irix6* | nonstopux*)
14725
nonstopux*) version_type=nonstopux ;;
14727
if test "$lt_cv_prog_gnu_ld" = yes; then
14735
soname_spec='${libname}${release}${shared_ext}$major'
14736
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14738
irix5* | nonstopux*)
14739
libsuff= shlibsuff=
14742
case $LD in # libtool.m4 will add one of these switches to LD
14743
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14744
libsuff= shlibsuff= libmagic=32-bit;;
14745
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14746
libsuff=32 shlibsuff=N32 libmagic=N32;;
14747
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14748
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14749
*) libsuff= shlibsuff= libmagic=never-match;;
14753
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14754
shlibpath_overrides_runpath=no
14755
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14756
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14757
hardcode_into_libs=yes
14760
# No shared lib support for Linux oldld, aout, or coff.
14761
linux*oldld* | linux*aout* | linux*coff*)
14765
# This must be Linux ELF.
14770
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14771
soname_spec='${libname}${release}${shared_ext}$major'
14772
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14773
shlibpath_var=LD_LIBRARY_PATH
14774
shlibpath_overrides_runpath=no
14775
# This implies no fast_install, which is unacceptable.
14776
# Some rework will be needed to allow for fast_install
14777
# before this can be enabled.
14778
hardcode_into_libs=yes
14780
# Append ld.so.conf contents to the search path
14781
if test -f /etc/ld.so.conf; then
14782
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14783
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14786
# We used to test for /lib/ld.so.1 and disable shared libraries on
14787
# powerpc, because MkLinux only supported shared libraries with the
14788
# GNU dynamic linker. Since this was broken with cross compilers,
14789
# most powerpc-linux boxes support dynamic linking these days and
14790
# people can always --disable-shared, the test was removed, and we
14791
# assume the GNU/Linux dynamic linker is in use.
14792
dynamic_linker='GNU/Linux ld.so'
14799
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14800
soname_spec='${libname}${release}${shared_ext}$major'
14801
shlibpath_var=LD_LIBRARY_PATH
14802
shlibpath_overrides_runpath=no
14803
hardcode_into_libs=yes
14804
dynamic_linker='NetBSD ld.elf_so'
14811
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14812
soname_spec='${libname}${release}${shared_ext}$major'
14813
shlibpath_var=LD_LIBRARY_PATH
14814
shlibpath_overrides_runpath=no
14815
hardcode_into_libs=yes
14816
dynamic_linker='GNU ld.so'
14823
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14824
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14825
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14826
dynamic_linker='NetBSD (a.out) ld.so'
14828
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14829
soname_spec='${libname}${release}${shared_ext}$major'
14830
dynamic_linker='NetBSD ld.elf_so'
14832
shlibpath_var=LD_LIBRARY_PATH
14833
shlibpath_overrides_runpath=yes
14834
hardcode_into_libs=yes
14839
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14840
shlibpath_var=LD_LIBRARY_PATH
14841
shlibpath_overrides_runpath=yes
14848
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14849
soname_spec='${libname}${release}${shared_ext}$major'
14850
shlibpath_var=LD_LIBRARY_PATH
14851
shlibpath_overrides_runpath=yes
14858
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14859
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14860
shlibpath_var=LD_LIBRARY_PATH
14861
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14863
openbsd2.[89] | openbsd2.[89].*)
14864
shlibpath_overrides_runpath=no
14867
shlibpath_overrides_runpath=yes
14871
shlibpath_overrides_runpath=yes
14876
libname_spec='$name'
14879
library_names_spec='$libname${shared_ext} $libname.a'
14880
dynamic_linker='OS/2 ld.exe'
14881
shlibpath_var=LIBPATH
14884
osf3* | osf4* | osf5*)
14888
soname_spec='${libname}${release}${shared_ext}$major'
14889
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14890
shlibpath_var=LD_LIBRARY_PATH
14891
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14892
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14897
soname_spec='${libname}${release}${shared_ext}$major'
14898
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14899
shlibpath_var=LD_LIBRARY_PATH
14906
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14907
soname_spec='${libname}${release}${shared_ext}$major'
14908
shlibpath_var=LD_LIBRARY_PATH
14909
shlibpath_overrides_runpath=yes
14910
hardcode_into_libs=yes
14911
# ldd complains unless libraries are executable
14912
postinstall_cmds='chmod +x $lib'
14917
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14918
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14919
shlibpath_var=LD_LIBRARY_PATH
14920
shlibpath_overrides_runpath=yes
14921
if test "$with_gnu_ld" = yes; then
14927
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14929
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930
soname_spec='${libname}${release}${shared_ext}$major'
14931
shlibpath_var=LD_LIBRARY_PATH
14932
case $host_vendor in
14934
shlibpath_overrides_runpath=no
14936
export_dynamic_flag_spec='${wl}-Blargedynsym'
14937
runpath_var=LD_RUN_PATH
14945
shlibpath_overrides_runpath=no
14946
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14952
if test -d /usr/nec ;then
14954
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14955
soname_spec='$libname${shared_ext}.$major'
14956
shlibpath_var=LD_LIBRARY_PATH
14962
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14963
soname_spec='${libname}${release}${shared_ext}$major'
14964
shlibpath_var=LD_LIBRARY_PATH
14971
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14972
echo "${ECHO_T}$dynamic_linker" >&6
14973
test "$dynamic_linker" = no && can_build_shared=no
14975
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14976
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14977
hardcode_action_F77=
14978
if test -n "$hardcode_libdir_flag_spec_F77" || \
14979
test -n "$runpath_var F77" || \
14980
test "X$hardcode_automatic_F77"="Xyes" ; then
14982
# We can hardcode non-existant directories.
14983
if test "$hardcode_direct_F77" != no &&
14984
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14985
# have to relink, otherwise we might link with an installed library
14986
# when we should be linking with a yet-to-be-installed one
14987
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14988
test "$hardcode_minus_L_F77" != no; then
14989
# Linking always hardcodes the temporary library directory.
14990
hardcode_action_F77=relink
14992
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14993
hardcode_action_F77=immediate
14996
# We cannot hardcode anything, or else we can only hardcode existing
14998
hardcode_action_F77=unsupported
15000
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15001
echo "${ECHO_T}$hardcode_action_F77" >&6
15003
if test "$hardcode_action_F77" = relink; then
15004
# Fast installation is not supported
15005
enable_fast_install=no
15006
elif test "$shlibpath_overrides_runpath" = yes ||
15007
test "$enable_shared" = no; then
15008
# Fast installation is not necessary
15009
enable_fast_install=needless
15014
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15015
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15016
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15017
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15018
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15019
echo "$as_me:$LINENO: result: yes" >&5
15020
echo "${ECHO_T}yes" >&6
15022
# FIXME - insert some real tests, host_os isn't really good enough
15025
if test -n "$STRIP" ; then
15026
striplib="$STRIP -x"
15027
echo "$as_me:$LINENO: result: yes" >&5
15028
echo "${ECHO_T}yes" >&6
15030
echo "$as_me:$LINENO: result: no" >&5
15031
echo "${ECHO_T}no" >&6
15035
echo "$as_me:$LINENO: result: no" >&5
15036
echo "${ECHO_T}no" >&6
15043
# The else clause should only fire when bootstrapping the
15044
# libtool distribution, otherwise you forgot to ship ltmain.sh
15045
# with your package, and you will get complaints that there are
15046
# no rules to generate ltmain.sh.
15047
if test -f "$ltmain"; then
15048
# See if we are running on zsh, and set the options which allow our commands through
15049
# without removal of \ escapes.
15050
if test -n "${ZSH_VERSION+set}" ; then
15051
setopt NO_GLOB_SUBST
15053
# Now quote all the things that may contain metacharacters while being
15054
# careful not to overquote the AC_SUBSTed values. We take copies of the
15055
# variables and quote the copies for generation of the libtool script.
15056
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15058
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15059
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15060
deplibs_check_method reload_flag reload_cmds need_locks \
15061
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15062
lt_cv_sys_global_symbol_to_c_name_address \
15063
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15064
old_postinstall_cmds old_postuninstall_cmds \
15068
lt_prog_compiler_wl_F77 \
15069
lt_prog_compiler_pic_F77 \
15070
lt_prog_compiler_static_F77 \
15071
lt_prog_compiler_no_builtin_flag_F77 \
15072
export_dynamic_flag_spec_F77 \
15073
thread_safe_flag_spec_F77 \
15074
whole_archive_flag_spec_F77 \
15075
enable_shared_with_static_runtimes_F77 \
15076
old_archive_cmds_F77 \
15077
old_archive_from_new_cmds_F77 \
15078
predep_objects_F77 \
15079
postdep_objects_F77 \
15082
compiler_lib_search_path_F77 \
15084
archive_expsym_cmds_F77 \
15085
postinstall_cmds_F77 \
15086
postuninstall_cmds_F77 \
15087
old_archive_from_expsyms_cmds_F77 \
15088
allow_undefined_flag_F77 \
15089
no_undefined_flag_F77 \
15090
export_symbols_cmds_F77 \
15091
hardcode_libdir_flag_spec_F77 \
15092
hardcode_libdir_flag_spec_ld_F77 \
15093
hardcode_libdir_separator_F77 \
15094
hardcode_automatic_F77 \
15096
module_expsym_cmds_F77 \
15097
lt_cv_prog_compiler_c_o_F77 \
15098
exclude_expsyms_F77 \
15099
include_expsyms_F77; do
15102
old_archive_cmds_F77 | \
15103
old_archive_from_new_cmds_F77 | \
15104
archive_cmds_F77 | \
15105
archive_expsym_cmds_F77 | \
15106
module_cmds_F77 | \
15107
module_expsym_cmds_F77 | \
15108
old_archive_from_expsyms_cmds_F77 | \
15109
export_symbols_cmds_F77 | \
15110
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15111
postinstall_cmds | postuninstall_cmds | \
15112
old_postinstall_cmds | old_postuninstall_cmds | \
15113
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15114
# Double-quote double-evaled strings.
15115
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15118
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15124
*'\$0 --fallback-echo"')
15125
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15131
cat <<__EOF__ >> "$cfgfile"
15132
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15134
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15136
# Shell to use when invoking shell scripts.
15139
# Whether or not to build shared libraries.
15140
build_libtool_libs=$enable_shared
15142
# Whether or not to build static libraries.
15143
build_old_libs=$enable_static
15145
# Whether or not to add -lc for building shared libraries.
15146
build_libtool_need_lc=$archive_cmds_need_lc_F77
15148
# Whether or not to disallow shared libs when runtime libs are static
15149
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15151
# Whether or not to optimize for fast installation.
15152
fast_install=$enable_fast_install
15155
host_alias=$host_alias
15158
# An echo program that does not interpret backslashes.
15163
AR_FLAGS=$lt_AR_FLAGS
15168
# A language-specific compiler.
15169
CC=$lt_compiler_F77
15171
# Is the compiler the GNU C compiler?
15177
# The linker used to build libraries.
15180
# Whether we need hard or soft links.
15183
# A BSD-compatible nm program.
15186
# A symbol stripping program
15189
# Used to examine libraries when file_magic_cmd begins "file"
15190
MAGIC_CMD=$MAGIC_CMD
15192
# Used on cygwin: DLL creation program.
15195
# Used on cygwin: object dumper.
15198
# Used on cygwin: assembler.
15201
# The name of the directory that contains temporary libtool files.
15204
# How to create reloadable object files.
15205
reload_flag=$lt_reload_flag
15206
reload_cmds=$lt_reload_cmds
15208
# How to pass a linker flag through the compiler.
15209
wl=$lt_lt_prog_compiler_wl_F77
15211
# Object file suffix (normally "o").
15212
objext="$ac_objext"
15214
# Old archive suffix (normally "a").
15217
# Shared library suffix (normally ".so").
15218
shrext_cmds='$shrext_cmds'
15220
# Executable file suffix (normally "").
15223
# Additional compiler flags for building library objects.
15224
pic_flag=$lt_lt_prog_compiler_pic_F77
15227
# What is the maximum length of a command?
15228
max_cmd_len=$lt_cv_sys_max_cmd_len
15230
# Does compiler simultaneously support -c and -o options?
15231
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15233
# Must we lock files when doing compilation ?
15234
need_locks=$lt_need_locks
15236
# Do we need the lib prefix for modules?
15237
need_lib_prefix=$need_lib_prefix
15239
# Do we need a version for libraries?
15240
need_version=$need_version
15242
# Whether dlopen is supported.
15243
dlopen_support=$enable_dlopen
15245
# Whether dlopen of programs is supported.
15246
dlopen_self=$enable_dlopen_self
15248
# Whether dlopen of statically linked programs is supported.
15249
dlopen_self_static=$enable_dlopen_self_static
15251
# Compiler flag to prevent dynamic linking.
15252
link_static_flag=$lt_lt_prog_compiler_static_F77
15254
# Compiler flag to turn off builtin functions.
15255
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15257
# Compiler flag to allow reflexive dlopens.
15258
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15260
# Compiler flag to generate shared objects directly from archives.
15261
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15263
# Compiler flag to generate thread-safe objects.
15264
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15266
# Library versioning type.
15267
version_type=$version_type
15269
# Format of library name prefix.
15270
libname_spec=$lt_libname_spec
15272
# List of archive names. First name is the real one, the rest are links.
15273
# The last name is the one that the linker finds with -lNAME.
15274
library_names_spec=$lt_library_names_spec
15276
# The coded name of the library, if different from the real name.
15277
soname_spec=$lt_soname_spec
15279
# Commands used to build and install an old-style archive.
15281
old_archive_cmds=$lt_old_archive_cmds_F77
15282
old_postinstall_cmds=$lt_old_postinstall_cmds
15283
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15285
# Create an old-style archive from a shared archive.
15286
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15288
# Create a temporary old-style archive to link instead of a shared archive.
15289
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15291
# Commands used to build and install a shared archive.
15292
archive_cmds=$lt_archive_cmds_F77
15293
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15294
postinstall_cmds=$lt_postinstall_cmds
15295
postuninstall_cmds=$lt_postuninstall_cmds
15297
# Commands used to build a loadable module (assumed same as above if empty)
15298
module_cmds=$lt_module_cmds_F77
15299
module_expsym_cmds=$lt_module_expsym_cmds_F77
15301
# Commands to strip libraries.
15302
old_striplib=$lt_old_striplib
15303
striplib=$lt_striplib
15305
# Dependencies to place before the objects being linked to create a
15307
predep_objects=$lt_predep_objects_F77
15309
# Dependencies to place after the objects being linked to create a
15311
postdep_objects=$lt_postdep_objects_F77
15313
# Dependencies to place before the objects being linked to create a
15315
predeps=$lt_predeps_F77
15317
# Dependencies to place after the objects being linked to create a
15319
postdeps=$lt_postdeps_F77
15321
# The library search path used internally by the compiler when linking
15322
# a shared library.
15323
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15325
# Method to check whether dependent libraries are shared objects.
15326
deplibs_check_method=$lt_deplibs_check_method
15328
# Command to use when deplibs_check_method == file_magic.
15329
file_magic_cmd=$lt_file_magic_cmd
15331
# Flag that allows shared libraries with undefined symbols to be built.
15332
allow_undefined_flag=$lt_allow_undefined_flag_F77
15334
# Flag that forces no undefined symbols.
15335
no_undefined_flag=$lt_no_undefined_flag_F77
15337
# Commands used to finish a libtool library installation in a directory.
15338
finish_cmds=$lt_finish_cmds
15340
# Same as above, but a single script fragment to be evaled but not shown.
15341
finish_eval=$lt_finish_eval
15343
# Take the output of nm and produce a listing of raw symbols and C names.
15344
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15346
# Transform the output of nm in a proper C declaration
15347
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15349
# Transform the output of nm in a C name address pair
15350
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15352
# This is the shared library runtime path variable.
15353
runpath_var=$runpath_var
15355
# This is the shared library path variable.
15356
shlibpath_var=$shlibpath_var
15358
# Is shlibpath searched before the hard-coded library search path?
15359
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15361
# How to hardcode a shared library path into an executable.
15362
hardcode_action=$hardcode_action_F77
15364
# Whether we should hardcode library paths into libraries.
15365
hardcode_into_libs=$hardcode_into_libs
15367
# Flag to hardcode \$libdir into a binary during linking.
15368
# This must work even if \$libdir does not exist.
15369
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15371
# If ld is used when linking, flag to hardcode \$libdir into
15372
# a binary during linking. This must work even if \$libdir does
15374
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15376
# Whether we need a single -rpath flag with a separated argument.
15377
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15379
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15380
# resulting binary.
15381
hardcode_direct=$hardcode_direct_F77
15383
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15384
# resulting binary.
15385
hardcode_minus_L=$hardcode_minus_L_F77
15387
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15388
# the resulting binary.
15389
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15391
# Set to yes if building a shared library automatically hardcodes DIR into the library
15392
# and all subsequent libraries and executables linked against it.
15393
hardcode_automatic=$hardcode_automatic_F77
15395
# Variables whose values should be saved in libtool wrapper scripts and
15396
# restored at relink time.
15397
variables_saved_for_relink="$variables_saved_for_relink"
15399
# Whether libtool must link a program against all its dependency libraries.
15400
link_all_deplibs=$link_all_deplibs_F77
15402
# Compile-time system search path for libraries
15403
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15405
# Run-time system search path for libraries
15406
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15408
# Fix the shell variable \$srcfile for the compiler.
15409
fix_srcfile_path="$fix_srcfile_path_F77"
15411
# Set to yes if exported symbols are required.
15412
always_export_symbols=$always_export_symbols_F77
15414
# The commands to list exported symbols.
15415
export_symbols_cmds=$lt_export_symbols_cmds_F77
15417
# The commands to extract the exported symbol list from a shared archive.
15418
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15420
# Symbols that should not be listed in the preloaded symbols.
15421
exclude_expsyms=$lt_exclude_expsyms_F77
15423
# Symbols that must always be exported.
15424
include_expsyms=$lt_include_expsyms_F77
15426
# ### END LIBTOOL TAG CONFIG: $tagname
15432
# If there is no Makefile yet, we rely on a make rule to execute
15433
# `config.status --recheck' to rerun these tests and create the
15434
# libtool script then.
15435
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15436
if test -f "$ltmain_in"; then
15437
test -f Makefile && make "$ltmain"
15443
ac_cpp='$CPP $CPPFLAGS'
15444
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15445
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15446
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15456
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15460
# Source file extension for Java test sources.
15463
# Object file extension for compiled Java test sources.
15467
# Code to be used in simple compile tests
15468
lt_simple_compile_test_code="class foo {}\n"
15470
# Code to be used in simple link tests
15471
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15473
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15475
# If no C compiler was specified, use CC.
15478
# Allow CC to be a program name with arguments.
15482
# Allow CC to be a program name with arguments.
15488
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15489
archive_cmds_need_lc_GCJ=no
15492
lt_prog_compiler_no_builtin_flag_GCJ=
15494
if test "$GCC" = yes; then
15495
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15498
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15499
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15500
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15501
echo $ECHO_N "(cached) $ECHO_C" >&6
15503
lt_cv_prog_compiler_rtti_exceptions=no
15504
ac_outfile=conftest.$ac_objext
15505
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15506
lt_compiler_flag="-fno-rtti -fno-exceptions"
15507
# Insert the option either (1) after the last *FLAGS variable, or
15508
# (2) before a word containing "conftest.", or (3) at the end.
15509
# Note that $ac_compile itself does not contain backslashes and begins
15510
# with a dollar sign (not a hyphen), so the echo should work correctly.
15511
# The option is referenced via a variable to avoid confusing sed.
15512
lt_compile=`echo "$ac_compile" | $SED \
15513
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15514
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15515
-e 's:$: $lt_compiler_flag:'`
15516
(eval echo "\"\$as_me:15516: $lt_compile\"" >&5)
15517
(eval "$lt_compile" 2>conftest.err)
15519
cat conftest.err >&5
15520
echo "$as_me:15520: \$? = $ac_status" >&5
15521
if (exit $ac_status) && test -s "$ac_outfile"; then
15522
# The compiler can only warn and ignore the option if not recognized
15523
# So say no if there are warnings
15524
if test ! -s conftest.err; then
15525
lt_cv_prog_compiler_rtti_exceptions=yes
15531
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15532
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15534
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15535
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15542
lt_prog_compiler_wl_GCJ=
15543
lt_prog_compiler_pic_GCJ=
15544
lt_prog_compiler_static_GCJ=
15546
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15547
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15549
if test "$GCC" = yes; then
15550
lt_prog_compiler_wl_GCJ='-Wl,'
15551
lt_prog_compiler_static_GCJ='-static'
15555
# All AIX code is PIC.
15556
if test "$host_cpu" = ia64; then
15557
# AIX 5 now supports IA64 processor
15558
lt_prog_compiler_static_GCJ='-Bstatic'
15563
# FIXME: we need at least 68020 code to build shared libraries, but
15564
# adding the `-m68020' flag to GCC prevents building anything better,
15566
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15569
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15570
# PIC is the default for these OSes.
15573
mingw* | pw32* | os2*)
15574
# This hack is so that the source file can tell whether it is being
15575
# built for inclusion in a dll (and should export symbols for example).
15576
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15579
darwin* | rhapsody*)
15580
# PIC is the default on this platform
15581
# Common symbols not allowed in MH_DYLIB files
15582
lt_prog_compiler_pic_GCJ='-fno-common'
15586
# Just because we use GCC doesn't mean we suddenly get shared libraries
15587
# on systems that don't support them.
15588
lt_prog_compiler_can_build_shared_GCJ=no
15593
if test -d /usr/nec; then
15594
lt_prog_compiler_pic_GCJ=-Kconform_pic
15599
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15600
# not for PA HP-UX.
15601
case "$host_cpu" in
15606
lt_prog_compiler_pic_GCJ='-fPIC'
15612
lt_prog_compiler_pic_GCJ='-fPIC'
15616
# PORTME Check for flag to pass linker flags through the system compiler.
15619
lt_prog_compiler_wl_GCJ='-Wl,'
15620
if test "$host_cpu" = ia64; then
15621
# AIX 5 now supports IA64 processor
15622
lt_prog_compiler_static_GCJ='-Bstatic'
15624
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15628
mingw* | pw32* | os2*)
15629
# This hack is so that the source file can tell whether it is being
15630
# built for inclusion in a dll (and should export symbols for example).
15631
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15634
hpux9* | hpux10* | hpux11*)
15635
lt_prog_compiler_wl_GCJ='-Wl,'
15636
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15637
# not for PA HP-UX.
15638
case "$host_cpu" in
15643
lt_prog_compiler_pic_GCJ='+Z'
15646
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15647
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15650
irix5* | irix6* | nonstopux*)
15651
lt_prog_compiler_wl_GCJ='-Wl,'
15652
# PIC (with -KPIC) is the default.
15653
lt_prog_compiler_static_GCJ='-non_shared'
15657
lt_prog_compiler_pic_GCJ='-KPIC'
15658
lt_prog_compiler_static_GCJ='-Bstatic'
15664
lt_prog_compiler_wl_GCJ='-Wl,'
15665
lt_prog_compiler_pic_GCJ='-KPIC'
15666
lt_prog_compiler_static_GCJ='-static'
15669
lt_prog_compiler_wl_GCJ='-Wl,'
15670
# All Alpha code is PIC.
15671
lt_prog_compiler_static_GCJ='-non_shared'
15676
osf3* | osf4* | osf5*)
15677
lt_prog_compiler_wl_GCJ='-Wl,'
15678
# All OSF/1 code is PIC.
15679
lt_prog_compiler_static_GCJ='-non_shared'
15683
lt_prog_compiler_pic_GCJ='-Kpic'
15684
lt_prog_compiler_static_GCJ='-dn'
15688
lt_prog_compiler_wl_GCJ='-Wl,'
15689
lt_prog_compiler_pic_GCJ='-KPIC'
15690
lt_prog_compiler_static_GCJ='-Bstatic'
15694
lt_prog_compiler_wl_GCJ='-Qoption ld '
15695
lt_prog_compiler_pic_GCJ='-PIC'
15696
lt_prog_compiler_static_GCJ='-Bstatic'
15699
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15700
lt_prog_compiler_wl_GCJ='-Wl,'
15701
lt_prog_compiler_pic_GCJ='-KPIC'
15702
lt_prog_compiler_static_GCJ='-Bstatic'
15706
if test -d /usr/nec ;then
15707
lt_prog_compiler_pic_GCJ='-Kconform_pic'
15708
lt_prog_compiler_static_GCJ='-Bstatic'
15713
lt_prog_compiler_pic_GCJ='-pic'
15714
lt_prog_compiler_static_GCJ='-Bstatic'
15718
lt_prog_compiler_can_build_shared_GCJ=no
15723
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15724
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15727
# Check to make sure the PIC flag actually works.
15729
if test -n "$lt_prog_compiler_pic_GCJ"; then
15731
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15732
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15733
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15734
echo $ECHO_N "(cached) $ECHO_C" >&6
15736
lt_prog_compiler_pic_works_GCJ=no
15737
ac_outfile=conftest.$ac_objext
15738
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15739
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15740
# Insert the option either (1) after the last *FLAGS variable, or
15741
# (2) before a word containing "conftest.", or (3) at the end.
15742
# Note that $ac_compile itself does not contain backslashes and begins
15743
# with a dollar sign (not a hyphen), so the echo should work correctly.
15744
# The option is referenced via a variable to avoid confusing sed.
15745
lt_compile=`echo "$ac_compile" | $SED \
15746
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15747
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15748
-e 's:$: $lt_compiler_flag:'`
15749
(eval echo "\"\$as_me:15749: $lt_compile\"" >&5)
15750
(eval "$lt_compile" 2>conftest.err)
15752
cat conftest.err >&5
15753
echo "$as_me:15753: \$? = $ac_status" >&5
15754
if (exit $ac_status) && test -s "$ac_outfile"; then
15755
# The compiler can only warn and ignore the option if not recognized
15756
# So say no if there are warnings
15757
if test ! -s conftest.err; then
15758
lt_prog_compiler_pic_works_GCJ=yes
15764
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15765
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15767
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15768
case $lt_prog_compiler_pic_GCJ in
15770
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15773
lt_prog_compiler_pic_GCJ=
15774
lt_prog_compiler_can_build_shared_GCJ=no
15779
# For platforms which do not support PIC, -DPIC is meaningless:
15781
lt_prog_compiler_pic_GCJ=
15784
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15788
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15789
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15790
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15791
echo $ECHO_N "(cached) $ECHO_C" >&6
15793
lt_cv_prog_compiler_c_o_GCJ=no
15794
$rm -r conftest 2>/dev/null
15798
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15800
lt_compiler_flag="-o out/conftest2.$ac_objext"
15801
# Insert the option either (1) after the last *FLAGS variable, or
15802
# (2) before a word containing "conftest.", or (3) at the end.
15803
# Note that $ac_compile itself does not contain backslashes and begins
15804
# with a dollar sign (not a hyphen), so the echo should work correctly.
15805
lt_compile=`echo "$ac_compile" | $SED \
15806
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15807
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15808
-e 's:$: $lt_compiler_flag:'`
15809
(eval echo "\"\$as_me:15809: $lt_compile\"" >&5)
15810
(eval "$lt_compile" 2>out/conftest.err)
15812
cat out/conftest.err >&5
15813
echo "$as_me:15813: \$? = $ac_status" >&5
15814
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15816
# The compiler can only warn and ignore the option if not recognized
15817
# So say no if there are warnings
15818
if test ! -s out/conftest.err; then
15819
lt_cv_prog_compiler_c_o_GCJ=yes
15824
# SGI C++ compiler will create directory out/ii_files/ for
15825
# template instantiation
15826
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15827
$rm out/* && rmdir out
15833
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15834
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15837
hard_links="nottested"
15838
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15839
# do not overwrite the value of need_locks provided by the user
15840
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15841
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15844
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15846
ln conftest.a conftest.b 2>&5 || hard_links=no
15847
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15848
echo "$as_me:$LINENO: result: $hard_links" >&5
15849
echo "${ECHO_T}$hard_links" >&6
15850
if test "$hard_links" = no; then
15851
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15852
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15859
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15860
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15863
allow_undefined_flag_GCJ=
15864
enable_shared_with_static_runtimes_GCJ=no
15866
archive_expsym_cmds_GCJ=
15867
old_archive_From_new_cmds_GCJ=
15868
old_archive_from_expsyms_cmds_GCJ=
15869
export_dynamic_flag_spec_GCJ=
15870
whole_archive_flag_spec_GCJ=
15871
thread_safe_flag_spec_GCJ=
15872
hardcode_libdir_flag_spec_GCJ=
15873
hardcode_libdir_flag_spec_ld_GCJ=
15874
hardcode_libdir_separator_GCJ=
15875
hardcode_direct_GCJ=no
15876
hardcode_minus_L_GCJ=no
15877
hardcode_shlibpath_var_GCJ=unsupported
15878
link_all_deplibs_GCJ=unknown
15879
hardcode_automatic_GCJ=no
15881
module_expsym_cmds_GCJ=
15882
always_export_symbols_GCJ=no
15883
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15884
# include_expsyms should be a list of space-separated symbols to be *always*
15885
# included in the symbol list
15886
include_expsyms_GCJ=
15887
# exclude_expsyms can be an extended regexp of symbols to exclude
15888
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15889
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15890
# as well as any symbol that contains `d'.
15891
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15892
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15893
# platforms (ab)use it in PIC code, but their linkers get confused if
15894
# the symbol is explicitly referenced. Since portable code cannot
15895
# rely on this symbol name, it's probably fine to never include it in
15896
# preloaded symbol tables.
15897
extract_expsyms_cmds=
15900
cygwin* | mingw* | pw32*)
15901
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15902
# When not using gcc, we currently assume that we are using
15903
# Microsoft Visual C++.
15904
if test "$GCC" != yes; then
15914
if test "$with_gnu_ld" = yes; then
15915
# If archive_cmds runs LD, not CC, wlarc should be empty
15918
# See if GNU ld supports shared libraries.
15920
aix3* | aix4* | aix5*)
15921
# On AIX/PPC, the GNU linker is very broken
15922
if test "$host_cpu" != ia64; then
15926
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15927
*** to be unable to reliably create shared libraries on AIX.
15928
*** Therefore, libtool is disabling shared libraries support. If you
15929
*** really care for shared libraries, you may want to modify your PATH
15930
*** so that a non-GNU linker is found, and then restart.
15937
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)'
15938
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15939
hardcode_minus_L_GCJ=yes
15941
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15942
# that the semantics of dynamic libraries on AmigaOS, at least up
15943
# to version 4, is to share data among multiple programs linked
15944
# with the same dynamic library. Since this doesn't match the
15945
# behavior of shared libraries on other platforms, we can't use
15951
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15952
allow_undefined_flag_GCJ=unsupported
15953
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15954
# support --undefined. This deserves some investigation. FIXME
15955
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15961
cygwin* | mingw* | pw32*)
15962
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15963
# as there is no search path for DLLs.
15964
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15965
allow_undefined_flag_GCJ=unsupported
15966
always_export_symbols_GCJ=no
15967
enable_shared_with_static_runtimes_GCJ=yes
15968
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15970
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15971
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15972
# If the export-symbols file already is a .def file (1st line
15973
# is EXPORTS), use it as is; otherwise, prepend...
15974
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15975
cp $export_symbols $output_objdir/$soname.def;
15977
echo EXPORTS > $output_objdir/$soname.def;
15978
cat $export_symbols >> $output_objdir/$soname.def;
15980
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15986
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15987
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15988
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15991
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15992
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15997
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16001
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16002
*** create shared libraries on Solaris systems. Therefore, libtool
16003
*** is disabling shared libraries support. We urge you to upgrade GNU
16004
*** binutils to release 2.9.1 or newer. Another option is to modify
16005
*** your PATH or compiler configuration so that the native linker is
16006
*** used, and then restart.
16009
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16010
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16011
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16018
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16020
hardcode_direct_GCJ=yes
16021
hardcode_shlibpath_var_GCJ=no
16025
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16026
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16027
archive_cmds_GCJ="$tmp_archive_cmds"
16028
supports_anon_versioning=no
16029
case `$LD -v 2>/dev/null` in
16030
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16031
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16032
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16033
*\ 2.11.*) ;; # other 2.11 versions
16034
*) supports_anon_versioning=yes ;;
16036
if test $supports_anon_versioning = yes; then
16037
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16038
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16039
$echo "local: *; };" >> $output_objdir/$libname.ver~
16040
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16042
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16044
link_all_deplibs_GCJ=no
16051
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16052
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16053
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16060
if test "$ld_shlibs_GCJ" = yes; then
16061
runpath_var=LD_RUN_PATH
16062
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16063
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16064
# ancient GNU ld didn't support --whole-archive et. al.
16065
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16066
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16068
whole_archive_flag_spec_GCJ=
16072
# PORTME fill in a description of your system's linker (not GNU ld)
16075
allow_undefined_flag_GCJ=unsupported
16076
always_export_symbols_GCJ=yes
16077
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'
16078
# Note: this linker hardcodes the directories in LIBPATH if there
16079
# are no directories specified by -L.
16080
hardcode_minus_L_GCJ=yes
16081
if test "$GCC" = yes && test -z "$link_static_flag"; then
16082
# Neither direct hardcoding nor static linking is supported with a
16084
hardcode_direct_GCJ=unsupported
16089
if test "$host_cpu" = ia64; then
16090
# On IA64, the linker does run time linking by default, so we don't
16091
# have to do anything special.
16092
aix_use_runtimelinking=no
16093
exp_sym_flag='-Bexport'
16096
# If we're using GNU nm, then we don't want the "-C" option.
16097
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16098
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16099
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'
16101
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'
16103
aix_use_runtimelinking=no
16105
# Test if we are trying to use run time linking or normal
16106
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16107
# need to do runtime linking.
16108
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16109
for ld_flag in $LDFLAGS; do
16110
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16111
aix_use_runtimelinking=yes
16117
exp_sym_flag='-bexport'
16118
no_entry_flag='-bnoentry'
16121
# When large executables or shared objects are built, AIX ld can
16122
# have problems creating the table of contents. If linking a library
16123
# or program results in "error TOC overflow" add -mminimal-toc to
16124
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16125
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16127
archive_cmds_GCJ=''
16128
hardcode_direct_GCJ=yes
16129
hardcode_libdir_separator_GCJ=':'
16130
link_all_deplibs_GCJ=yes
16132
if test "$GCC" = yes; then
16133
case $host_os in aix4.012|aix4.012.*)
16134
# We only want to do this on AIX 4.2 and lower, the check
16135
# below for broken collect2 doesn't work under 4.3+
16136
collect2name=`${CC} -print-prog-name=collect2`
16137
if test -f "$collect2name" && \
16138
strings "$collect2name" | grep resolve_lib_name >/dev/null
16140
# We have reworked collect2
16141
hardcode_direct_GCJ=yes
16143
# We have old collect2
16144
hardcode_direct_GCJ=unsupported
16145
# It fails to find uninstalled libraries when the uninstalled
16146
# path is not listed in the libpath. Setting hardcode_minus_L
16147
# to unsupported forces relinking
16148
hardcode_minus_L_GCJ=yes
16149
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16150
hardcode_libdir_separator_GCJ=
16153
shared_flag='-shared'
16156
if test "$host_cpu" = ia64; then
16157
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16158
# chokes on -Wl,-G. The following line is correct:
16161
if test "$aix_use_runtimelinking" = yes; then
16162
shared_flag='${wl}-G'
16164
shared_flag='${wl}-bM:SRE'
16169
# It seems that -bexpall does not export symbols beginning with
16170
# underscore (_), so it is better to generate a list of symbols to export.
16171
always_export_symbols_GCJ=yes
16172
if test "$aix_use_runtimelinking" = yes; then
16173
# Warning - without using the other runtime loading flags (-brtl),
16174
# -berok will link without error, but may produce a broken library.
16175
allow_undefined_flag_GCJ='-berok'
16176
# Determine the default libpath from the value encoded in an empty executable.
16177
cat >conftest.$ac_ext <<_ACEOF
16180
cat confdefs.h >>conftest.$ac_ext
16181
cat >>conftest.$ac_ext <<_ACEOF
16182
/* end confdefs.h. */
16192
rm -f conftest.$ac_objext conftest$ac_exeext
16193
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16194
(eval $ac_link) 2>conftest.er1
16196
grep -v '^ *+' conftest.er1 >conftest.err
16198
cat conftest.err >&5
16199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200
(exit $ac_status); } &&
16201
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16202
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203
(eval $ac_try) 2>&5
16205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206
(exit $ac_status); }; } &&
16207
{ ac_try='test -s conftest$ac_exeext'
16208
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209
(eval $ac_try) 2>&5
16211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212
(exit $ac_status); }; }; then
16214
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16216
# Check for a 64-bit object if we didn't find anything.
16217
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; }
16220
echo "$as_me: failed program was:" >&5
16221
sed 's/^/| /' conftest.$ac_ext >&5
16224
rm -f conftest.err conftest.$ac_objext \
16225
conftest$ac_exeext conftest.$ac_ext
16226
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16228
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16229
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"
16231
if test "$host_cpu" = ia64; then
16232
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16233
allow_undefined_flag_GCJ="-z nodefs"
16234
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"
16236
# Determine the default libpath from the value encoded in an empty executable.
16237
cat >conftest.$ac_ext <<_ACEOF
16240
cat confdefs.h >>conftest.$ac_ext
16241
cat >>conftest.$ac_ext <<_ACEOF
16242
/* end confdefs.h. */
16252
rm -f conftest.$ac_objext conftest$ac_exeext
16253
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16254
(eval $ac_link) 2>conftest.er1
16256
grep -v '^ *+' conftest.er1 >conftest.err
16258
cat conftest.err >&5
16259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260
(exit $ac_status); } &&
16261
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16262
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16263
(eval $ac_try) 2>&5
16265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266
(exit $ac_status); }; } &&
16267
{ ac_try='test -s conftest$ac_exeext'
16268
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269
(eval $ac_try) 2>&5
16271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272
(exit $ac_status); }; }; then
16274
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16276
# Check for a 64-bit object if we didn't find anything.
16277
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; }
16280
echo "$as_me: failed program was:" >&5
16281
sed 's/^/| /' conftest.$ac_ext >&5
16284
rm -f conftest.err conftest.$ac_objext \
16285
conftest$ac_exeext conftest.$ac_ext
16286
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16288
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16289
# Warning - without using the other run time loading flags,
16290
# -berok will link without error, but may produce a broken library.
16291
no_undefined_flag_GCJ=' ${wl}-bernotok'
16292
allow_undefined_flag_GCJ=' ${wl}-berok'
16293
# -bexpall does not export symbols beginning with underscore (_)
16294
always_export_symbols_GCJ=yes
16295
# Exported symbols can be pulled into shared objects from archives
16296
whole_archive_flag_spec_GCJ=' '
16297
archive_cmds_need_lc_GCJ=yes
16298
# This is similar to how AIX traditionally builds it's shared libraries.
16299
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'
16305
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)'
16306
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16307
hardcode_minus_L_GCJ=yes
16308
# see comment about different semantics on the GNU ld section
16313
export_dynamic_flag_spec_GCJ=-rdynamic
16316
cygwin* | mingw* | pw32*)
16317
# When not using gcc, we currently assume that we are using
16318
# Microsoft Visual C++.
16319
# hardcode_libdir_flag_spec is actually meaningless, as there is
16320
# no search path for DLLs.
16321
hardcode_libdir_flag_spec_GCJ=' '
16322
allow_undefined_flag_GCJ=unsupported
16323
# Tell ltmain to make .lib files, not .a files.
16325
# Tell ltmain to make .dll files, not .so files.
16327
# FIXME: Setting linknames here is a bad hack.
16328
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16329
# The linker will automatically build a .lib file if we build a DLL.
16330
old_archive_From_new_cmds_GCJ='true'
16331
# FIXME: Should let the user specify the lib program.
16332
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16333
fix_srcfile_path='`cygpath -w "$srcfile"`'
16334
enable_shared_with_static_runtimes_GCJ=yes
16337
darwin* | rhapsody*)
16338
if test "$GXX" = yes ; then
16339
archive_cmds_need_lc_GCJ=no
16341
rhapsody* | darwin1.[012])
16342
allow_undefined_flag_GCJ='-undefined suppress'
16345
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16346
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16348
case ${MACOSX_DEPLOYMENT_TARGET} in
16350
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16353
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16359
lt_int_apple_cc_single_mod=no
16360
output_verbose_link_cmd='echo'
16361
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16362
lt_int_apple_cc_single_mod=yes
16364
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16365
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16367
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'
16369
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16370
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16371
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16372
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}'
16374
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}'
16376
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}'
16377
hardcode_direct_GCJ=no
16378
hardcode_automatic_GCJ=yes
16379
hardcode_shlibpath_var_GCJ=unsupported
16380
whole_archive_flag_spec_GCJ='-all_load $convenience'
16381
link_all_deplibs_GCJ=yes
16388
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16389
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16390
hardcode_shlibpath_var_GCJ=no
16397
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16398
# support. Future versions do this automatically, but an explicit c++rt0.o
16399
# does not break anything, and helps significantly (at the cost of a little
16402
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16403
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16404
hardcode_direct_GCJ=yes
16405
hardcode_shlibpath_var_GCJ=no
16408
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16410
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16411
hardcode_direct_GCJ=yes
16412
hardcode_minus_L_GCJ=yes
16413
hardcode_shlibpath_var_GCJ=no
16416
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16417
freebsd* | kfreebsd*-gnu)
16418
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16419
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16420
hardcode_direct_GCJ=yes
16421
hardcode_shlibpath_var_GCJ=no
16425
if test "$GCC" = yes; then
16426
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'
16428
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'
16430
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16431
hardcode_libdir_separator_GCJ=:
16432
hardcode_direct_GCJ=yes
16434
# hardcode_minus_L: Not really in the search PATH,
16435
# but as the default location of the library.
16436
hardcode_minus_L_GCJ=yes
16437
export_dynamic_flag_spec_GCJ='${wl}-E'
16441
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16442
case "$host_cpu" in
16444
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16447
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16451
case "$host_cpu" in
16453
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16456
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16460
if test "$with_gnu_ld" = no; then
16461
case "$host_cpu" in
16463
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16464
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16465
hardcode_libdir_separator_GCJ=:
16466
hardcode_direct_GCJ=no
16467
hardcode_shlibpath_var_GCJ=no
16470
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16471
hardcode_direct_GCJ=no
16472
hardcode_shlibpath_var_GCJ=no
16474
# hardcode_minus_L: Not really in the search PATH,
16475
# but as the default location of the library.
16476
hardcode_minus_L_GCJ=yes
16479
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16480
hardcode_libdir_separator_GCJ=:
16481
hardcode_direct_GCJ=yes
16482
export_dynamic_flag_spec_GCJ='${wl}-E'
16484
# hardcode_minus_L: Not really in the search PATH,
16485
# but as the default location of the library.
16486
hardcode_minus_L_GCJ=yes
16492
irix5* | irix6* | nonstopux*)
16493
if test "$GCC" = yes; then
16494
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'
16496
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'
16497
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16499
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16500
hardcode_libdir_separator_GCJ=:
16501
link_all_deplibs_GCJ=yes
16504
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16505
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16506
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16508
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16510
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16511
hardcode_direct_GCJ=yes
16512
hardcode_shlibpath_var_GCJ=no
16516
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16517
hardcode_direct_GCJ=yes
16518
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16519
hardcode_libdir_separator_GCJ=:
16520
hardcode_shlibpath_var_GCJ=no
16524
hardcode_direct_GCJ=yes
16525
hardcode_shlibpath_var_GCJ=no
16526
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16527
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16528
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16529
export_dynamic_flag_spec_GCJ='${wl}-E'
16532
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16533
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16534
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16537
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16538
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16545
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16546
hardcode_minus_L_GCJ=yes
16547
allow_undefined_flag_GCJ=unsupported
16548
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'
16549
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16553
if test "$GCC" = yes; then
16554
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16555
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'
16557
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16558
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'
16560
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16561
hardcode_libdir_separator_GCJ=:
16564
osf4* | osf5*) # as osf3* with the addition of -msym flag
16565
if test "$GCC" = yes; then
16566
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16567
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'
16568
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16570
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16571
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'
16572
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~
16573
$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'
16575
# Both c and cxx compiler support -rpath directly
16576
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16578
hardcode_libdir_separator_GCJ=:
16582
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16583
hardcode_shlibpath_var_GCJ=no
16584
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16585
runpath_var=LD_RUN_PATH
16586
hardcode_runpath_var=yes
16590
no_undefined_flag_GCJ=' -z text'
16591
if test "$GCC" = yes; then
16592
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16593
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16594
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16596
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16597
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16598
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16600
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16601
hardcode_shlibpath_var_GCJ=no
16603
solaris2.[0-5] | solaris2.[0-5].*) ;;
16604
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
16605
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16607
link_all_deplibs_GCJ=yes
16611
if test "x$host_vendor" = xsequent; then
16612
# Use $CC to link under sequent, because it throws in some extra .o
16613
# files that make .init and .fini sections work.
16614
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16616
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16618
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16619
hardcode_direct_GCJ=yes
16620
hardcode_minus_L_GCJ=yes
16621
hardcode_shlibpath_var_GCJ=no
16625
case $host_vendor in
16627
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16628
hardcode_direct_GCJ=yes # is this really true???
16631
## LD is ld it makes a PLAMLIB
16632
## CC just makes a GrossModule.
16633
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16634
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16635
hardcode_direct_GCJ=no
16638
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16639
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16642
runpath_var='LD_RUN_PATH'
16643
hardcode_shlibpath_var_GCJ=no
16647
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16648
hardcode_shlibpath_var_GCJ=no
16649
export_dynamic_flag_spec_GCJ='-Bexport'
16653
if test -d /usr/nec; then
16654
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16655
hardcode_shlibpath_var_GCJ=no
16656
runpath_var=LD_RUN_PATH
16657
hardcode_runpath_var=yes
16663
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16664
hardcode_direct_GCJ=yes
16665
hardcode_minus_L_GCJ=no
16666
hardcode_shlibpath_var_GCJ=no
16667
hardcode_runpath_var=yes
16668
runpath_var=LD_RUN_PATH
16671
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16672
no_undefined_flag_GCJ='${wl}-z ${wl}text'
16673
if test "$GCC" = yes; then
16674
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16676
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16678
runpath_var='LD_RUN_PATH'
16679
hardcode_shlibpath_var_GCJ=no
16683
no_undefined_flag_GCJ=' -z text'
16684
# $CC -shared without GNU ld will not create a library from C++
16685
# object files and a static libstdc++, better avoid it by now
16686
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16687
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16688
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16689
hardcode_libdir_flag_spec_GCJ=
16690
hardcode_shlibpath_var_GCJ=no
16691
runpath_var='LD_RUN_PATH'
16695
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16696
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16697
hardcode_shlibpath_var_GCJ=no
16706
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16707
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16708
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16710
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16711
if test "$GCC" = yes; then
16712
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16716
# Do we need to explicitly link libc?
16718
case "x$archive_cmds_need_lc_GCJ" in
16720
# Assume -lc should be added
16721
archive_cmds_need_lc_GCJ=yes
16723
if test "$enable_shared" = yes && test "$GCC" = yes; then
16724
case $archive_cmds_GCJ in
16726
# FIXME: we may have to deal with multi-command sequences.
16729
# Test whether the compiler implicitly links with -lc since on some
16730
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16731
# to ld, don't add -lc before -lgcc.
16732
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16733
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16735
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16737
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16738
(eval $ac_compile) 2>&5
16740
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741
(exit $ac_status); } 2>conftest.err; then
16744
libobjs=conftest.$ac_objext
16746
wl=$lt_prog_compiler_wl_GCJ
16752
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16753
allow_undefined_flag_GCJ=
16754
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16755
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758
(exit $ac_status); }
16760
archive_cmds_need_lc_GCJ=no
16762
archive_cmds_need_lc_GCJ=yes
16764
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16766
cat conftest.err 1>&5
16769
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16770
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16777
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16778
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16779
library_names_spec=
16780
libname_spec='lib$name'
16784
postuninstall_cmds=
16788
shlibpath_overrides_runpath=unknown
16790
dynamic_linker="$host_os ld.so"
16791
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16792
if test "$GCC" = yes; then
16793
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16794
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16795
# if the path contains ";" then we assume it to be the separator
16796
# otherwise default to the standard path separator (i.e. ":") - it is
16797
# assumed that no part of a normal pathname contains ";" but that should
16798
# okay in the real world where ";" in dirpaths is itself problematic.
16799
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16801
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16804
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16806
need_lib_prefix=unknown
16807
hardcode_into_libs=no
16809
# when you set need_version to no, make sure it does not cause -set_version
16810
# flags to be left without arguments
16811
need_version=unknown
16816
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16817
shlibpath_var=LIBPATH
16819
# AIX 3 has no versioning support, so we append a major version to the name.
16820
soname_spec='${libname}${release}${shared_ext}$major'
16827
hardcode_into_libs=yes
16828
if test "$host_cpu" = ia64; then
16829
# AIX 5 supports IA64
16830
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16831
shlibpath_var=LD_LIBRARY_PATH
16833
# With GCC up to 2.95.x, collect2 would create an import file
16834
# for dependence libraries. The import file would start with
16835
# the line `#! .'. This would cause the generated library to
16836
# depend on `.', always an invalid library. This was fixed in
16837
# development snapshots of GCC prior to 3.0.
16839
aix4 | aix4.[01] | aix4.[01].*)
16840
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16842
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16845
can_build_shared=no
16849
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16850
# soname into executable. Probably we can add versioning support to
16851
# collect2, so additional links can be useful in future.
16852
if test "$aix_use_runtimelinking" = yes; then
16853
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16854
# instead of lib<name>.a to let people know that these are not
16855
# typical AIX shared libraries.
16856
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16858
# We preserve .a as extension for shared libraries through AIX4.2
16859
# and later when we are not doing run time linking.
16860
library_names_spec='${libname}${release}.a $libname.a'
16861
soname_spec='${libname}${release}${shared_ext}$major'
16863
shlibpath_var=LIBPATH
16868
library_names_spec='$libname.ixlibrary $libname.a'
16869
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16870
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'
16874
library_names_spec='${libname}${shared_ext}'
16875
dynamic_linker="$host_os ld.so"
16876
shlibpath_var=LIBRARY_PATH
16882
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16883
soname_spec='${libname}${release}${shared_ext}$major'
16884
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16885
shlibpath_var=LD_LIBRARY_PATH
16886
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16887
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16888
# the default ld.so.conf also contains /usr/contrib/lib and
16889
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16890
# libtool to hard-code these into programs
16893
cygwin* | mingw* | pw32*)
16894
version_type=windows
16899
case $GCC,$host_os in
16900
yes,cygwin* | yes,mingw* | yes,pw32*)
16901
library_names_spec='$libname.dll.a'
16902
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16903
postinstall_cmds='base_file=`basename \${file}`~
16904
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16905
dldir=$destdir/`dirname \$dlpath`~
16906
test -d \$dldir || mkdir -p \$dldir~
16907
$install_prog $dir/$dlname \$dldir/$dlname'
16908
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16909
dlpath=$dir/\$dldll~
16911
shlibpath_overrides_runpath=yes
16915
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16916
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16917
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16920
# MinGW DLLs use traditional 'lib' prefix
16921
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16922
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16923
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16924
# It is most probably a Windows format PATH printed by
16925
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16926
# path with ; separators, and with drive letters. We can handle the
16927
# drive letters (cygwin fileutils understands them), so leave them,
16928
# especially as we might pass files found there to a mingw objdump,
16929
# which wouldn't understand a cygwinified path. Ahh.
16930
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16932
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16936
# pw32 DLLs use 'pw' prefix rather than 'lib'
16937
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16943
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16946
dynamic_linker='Win32 ld.exe'
16947
# FIXME: first we should search . and the directory the executable is in
16951
darwin* | rhapsody*)
16952
dynamic_linker="$host_os dyld"
16953
version_type=darwin
16956
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16957
soname_spec='${libname}${release}${major}$shared_ext'
16958
shlibpath_overrides_runpath=yes
16959
shlibpath_var=DYLD_LIBRARY_PATH
16960
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16961
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16962
if test "$GCC" = yes; then
16963
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"`
16965
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16967
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16974
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16975
soname_spec='${libname}${release}${shared_ext}$major'
16976
shlibpath_var=LD_LIBRARY_PATH
16987
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16988
soname_spec='${libname}${release}${shared_ext}$major'
16989
shlibpath_var=LD_LIBRARY_PATH
16990
shlibpath_overrides_runpath=no
16991
hardcode_into_libs=yes
16992
dynamic_linker='GNU ld.so'
16996
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16997
version_type=freebsd-$objformat
16998
case $version_type in
17000
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17005
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17009
shlibpath_var=LD_LIBRARY_PATH
17012
shlibpath_overrides_runpath=yes
17014
freebsd3.01* | freebsdelf3.01*)
17015
shlibpath_overrides_runpath=yes
17016
hardcode_into_libs=yes
17019
shlibpath_overrides_runpath=no
17020
hardcode_into_libs=yes
17029
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17030
soname_spec='${libname}${release}${shared_ext}$major'
17031
shlibpath_var=LD_LIBRARY_PATH
17032
hardcode_into_libs=yes
17035
hpux9* | hpux10* | hpux11*)
17036
# Give a soname corresponding to the major version so that dld.sl refuses to
17037
# link against other versions.
17041
case "$host_cpu" in
17044
hardcode_into_libs=yes
17045
dynamic_linker="$host_os dld.so"
17046
shlibpath_var=LD_LIBRARY_PATH
17047
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17048
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17049
soname_spec='${libname}${release}${shared_ext}$major'
17050
if test "X$HPUX_IA64_MODE" = X32; then
17051
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17053
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17055
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17059
hardcode_into_libs=yes
17060
dynamic_linker="$host_os dld.sl"
17061
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17062
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17063
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17064
soname_spec='${libname}${release}${shared_ext}$major'
17065
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17066
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17070
dynamic_linker="$host_os dld.sl"
17071
shlibpath_var=SHLIB_PATH
17072
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17073
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17074
soname_spec='${libname}${release}${shared_ext}$major'
17077
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17078
postinstall_cmds='chmod 555 $lib'
17081
irix5* | irix6* | nonstopux*)
17083
nonstopux*) version_type=nonstopux ;;
17085
if test "$lt_cv_prog_gnu_ld" = yes; then
17093
soname_spec='${libname}${release}${shared_ext}$major'
17094
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17096
irix5* | nonstopux*)
17097
libsuff= shlibsuff=
17100
case $LD in # libtool.m4 will add one of these switches to LD
17101
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17102
libsuff= shlibsuff= libmagic=32-bit;;
17103
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17104
libsuff=32 shlibsuff=N32 libmagic=N32;;
17105
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17106
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17107
*) libsuff= shlibsuff= libmagic=never-match;;
17111
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17112
shlibpath_overrides_runpath=no
17113
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17114
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17115
hardcode_into_libs=yes
17118
# No shared lib support for Linux oldld, aout, or coff.
17119
linux*oldld* | linux*aout* | linux*coff*)
17123
# This must be Linux ELF.
17128
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17129
soname_spec='${libname}${release}${shared_ext}$major'
17130
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17131
shlibpath_var=LD_LIBRARY_PATH
17132
shlibpath_overrides_runpath=no
17133
# This implies no fast_install, which is unacceptable.
17134
# Some rework will be needed to allow for fast_install
17135
# before this can be enabled.
17136
hardcode_into_libs=yes
17138
# Append ld.so.conf contents to the search path
17139
if test -f /etc/ld.so.conf; then
17140
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17141
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17144
# We used to test for /lib/ld.so.1 and disable shared libraries on
17145
# powerpc, because MkLinux only supported shared libraries with the
17146
# GNU dynamic linker. Since this was broken with cross compilers,
17147
# most powerpc-linux boxes support dynamic linking these days and
17148
# people can always --disable-shared, the test was removed, and we
17149
# assume the GNU/Linux dynamic linker is in use.
17150
dynamic_linker='GNU/Linux ld.so'
17157
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17158
soname_spec='${libname}${release}${shared_ext}$major'
17159
shlibpath_var=LD_LIBRARY_PATH
17160
shlibpath_overrides_runpath=no
17161
hardcode_into_libs=yes
17162
dynamic_linker='NetBSD ld.elf_so'
17169
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17170
soname_spec='${libname}${release}${shared_ext}$major'
17171
shlibpath_var=LD_LIBRARY_PATH
17172
shlibpath_overrides_runpath=no
17173
hardcode_into_libs=yes
17174
dynamic_linker='GNU ld.so'
17181
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17182
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17183
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17184
dynamic_linker='NetBSD (a.out) ld.so'
17186
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17187
soname_spec='${libname}${release}${shared_ext}$major'
17188
dynamic_linker='NetBSD ld.elf_so'
17190
shlibpath_var=LD_LIBRARY_PATH
17191
shlibpath_overrides_runpath=yes
17192
hardcode_into_libs=yes
17197
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17198
shlibpath_var=LD_LIBRARY_PATH
17199
shlibpath_overrides_runpath=yes
17206
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17207
soname_spec='${libname}${release}${shared_ext}$major'
17208
shlibpath_var=LD_LIBRARY_PATH
17209
shlibpath_overrides_runpath=yes
17216
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17217
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17218
shlibpath_var=LD_LIBRARY_PATH
17219
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17221
openbsd2.[89] | openbsd2.[89].*)
17222
shlibpath_overrides_runpath=no
17225
shlibpath_overrides_runpath=yes
17229
shlibpath_overrides_runpath=yes
17234
libname_spec='$name'
17237
library_names_spec='$libname${shared_ext} $libname.a'
17238
dynamic_linker='OS/2 ld.exe'
17239
shlibpath_var=LIBPATH
17242
osf3* | osf4* | osf5*)
17246
soname_spec='${libname}${release}${shared_ext}$major'
17247
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17248
shlibpath_var=LD_LIBRARY_PATH
17249
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17250
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17255
soname_spec='${libname}${release}${shared_ext}$major'
17256
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17257
shlibpath_var=LD_LIBRARY_PATH
17264
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17265
soname_spec='${libname}${release}${shared_ext}$major'
17266
shlibpath_var=LD_LIBRARY_PATH
17267
shlibpath_overrides_runpath=yes
17268
hardcode_into_libs=yes
17269
# ldd complains unless libraries are executable
17270
postinstall_cmds='chmod +x $lib'
17275
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17276
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17277
shlibpath_var=LD_LIBRARY_PATH
17278
shlibpath_overrides_runpath=yes
17279
if test "$with_gnu_ld" = yes; then
17285
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17287
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17288
soname_spec='${libname}${release}${shared_ext}$major'
17289
shlibpath_var=LD_LIBRARY_PATH
17290
case $host_vendor in
17292
shlibpath_overrides_runpath=no
17294
export_dynamic_flag_spec='${wl}-Blargedynsym'
17295
runpath_var=LD_RUN_PATH
17303
shlibpath_overrides_runpath=no
17304
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17310
if test -d /usr/nec ;then
17312
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17313
soname_spec='$libname${shared_ext}.$major'
17314
shlibpath_var=LD_LIBRARY_PATH
17320
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17321
soname_spec='${libname}${release}${shared_ext}$major'
17322
shlibpath_var=LD_LIBRARY_PATH
17329
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17330
echo "${ECHO_T}$dynamic_linker" >&6
17331
test "$dynamic_linker" = no && can_build_shared=no
17333
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17334
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17335
hardcode_action_GCJ=
17336
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17337
test -n "$runpath_var GCJ" || \
17338
test "X$hardcode_automatic_GCJ"="Xyes" ; then
17340
# We can hardcode non-existant directories.
17341
if test "$hardcode_direct_GCJ" != no &&
17342
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17343
# have to relink, otherwise we might link with an installed library
17344
# when we should be linking with a yet-to-be-installed one
17345
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17346
test "$hardcode_minus_L_GCJ" != no; then
17347
# Linking always hardcodes the temporary library directory.
17348
hardcode_action_GCJ=relink
17350
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17351
hardcode_action_GCJ=immediate
17354
# We cannot hardcode anything, or else we can only hardcode existing
17356
hardcode_action_GCJ=unsupported
17358
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17359
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17361
if test "$hardcode_action_GCJ" = relink; then
17362
# Fast installation is not supported
17363
enable_fast_install=no
17364
elif test "$shlibpath_overrides_runpath" = yes ||
17365
test "$enable_shared" = no; then
17366
# Fast installation is not necessary
17367
enable_fast_install=needless
17372
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17373
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17374
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17375
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17376
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17377
echo "$as_me:$LINENO: result: yes" >&5
17378
echo "${ECHO_T}yes" >&6
17380
# FIXME - insert some real tests, host_os isn't really good enough
17383
if test -n "$STRIP" ; then
17384
striplib="$STRIP -x"
17385
echo "$as_me:$LINENO: result: yes" >&5
17386
echo "${ECHO_T}yes" >&6
17388
echo "$as_me:$LINENO: result: no" >&5
17389
echo "${ECHO_T}no" >&6
17393
echo "$as_me:$LINENO: result: no" >&5
17394
echo "${ECHO_T}no" >&6
17399
if test "x$enable_dlopen" != xyes; then
17400
enable_dlopen=unknown
17401
enable_dlopen_self=unknown
17402
enable_dlopen_self_static=unknown
17409
lt_cv_dlopen="load_add_on"
17411
lt_cv_dlopen_self=yes
17415
lt_cv_dlopen="LoadLibrary"
17420
lt_cv_dlopen="dlopen"
17425
# if libdl is installed we need to link against it
17426
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17427
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17428
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17429
echo $ECHO_N "(cached) $ECHO_C" >&6
17431
ac_check_lib_save_LIBS=$LIBS
17433
cat >conftest.$ac_ext <<_ACEOF
17436
cat confdefs.h >>conftest.$ac_ext
17437
cat >>conftest.$ac_ext <<_ACEOF
17438
/* end confdefs.h. */
17440
/* Override any gcc2 internal prototype to avoid an error. */
17444
/* We use char because int might match the return type of a gcc2
17445
builtin and then its argument prototype would still apply. */
17455
rm -f conftest.$ac_objext conftest$ac_exeext
17456
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17457
(eval $ac_link) 2>conftest.er1
17459
grep -v '^ *+' conftest.er1 >conftest.err
17461
cat conftest.err >&5
17462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463
(exit $ac_status); } &&
17464
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17465
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466
(eval $ac_try) 2>&5
17468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469
(exit $ac_status); }; } &&
17470
{ ac_try='test -s conftest$ac_exeext'
17471
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472
(eval $ac_try) 2>&5
17474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475
(exit $ac_status); }; }; then
17476
ac_cv_lib_dl_dlopen=yes
17478
echo "$as_me: failed program was:" >&5
17479
sed 's/^/| /' conftest.$ac_ext >&5
17481
ac_cv_lib_dl_dlopen=no
17483
rm -f conftest.err conftest.$ac_objext \
17484
conftest$ac_exeext conftest.$ac_ext
17485
LIBS=$ac_check_lib_save_LIBS
17487
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17488
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17489
if test $ac_cv_lib_dl_dlopen = yes; then
17490
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17493
lt_cv_dlopen="dyld"
17495
lt_cv_dlopen_self=yes
17502
echo "$as_me:$LINENO: checking for shl_load" >&5
17503
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17504
if test "${ac_cv_func_shl_load+set}" = set; then
17505
echo $ECHO_N "(cached) $ECHO_C" >&6
17507
cat >conftest.$ac_ext <<_ACEOF
17510
cat confdefs.h >>conftest.$ac_ext
17511
cat >>conftest.$ac_ext <<_ACEOF
17512
/* end confdefs.h. */
17513
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17514
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17515
#define shl_load innocuous_shl_load
17517
/* System header to define __stub macros and hopefully few prototypes,
17518
which can conflict with char shl_load (); below.
17519
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17520
<limits.h> exists even on freestanding compilers. */
17523
# include <limits.h>
17525
# include <assert.h>
17530
/* Override any gcc2 internal prototype to avoid an error. */
17535
/* We use char because int might match the return type of a gcc2
17536
builtin and then its argument prototype would still apply. */
17538
/* The GNU C library defines this for functions which it implements
17539
to always fail with ENOSYS. Some functions are actually named
17540
something starting with __ and the normal name is an alias. */
17541
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17544
char (*f) () = shl_load;
17553
return f != shl_load;
17558
rm -f conftest.$ac_objext conftest$ac_exeext
17559
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17560
(eval $ac_link) 2>conftest.er1
17562
grep -v '^ *+' conftest.er1 >conftest.err
17564
cat conftest.err >&5
17565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566
(exit $ac_status); } &&
17567
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17568
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17569
(eval $ac_try) 2>&5
17571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572
(exit $ac_status); }; } &&
17573
{ ac_try='test -s conftest$ac_exeext'
17574
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17575
(eval $ac_try) 2>&5
17577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578
(exit $ac_status); }; }; then
17579
ac_cv_func_shl_load=yes
17581
echo "$as_me: failed program was:" >&5
17582
sed 's/^/| /' conftest.$ac_ext >&5
17584
ac_cv_func_shl_load=no
17586
rm -f conftest.err conftest.$ac_objext \
17587
conftest$ac_exeext conftest.$ac_ext
17589
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17590
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17591
if test $ac_cv_func_shl_load = yes; then
17592
lt_cv_dlopen="shl_load"
17594
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17595
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17596
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17597
echo $ECHO_N "(cached) $ECHO_C" >&6
17599
ac_check_lib_save_LIBS=$LIBS
17601
cat >conftest.$ac_ext <<_ACEOF
17604
cat confdefs.h >>conftest.$ac_ext
17605
cat >>conftest.$ac_ext <<_ACEOF
17606
/* end confdefs.h. */
17608
/* Override any gcc2 internal prototype to avoid an error. */
17612
/* We use char because int might match the return type of a gcc2
17613
builtin and then its argument prototype would still apply. */
17623
rm -f conftest.$ac_objext conftest$ac_exeext
17624
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17625
(eval $ac_link) 2>conftest.er1
17627
grep -v '^ *+' conftest.er1 >conftest.err
17629
cat conftest.err >&5
17630
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631
(exit $ac_status); } &&
17632
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17633
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634
(eval $ac_try) 2>&5
17636
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637
(exit $ac_status); }; } &&
17638
{ ac_try='test -s conftest$ac_exeext'
17639
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640
(eval $ac_try) 2>&5
17642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643
(exit $ac_status); }; }; then
17644
ac_cv_lib_dld_shl_load=yes
17646
echo "$as_me: failed program was:" >&5
17647
sed 's/^/| /' conftest.$ac_ext >&5
17649
ac_cv_lib_dld_shl_load=no
17651
rm -f conftest.err conftest.$ac_objext \
17652
conftest$ac_exeext conftest.$ac_ext
17653
LIBS=$ac_check_lib_save_LIBS
17655
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17656
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17657
if test $ac_cv_lib_dld_shl_load = yes; then
17658
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17660
echo "$as_me:$LINENO: checking for dlopen" >&5
17661
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17662
if test "${ac_cv_func_dlopen+set}" = set; then
17663
echo $ECHO_N "(cached) $ECHO_C" >&6
17665
cat >conftest.$ac_ext <<_ACEOF
17668
cat confdefs.h >>conftest.$ac_ext
17669
cat >>conftest.$ac_ext <<_ACEOF
17670
/* end confdefs.h. */
17671
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17672
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17673
#define dlopen innocuous_dlopen
17675
/* System header to define __stub macros and hopefully few prototypes,
17676
which can conflict with char dlopen (); below.
17677
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17678
<limits.h> exists even on freestanding compilers. */
17681
# include <limits.h>
17683
# include <assert.h>
17688
/* Override any gcc2 internal prototype to avoid an error. */
17693
/* We use char because int might match the return type of a gcc2
17694
builtin and then its argument prototype would still apply. */
17696
/* The GNU C library defines this for functions which it implements
17697
to always fail with ENOSYS. Some functions are actually named
17698
something starting with __ and the normal name is an alias. */
17699
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17702
char (*f) () = dlopen;
17711
return f != dlopen;
17716
rm -f conftest.$ac_objext conftest$ac_exeext
17717
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17718
(eval $ac_link) 2>conftest.er1
17720
grep -v '^ *+' conftest.er1 >conftest.err
17722
cat conftest.err >&5
17723
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724
(exit $ac_status); } &&
17725
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17726
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727
(eval $ac_try) 2>&5
17729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730
(exit $ac_status); }; } &&
17731
{ ac_try='test -s conftest$ac_exeext'
17732
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17733
(eval $ac_try) 2>&5
17735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736
(exit $ac_status); }; }; then
17737
ac_cv_func_dlopen=yes
17739
echo "$as_me: failed program was:" >&5
17740
sed 's/^/| /' conftest.$ac_ext >&5
17742
ac_cv_func_dlopen=no
17744
rm -f conftest.err conftest.$ac_objext \
17745
conftest$ac_exeext conftest.$ac_ext
17747
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17748
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17749
if test $ac_cv_func_dlopen = yes; then
17750
lt_cv_dlopen="dlopen"
17752
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17753
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17754
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17755
echo $ECHO_N "(cached) $ECHO_C" >&6
17757
ac_check_lib_save_LIBS=$LIBS
17759
cat >conftest.$ac_ext <<_ACEOF
17762
cat confdefs.h >>conftest.$ac_ext
17763
cat >>conftest.$ac_ext <<_ACEOF
17764
/* end confdefs.h. */
17766
/* Override any gcc2 internal prototype to avoid an error. */
17770
/* We use char because int might match the return type of a gcc2
17771
builtin and then its argument prototype would still apply. */
17781
rm -f conftest.$ac_objext conftest$ac_exeext
17782
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17783
(eval $ac_link) 2>conftest.er1
17785
grep -v '^ *+' conftest.er1 >conftest.err
17787
cat conftest.err >&5
17788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789
(exit $ac_status); } &&
17790
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17791
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792
(eval $ac_try) 2>&5
17794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795
(exit $ac_status); }; } &&
17796
{ ac_try='test -s conftest$ac_exeext'
17797
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17798
(eval $ac_try) 2>&5
17800
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801
(exit $ac_status); }; }; then
17802
ac_cv_lib_dl_dlopen=yes
17804
echo "$as_me: failed program was:" >&5
17805
sed 's/^/| /' conftest.$ac_ext >&5
17807
ac_cv_lib_dl_dlopen=no
17809
rm -f conftest.err conftest.$ac_objext \
17810
conftest$ac_exeext conftest.$ac_ext
17811
LIBS=$ac_check_lib_save_LIBS
17813
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17814
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17815
if test $ac_cv_lib_dl_dlopen = yes; then
17816
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17818
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17819
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17820
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17821
echo $ECHO_N "(cached) $ECHO_C" >&6
17823
ac_check_lib_save_LIBS=$LIBS
17824
LIBS="-lsvld $LIBS"
17825
cat >conftest.$ac_ext <<_ACEOF
17828
cat confdefs.h >>conftest.$ac_ext
17829
cat >>conftest.$ac_ext <<_ACEOF
17830
/* end confdefs.h. */
17832
/* Override any gcc2 internal prototype to avoid an error. */
17836
/* We use char because int might match the return type of a gcc2
17837
builtin and then its argument prototype would still apply. */
17847
rm -f conftest.$ac_objext conftest$ac_exeext
17848
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17849
(eval $ac_link) 2>conftest.er1
17851
grep -v '^ *+' conftest.er1 >conftest.err
17853
cat conftest.err >&5
17854
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855
(exit $ac_status); } &&
17856
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17857
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858
(eval $ac_try) 2>&5
17860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861
(exit $ac_status); }; } &&
17862
{ ac_try='test -s conftest$ac_exeext'
17863
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17864
(eval $ac_try) 2>&5
17866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867
(exit $ac_status); }; }; then
17868
ac_cv_lib_svld_dlopen=yes
17870
echo "$as_me: failed program was:" >&5
17871
sed 's/^/| /' conftest.$ac_ext >&5
17873
ac_cv_lib_svld_dlopen=no
17875
rm -f conftest.err conftest.$ac_objext \
17876
conftest$ac_exeext conftest.$ac_ext
17877
LIBS=$ac_check_lib_save_LIBS
17879
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17880
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17881
if test $ac_cv_lib_svld_dlopen = yes; then
17882
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17884
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17885
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17886
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17887
echo $ECHO_N "(cached) $ECHO_C" >&6
17889
ac_check_lib_save_LIBS=$LIBS
17891
cat >conftest.$ac_ext <<_ACEOF
17894
cat confdefs.h >>conftest.$ac_ext
17895
cat >>conftest.$ac_ext <<_ACEOF
17896
/* end confdefs.h. */
17898
/* Override any gcc2 internal prototype to avoid an error. */
17902
/* We use char because int might match the return type of a gcc2
17903
builtin and then its argument prototype would still apply. */
17913
rm -f conftest.$ac_objext conftest$ac_exeext
17914
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17915
(eval $ac_link) 2>conftest.er1
17917
grep -v '^ *+' conftest.er1 >conftest.err
17919
cat conftest.err >&5
17920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921
(exit $ac_status); } &&
17922
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17923
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924
(eval $ac_try) 2>&5
17926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927
(exit $ac_status); }; } &&
17928
{ ac_try='test -s conftest$ac_exeext'
17929
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930
(eval $ac_try) 2>&5
17932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933
(exit $ac_status); }; }; then
17934
ac_cv_lib_dld_dld_link=yes
17936
echo "$as_me: failed program was:" >&5
17937
sed 's/^/| /' conftest.$ac_ext >&5
17939
ac_cv_lib_dld_dld_link=no
17941
rm -f conftest.err conftest.$ac_objext \
17942
conftest$ac_exeext conftest.$ac_ext
17943
LIBS=$ac_check_lib_save_LIBS
17945
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17946
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17947
if test $ac_cv_lib_dld_dld_link = yes; then
17948
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17969
if test "x$lt_cv_dlopen" != xno; then
17975
case $lt_cv_dlopen in
17977
save_CPPFLAGS="$CPPFLAGS"
17978
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17980
save_LDFLAGS="$LDFLAGS"
17981
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17984
LIBS="$lt_cv_dlopen_libs $LIBS"
17986
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17987
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17988
if test "${lt_cv_dlopen_self+set}" = set; then
17989
echo $ECHO_N "(cached) $ECHO_C" >&6
17991
if test "$cross_compiling" = yes; then :
17992
lt_cv_dlopen_self=cross
17994
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17995
lt_status=$lt_dlunknown
17996
cat > conftest.$ac_ext <<EOF
17997
#line 17997 "configure"
17998
#include "confdefs.h"
18007
# define LT_DLGLOBAL RTLD_GLOBAL
18010
# define LT_DLGLOBAL DL_GLOBAL
18012
# define LT_DLGLOBAL 0
18016
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18017
find out it does not work in some platform. */
18018
#ifndef LT_DLLAZY_OR_NOW
18020
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18023
# define LT_DLLAZY_OR_NOW DL_LAZY
18026
# define LT_DLLAZY_OR_NOW RTLD_NOW
18029
# define LT_DLLAZY_OR_NOW DL_NOW
18031
# define LT_DLLAZY_OR_NOW 0
18039
extern "C" void exit (int);
18042
void fnord() { int i=42;}
18045
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18046
int status = $lt_dlunknown;
18050
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18051
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18052
/* dlclose (self); */
18058
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18059
(eval $ac_link) 2>&5
18061
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18063
(./conftest; exit; ) 2>/dev/null
18065
case x$lt_status in
18066
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18067
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18068
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18071
# compilation failed
18072
lt_cv_dlopen_self=no
18079
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18080
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18082
if test "x$lt_cv_dlopen_self" = xyes; then
18083
LDFLAGS="$LDFLAGS $link_static_flag"
18084
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18085
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18086
if test "${lt_cv_dlopen_self_static+set}" = set; then
18087
echo $ECHO_N "(cached) $ECHO_C" >&6
18089
if test "$cross_compiling" = yes; then :
18090
lt_cv_dlopen_self_static=cross
18092
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18093
lt_status=$lt_dlunknown
18094
cat > conftest.$ac_ext <<EOF
18095
#line 18095 "configure"
18096
#include "confdefs.h"
18105
# define LT_DLGLOBAL RTLD_GLOBAL
18108
# define LT_DLGLOBAL DL_GLOBAL
18110
# define LT_DLGLOBAL 0
18114
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18115
find out it does not work in some platform. */
18116
#ifndef LT_DLLAZY_OR_NOW
18118
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18121
# define LT_DLLAZY_OR_NOW DL_LAZY
18124
# define LT_DLLAZY_OR_NOW RTLD_NOW
18127
# define LT_DLLAZY_OR_NOW DL_NOW
18129
# define LT_DLLAZY_OR_NOW 0
18137
extern "C" void exit (int);
18140
void fnord() { int i=42;}
18143
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18144
int status = $lt_dlunknown;
18148
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18149
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18150
/* dlclose (self); */
18156
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18157
(eval $ac_link) 2>&5
18159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18161
(./conftest; exit; ) 2>/dev/null
18163
case x$lt_status in
18164
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18165
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18166
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18169
# compilation failed
18170
lt_cv_dlopen_self_static=no
18177
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18178
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18181
CPPFLAGS="$save_CPPFLAGS"
18182
LDFLAGS="$save_LDFLAGS"
18187
case $lt_cv_dlopen_self in
18188
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18189
*) enable_dlopen_self=unknown ;;
18192
case $lt_cv_dlopen_self_static in
18193
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18194
*) enable_dlopen_self_static=unknown ;;
18199
# The else clause should only fire when bootstrapping the
18200
# libtool distribution, otherwise you forgot to ship ltmain.sh
18201
# with your package, and you will get complaints that there are
18202
# no rules to generate ltmain.sh.
18203
if test -f "$ltmain"; then
18204
# See if we are running on zsh, and set the options which allow our commands through
18205
# without removal of \ escapes.
18206
if test -n "${ZSH_VERSION+set}" ; then
18207
setopt NO_GLOB_SUBST
18209
# Now quote all the things that may contain metacharacters while being
18210
# careful not to overquote the AC_SUBSTed values. We take copies of the
18211
# variables and quote the copies for generation of the libtool script.
18212
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18214
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18215
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18216
deplibs_check_method reload_flag reload_cmds need_locks \
18217
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18218
lt_cv_sys_global_symbol_to_c_name_address \
18219
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18220
old_postinstall_cmds old_postuninstall_cmds \
18224
lt_prog_compiler_wl_GCJ \
18225
lt_prog_compiler_pic_GCJ \
18226
lt_prog_compiler_static_GCJ \
18227
lt_prog_compiler_no_builtin_flag_GCJ \
18228
export_dynamic_flag_spec_GCJ \
18229
thread_safe_flag_spec_GCJ \
18230
whole_archive_flag_spec_GCJ \
18231
enable_shared_with_static_runtimes_GCJ \
18232
old_archive_cmds_GCJ \
18233
old_archive_from_new_cmds_GCJ \
18234
predep_objects_GCJ \
18235
postdep_objects_GCJ \
18238
compiler_lib_search_path_GCJ \
18240
archive_expsym_cmds_GCJ \
18241
postinstall_cmds_GCJ \
18242
postuninstall_cmds_GCJ \
18243
old_archive_from_expsyms_cmds_GCJ \
18244
allow_undefined_flag_GCJ \
18245
no_undefined_flag_GCJ \
18246
export_symbols_cmds_GCJ \
18247
hardcode_libdir_flag_spec_GCJ \
18248
hardcode_libdir_flag_spec_ld_GCJ \
18249
hardcode_libdir_separator_GCJ \
18250
hardcode_automatic_GCJ \
18252
module_expsym_cmds_GCJ \
18253
lt_cv_prog_compiler_c_o_GCJ \
18254
exclude_expsyms_GCJ \
18255
include_expsyms_GCJ; do
18258
old_archive_cmds_GCJ | \
18259
old_archive_from_new_cmds_GCJ | \
18260
archive_cmds_GCJ | \
18261
archive_expsym_cmds_GCJ | \
18262
module_cmds_GCJ | \
18263
module_expsym_cmds_GCJ | \
18264
old_archive_from_expsyms_cmds_GCJ | \
18265
export_symbols_cmds_GCJ | \
18266
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18267
postinstall_cmds | postuninstall_cmds | \
18268
old_postinstall_cmds | old_postuninstall_cmds | \
18269
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18270
# Double-quote double-evaled strings.
18271
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18274
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18280
*'\$0 --fallback-echo"')
18281
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18287
cat <<__EOF__ >> "$cfgfile"
18288
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18290
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18292
# Shell to use when invoking shell scripts.
18295
# Whether or not to build shared libraries.
18296
build_libtool_libs=$enable_shared
18298
# Whether or not to build static libraries.
18299
build_old_libs=$enable_static
18301
# Whether or not to add -lc for building shared libraries.
18302
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18304
# Whether or not to disallow shared libs when runtime libs are static
18305
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18307
# Whether or not to optimize for fast installation.
18308
fast_install=$enable_fast_install
18311
host_alias=$host_alias
18314
# An echo program that does not interpret backslashes.
18319
AR_FLAGS=$lt_AR_FLAGS
18324
# A language-specific compiler.
18325
CC=$lt_compiler_GCJ
18327
# Is the compiler the GNU C compiler?
18333
# The linker used to build libraries.
18336
# Whether we need hard or soft links.
18339
# A BSD-compatible nm program.
18342
# A symbol stripping program
18345
# Used to examine libraries when file_magic_cmd begins "file"
18346
MAGIC_CMD=$MAGIC_CMD
18348
# Used on cygwin: DLL creation program.
18351
# Used on cygwin: object dumper.
18354
# Used on cygwin: assembler.
18357
# The name of the directory that contains temporary libtool files.
18360
# How to create reloadable object files.
18361
reload_flag=$lt_reload_flag
18362
reload_cmds=$lt_reload_cmds
18364
# How to pass a linker flag through the compiler.
18365
wl=$lt_lt_prog_compiler_wl_GCJ
18367
# Object file suffix (normally "o").
18368
objext="$ac_objext"
18370
# Old archive suffix (normally "a").
18373
# Shared library suffix (normally ".so").
18374
shrext_cmds='$shrext_cmds'
18376
# Executable file suffix (normally "").
18379
# Additional compiler flags for building library objects.
18380
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18383
# What is the maximum length of a command?
18384
max_cmd_len=$lt_cv_sys_max_cmd_len
18386
# Does compiler simultaneously support -c and -o options?
18387
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18389
# Must we lock files when doing compilation ?
18390
need_locks=$lt_need_locks
18392
# Do we need the lib prefix for modules?
18393
need_lib_prefix=$need_lib_prefix
18395
# Do we need a version for libraries?
18396
need_version=$need_version
18398
# Whether dlopen is supported.
18399
dlopen_support=$enable_dlopen
18401
# Whether dlopen of programs is supported.
18402
dlopen_self=$enable_dlopen_self
18404
# Whether dlopen of statically linked programs is supported.
18405
dlopen_self_static=$enable_dlopen_self_static
18407
# Compiler flag to prevent dynamic linking.
18408
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18410
# Compiler flag to turn off builtin functions.
18411
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18413
# Compiler flag to allow reflexive dlopens.
18414
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18416
# Compiler flag to generate shared objects directly from archives.
18417
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18419
# Compiler flag to generate thread-safe objects.
18420
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18422
# Library versioning type.
18423
version_type=$version_type
18425
# Format of library name prefix.
18426
libname_spec=$lt_libname_spec
18428
# List of archive names. First name is the real one, the rest are links.
18429
# The last name is the one that the linker finds with -lNAME.
18430
library_names_spec=$lt_library_names_spec
18432
# The coded name of the library, if different from the real name.
18433
soname_spec=$lt_soname_spec
18435
# Commands used to build and install an old-style archive.
18437
old_archive_cmds=$lt_old_archive_cmds_GCJ
18438
old_postinstall_cmds=$lt_old_postinstall_cmds
18439
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18441
# Create an old-style archive from a shared archive.
18442
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18444
# Create a temporary old-style archive to link instead of a shared archive.
18445
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18447
# Commands used to build and install a shared archive.
18448
archive_cmds=$lt_archive_cmds_GCJ
18449
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18450
postinstall_cmds=$lt_postinstall_cmds
18451
postuninstall_cmds=$lt_postuninstall_cmds
18453
# Commands used to build a loadable module (assumed same as above if empty)
18454
module_cmds=$lt_module_cmds_GCJ
18455
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18457
# Commands to strip libraries.
18458
old_striplib=$lt_old_striplib
18459
striplib=$lt_striplib
18461
# Dependencies to place before the objects being linked to create a
18463
predep_objects=$lt_predep_objects_GCJ
18465
# Dependencies to place after the objects being linked to create a
18467
postdep_objects=$lt_postdep_objects_GCJ
18469
# Dependencies to place before the objects being linked to create a
18471
predeps=$lt_predeps_GCJ
18473
# Dependencies to place after the objects being linked to create a
18475
postdeps=$lt_postdeps_GCJ
18477
# The library search path used internally by the compiler when linking
18478
# a shared library.
18479
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18481
# Method to check whether dependent libraries are shared objects.
18482
deplibs_check_method=$lt_deplibs_check_method
18484
# Command to use when deplibs_check_method == file_magic.
18485
file_magic_cmd=$lt_file_magic_cmd
18487
# Flag that allows shared libraries with undefined symbols to be built.
18488
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18490
# Flag that forces no undefined symbols.
18491
no_undefined_flag=$lt_no_undefined_flag_GCJ
18493
# Commands used to finish a libtool library installation in a directory.
18494
finish_cmds=$lt_finish_cmds
18496
# Same as above, but a single script fragment to be evaled but not shown.
18497
finish_eval=$lt_finish_eval
18499
# Take the output of nm and produce a listing of raw symbols and C names.
18500
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18502
# Transform the output of nm in a proper C declaration
18503
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18505
# Transform the output of nm in a C name address pair
18506
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18508
# This is the shared library runtime path variable.
18509
runpath_var=$runpath_var
18511
# This is the shared library path variable.
18512
shlibpath_var=$shlibpath_var
18514
# Is shlibpath searched before the hard-coded library search path?
18515
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18517
# How to hardcode a shared library path into an executable.
18518
hardcode_action=$hardcode_action_GCJ
18520
# Whether we should hardcode library paths into libraries.
18521
hardcode_into_libs=$hardcode_into_libs
18523
# Flag to hardcode \$libdir into a binary during linking.
18524
# This must work even if \$libdir does not exist.
18525
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18527
# If ld is used when linking, flag to hardcode \$libdir into
18528
# a binary during linking. This must work even if \$libdir does
18530
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18532
# Whether we need a single -rpath flag with a separated argument.
18533
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18535
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18536
# resulting binary.
18537
hardcode_direct=$hardcode_direct_GCJ
18539
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18540
# resulting binary.
18541
hardcode_minus_L=$hardcode_minus_L_GCJ
18543
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18544
# the resulting binary.
18545
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18547
# Set to yes if building a shared library automatically hardcodes DIR into the library
18548
# and all subsequent libraries and executables linked against it.
18549
hardcode_automatic=$hardcode_automatic_GCJ
18551
# Variables whose values should be saved in libtool wrapper scripts and
18552
# restored at relink time.
18553
variables_saved_for_relink="$variables_saved_for_relink"
18555
# Whether libtool must link a program against all its dependency libraries.
18556
link_all_deplibs=$link_all_deplibs_GCJ
18558
# Compile-time system search path for libraries
18559
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18561
# Run-time system search path for libraries
18562
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18564
# Fix the shell variable \$srcfile for the compiler.
18565
fix_srcfile_path="$fix_srcfile_path_GCJ"
18567
# Set to yes if exported symbols are required.
18568
always_export_symbols=$always_export_symbols_GCJ
18570
# The commands to list exported symbols.
18571
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18573
# The commands to extract the exported symbol list from a shared archive.
18574
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18576
# Symbols that should not be listed in the preloaded symbols.
18577
exclude_expsyms=$lt_exclude_expsyms_GCJ
18579
# Symbols that must always be exported.
18580
include_expsyms=$lt_include_expsyms_GCJ
18582
# ### END LIBTOOL TAG CONFIG: $tagname
18588
# If there is no Makefile yet, we rely on a make rule to execute
18589
# `config.status --recheck' to rerun these tests and create the
18590
# libtool script then.
18591
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18592
if test -f "$ltmain_in"; then
18593
test -f Makefile && make "$ltmain"
18599
ac_cpp='$CPP $CPPFLAGS'
18600
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18601
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18602
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18615
# Source file extension for RC test sources.
18618
# Object file extension for compiled RC test sources.
18622
# Code to be used in simple compile tests
18623
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18625
# Code to be used in simple link tests
18626
lt_simple_link_test_code="$lt_simple_compile_test_code"
18628
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18630
# If no C compiler was specified, use CC.
18633
# Allow CC to be a program name with arguments.
18637
# Allow CC to be a program name with arguments.
18642
lt_cv_prog_compiler_c_o_RC=yes
18644
# The else clause should only fire when bootstrapping the
18645
# libtool distribution, otherwise you forgot to ship ltmain.sh
18646
# with your package, and you will get complaints that there are
18647
# no rules to generate ltmain.sh.
18648
if test -f "$ltmain"; then
18649
# See if we are running on zsh, and set the options which allow our commands through
18650
# without removal of \ escapes.
18651
if test -n "${ZSH_VERSION+set}" ; then
18652
setopt NO_GLOB_SUBST
18654
# Now quote all the things that may contain metacharacters while being
18655
# careful not to overquote the AC_SUBSTed values. We take copies of the
18656
# variables and quote the copies for generation of the libtool script.
18657
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18659
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18660
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18661
deplibs_check_method reload_flag reload_cmds need_locks \
18662
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18663
lt_cv_sys_global_symbol_to_c_name_address \
18664
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18665
old_postinstall_cmds old_postuninstall_cmds \
18669
lt_prog_compiler_wl_RC \
18670
lt_prog_compiler_pic_RC \
18671
lt_prog_compiler_static_RC \
18672
lt_prog_compiler_no_builtin_flag_RC \
18673
export_dynamic_flag_spec_RC \
18674
thread_safe_flag_spec_RC \
18675
whole_archive_flag_spec_RC \
18676
enable_shared_with_static_runtimes_RC \
18677
old_archive_cmds_RC \
18678
old_archive_from_new_cmds_RC \
18679
predep_objects_RC \
18680
postdep_objects_RC \
18683
compiler_lib_search_path_RC \
18685
archive_expsym_cmds_RC \
18686
postinstall_cmds_RC \
18687
postuninstall_cmds_RC \
18688
old_archive_from_expsyms_cmds_RC \
18689
allow_undefined_flag_RC \
18690
no_undefined_flag_RC \
18691
export_symbols_cmds_RC \
18692
hardcode_libdir_flag_spec_RC \
18693
hardcode_libdir_flag_spec_ld_RC \
18694
hardcode_libdir_separator_RC \
18695
hardcode_automatic_RC \
18697
module_expsym_cmds_RC \
18698
lt_cv_prog_compiler_c_o_RC \
18699
exclude_expsyms_RC \
18700
include_expsyms_RC; do
18703
old_archive_cmds_RC | \
18704
old_archive_from_new_cmds_RC | \
18705
archive_cmds_RC | \
18706
archive_expsym_cmds_RC | \
18708
module_expsym_cmds_RC | \
18709
old_archive_from_expsyms_cmds_RC | \
18710
export_symbols_cmds_RC | \
18711
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18712
postinstall_cmds | postuninstall_cmds | \
18713
old_postinstall_cmds | old_postuninstall_cmds | \
18714
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18715
# Double-quote double-evaled strings.
18716
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18719
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18725
*'\$0 --fallback-echo"')
18726
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18732
cat <<__EOF__ >> "$cfgfile"
18733
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18735
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18737
# Shell to use when invoking shell scripts.
18740
# Whether or not to build shared libraries.
18741
build_libtool_libs=$enable_shared
18743
# Whether or not to build static libraries.
18744
build_old_libs=$enable_static
18746
# Whether or not to add -lc for building shared libraries.
18747
build_libtool_need_lc=$archive_cmds_need_lc_RC
18749
# Whether or not to disallow shared libs when runtime libs are static
18750
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18752
# Whether or not to optimize for fast installation.
18753
fast_install=$enable_fast_install
18756
host_alias=$host_alias
18759
# An echo program that does not interpret backslashes.
18764
AR_FLAGS=$lt_AR_FLAGS
18769
# A language-specific compiler.
18772
# Is the compiler the GNU C compiler?
18778
# The linker used to build libraries.
18781
# Whether we need hard or soft links.
18784
# A BSD-compatible nm program.
18787
# A symbol stripping program
18790
# Used to examine libraries when file_magic_cmd begins "file"
18791
MAGIC_CMD=$MAGIC_CMD
18793
# Used on cygwin: DLL creation program.
18796
# Used on cygwin: object dumper.
18799
# Used on cygwin: assembler.
18802
# The name of the directory that contains temporary libtool files.
18805
# How to create reloadable object files.
18806
reload_flag=$lt_reload_flag
18807
reload_cmds=$lt_reload_cmds
18809
# How to pass a linker flag through the compiler.
18810
wl=$lt_lt_prog_compiler_wl_RC
18812
# Object file suffix (normally "o").
18813
objext="$ac_objext"
18815
# Old archive suffix (normally "a").
18818
# Shared library suffix (normally ".so").
18819
shrext_cmds='$shrext_cmds'
18821
# Executable file suffix (normally "").
18824
# Additional compiler flags for building library objects.
18825
pic_flag=$lt_lt_prog_compiler_pic_RC
18828
# What is the maximum length of a command?
18829
max_cmd_len=$lt_cv_sys_max_cmd_len
18831
# Does compiler simultaneously support -c and -o options?
18832
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18834
# Must we lock files when doing compilation ?
18835
need_locks=$lt_need_locks
18837
# Do we need the lib prefix for modules?
18838
need_lib_prefix=$need_lib_prefix
18840
# Do we need a version for libraries?
18841
need_version=$need_version
18843
# Whether dlopen is supported.
18844
dlopen_support=$enable_dlopen
18846
# Whether dlopen of programs is supported.
18847
dlopen_self=$enable_dlopen_self
18849
# Whether dlopen of statically linked programs is supported.
18850
dlopen_self_static=$enable_dlopen_self_static
18852
# Compiler flag to prevent dynamic linking.
18853
link_static_flag=$lt_lt_prog_compiler_static_RC
18855
# Compiler flag to turn off builtin functions.
18856
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18858
# Compiler flag to allow reflexive dlopens.
18859
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18861
# Compiler flag to generate shared objects directly from archives.
18862
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18864
# Compiler flag to generate thread-safe objects.
18865
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18867
# Library versioning type.
18868
version_type=$version_type
18870
# Format of library name prefix.
18871
libname_spec=$lt_libname_spec
18873
# List of archive names. First name is the real one, the rest are links.
18874
# The last name is the one that the linker finds with -lNAME.
18875
library_names_spec=$lt_library_names_spec
18877
# The coded name of the library, if different from the real name.
18878
soname_spec=$lt_soname_spec
18880
# Commands used to build and install an old-style archive.
18882
old_archive_cmds=$lt_old_archive_cmds_RC
18883
old_postinstall_cmds=$lt_old_postinstall_cmds
18884
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18886
# Create an old-style archive from a shared archive.
18887
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18889
# Create a temporary old-style archive to link instead of a shared archive.
18890
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18892
# Commands used to build and install a shared archive.
18893
archive_cmds=$lt_archive_cmds_RC
18894
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18895
postinstall_cmds=$lt_postinstall_cmds
18896
postuninstall_cmds=$lt_postuninstall_cmds
18898
# Commands used to build a loadable module (assumed same as above if empty)
18899
module_cmds=$lt_module_cmds_RC
18900
module_expsym_cmds=$lt_module_expsym_cmds_RC
18902
# Commands to strip libraries.
18903
old_striplib=$lt_old_striplib
18904
striplib=$lt_striplib
18906
# Dependencies to place before the objects being linked to create a
18908
predep_objects=$lt_predep_objects_RC
18910
# Dependencies to place after the objects being linked to create a
18912
postdep_objects=$lt_postdep_objects_RC
18914
# Dependencies to place before the objects being linked to create a
18916
predeps=$lt_predeps_RC
18918
# Dependencies to place after the objects being linked to create a
18920
postdeps=$lt_postdeps_RC
18922
# The library search path used internally by the compiler when linking
18923
# a shared library.
18924
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18926
# Method to check whether dependent libraries are shared objects.
18927
deplibs_check_method=$lt_deplibs_check_method
18929
# Command to use when deplibs_check_method == file_magic.
18930
file_magic_cmd=$lt_file_magic_cmd
18932
# Flag that allows shared libraries with undefined symbols to be built.
18933
allow_undefined_flag=$lt_allow_undefined_flag_RC
18935
# Flag that forces no undefined symbols.
18936
no_undefined_flag=$lt_no_undefined_flag_RC
18938
# Commands used to finish a libtool library installation in a directory.
18939
finish_cmds=$lt_finish_cmds
18941
# Same as above, but a single script fragment to be evaled but not shown.
18942
finish_eval=$lt_finish_eval
18944
# Take the output of nm and produce a listing of raw symbols and C names.
18945
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18947
# Transform the output of nm in a proper C declaration
18948
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18950
# Transform the output of nm in a C name address pair
18951
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18953
# This is the shared library runtime path variable.
18954
runpath_var=$runpath_var
18956
# This is the shared library path variable.
18957
shlibpath_var=$shlibpath_var
18959
# Is shlibpath searched before the hard-coded library search path?
18960
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18962
# How to hardcode a shared library path into an executable.
18963
hardcode_action=$hardcode_action_RC
18965
# Whether we should hardcode library paths into libraries.
18966
hardcode_into_libs=$hardcode_into_libs
18968
# Flag to hardcode \$libdir into a binary during linking.
18969
# This must work even if \$libdir does not exist.
18970
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18972
# If ld is used when linking, flag to hardcode \$libdir into
18973
# a binary during linking. This must work even if \$libdir does
18975
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18977
# Whether we need a single -rpath flag with a separated argument.
18978
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18980
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18981
# resulting binary.
18982
hardcode_direct=$hardcode_direct_RC
18984
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18985
# resulting binary.
18986
hardcode_minus_L=$hardcode_minus_L_RC
18988
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18989
# the resulting binary.
18990
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18992
# Set to yes if building a shared library automatically hardcodes DIR into the library
18993
# and all subsequent libraries and executables linked against it.
18994
hardcode_automatic=$hardcode_automatic_RC
18996
# Variables whose values should be saved in libtool wrapper scripts and
18997
# restored at relink time.
18998
variables_saved_for_relink="$variables_saved_for_relink"
19000
# Whether libtool must link a program against all its dependency libraries.
19001
link_all_deplibs=$link_all_deplibs_RC
19003
# Compile-time system search path for libraries
19004
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19006
# Run-time system search path for libraries
19007
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19009
# Fix the shell variable \$srcfile for the compiler.
19010
fix_srcfile_path="$fix_srcfile_path_RC"
19012
# Set to yes if exported symbols are required.
19013
always_export_symbols=$always_export_symbols_RC
19015
# The commands to list exported symbols.
19016
export_symbols_cmds=$lt_export_symbols_cmds_RC
19018
# The commands to extract the exported symbol list from a shared archive.
19019
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19021
# Symbols that should not be listed in the preloaded symbols.
19022
exclude_expsyms=$lt_exclude_expsyms_RC
19024
# Symbols that must always be exported.
19025
include_expsyms=$lt_include_expsyms_RC
19027
# ### END LIBTOOL TAG CONFIG: $tagname
19033
# If there is no Makefile yet, we rely on a make rule to execute
19034
# `config.status --recheck' to rerun these tests and create the
19035
# libtool script then.
19036
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19037
if test -f "$ltmain_in"; then
19038
test -f Makefile && make "$ltmain"
19044
ac_cpp='$CPP $CPPFLAGS'
19045
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19046
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19047
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19054
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19055
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19056
{ (exit 1); exit 1; }; }
19060
# Append the new tag name to the list of available tags.
19061
if test -n "$tagname" ; then
19062
available_tags="$available_tags $tagname"
19068
# Now substitute the updated list of available tags.
19069
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19070
mv "${ofile}T" "$ofile"
19074
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19075
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19076
{ (exit 1); exit 1; }; }
19082
# This can be used to rebuild libtool when needed
19083
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19085
# Always use our own libtool.
19086
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19088
# Prevent multiple expansion
19110
# Check for dependencies
19113
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19114
if test -n "$ac_tool_prefix"; then
19115
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19116
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19117
echo "$as_me:$LINENO: checking for $ac_word" >&5
19118
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19119
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19120
echo $ECHO_N "(cached) $ECHO_C" >&6
19122
case $PKG_CONFIG in
19124
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19127
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19128
for as_dir in $PATH
19131
test -z "$as_dir" && as_dir=.
19132
for ac_exec_ext in '' $ac_executable_extensions; do
19133
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19134
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19135
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19144
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19146
if test -n "$PKG_CONFIG"; then
19147
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19148
echo "${ECHO_T}$PKG_CONFIG" >&6
19150
echo "$as_me:$LINENO: result: no" >&5
19151
echo "${ECHO_T}no" >&6
19155
if test -z "$ac_cv_path_PKG_CONFIG"; then
19156
ac_pt_PKG_CONFIG=$PKG_CONFIG
19157
# Extract the first word of "pkg-config", so it can be a program name with args.
19158
set dummy pkg-config; ac_word=$2
19159
echo "$as_me:$LINENO: checking for $ac_word" >&5
19160
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19161
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19162
echo $ECHO_N "(cached) $ECHO_C" >&6
19164
case $ac_pt_PKG_CONFIG in
19166
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19169
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19170
for as_dir in $PATH
19173
test -z "$as_dir" && as_dir=.
19174
for ac_exec_ext in '' $ac_executable_extensions; do
19175
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19176
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19177
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19186
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19188
if test -n "$ac_pt_PKG_CONFIG"; then
19189
echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19190
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
19192
echo "$as_me:$LINENO: result: no" >&5
19193
echo "${ECHO_T}no" >&6
19196
PKG_CONFIG=$ac_pt_PKG_CONFIG
19198
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19202
if test -n "$PKG_CONFIG"; then
19203
_pkg_min_version=0.9.0
19204
echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19205
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
19206
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19207
echo "$as_me:$LINENO: result: yes" >&5
19208
echo "${ECHO_T}yes" >&6
19210
echo "$as_me:$LINENO: result: no" >&5
19211
echo "${ECHO_T}no" >&6
19218
echo "$as_me:$LINENO: checking for DEP" >&5
19219
echo $ECHO_N "checking for DEP... $ECHO_C" >&6
19221
if test -n "$PKG_CONFIG"; then
19222
if test -n "$PKG_CONFIG" && \
19223
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto fontsproto\"") >&5
19224
($PKG_CONFIG --exists --print-errors "xproto fontsproto") 2>&5
19226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227
(exit $ac_status); }; then
19228
pkg_cv_DEP_CFLAGS=`$PKG_CONFIG --cflags "xproto fontsproto" 2>/dev/null`
19235
if test -n "$PKG_CONFIG"; then
19236
if test -n "$PKG_CONFIG" && \
19237
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto fontsproto\"") >&5
19238
($PKG_CONFIG --exists --print-errors "xproto fontsproto") 2>&5
19240
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241
(exit $ac_status); }; then
19242
pkg_cv_DEP_LIBS=`$PKG_CONFIG --libs "xproto fontsproto" 2>/dev/null`
19250
if test $pkg_failed = yes; then
19251
DEP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto fontsproto"`
19252
# Put the nasty error message in config.log where it belongs
19253
echo "$DEP_PKG_ERRORS" 1>&5
19255
{ { echo "$as_me:$LINENO: error: Package requirements (xproto fontsproto) were not met.
19256
Consider adjusting the PKG_CONFIG_PATH environment variable if you
19257
installed software in a non-standard prefix.
19259
Alternatively you may set the DEP_CFLAGS and DEP_LIBS environment variables
19260
to avoid the need to call pkg-config. See the pkg-config man page for
19262
echo "$as_me: error: Package requirements (xproto fontsproto) were not met.
19263
Consider adjusting the PKG_CONFIG_PATH environment variable if you
19264
installed software in a non-standard prefix.
19266
Alternatively you may set the DEP_CFLAGS and DEP_LIBS environment variables
19267
to avoid the need to call pkg-config. See the pkg-config man page for
19268
more details." >&2;}
19269
{ (exit 1); exit 1; }; }
19270
elif test $pkg_failed = untried; then
19271
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
19272
is in your PATH or set the PKG_CONFIG environment variable to the full
19273
path to pkg-config.
19275
Alternatively you may set the DEP_CFLAGS and DEP_LIBS environment variables
19276
to avoid the need to call pkg-config. See the pkg-config man page for
19279
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19280
See \`config.log' for more details." >&5
19281
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
19282
is in your PATH or set the PKG_CONFIG environment variable to the full
19283
path to pkg-config.
19285
Alternatively you may set the DEP_CFLAGS and DEP_LIBS environment variables
19286
to avoid the need to call pkg-config. See the pkg-config man page for
19289
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19290
See \`config.log' for more details." >&2;}
19291
{ (exit 1); exit 1; }; }
19293
DEP_CFLAGS=$pkg_cv_DEP_CFLAGS
19294
DEP_LIBS=$pkg_cv_DEP_LIBS
19300
# Split out so we don't include xtrans C flags in fs.pc
19304
echo "$as_me:$LINENO: checking for XTRANS" >&5
19305
echo $ECHO_N "checking for XTRANS... $ECHO_C" >&6
19307
if test -n "$PKG_CONFIG"; then
19308
if test -n "$PKG_CONFIG" && \
19309
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtrans\"") >&5
19310
($PKG_CONFIG --exists --print-errors "xtrans") 2>&5
19312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313
(exit $ac_status); }; then
19314
pkg_cv_XTRANS_CFLAGS=`$PKG_CONFIG --cflags "xtrans" 2>/dev/null`
19321
if test -n "$PKG_CONFIG"; then
19322
if test -n "$PKG_CONFIG" && \
19323
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtrans\"") >&5
19324
($PKG_CONFIG --exists --print-errors "xtrans") 2>&5
19326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327
(exit $ac_status); }; then
19328
pkg_cv_XTRANS_LIBS=`$PKG_CONFIG --libs "xtrans" 2>/dev/null`
19336
if test $pkg_failed = yes; then
19337
XTRANS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xtrans"`
19338
# Put the nasty error message in config.log where it belongs
19339
echo "$XTRANS_PKG_ERRORS" 1>&5
19341
{ { echo "$as_me:$LINENO: error: Package requirements (xtrans) were not met.
19342
Consider adjusting the PKG_CONFIG_PATH environment variable if you
19343
installed software in a non-standard prefix.
19345
Alternatively you may set the XTRANS_CFLAGS and XTRANS_LIBS environment variables
19346
to avoid the need to call pkg-config. See the pkg-config man page for
19348
echo "$as_me: error: Package requirements (xtrans) were not met.
19349
Consider adjusting the PKG_CONFIG_PATH environment variable if you
19350
installed software in a non-standard prefix.
19352
Alternatively you may set the XTRANS_CFLAGS and XTRANS_LIBS environment variables
19353
to avoid the need to call pkg-config. See the pkg-config man page for
19354
more details." >&2;}
19355
{ (exit 1); exit 1; }; }
19356
elif test $pkg_failed = untried; then
19357
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
19358
is in your PATH or set the PKG_CONFIG environment variable to the full
19359
path to pkg-config.
19361
Alternatively you may set the XTRANS_CFLAGS and XTRANS_LIBS environment variables
19362
to avoid the need to call pkg-config. See the pkg-config man page for
19365
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19366
See \`config.log' for more details." >&5
19367
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
19368
is in your PATH or set the PKG_CONFIG environment variable to the full
19369
path to pkg-config.
19371
Alternatively you may set the XTRANS_CFLAGS and XTRANS_LIBS environment variables
19372
to avoid the need to call pkg-config. See the pkg-config man page for
19375
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19376
See \`config.log' for more details." >&2;}
19377
{ (exit 1); exit 1; }; }
19379
XTRANS_CFLAGS=$pkg_cv_XTRANS_CFLAGS
19380
XTRANS_LIBS=$pkg_cv_XTRANS_LIBS
19386
# Check whether --enable-unix-transport or --disable-unix-transport was given.
19387
if test "${enable_unix_transport+set}" = set; then
19388
enableval="$enable_unix_transport"
19389
UNIXCONN=$enableval
19393
# Check whether --enable-tcp-transport or --disable-tcp-transport was given.
19394
if test "${enable_tcp_transport+set}" = set; then
19395
enableval="$enable_tcp_transport"
19400
if test "$UNIXCONN" = "yes"; then
19402
cat >>confdefs.h <<\_ACEOF
19407
if test "$TCPCONN" = "yes"; then
19409
cat >>confdefs.h <<\_ACEOF
19413
# SVR4 hides these in libraries other than libc
19414
echo "$as_me:$LINENO: checking for library containing socket" >&5
19415
echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
19416
if test "${ac_cv_search_socket+set}" = set; then
19417
echo $ECHO_N "(cached) $ECHO_C" >&6
19419
ac_func_search_save_LIBS=$LIBS
19420
ac_cv_search_socket=no
19421
cat >conftest.$ac_ext <<_ACEOF
19424
cat confdefs.h >>conftest.$ac_ext
19425
cat >>conftest.$ac_ext <<_ACEOF
19426
/* end confdefs.h. */
19428
/* Override any gcc2 internal prototype to avoid an error. */
19432
/* We use char because int might match the return type of a gcc2
19433
builtin and then its argument prototype would still apply. */
19443
rm -f conftest.$ac_objext conftest$ac_exeext
19444
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19445
(eval $ac_link) 2>conftest.er1
19447
grep -v '^ *+' conftest.er1 >conftest.err
19449
cat conftest.err >&5
19450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451
(exit $ac_status); } &&
19452
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19453
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454
(eval $ac_try) 2>&5
19456
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457
(exit $ac_status); }; } &&
19458
{ ac_try='test -s conftest$ac_exeext'
19459
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460
(eval $ac_try) 2>&5
19462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463
(exit $ac_status); }; }; then
19464
ac_cv_search_socket="none required"
19466
echo "$as_me: failed program was:" >&5
19467
sed 's/^/| /' conftest.$ac_ext >&5
19470
rm -f conftest.err conftest.$ac_objext \
19471
conftest$ac_exeext conftest.$ac_ext
19472
if test "$ac_cv_search_socket" = no; then
19473
for ac_lib in socket; do
19474
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19475
cat >conftest.$ac_ext <<_ACEOF
19478
cat confdefs.h >>conftest.$ac_ext
19479
cat >>conftest.$ac_ext <<_ACEOF
19480
/* end confdefs.h. */
19482
/* Override any gcc2 internal prototype to avoid an error. */
19486
/* We use char because int might match the return type of a gcc2
19487
builtin and then its argument prototype would still apply. */
19497
rm -f conftest.$ac_objext conftest$ac_exeext
19498
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19499
(eval $ac_link) 2>conftest.er1
19501
grep -v '^ *+' conftest.er1 >conftest.err
19503
cat conftest.err >&5
19504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505
(exit $ac_status); } &&
19506
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19507
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508
(eval $ac_try) 2>&5
19510
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511
(exit $ac_status); }; } &&
19512
{ ac_try='test -s conftest$ac_exeext'
19513
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514
(eval $ac_try) 2>&5
19516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517
(exit $ac_status); }; }; then
19518
ac_cv_search_socket="-l$ac_lib"
19521
echo "$as_me: failed program was:" >&5
19522
sed 's/^/| /' conftest.$ac_ext >&5
19525
rm -f conftest.err conftest.$ac_objext \
19526
conftest$ac_exeext conftest.$ac_ext
19529
LIBS=$ac_func_search_save_LIBS
19531
echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
19532
echo "${ECHO_T}$ac_cv_search_socket" >&6
19533
if test "$ac_cv_search_socket" != no; then
19534
test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
19538
echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
19539
echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
19540
if test "${ac_cv_search_gethostbyname+set}" = set; then
19541
echo $ECHO_N "(cached) $ECHO_C" >&6
19543
ac_func_search_save_LIBS=$LIBS
19544
ac_cv_search_gethostbyname=no
19545
cat >conftest.$ac_ext <<_ACEOF
19548
cat confdefs.h >>conftest.$ac_ext
19549
cat >>conftest.$ac_ext <<_ACEOF
19550
/* end confdefs.h. */
19552
/* Override any gcc2 internal prototype to avoid an error. */
19556
/* We use char because int might match the return type of a gcc2
19557
builtin and then its argument prototype would still apply. */
19558
char gethostbyname ();
19567
rm -f conftest.$ac_objext conftest$ac_exeext
19568
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19569
(eval $ac_link) 2>conftest.er1
19571
grep -v '^ *+' conftest.er1 >conftest.err
19573
cat conftest.err >&5
19574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575
(exit $ac_status); } &&
19576
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19577
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578
(eval $ac_try) 2>&5
19580
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581
(exit $ac_status); }; } &&
19582
{ ac_try='test -s conftest$ac_exeext'
19583
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584
(eval $ac_try) 2>&5
19586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587
(exit $ac_status); }; }; then
19588
ac_cv_search_gethostbyname="none required"
19590
echo "$as_me: failed program was:" >&5
19591
sed 's/^/| /' conftest.$ac_ext >&5
19594
rm -f conftest.err conftest.$ac_objext \
19595
conftest$ac_exeext conftest.$ac_ext
19596
if test "$ac_cv_search_gethostbyname" = no; then
19597
for ac_lib in nsl; do
19598
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19599
cat >conftest.$ac_ext <<_ACEOF
19602
cat confdefs.h >>conftest.$ac_ext
19603
cat >>conftest.$ac_ext <<_ACEOF
19604
/* end confdefs.h. */
19606
/* Override any gcc2 internal prototype to avoid an error. */
19610
/* We use char because int might match the return type of a gcc2
19611
builtin and then its argument prototype would still apply. */
19612
char gethostbyname ();
19621
rm -f conftest.$ac_objext conftest$ac_exeext
19622
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19623
(eval $ac_link) 2>conftest.er1
19625
grep -v '^ *+' conftest.er1 >conftest.err
19627
cat conftest.err >&5
19628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629
(exit $ac_status); } &&
19630
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19631
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632
(eval $ac_try) 2>&5
19634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635
(exit $ac_status); }; } &&
19636
{ ac_try='test -s conftest$ac_exeext'
19637
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638
(eval $ac_try) 2>&5
19640
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641
(exit $ac_status); }; }; then
19642
ac_cv_search_gethostbyname="-l$ac_lib"
19645
echo "$as_me: failed program was:" >&5
19646
sed 's/^/| /' conftest.$ac_ext >&5
19649
rm -f conftest.err conftest.$ac_objext \
19650
conftest$ac_exeext conftest.$ac_ext
19653
LIBS=$ac_func_search_save_LIBS
19655
echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
19656
echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
19657
if test "$ac_cv_search_gethostbyname" != no; then
19658
test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
19663
# Needs to come after above checks for libsocket & libnsl for SVR4 systems
19664
# Check whether --enable-ipv6 or --disable-ipv6 was given.
19665
if test "${enable_ipv6+set}" = set; then
19666
enableval="$enable_ipv6"
19667
IPV6CONN=$enableval
19669
echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19670
echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
19671
if test "${ac_cv_func_getaddrinfo+set}" = set; then
19672
echo $ECHO_N "(cached) $ECHO_C" >&6
19674
cat >conftest.$ac_ext <<_ACEOF
19677
cat confdefs.h >>conftest.$ac_ext
19678
cat >>conftest.$ac_ext <<_ACEOF
19679
/* end confdefs.h. */
19680
/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
19681
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19682
#define getaddrinfo innocuous_getaddrinfo
19684
/* System header to define __stub macros and hopefully few prototypes,
19685
which can conflict with char getaddrinfo (); below.
19686
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19687
<limits.h> exists even on freestanding compilers. */
19690
# include <limits.h>
19692
# include <assert.h>
19697
/* Override any gcc2 internal prototype to avoid an error. */
19702
/* We use char because int might match the return type of a gcc2
19703
builtin and then its argument prototype would still apply. */
19704
char getaddrinfo ();
19705
/* The GNU C library defines this for functions which it implements
19706
to always fail with ENOSYS. Some functions are actually named
19707
something starting with __ and the normal name is an alias. */
19708
#if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
19711
char (*f) () = getaddrinfo;
19720
return f != getaddrinfo;
19725
rm -f conftest.$ac_objext conftest$ac_exeext
19726
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19727
(eval $ac_link) 2>conftest.er1
19729
grep -v '^ *+' conftest.er1 >conftest.err
19731
cat conftest.err >&5
19732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733
(exit $ac_status); } &&
19734
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19735
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736
(eval $ac_try) 2>&5
19738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739
(exit $ac_status); }; } &&
19740
{ ac_try='test -s conftest$ac_exeext'
19741
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742
(eval $ac_try) 2>&5
19744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745
(exit $ac_status); }; }; then
19746
ac_cv_func_getaddrinfo=yes
19748
echo "$as_me: failed program was:" >&5
19749
sed 's/^/| /' conftest.$ac_ext >&5
19751
ac_cv_func_getaddrinfo=no
19753
rm -f conftest.err conftest.$ac_objext \
19754
conftest$ac_exeext conftest.$ac_ext
19756
echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
19757
echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6
19758
if test $ac_cv_func_getaddrinfo = yes; then
19765
if test "$IPV6CONN" = "yes"; then
19767
cat >>confdefs.h <<\_ACEOF
19775
# Check fixesext configuration, strip extra digits from package version to
19776
# find the required protocol version
19778
ac_config_files="$ac_config_files Makefile src/Makefile libfs.pc"
19779
cat >confcache <<\_ACEOF
19780
# This file is a shell script that caches the results of configure
19781
# tests run on this system so they can be shared between configure
19782
# scripts and configure runs, see configure's option --config-cache.
19783
# It is not useful on other systems. If it contains results you don't
19784
# want to keep, you may remove or edit it.
19786
# config.status only pays attention to the cache file if you give it
19787
# the --recheck option to rerun configure.
19789
# `ac_cv_env_foo' variables (set or unset) will be overridden when
19790
# loading this file, other *unset* `ac_cv_foo' will be assigned the
19791
# following values.
19795
# The following way of writing the cache mishandles newlines in values,
19796
# but we know of no workaround that is simple, portable, and efficient.
19797
# So, don't put newlines in cache variables' values.
19798
# Ultrix sh set writes to stderr and can't be redirected directly,
19799
# and sets the high bit in the cache file unless we assign to the vars.
19802
case `(ac_space=' '; set | grep ac_space) 2>&1` in
19804
# `set' does not quote correctly, so add quotes (double-quote
19805
# substitution turns \\\\ into \\, and sed turns \\ into \).
19808
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19811
# `set' quotes correctly as required by POSIX, so do not add quotes.
19813
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19820
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19822
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19824
if diff $cache_file confcache >/dev/null 2>&1; then :; else
19825
if test -w $cache_file; then
19826
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19827
cat confcache >$cache_file
19829
echo "not updating unwritable cache $cache_file"
19834
test "x$prefix" = xNONE && prefix=$ac_default_prefix
19835
# Let make expand exec_prefix.
19836
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19838
# VPATH may cause trouble with some makes, so we remove $(srcdir),
19839
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19840
# trailing colons and then remove the whole line if VPATH becomes empty
19841
# (actually we leave an empty line to preserve line numbers).
19842
if test "x$srcdir" = x.; then
19843
ac_vpsub='/^[ ]*VPATH[ ]*=/{
19844
s/:*\$(srcdir):*/:/;
19845
s/:*\${srcdir}:*/:/;
19847
s/^\([^=]*=[ ]*\):*/\1/;
19853
DEFS=-DHAVE_CONFIG_H
19857
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19858
# 1. Remove the extension, and $U if already installed.
19859
ac_i=`echo "$ac_i" |
19860
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19862
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19863
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19865
LIBOBJS=$ac_libobjs
19867
LTLIBOBJS=$ac_ltlibobjs
19870
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19871
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19872
Usually this means the macro was only invoked conditionally." >&5
19873
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19874
Usually this means the macro was only invoked conditionally." >&2;}
19875
{ (exit 1); exit 1; }; }
19877
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19878
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19879
Usually this means the macro was only invoked conditionally." >&5
19880
echo "$as_me: error: conditional \"AMDEP\" was never defined.
19881
Usually this means the macro was only invoked conditionally." >&2;}
19882
{ (exit 1); exit 1; }; }
19884
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19885
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19886
Usually this means the macro was only invoked conditionally." >&5
19887
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19888
Usually this means the macro was only invoked conditionally." >&2;}
19889
{ (exit 1); exit 1; }; }
19891
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19892
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19893
Usually this means the macro was only invoked conditionally." >&5
19894
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19895
Usually this means the macro was only invoked conditionally." >&2;}
19896
{ (exit 1); exit 1; }; }
19899
: ${CONFIG_STATUS=./config.status}
19900
ac_clean_files_save=$ac_clean_files
19901
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19902
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19903
echo "$as_me: creating $CONFIG_STATUS" >&6;}
19904
cat >$CONFIG_STATUS <<_ACEOF
19906
# Generated by $as_me.
19907
# Run this file to recreate the current configuration.
19908
# Compiler output produced by configure, useful for debugging
19909
# configure, is in config.log if it exists.
19912
ac_cs_recheck=false
19914
SHELL=\${CONFIG_SHELL-$SHELL}
19917
cat >>$CONFIG_STATUS <<\_ACEOF
19918
## --------------------- ##
19919
## M4sh Initialization. ##
19920
## --------------------- ##
19922
# Be Bourne compatible
19923
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19926
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19927
# is contrary to our usage. Disable this feature.
19928
alias -g '${1+"$@"}'='"$@"'
19929
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19932
DUALCASE=1; export DUALCASE # for MKS sh
19934
# Support unset when possible.
19935
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19942
# Work around bugs in pre-3.0 UWIN ksh.
19943
$as_unset ENV MAIL MAILPATH
19950
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19951
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19952
LC_TELEPHONE LC_TIME
19954
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19955
eval $as_var=C; export $as_var
19961
# Required to use basename.
19962
if expr a : '\(a\)' >/dev/null 2>&1; then
19968
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19969
as_basename=basename
19975
# Name of the executable.
19976
as_me=`$as_basename "$0" ||
19977
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19978
X"$0" : 'X\(//\)$' \| \
19979
X"$0" : 'X\(/\)$' \| \
19980
. : '\(.\)' 2>/dev/null ||
19982
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19983
/^X\/\(\/\/\)$/{ s//\1/; q; }
19984
/^X\/\(\/\).*/{ s//\1/; q; }
19988
# PATH needs CR, and LINENO needs CR and PATH.
19989
# Avoid depending upon Character Ranges.
19990
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19991
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19992
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19993
as_cr_digits='0123456789'
19994
as_cr_alnum=$as_cr_Letters$as_cr_digits
19996
# The user is always right.
19997
if test "${PATH_SEPARATOR+set}" != set; then
19998
echo "#! /bin/sh" >conf$$.sh
19999
echo "exit 0" >>conf$$.sh
20001
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20010
as_lineno_1=$LINENO
20011
as_lineno_2=$LINENO
20012
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20013
test "x$as_lineno_1" != "x$as_lineno_2" &&
20014
test "x$as_lineno_3" = "x$as_lineno_2" || {
20015
# Find who we are. Look in the path if we contain no path at all
20018
*[\\/]* ) as_myself=$0 ;;
20019
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20020
for as_dir in $PATH
20023
test -z "$as_dir" && as_dir=.
20024
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20029
# We did not find ourselves, most probably we were run as `sh COMMAND'
20030
# in which case we are not to be found in the path.
20031
if test "x$as_myself" = x; then
20034
if test ! -f "$as_myself"; then
20035
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20036
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20037
{ (exit 1); exit 1; }; }
20039
case $CONFIG_SHELL in
20041
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20042
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20045
test -z "$as_dir" && as_dir=.
20046
for as_base in sh bash ksh sh5; do
20049
if ("$as_dir/$as_base" -c '
20050
as_lineno_1=$LINENO
20051
as_lineno_2=$LINENO
20052
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20053
test "x$as_lineno_1" != "x$as_lineno_2" &&
20054
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20055
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20056
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20057
CONFIG_SHELL=$as_dir/$as_base
20058
export CONFIG_SHELL
20059
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20067
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20068
# uniformly replaced by the line number. The first 'sed' inserts a
20069
# line-number line before each line; the second 'sed' does the real
20070
# work. The second script uses 'N' to pair each line-number line
20071
# with the numbered line, and appends trailing '-' during
20072
# substitution so that $LINENO is not a special case at line end.
20073
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20074
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20075
sed '=' <$as_myself |
20080
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20083
s,^['$as_cr_digits']*\n,,
20084
' >$as_me.lineno &&
20085
chmod +x $as_me.lineno ||
20086
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20087
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20088
{ (exit 1); exit 1; }; }
20090
# Don't try to exec as it changes $[0], causing all sort of problems
20091
# (the dirname of $[0] is not the place where we might find the
20092
# original and so on. Autoconf is especially sensible to this).
20094
# Exit status is that of the last command.
20099
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20100
*c*,-n*) ECHO_N= ECHO_C='
20102
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20103
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20106
if expr a : '\(a\)' >/dev/null 2>&1; then
20112
rm -f conf$$ conf$$.exe conf$$.file
20114
if ln -s conf$$.file conf$$ 2>/dev/null; then
20115
# We could just check for DJGPP; but this test a) works b) is more generic
20116
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20117
if test -f conf$$.exe; then
20118
# Don't use ln at all; we don't have any links
20123
elif ln conf$$.file conf$$ 2>/dev/null; then
20128
rm -f conf$$ conf$$.exe conf$$.file
20130
if mkdir -p . 2>/dev/null; then
20133
test -d ./-p && rmdir ./-p
20137
as_executable_p="test -f"
20139
# Sed expression to map a string onto a valid CPP name.
20140
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20142
# Sed expression to map a string onto a valid variable name.
20143
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20147
# We need space, tab and new line, in precisely that order.
20157
# Open the log real soon, to keep \$[0] and so on meaningful, and to
20158
# report actual input values of CONFIG_FILES etc. instead of their
20159
# values after options handling. Logging --version etc. is OK.
20163
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20164
## Running $as_me. ##
20169
This file was extended by libFS $as_me 3.0.0, which was
20170
generated by GNU Autoconf 2.59. Invocation command line was
20172
CONFIG_FILES = $CONFIG_FILES
20173
CONFIG_HEADERS = $CONFIG_HEADERS
20174
CONFIG_LINKS = $CONFIG_LINKS
20175
CONFIG_COMMANDS = $CONFIG_COMMANDS
20179
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20183
# Files that config.status was made for.
20184
if test -n "$ac_config_files"; then
20185
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20188
if test -n "$ac_config_headers"; then
20189
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20192
if test -n "$ac_config_links"; then
20193
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20196
if test -n "$ac_config_commands"; then
20197
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20200
cat >>$CONFIG_STATUS <<\_ACEOF
20203
\`$as_me' instantiates files from templates according to the
20204
current configuration.
20206
Usage: $0 [OPTIONS] [FILE]...
20208
-h, --help print this help, then exit
20209
-V, --version print version number, then exit
20210
-q, --quiet do not print progress messages
20211
-d, --debug don't remove temporary files
20212
--recheck update $as_me by reconfiguring in the same conditions
20213
--file=FILE[:TEMPLATE]
20214
instantiate the configuration file FILE
20215
--header=FILE[:TEMPLATE]
20216
instantiate the configuration header FILE
20218
Configuration files:
20221
Configuration headers:
20224
Configuration commands:
20227
Report bugs to <bug-autoconf@gnu.org>."
20230
cat >>$CONFIG_STATUS <<_ACEOF
20232
libFS config.status 3.0.0
20233
configured by $0, generated by GNU Autoconf 2.59,
20234
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20236
Copyright (C) 2003 Free Software Foundation, Inc.
20237
This config.status script is free software; the Free Software Foundation
20238
gives unlimited permission to copy, distribute and modify it."
20243
cat >>$CONFIG_STATUS <<\_ACEOF
20244
# If no file are specified by the user, then we need to provide default
20245
# value. By we need to know if files were specified by the user.
20251
ac_option=`expr "x$1" : 'x\([^=]*\)='`
20252
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20260
*) # This is not an option, so the user has probably given explicit
20263
ac_need_defaults=false;;
20267
# Handling of the options.
20269
cat >>$CONFIG_STATUS <<\_ACEOF
20270
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20272
--version | --vers* | -V )
20273
echo "$ac_cs_version"; exit 0 ;;
20275
# Conflict between --help and --header
20276
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
20277
Try \`$0 --help' for more information." >&5
20278
echo "$as_me: error: ambiguous option: $1
20279
Try \`$0 --help' for more information." >&2;}
20280
{ (exit 1); exit 1; }; };;
20281
--help | --hel | -h )
20282
echo "$ac_cs_usage"; exit 0 ;;
20283
--debug | --d* | -d )
20285
--file | --fil | --fi | --f )
20287
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20288
ac_need_defaults=false;;
20289
--header | --heade | --head | --hea )
20291
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20292
ac_need_defaults=false;;
20293
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
20294
| -silent | --silent | --silen | --sile | --sil | --si | --s)
20297
# This is an error.
20298
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20299
Try \`$0 --help' for more information." >&5
20300
echo "$as_me: error: unrecognized option: $1
20301
Try \`$0 --help' for more information." >&2;}
20302
{ (exit 1); exit 1; }; } ;;
20304
*) ac_config_targets="$ac_config_targets $1" ;;
20310
ac_configure_extra_args=
20312
if $ac_cs_silent; then
20314
ac_configure_extra_args="$ac_configure_extra_args --silent"
20318
cat >>$CONFIG_STATUS <<_ACEOF
20319
if \$ac_cs_recheck; then
20320
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20321
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20326
cat >>$CONFIG_STATUS <<_ACEOF
20328
# INIT-COMMANDS section.
20331
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20337
cat >>$CONFIG_STATUS <<\_ACEOF
20338
for ac_config_target in $ac_config_targets
20340
case "$ac_config_target" in
20341
# Handling of arguments.
20342
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20343
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20344
"libfs.pc" ) CONFIG_FILES="$CONFIG_FILES libfs.pc" ;;
20345
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20346
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20347
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20348
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20349
{ (exit 1); exit 1; }; };;
20353
# If the user did not use the arguments to specify the items to instantiate,
20354
# then the envvar interface is used. Set only those that are not.
20355
# We use the long form for the default assignment because of an extremely
20356
# bizarre bug on SunOS 4.1.3.
20357
if $ac_need_defaults; then
20358
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20359
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20360
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20363
# Have a temporary directory for convenience. Make it in the build tree
20364
# simply because there is no reason to put it here, and in addition,
20365
# creating and moving files from /tmp can sometimes cause problems.
20366
# Create a temporary directory, and hook for its removal unless debugging.
20369
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20370
trap '{ (exit 1); exit 1; }' 1 2 13 15
20373
# Create a (secure) tmp directory for tmp files.
20376
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20377
test -n "$tmp" && test -d "$tmp"
20380
tmp=./confstat$$-$RANDOM
20381
(umask 077 && mkdir $tmp)
20384
echo "$me: cannot create a temporary directory in ." >&2
20385
{ (exit 1); exit 1; }
20390
cat >>$CONFIG_STATUS <<_ACEOF
20393
# CONFIG_FILES section.
20396
# No need to generate the scripts if there are no CONFIG_FILES.
20397
# This happens for instance when ./config.status config.h
20398
if test -n "\$CONFIG_FILES"; then
20399
# Protect against being on the right side of a sed subst in config.status.
20400
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20401
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20402
s,@SHELL@,$SHELL,;t t
20403
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20404
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20405
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20406
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20407
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20408
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20409
s,@exec_prefix@,$exec_prefix,;t t
20410
s,@prefix@,$prefix,;t t
20411
s,@program_transform_name@,$program_transform_name,;t t
20412
s,@bindir@,$bindir,;t t
20413
s,@sbindir@,$sbindir,;t t
20414
s,@libexecdir@,$libexecdir,;t t
20415
s,@datadir@,$datadir,;t t
20416
s,@sysconfdir@,$sysconfdir,;t t
20417
s,@sharedstatedir@,$sharedstatedir,;t t
20418
s,@localstatedir@,$localstatedir,;t t
20419
s,@libdir@,$libdir,;t t
20420
s,@includedir@,$includedir,;t t
20421
s,@oldincludedir@,$oldincludedir,;t t
20422
s,@infodir@,$infodir,;t t
20423
s,@mandir@,$mandir,;t t
20424
s,@build_alias@,$build_alias,;t t
20425
s,@host_alias@,$host_alias,;t t
20426
s,@target_alias@,$target_alias,;t t
20427
s,@DEFS@,$DEFS,;t t
20428
s,@ECHO_C@,$ECHO_C,;t t
20429
s,@ECHO_N@,$ECHO_N,;t t
20430
s,@ECHO_T@,$ECHO_T,;t t
20431
s,@LIBS@,$LIBS,;t t
20432
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20433
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20434
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20435
s,@CYGPATH_W@,$CYGPATH_W,;t t
20436
s,@PACKAGE@,$PACKAGE,;t t
20437
s,@VERSION@,$VERSION,;t t
20438
s,@ACLOCAL@,$ACLOCAL,;t t
20439
s,@AUTOCONF@,$AUTOCONF,;t t
20440
s,@AUTOMAKE@,$AUTOMAKE,;t t
20441
s,@AUTOHEADER@,$AUTOHEADER,;t t
20442
s,@MAKEINFO@,$MAKEINFO,;t t
20443
s,@install_sh@,$install_sh,;t t
20444
s,@STRIP@,$STRIP,;t t
20445
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20446
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20447
s,@mkdir_p@,$mkdir_p,;t t
20449
s,@SET_MAKE@,$SET_MAKE,;t t
20450
s,@am__leading_dot@,$am__leading_dot,;t t
20451
s,@AMTAR@,$AMTAR,;t t
20452
s,@am__tar@,$am__tar,;t t
20453
s,@am__untar@,$am__untar,;t t
20454
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20455
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20456
s,@MAINT@,$MAINT,;t t
20458
s,@CFLAGS@,$CFLAGS,;t t
20459
s,@LDFLAGS@,$LDFLAGS,;t t
20460
s,@CPPFLAGS@,$CPPFLAGS,;t t
20461
s,@ac_ct_CC@,$ac_ct_CC,;t t
20462
s,@EXEEXT@,$EXEEXT,;t t
20463
s,@OBJEXT@,$OBJEXT,;t t
20464
s,@DEPDIR@,$DEPDIR,;t t
20465
s,@am__include@,$am__include,;t t
20466
s,@am__quote@,$am__quote,;t t
20467
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20468
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20469
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20470
s,@CCDEPMODE@,$CCDEPMODE,;t t
20471
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20472
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20473
s,@build@,$build,;t t
20474
s,@build_cpu@,$build_cpu,;t t
20475
s,@build_vendor@,$build_vendor,;t t
20476
s,@build_os@,$build_os,;t t
20477
s,@host@,$host,;t t
20478
s,@host_cpu@,$host_cpu,;t t
20479
s,@host_vendor@,$host_vendor,;t t
20480
s,@host_os@,$host_os,;t t
20481
s,@EGREP@,$EGREP,;t t
20482
s,@LN_S@,$LN_S,;t t
20483
s,@ECHO@,$ECHO,;t t
20485
s,@ac_ct_AR@,$ac_ct_AR,;t t
20486
s,@RANLIB@,$RANLIB,;t t
20487
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20490
s,@CXXFLAGS@,$CXXFLAGS,;t t
20491
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20492
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20493
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20494
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20495
s,@CXXCPP@,$CXXCPP,;t t
20497
s,@FFLAGS@,$FFLAGS,;t t
20498
s,@ac_ct_F77@,$ac_ct_F77,;t t
20499
s,@LIBTOOL@,$LIBTOOL,;t t
20500
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20501
s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20502
s,@DEP_CFLAGS@,$DEP_CFLAGS,;t t
20503
s,@DEP_LIBS@,$DEP_LIBS,;t t
20504
s,@XTRANS_CFLAGS@,$XTRANS_CFLAGS,;t t
20505
s,@XTRANS_LIBS@,$XTRANS_LIBS,;t t
20506
s,@LIBOBJS@,$LIBOBJS,;t t
20507
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20512
cat >>$CONFIG_STATUS <<\_ACEOF
20513
# Split the substitutions into bite-sized pieces for seds with
20514
# small command number limits, like on Digital OSF/1 and HP-UX.
20515
ac_max_sed_lines=48
20516
ac_sed_frag=1 # Number of current file.
20517
ac_beg=1 # First line for current file.
20518
ac_end=$ac_max_sed_lines # Line after last line for current file.
20521
while $ac_more_lines; do
20522
if test $ac_beg -gt 1; then
20523
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20525
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20527
if test ! -s $tmp/subs.frag; then
20528
ac_more_lines=false
20530
# The purpose of the label and of the branching condition is to
20531
# speed up the sed processing (if there are no `@' at all, there
20532
# is no need to browse any of the substitutions).
20533
# These are the two extra sed commands mentioned above.
20535
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20536
if test -z "$ac_sed_cmds"; then
20537
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20539
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20541
ac_sed_frag=`expr $ac_sed_frag + 1`
20543
ac_end=`expr $ac_end + $ac_max_sed_lines`
20546
if test -z "$ac_sed_cmds"; then
20549
fi # test -n "$CONFIG_FILES"
20552
cat >>$CONFIG_STATUS <<\_ACEOF
20553
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20554
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20556
- | *:- | *:-:* ) # input from stdin
20558
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20559
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20560
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20561
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20562
* ) ac_file_in=$ac_file.in ;;
20565
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20566
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20567
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20568
X"$ac_file" : 'X\(//\)[^/]' \| \
20569
X"$ac_file" : 'X\(//\)$' \| \
20570
X"$ac_file" : 'X\(/\)' \| \
20571
. : '\(.\)' 2>/dev/null ||
20573
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20574
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20575
/^X\(\/\/\)$/{ s//\1/; q; }
20576
/^X\(\/\).*/{ s//\1/; q; }
20578
{ if $as_mkdir_p; then
20583
while test ! -d "$as_dir"; do
20584
as_dirs="$as_dir $as_dirs"
20585
as_dir=`(dirname "$as_dir") 2>/dev/null ||
20586
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20587
X"$as_dir" : 'X\(//\)[^/]' \| \
20588
X"$as_dir" : 'X\(//\)$' \| \
20589
X"$as_dir" : 'X\(/\)' \| \
20590
. : '\(.\)' 2>/dev/null ||
20592
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20593
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20594
/^X\(\/\/\)$/{ s//\1/; q; }
20595
/^X\(\/\).*/{ s//\1/; q; }
20598
test ! -n "$as_dirs" || mkdir $as_dirs
20599
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20600
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20601
{ (exit 1); exit 1; }; }; }
20605
if test "$ac_dir" != .; then
20606
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20607
# A "../" for each directory in $ac_dir_suffix.
20608
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20610
ac_dir_suffix= ac_top_builddir=
20614
.) # No --srcdir option. We are building in place.
20616
if test -z "$ac_top_builddir"; then
20619
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20621
[\\/]* | ?:[\\/]* ) # Absolute path.
20622
ac_srcdir=$srcdir$ac_dir_suffix;
20623
ac_top_srcdir=$srcdir ;;
20624
*) # Relative path.
20625
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20626
ac_top_srcdir=$ac_top_builddir$srcdir ;;
20629
# Do not use `cd foo && pwd` to compute absolute paths, because
20630
# the directories may not exist.
20632
.) ac_abs_builddir="$ac_dir";;
20635
.) ac_abs_builddir=`pwd`;;
20636
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20637
*) ac_abs_builddir=`pwd`/"$ac_dir";;
20640
case $ac_abs_builddir in
20641
.) ac_abs_top_builddir=${ac_top_builddir}.;;
20643
case ${ac_top_builddir}. in
20644
.) ac_abs_top_builddir=$ac_abs_builddir;;
20645
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20646
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20649
case $ac_abs_builddir in
20650
.) ac_abs_srcdir=$ac_srcdir;;
20653
.) ac_abs_srcdir=$ac_abs_builddir;;
20654
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20655
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20658
case $ac_abs_builddir in
20659
.) ac_abs_top_srcdir=$ac_top_srcdir;;
20661
case $ac_top_srcdir in
20662
.) ac_abs_top_srcdir=$ac_abs_builddir;;
20663
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20664
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20670
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20671
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20674
# Let's still pretend it is `configure' which instantiates (i.e., don't
20675
# use $as_me), people would be surprised to read:
20676
# /* config.h. Generated by config.status. */
20677
if test x"$ac_file" = x-; then
20680
configure_input="$ac_file. "
20682
configure_input=$configure_input"Generated from `echo $ac_file_in |
20683
sed 's,.*/,,'` by configure."
20685
# First look for the input files in the build tree, otherwise in the
20687
ac_file_inputs=`IFS=:
20688
for f in $ac_file_in; do
20690
-) echo $tmp/stdin ;;
20692
# Absolute (can't be DOS-style, as IFS=:)
20693
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20694
echo "$as_me: error: cannot find input file: $f" >&2;}
20695
{ (exit 1); exit 1; }; }
20698
if test -f "$f"; then
20701
elif test -f "$srcdir/$f"; then
20706
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20707
echo "$as_me: error: cannot find input file: $f" >&2;}
20708
{ (exit 1); exit 1; }; }
20711
done` || { (exit 1); exit 1; }
20713
if test x"$ac_file" != x-; then
20714
{ echo "$as_me:$LINENO: creating $ac_file" >&5
20715
echo "$as_me: creating $ac_file" >&6;}
20719
cat >>$CONFIG_STATUS <<_ACEOF
20723
cat >>$CONFIG_STATUS <<\_ACEOF
20725
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20726
s,@configure_input@,$configure_input,;t t
20727
s,@srcdir@,$ac_srcdir,;t t
20728
s,@abs_srcdir@,$ac_abs_srcdir,;t t
20729
s,@top_srcdir@,$ac_top_srcdir,;t t
20730
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20731
s,@builddir@,$ac_builddir,;t t
20732
s,@abs_builddir@,$ac_abs_builddir,;t t
20733
s,@top_builddir@,$ac_top_builddir,;t t
20734
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20735
s,@INSTALL@,$ac_INSTALL,;t t
20736
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20738
if test x"$ac_file" != x-; then
20739
mv $tmp/out $ac_file
20747
cat >>$CONFIG_STATUS <<\_ACEOF
20750
# CONFIG_HEADER section.
20753
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20754
# NAME is the cpp macro being defined and VALUE is the value it is being given.
20756
# ac_d sets the value in "#define NAME VALUE" lines.
20757
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20758
ac_dB='[ ].*$,\1#\2'
20761
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20762
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20763
ac_uB='$,\1#\2define\3'
20767
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20768
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20770
- | *:- | *:-:* ) # input from stdin
20772
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20773
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20774
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20775
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20776
* ) ac_file_in=$ac_file.in ;;
20779
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20780
echo "$as_me: creating $ac_file" >&6;}
20782
# First look for the input files in the build tree, otherwise in the
20784
ac_file_inputs=`IFS=:
20785
for f in $ac_file_in; do
20787
-) echo $tmp/stdin ;;
20789
# Absolute (can't be DOS-style, as IFS=:)
20790
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20791
echo "$as_me: error: cannot find input file: $f" >&2;}
20792
{ (exit 1); exit 1; }; }
20793
# Do quote $f, to prevent DOS paths from being IFS'd.
20796
if test -f "$f"; then
20799
elif test -f "$srcdir/$f"; then
20804
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20805
echo "$as_me: error: cannot find input file: $f" >&2;}
20806
{ (exit 1); exit 1; }; }
20809
done` || { (exit 1); exit 1; }
20810
# Remove the trailing spaces.
20811
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20815
# Transform confdefs.h into two sed scripts, `conftest.defines' and
20816
# `conftest.undefs', that substitutes the proper values into
20817
# config.h.in to produce config.h. The first handles `#define'
20818
# templates, and the second `#undef' templates.
20819
# And first: Protect against being on the right side of a sed subst in
20820
# config.status. Protect against being in an unquoted here document
20821
# in config.status.
20822
rm -f conftest.defines conftest.undefs
20823
# Using a here document instead of a string reduces the quoting nightmare.
20824
# Putting comments in sed scripts is not portable.
20826
# `end' is used to avoid that the second main sed command (meant for
20827
# 0-ary CPP macros) applies to n-ary macro definitions.
20828
# See the Autoconf documentation for `clear'.
20829
cat >confdef2sed.sed <<\_ACEOF
20834
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20836
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20839
# If some macros were called several times there might be several times
20840
# the same #defines, which is useless. Nevertheless, we may not want to
20841
# sort them, since we want the *last* AC-DEFINE to be honored.
20842
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20843
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20844
rm -f confdef2sed.sed
20846
# This sed command replaces #undef with comments. This is necessary, for
20847
# example, in the case of _POSIX_SOURCE, which is predefined and required
20848
# on some systems where configure will not decide to define it.
20849
cat >>conftest.undefs <<\_ACEOF
20850
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20853
# Break up conftest.defines because some shells have a limit on the size
20854
# of here documents, and old seds have small limits too (100 cmds).
20855
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20856
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20857
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20858
echo ' :' >>$CONFIG_STATUS
20859
rm -f conftest.tail
20860
while grep . conftest.defines >/dev/null
20862
# Write a limited-size here document to $tmp/defines.sed.
20863
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20864
# Speed up: don't consider the non `#define' lines.
20865
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20866
# Work around the forget-to-reset-the-flag bug.
20867
echo 't clr' >>$CONFIG_STATUS
20868
echo ': clr' >>$CONFIG_STATUS
20869
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20871
sed -f $tmp/defines.sed $tmp/in >$tmp/out
20873
mv $tmp/out $tmp/in
20875
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20876
rm -f conftest.defines
20877
mv conftest.tail conftest.defines
20879
rm -f conftest.defines
20880
echo ' fi # grep' >>$CONFIG_STATUS
20881
echo >>$CONFIG_STATUS
20883
# Break up conftest.undefs because some shells have a limit on the size
20884
# of here documents, and old seds have small limits too (100 cmds).
20885
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20886
rm -f conftest.tail
20887
while grep . conftest.undefs >/dev/null
20889
# Write a limited-size here document to $tmp/undefs.sed.
20890
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20891
# Speed up: don't consider the non `#undef'
20892
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20893
# Work around the forget-to-reset-the-flag bug.
20894
echo 't clr' >>$CONFIG_STATUS
20895
echo ': clr' >>$CONFIG_STATUS
20896
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20898
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20900
mv $tmp/out $tmp/in
20902
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20903
rm -f conftest.undefs
20904
mv conftest.tail conftest.undefs
20906
rm -f conftest.undefs
20908
cat >>$CONFIG_STATUS <<\_ACEOF
20909
# Let's still pretend it is `configure' which instantiates (i.e., don't
20910
# use $as_me), people would be surprised to read:
20911
# /* config.h. Generated by config.status. */
20912
if test x"$ac_file" = x-; then
20913
echo "/* Generated by configure. */" >$tmp/config.h
20915
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20917
cat $tmp/in >>$tmp/config.h
20919
if test x"$ac_file" != x-; then
20920
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20921
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20922
echo "$as_me: $ac_file is unchanged" >&6;}
20924
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20925
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20926
X"$ac_file" : 'X\(//\)[^/]' \| \
20927
X"$ac_file" : 'X\(//\)$' \| \
20928
X"$ac_file" : 'X\(/\)' \| \
20929
. : '\(.\)' 2>/dev/null ||
20931
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20932
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20933
/^X\(\/\/\)$/{ s//\1/; q; }
20934
/^X\(\/\).*/{ s//\1/; q; }
20936
{ if $as_mkdir_p; then
20941
while test ! -d "$as_dir"; do
20942
as_dirs="$as_dir $as_dirs"
20943
as_dir=`(dirname "$as_dir") 2>/dev/null ||
20944
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20945
X"$as_dir" : 'X\(//\)[^/]' \| \
20946
X"$as_dir" : 'X\(//\)$' \| \
20947
X"$as_dir" : 'X\(/\)' \| \
20948
. : '\(.\)' 2>/dev/null ||
20950
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20951
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20952
/^X\(\/\/\)$/{ s//\1/; q; }
20953
/^X\(\/\).*/{ s//\1/; q; }
20956
test ! -n "$as_dirs" || mkdir $as_dirs
20957
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20958
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20959
{ (exit 1); exit 1; }; }; }
20962
mv $tmp/config.h $ac_file
20966
rm -f $tmp/config.h
20968
# Compute $ac_file's index in $config_headers.
20970
for _am_header in $config_headers :; do
20971
case $_am_header in
20972
$ac_file | $ac_file:* )
20975
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
20978
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20979
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20980
X$ac_file : 'X\(//\)[^/]' \| \
20981
X$ac_file : 'X\(//\)$' \| \
20982
X$ac_file : 'X\(/\)' \| \
20983
. : '\(.\)' 2>/dev/null ||
20985
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20986
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20987
/^X\(\/\/\)$/{ s//\1/; q; }
20988
/^X\(\/\).*/{ s//\1/; q; }
20989
s/.*/./; q'`/stamp-h$_am_stamp_count
20992
cat >>$CONFIG_STATUS <<\_ACEOF
20995
# CONFIG_COMMANDS section.
20997
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20998
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20999
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21000
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21001
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21002
X"$ac_dest" : 'X\(//\)[^/]' \| \
21003
X"$ac_dest" : 'X\(//\)$' \| \
21004
X"$ac_dest" : 'X\(/\)' \| \
21005
. : '\(.\)' 2>/dev/null ||
21007
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21008
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21009
/^X\(\/\/\)$/{ s//\1/; q; }
21010
/^X\(\/\).*/{ s//\1/; q; }
21012
{ if $as_mkdir_p; then
21017
while test ! -d "$as_dir"; do
21018
as_dirs="$as_dir $as_dirs"
21019
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21020
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21021
X"$as_dir" : 'X\(//\)[^/]' \| \
21022
X"$as_dir" : 'X\(//\)$' \| \
21023
X"$as_dir" : 'X\(/\)' \| \
21024
. : '\(.\)' 2>/dev/null ||
21026
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21027
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21028
/^X\(\/\/\)$/{ s//\1/; q; }
21029
/^X\(\/\).*/{ s//\1/; q; }
21032
test ! -n "$as_dirs" || mkdir $as_dirs
21033
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21034
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21035
{ (exit 1); exit 1; }; }; }
21039
if test "$ac_dir" != .; then
21040
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21041
# A "../" for each directory in $ac_dir_suffix.
21042
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21044
ac_dir_suffix= ac_top_builddir=
21048
.) # No --srcdir option. We are building in place.
21050
if test -z "$ac_top_builddir"; then
21053
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21055
[\\/]* | ?:[\\/]* ) # Absolute path.
21056
ac_srcdir=$srcdir$ac_dir_suffix;
21057
ac_top_srcdir=$srcdir ;;
21058
*) # Relative path.
21059
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21060
ac_top_srcdir=$ac_top_builddir$srcdir ;;
21063
# Do not use `cd foo && pwd` to compute absolute paths, because
21064
# the directories may not exist.
21066
.) ac_abs_builddir="$ac_dir";;
21069
.) ac_abs_builddir=`pwd`;;
21070
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21071
*) ac_abs_builddir=`pwd`/"$ac_dir";;
21074
case $ac_abs_builddir in
21075
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21077
case ${ac_top_builddir}. in
21078
.) ac_abs_top_builddir=$ac_abs_builddir;;
21079
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21080
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21083
case $ac_abs_builddir in
21084
.) ac_abs_srcdir=$ac_srcdir;;
21087
.) ac_abs_srcdir=$ac_abs_builddir;;
21088
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21089
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21092
case $ac_abs_builddir in
21093
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21095
case $ac_top_srcdir in
21096
.) ac_abs_top_srcdir=$ac_abs_builddir;;
21097
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21098
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21103
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21104
echo "$as_me: executing $ac_dest commands" >&6;}
21106
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21107
# Strip MF so we end up with the name of the file.
21108
mf=`echo "$mf" | sed -e 's/:.*$//'`
21109
# Check whether this is an Automake generated Makefile or not.
21110
# We used to match only the files named `Makefile.in', but
21111
# some people rename them; so instead we look at the file content.
21112
# Grep'ing the first line is not enough: some people post-process
21113
# each Makefile.in and add a new line on top of each file to say so.
21114
# So let's grep whole file.
21115
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21116
dirpart=`(dirname "$mf") 2>/dev/null ||
21117
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21118
X"$mf" : 'X\(//\)[^/]' \| \
21119
X"$mf" : 'X\(//\)$' \| \
21120
X"$mf" : 'X\(/\)' \| \
21121
. : '\(.\)' 2>/dev/null ||
21123
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21124
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21125
/^X\(\/\/\)$/{ s//\1/; q; }
21126
/^X\(\/\).*/{ s//\1/; q; }
21131
# Extract the definition of DEPDIR, am__include, and am__quote
21132
# from the Makefile without running `make'.
21133
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21134
test -z "$DEPDIR" && continue
21135
am__include=`sed -n 's/^am__include = //p' < "$mf"`
21136
test -z "am__include" && continue
21137
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21138
# When using ansi2knr, U may be empty or an underscore; expand it
21139
U=`sed -n 's/^U = //p' < "$mf"`
21140
# Find all dependency output files, they are included files with
21141
# $(DEPDIR) in their names. We invoke sed twice because it is the
21142
# simplest approach to changing $(DEPDIR) to its actual value in the
21144
for file in `sed -n "
21145
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21146
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21147
# Make sure the directory exists.
21148
test -f "$dirpart/$file" && continue
21149
fdir=`(dirname "$file") 2>/dev/null ||
21150
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21151
X"$file" : 'X\(//\)[^/]' \| \
21152
X"$file" : 'X\(//\)$' \| \
21153
X"$file" : 'X\(/\)' \| \
21154
. : '\(.\)' 2>/dev/null ||
21156
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21157
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21158
/^X\(\/\/\)$/{ s//\1/; q; }
21159
/^X\(\/\).*/{ s//\1/; q; }
21161
{ if $as_mkdir_p; then
21162
mkdir -p $dirpart/$fdir
21164
as_dir=$dirpart/$fdir
21166
while test ! -d "$as_dir"; do
21167
as_dirs="$as_dir $as_dirs"
21168
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21169
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21170
X"$as_dir" : 'X\(//\)[^/]' \| \
21171
X"$as_dir" : 'X\(//\)$' \| \
21172
X"$as_dir" : 'X\(/\)' \| \
21173
. : '\(.\)' 2>/dev/null ||
21175
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21176
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21177
/^X\(\/\/\)$/{ s//\1/; q; }
21178
/^X\(\/\).*/{ s//\1/; q; }
21181
test ! -n "$as_dirs" || mkdir $as_dirs
21182
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21183
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21184
{ (exit 1); exit 1; }; }; }
21186
# echo "creating $dirpart/$file"
21187
echo '# dummy' > "$dirpart/$file"
21195
cat >>$CONFIG_STATUS <<\_ACEOF
21197
{ (exit 0); exit 0; }
21199
chmod +x $CONFIG_STATUS
21200
ac_clean_files=$ac_clean_files_save
21203
# configure is writing to config.log, and then calls config.status.
21204
# config.status does its own redirection, appending to config.log.
21205
# Unfortunately, on DOS this fails, as config.log is still kept open
21206
# by configure, so config.status won't be able to write to it; its
21207
# output is simply discarded. So we exec the FD to /dev/null,
21208
# effectively closing config.log, so it can be properly (re)opened and
21209
# appended to by config.status. When coming back to configure, we
21210
# need to make the FD available again.
21211
if test "$no_create" != yes; then
21213
ac_config_status_args=
21214
test "$silent" = yes &&
21215
ac_config_status_args="$ac_config_status_args --quiet"
21217
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21219
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
21220
# would make configure fail if this is the last instruction.
21221
$ac_cs_success || { (exit 1); exit 1; }